/* ========== Base Styles (Mobile-First) ========== */

* {
    font-family: 'ABeeZee';
}

/* --- Header & Navbar --- */
.header {
    background-color: #fff;
    text-align: center;
    padding: 20px;
}

.headerBrand {
    color: #6543B9;
}

.navbar {
    width: 100%;
    padding: 1% 0;
}

.navbar-collapse {
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
    padding-bottom: 1rem;
}

.navbar-nav .dropdown-menu {
    opacity: 1 !important;
    border: none;
    position: static;
    float: none;
    width: max-content;
}

.nav-item {
    padding: 0 20px;
}

/* --- Sticky Header --- */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

.navHeader {
    background-color: white !important;
    border-bottom: 2px solid #369EBE;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* --- Banner --- */
.bannerContainer {
    position: relative;
    text-align: center;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.homeBanner {
    width: 100%;
    opacity: 85%;
    display: block;
    margin: auto;
}

.bannerText {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1rem;
    text-align: center;
    width: 100%;
    max-width: 2000px;
}

.bannerText h3 {
    color: #54389b;
    font-size: 6.5vw;
    margin: 0;
    text-shadow:
        -5px -5px 30px white,
         5px -5px 30px white,
        -5px  5px 30px white,
         5px  5px 30px white;
}

.bannerText h6 {
    font-weight: bold;
    font-size: 4.5vw;
    margin-top: 10px;
    color: white;
    text-shadow:
        -1px -1px 0 black,
         1px -1px 0 black,
        -1px  1px 0 black,
         1px  1px 0 black;
}

.bannerLinks {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.bannerLinks a {
    font-size: 3.5vw;
    color: #54389b;
    background-color: white;
    padding: 0.8em 1.2em;
    border-radius: 8pt;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
}

/* --- Grid --- */
.gridPlaceholders {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
    gap: 2em;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
    margin: auto;
}

.gridPic {
    width: 100%;
    height: auto;
    opacity: 0.8;
}

/* --- Announcements --- */
.announcementList {
    margin-top: 2%;
    text-align: center;
}

.announcementList p {
    font-size: 5.5vw;
    text-decoration: underline;
}

.announcementList li {
    font-size: 3.5vw;
    margin-top: 1rem;
    width: max-content;
}

.announcementList a {
    color: #369EBE;
    text-decoration: none;
}

/* --- Page Sections --- */
.pageHeading {
    background-color: #369EBE;
    padding: 1em;
    color: white;
}

.pageText {
    padding: 3em 2em;
    font-size: 1.1em;
}

.pageText h5 {
    font-size: 1em;
}

.pageTextMain a {
    color: black;
    text-decoration: none;
}

.pagePictures {
    text-align: center;
    justify-content: center;
    margin: auto;
}

.pagePictures img {
    width: 95%;
    margin-bottom: 2%;
}

.pagePicturesSS {
    text-align: center;
    margin: auto;
    width: 100%;
    max-width: 1200px;
    padding: 1rem;
}

.pagePicturesSS img {
    width: 50%;
    margin-bottom: 5%;
}

/* --- Contact Form --- */
.contactForm {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    background-color: #369EBE;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contactForm label {
    font-size: 4.5vw;
    font-weight: 500;
    color: white;
}

.contactForm input,
.contactForm textarea {
    font-size: 3.5vw;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.contactForm button {
    font-size: 3.5vw;
    background-color: #6543B9;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
}

/* --- Event Table --- */
.eventTable {
    width: 100% !important;
    max-width: none !important;
}

.eventTable table, th, td {
    border: 1px solid black;
    border-collapse: collapse;
}

.eventTable th, td {
    padding: 10px 20px;
    text-align: left;
    vertical-align: top;
}

/* --- Event Details Page --- */
.eventDetailsPage {
    margin: 5% 0;
    text-align: center;
}

.eventDetailsPage img {
    width: 80%;
}

/* --- FullCalendar --- */
#calendar {
    max-width: 1300px;
    margin: 40px auto;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.fc-daygrid-day {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
}

.fc-daygrid-day-top {
    font-size: 1rem;
    color: #6543B9;
    padding: 4px;
    font-weight: bold;
}

.fc-event {
    background-color: #6543B9;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 0.9em;
    padding: 2px 4px;
    margin-top: 4px;
    text-align: center;
}

.fc-day-today {
    background-color: #BFDEE7 !important;
    border: 2px solid #a488f0;
}

.fc-event-title {
    font-weight: 500;
}

/* --- Sermons --- */
.fbSermonVideo {
    width: 95%;
    height: 52vw;
    margin: auto;
}

.fbSermonFrame {
    width: 100%;
    height: 50vw;
}

.sermonThumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 2em;
}

/* --- Footer --- */
.footer {
    background-color: #6543B9;
    text-align: center;
    color: #fff;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 20px;
}

.footer hr {
    border-width: 0.5em;
}

.footerContent {
    display: flex;
    justify-content: space-around;
    font-size: 0.9em;
    text-align: left;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
}

.footer-section {
    padding: 0 20px;
    list-style: none;
    margin: 0 10px;
}

.footerPage {
    display: none;
}

.footerBar {
    margin-top: 3%;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    padding: 0;
    font-size: 2.46vw;
}

.footerSocials {
    display: grid;
    grid-template-columns: repeat(2, minmax(15em, 1fr));
    gap: 2em;
    font-size: 2.7vw;
    margin: 2% 0;
    justify-content: unset;
}

.zmdi-facebook,
.zmdi-instagram {
    font-size: 2.7vw;
}

/* ========== Desktop Styles (min-width: 992px) ========== */
@media (min-width: 992px) {
    .navbar-collapse {
        flex-direction: row;
        align-items: center;
        position: static;
        padding-bottom: 0;
    }

    .navbar-nav .dropdown:hover > .dropdown-menu {
        display: block;
    }

    .dropdown-menu {
        margin-top: 0;
    }

    .container-fluid {
        width: max-content;
    }

    .bannerText h3 {
        font-size: 5em;
    }

    .bannerText h6 {
        font-size: 2.5em;
    }

    .bannerLinks a {
        font-size: 1em;
    }

    .homeLists {
        display: flex;
        justify-content: space-between;
        margin: 0 5% 5%;
    }

    .gridPlaceholders {
        grid-template-columns: repeat(3, 1fr);
        padding: 20px;
    }

    .gridPic {
        max-width: 250px;
    }

    .announcementList p {
        font-size: 1.6em;
    }

    .announcementList li {
        font-size: 1em;
        margin-top: 5%;
        width: 100%;
    }

    .pageText {
        max-width: 50em;
        margin: auto;
        padding: 3em;
        box-sizing: border-box;
    }

    .pagePictures {
        display: flex;
    }

    .leadershipSpread {
        display: flex;
        justify-content: space-evenly;
        margin: 0 -5em;
    }

    .pagePicturesSS {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
        gap: 2em;
    }

    .pagePicturesSS img {
        width: 90%;
    }

    .contactForm label,
    .contactForm input,
    .contactForm textarea,
    .contactForm button {
        font-size: 1.1em;
    }

    .eventDetailsPage img {
        width: 60em;
    }

    .fbSermonGrid {
        display: grid;
        grid-template-columns: repeat(2, 26em);
        justify-content: center;
        align-items: center;
    }

    .sermonThumbnail {
        width: 95%;
    }

    .fbSermonVideo {
        width: 950px;
        height: auto;
    }

    .fbSermonFrame {
        height: 540px;
    }

    .footerPage {
        display: block;
    }

    .footerBar {
        font-size: 1em;
    }

    .footerSocials {
        display: flex;
        justify-content: space-evenly;
        font-size: initial;
    }

    .zmdi-facebook,
    .zmdi-instagram {
        font-size: initial;
    }
}
