/* Reset and Base Styles */
* {
    margin: 0px;
    padding: 0px;
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* Header Section */
.header {
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/background image.jpg");
    background-position: center;
    background-size: cover;
    position: relative;
}

/* Upcoming Events Section */
.upcoming-events {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
    background-color: #E0D6AE;
    box-sizing: border-box;
    overflow-x: hidden;
}

.upcoming-events h1 {
    font-size: 50px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #4E342E;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
    margin-bottom: 20px;
}

.upcoming-events p {
    color: #4E342E;
    font-size: 14px;
    font-weight: 300;
    line-height: 22px;
    padding: 0 20px;
    max-width: 600px;
    margin: 0 auto;
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    max-width: 1200px;
}

.event-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    min-height: 250px;
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.event-card h3:first-child {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #4E342E;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.event-card h3 {
    font-size: 24px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #4E342E;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.event-card p {
    font-size: 1.2em;
    color: #9C7A4B;
    margin: 5px 0;
    line-height: 1.5;
}

.event-media {
    margin-bottom: 15px;
    height: auto;
}

.event-media img,
.event-media video {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #B38E5D;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#dynamic-event {
    min-height: 250px; /* Ensure consistent height */
}

.event-btn,
.event-reg-btn {
    display: inline-block;
    text-decoration: none;
    color: #fff;
    background-color: #C89F5D;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.event-reg-btn {
    background-color: #9C7A4B;
}

.event-btn:hover,
.event-reg-btn:hover {
    background-color: #E6C27A;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.event-btn:active,
.event-reg-btn:active {
    transform: translateY(1px);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Larger Screens */
@media (min-width: 1200px) {
    .events-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased minimum width */
        gap: 30px; /* Wider gap for better spacing */
        padding: 0 20px; /* More padding on sides */
        max-width: 1400px; /* Wider container */
    }

    .event-card {
        padding: 30px; /* Increased padding for larger cards */
        min-height: 300px; /* Increased height for more content */
    }

    .event-card h3:first-child,
    .event-card h3 {
        font-size: 28px; /* Slightly larger headings */
    }

    .event-card p {
        font-size: 1.3em; /* Slightly larger text */
    }

    .event-media img,
    .event-media video {
        border-width: 3px; /* Thicker border for emphasis */
    }

    .event-btn,
    .event-reg-btn {
        padding: 12px 25px; /* Larger buttons */
        font-size: 16px; /* Larger button text */
    }
}

/* Responsive Design */
@media (max-width: 950px) {
    .upcoming-events {
        width: 100%;
        padding: 0 10px;
    }

    .upcoming-events h1 {
        margin-top: 20px;
        font-size: 35px;
    }

    .upcoming-events p {
        padding: 0 10px;
        max-width: 400px;
    }

    .events-container {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .event-card {
        padding: 15px;
        min-height: 200px;
    }

    .event-card h3:first-child {
        font-size: 20px;
    }

    .event-card p {
        font-size: 1.1em;
    }

    .event-btn,
    .event-reg-btn {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (min-width: 701px) and (max-width: 950px) and (orientation: landscape) {
    .upcoming-events h1 {
        font-size: 35px;
    }

    .events-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Global Fix for Horizontal Overflow */
html, body {
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll bars */
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Navigation */
nav {
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: center;
    color: #E0D6AE;
    position: relative; /* Ensure icons position correctly */
}

nav img {
    width: 150px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

nav img:hover {
    transform: scale(1.1);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    filter: brightness(1.2);
}

.nav-links {
    flex: 1;
    text-align: right;
    color: #E0D6AE;
}

.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}

.nav-links ul li a {
    color: #E0D6AE;
    text-decoration: none;
    font-size: 20px;
}

.nav-links ul li::after {
    content: '';
    width: 0%;
    height: 2px;
    background: #E0D6AE;
    display: block;
    margin: auto;
    transition: width 0.3s ease;
}

.nav-links ul li:hover::after {
    width: 100%;
}

nav .fa {
    display: none; /* Hidden by default on desktop */
}

/* Base Styles for Dropdown */
.nav-links .dropdown {
    position: relative;
}

.nav-links .dropbtn {
    display: block;
    padding: 8px 12px;
}

.nav-links .dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: rgba(200, 159, 93, 0.9); /* Slightly transparent */
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    padding: 0;
}

.nav-links .dropdown-content li {
    display: block;
    margin: 0;
    padding: 0;
}

.nav-links .dropdown-content a {
    color: #fff;
    padding: 12px 6px;
    font-size: 20px;
    text-decoration: none;
    display: block;
    line-height: 1.1;
}

.nav-links .dropdown-content a:hover {
    background: rgba(179, 142, 93, 0.9);
}


/* Desktop: Show on hover (above 700px) */
@media (min-width: 701px) {
    .nav-links .dropdown:hover .dropdown-content {
        display: block;
    }
    .nav-links {
        position: static; /* Reset to static for desktop */
    }
}

/* Mobile Toggle Menu and Dropdown (max-width 950px) */
@media (max-width: 950px) {
    .text-box h1 {
        font-size: 40px;
        text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links ul li {
        display: block;
    }

    html, body {
        overflow: auto;
        overflow-x: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        background: #C89F5D;
        color: #4E342E;
        text-align: left;
        z-index: 1000; /* High z-index to stay above content */
        transition: right 0.3s ease;
        overflow-y: auto;
        display: none; /* Hidden until toggled */
    }

    .nav-links.active {
        display: block;
        right: 0;
    }

    .nav-links ul {
        padding: 40px 20px; /* Adjusted padding for alignment */
    }

    .nav-links ul li {
        display: block;
        padding: 8px 0; /* Reduced padding for tighter spacing */
    }

    .nav-links ul li a {
        font-size: 16px; /* Adjusted for mobile readability */
    }

    nav .fa {
        display: block;
        color: #9C7A4B;
        font-size: 40px; /* Slightly smaller for better fit */
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        position: absolute;
        top: 20px; /* Fixed positioning */
        right: 20px;
    }

    nav .fa:hover {
        transform: scale(1.1);
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    }

    nav .fa:active {
        transform: scale(0.95);
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 40px;
        color: #4E342E;
    }

    .nav-links .dropdown-content {
        position: static;
        left: 0;
        box-shadow: none;
        background: rgba(200, 159, 93, 0.9); /* Consistent transparency on mobile */
        padding-left: 10px; /* Slight indent */
    }

    .nav-links .dropdown-content a {
        padding: 2px 6px;
        font-size: 10px;
        line-height: 1.1;
    }

    .nav-links .dropdown:hover .dropdown-content {
        display: none;
    }

    .nav-links .dropdown.active .dropdown-content {
        display: block;
    }


    .dropdown-content {
        position: static; /* Stack below parent on mobile */
        left: 0;
        box-shadow: none;
        background: #C89F5D; /* Consistent background */
        padding-left: 0; /* No indent */
    }

    .dropdown-content li {
        display: block; /* Vertical layout on mobile */
    }

    .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .dropdown.active .dropdown-content {
        display: block; /* Show when toggled via JS */
    }

    .layer {
        font-size: 30px;
    }

    .about-col h1 {
        font-size: 40px;
    }

    .about-col p {
        font-size: 15px;
    }

    .row img {
        width: 90%;
    }

    .row h3 {
        font-size: 40px;
    }

    .row h4 {
        font-size: 15px;
    }

    .row h5 {
        font-size: 30px;
    }

    .row h6 {
        font-size: 18px;
    }

    .chap-row img {
        width: 90%;
    }

    .chap-row h3 {
        font-size: 50px;
        color: #4E342E;
        -webkit-text-stroke: 0.4px #FFF;
        text-shadow: none;
    }

    .chap-row h4 {
        padding-top: 20px;
        font-size: 20px;
        color: #fff;
    }

    .chap-row p {
        padding-bottom: 80px;
        color: #F5F1E3;
        font-size: 15px;
    }

    .chap-row h5 {
        font-size: 45px;
        color: #4E342E;
    }

    .chap-row h6 {
        padding-bottom: 70px;
        font-size: 32px;
        color: #4E342E;
    }

    .chapters,
    .departments,
    .details {
        font-size: 30px;
        padding-top: 20px;
    }

    .about-sub-header,
    .chap-sub-header,
    .dep-sub-header,
    .barrouallie-sub-header,
    .layou-sub-header,
    .buccament-sub-header,
    .clare-sub-header,
    .dubois-sub-header,
    .simon-sub-header,
    .cpark-sub-header,
    .gtown-sub-header,
    .bequia-sub-header,
    .youth-sub-header,
    .men-sub-header,
    .women-sub-header,
    .children-sub-header,
    .district-sub-header,
    .edu-sub-header {
        font-size: 20px;
    }

    .about-sub-header h1,
    .chap-sub-header h1,
    .dep-sub-header h1,
    .barrouallie-sub-header h1,
    .layou-sub-header h1,
    .buccament-sub-header h1,
    .clare-sub-header h1,
    .dubois-sub-header h1,
    .cpark-sub-header h1,
    .gtown-sub-header h1,
    .bequia-sub-header h1,
    .simon-sub-header h1,
    .youth-sub-header h1,
    .men-sub-header h1,
    .women-sub-header h1,
    .children-sub-header h1,
    .district-sub-header h1,
    .edu-sub-header h1 {
        font-size: 50px;
    }

    .chapters h3 {
        font-size: 30px;
    }

    .chapters img {
        width: 94%;
    }

    .departments h3 {
        font-size: 28px;
    }

    .departments img {
        width: 95%;
    }

    .gtown-details h4 {
        font-size: 30px;
        padding-bottom: 5px;
    }

    .gtown-details p {
        font-size: 20px;
        padding-bottom: 60px;
    }
}

/* Mobile: Click-based Dropdown (max-width 700px) */
@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #C89F5D;
        color: #4E342E;
        text-align: left;
        z-index: 1000;
        transition: right 0.3s ease;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul li {
        display: block;
        padding: 10px 0; /* Consistent padding */
    }


    .nav-links .dropdown {
        position: relative; /* Keep dropdown within its parent */
        display: block; /* Stack content vertically */
        width: 100%; /* Full width of the menu */
    }

    .nav-links .dropbtn {
        display: flex; /* Flex to align text and arrow */
        justify-content: space-between; /* Push arrow to the far right */
        align-items: center; /* Center vertically */
        padding: 10px 0; /* Adjusted padding */
        font-size: 16px; /* Readable size */
        color: #E0D6AE;
        text-decoration: none;
        width: 100%; /* Full width of dropdown */
        box-sizing: border-box; /* Include padding in width */
    }

    .nav-links .dropdown-content {
        display: none; /* Hidden by default */
        position: static; /* Stack below dropbtn */
        background: rgba(200, 159, 93, 0.9); /* Consistent background */
        width: 100%; /* Full width of the parent */
        padding: 0 0 0 0; /* Slight indent for hierarchy */
        box-shadow: none;
        box-sizing: border-box; /* Include padding in width */
    }

    .nav-links .dropdown-content a {
        padding: 8px 10px; /* Better touch targets */
        font-size: 14px; /* Readable size */
        line-height: 1.2; /* Adjusted spacing */
        color: #fff;
        display: block; /* Stack vertically */
        text-decoration: none;
    }

    .nav-links .dropdown:hover .dropdown-content {
        display: none; /* Disable hover on mobile */
    }

    .nav-links .dropdown.active .dropdown-content {
        display: block; /* Show when toggled via JS */
    }
    .text-box h1 {
        font-size: 30px;
        animation: none; /* Remove animation to speed up rendering */
    }

    .text-box .hero-btn {
        padding: 15px 25px;
        font-size: 12px;
    }

    .gallery-item .layer {
        font-size: 40px;
        opacity: 0;
        background: transparent;
        transition: none; /* Remove transition for faster rendering */
    }

    .gallery-item .see-more {
        padding: 8px 15px;
        font-size: 12px;
        transition: none; /* Remove transition */
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .newsletter-form input[type="email"] {
        width: 90%;
        max-width: 300px;
        font-size: 12px;
    }

    .newsletter-form button {
        padding: 8px 15px;
        font-size: 12px;
    }

    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }

    .calendar-container {
        padding: 10px;
        max-width: 100%;
    }

    .calendar-days-header {
        gap: 3px;
    }

    .calendar-day-header {
        padding: 8px;
        font-size: 12px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        max-height: 300px;
    }

    .calendar-day {
        padding: 10px;
        font-size: 14px;
    }

    .calendar-day.has-events {
        background: #E6C27A;
        color: #4E342E;
    }

    .calendar-day.has-events:hover {
        background: #D9B56A;
    }

    .calendar-day.has-events.active {
        background: #C89F5D;
        color: #fff;
    }

    .calendar-header button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .events-list {
        padding: 15px;
        font-size: 14px;
    }
}

/* Active state for dropdown (controlled by JS) */
.nav-links .dropdown.active .dropdown-content {
    display: block;
}

/* Tablet Devices (701px to 950px) */
@media (min-width: 701px) and (max-width: 950px) {
    .text-box h1 {
        font-size: 50px;
    }

    .text-box .hero-btn {
        padding: 18px 30px;
        font-size: 13px;
    }

    .gallery-item {
        flex: 0 0 calc(50% - 20px); /* Two items per row */
        padding: 8px;
    }

    .gallery-item .layer {
        font-size: 40px;
    }

    .gallery-item .see-more {
        padding: 10px 18px;
        font-size: 13px;
    }

    .newsletter-form {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .newsletter-form input[type="email"] {
        width: 200px;
        font-size: 13px;
    }

    .newsletter-form button {
        padding: 10px 18px;
        font-size: 13px;
    }
}

/* Larger Screens (above 950px) */
@media (min-width: 951px) {
    .text-box h1 {
        font-size: 110px;
    }

    .text-box .hero-btn {
        padding: 20px 34px;
        font-size: 13px;
    }

    .gallery-item {
        flex: 0 0 calc(33.33% - 20px); /* Three items per row */
    }

    .gallery-item .layer {
        font-size: 50px;
    }

    .gallery-item .see-more {
        padding: 10px 20px;
        font-size: 14px;
    }

    .newsletter-form input[type="email"] {
        width: 250px;
        font-size: 14px;
    }

    .newsletter-form button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Landscape Mode Adjustments for Tablets (701px to 950px) */
@media (min-width: 701px) and (max-width: 950px) and (orientation: landscape) {
    .header {
        min-height: 80vh;
        height: 80vh;
    }

    .text-box h1 {
        font-size: 28px;
        margin-top: 80px;
    }

    .about-sub-header,
    .chap-sub-header,
    .dep-sub-header,
    .barrouallie-sub-header,
    .layou-sub-header,
    .buccament-sub-header,
    .clare-sub-header,
    .dubois-sub-header,
    .cpark-sub-header,
    .simon-sub-header,
    .gtown-sub-header,
    .bequia-sub-header,
    .youth-sub-header,
    .men-sub-header,
    .women-sub-header,
    .children-sub-header,
    .district-sub-header,
    .edu-sub-header {
        height: 80vh;
    }

    .about-sub-header h1,
    .chap-sub-header h1,
    .dep-sub-header h1,
    .barrouallie-sub-header h1,
    .layou-sub-header h1,
    .buccament-sub-header h1,
    .clare-sub-header h1,
    .dubois-sub-header h1,
    .cpark-sub-header h1,
    .gtown-sub-header h1,
    .simon-sub-header h1,
    .bequia-sub-header h1,
    .youth-sub-header h1,
    .men-sub-header h1,
    .women-sub-header h1,
    .children-sub-header h1,
    .district-sub-header h1,
    .edu-sub-header h1 {
        font-size: 70px;
        text-align: center;
    }

    nav {
        position: relative;
        width: 100%;
        padding: 1% 2%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }

    nav img {
        max-width: 120px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #C89F5D;
        color: #4E342E;
        text-align: left;
        z-index: 2000;
        transition: right 0.3s ease;
        display: none;
    }

    .nav-links.active {
        right: 0;
        display: block;
    }

    nav .fa-bars {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        color: #9C7A4B;
        font-size: 40px;
        cursor: pointer;
        z-index: 2500;
    }

    .nav-links .fa-times {
        position: absolute;
        top: 20px;
        right: 20px;
        color: #4E342E;
        font-size: 40px;
        cursor: pointer;
        z-index: 2500;
    }

    .nav-links ul {
        padding: 60px 20px 40px 20px;
    }

    .nav-links ul li {
        display: block;
        padding: 10px 0;
    }

    .nav-links ul li a {
        font-size: 16px;
    }

    .gallery-item {
        flex: 0 0 calc(33.33% - 20px); /* Three items per row in landscape */
    }

    .gallery-item .layer {
        font-size: 40px;
    }

    .newsletter-form {
        gap: 15px;
    }

    .newsletter-form input[type="email"] {
        width: 180px;
    }

    .about-col h1 {
        font-size: 35px;
    }

    .row h3 {
        font-size: 50px;
    }

    .services h1 {
        font-size: 35px;
    }
}

/* Text Box */
.text-box {
    width: 90%;
    color: #E0D6AE;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.text-box h1 {
    font-size: 80px;
    padding-bottom: 30px;
    color: #E0D6AE;
    text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
}

.text-box p {
    margin: 10px 0px 40px;
    font-size: 15px;
    color: #C89F5D;
}

/* Hero Button */
.hero-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: #000;
    border: 1px solid #fff;
    padding: 20px 34px;
    font-size: 13px;
    background: #C89F5D;
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    border: 1px solid #E6C27A;
    background: #E6C27A;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

/* Hero Section Animation */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(50px); }
    100% { opacity: 1; transform: translateY(0px); }
}

.text-box h1 {
    animation: fadeInUp 1s ease-out forwards;
}

.text-box .hero-btn {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 0.5s;
    opacity: 0; /* Start hidden for animation */
}

/* Gallery Styles (Static, No Panning) */
.gallery-container {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.gallery {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap to the next line */
    justify-content: center; /* Centers items horizontally */
    gap: 20px; /* Space between items */
}

.gallery-item {
    flex: 0 0 calc(33.33% - 20px); /* Fixed width for 3 items per row, accounting for gap */
    box-sizing: border-box;
    padding: 10px;
    position: relative;
    max-width: 500px; /* Optional: caps item width for consistency */
}

.gallery-item img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .layer {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .layer {
    opacity: 1;
}

/* Newsletter Form Styles */
.newsletter-form {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.newsletter-form input[type="email"] {
    padding: 10px;
    border: 1px solid #B38E5D;
    border-radius: 5px;
    font-size: 14px;
    width: 250px;
}

.newsletter-form button {
    padding: 10px 20px;
    background: #C89F5D;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background: #B38E5D;
}

/* Services Section */
.services {
    width: 100%;
    margin: auto;
    background-color: #F5F1E3;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.services h1 {
    font-size: 50px;
    color: #4E342E;
}

.services-col {
    flex-basis: 32%;
    background-color: #F5F1E3;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 100px;
}

.services-col img {
    width: 80%;
    opacity: 1;
    transform: translateY(50px);
}

.services-col img.show {
    opacity: 1;
    transform: translateY(0px);
}

.layer {
    text-shadow: 2px 2px 4px rgb(0, 0, 0);
    font-weight: bold;
    height: 95%;
    width: 100%;
    background: transparent;
    font-size: 40px;
    color: #E6C27A;
    position: absolute;
    padding-top: 100px;
    top: 0px;
    left: 0px;
    transition: all 0.7s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding-bottom: 35px;
}

@media(min-width: 1200px) {
    .layer {
        padding-top: 65px;
    }
}

.see-more {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #C89F5D;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
    margin-top: auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.see-more:hover {
    background-color: #B38E5D;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
}

.see-more:active {
    transform: translateY(1px);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    padding: 10px 0px;
    background-color: #F5F1E3;
    color: #000;
    margin-top: 0px;
}

.footer h4 {
    margin-bottom: 25px;
    margin-top: 20px;
    font-weight: 600;
    color: #000;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding-top: 10px;
}

.footer .icons i {
    font-size: 24px;
    color: #4E342E;
    background-color: #F5F1E3;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.footer .icons i:hover {
    background-color: #9C7A4B;
    transform: scale(1.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.footer .icons i:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* About Page */
.about-sub-header {
    height: 80vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/IMG-20241030-WA0005-removebg-preview.png");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #E6C27A;
    font-size: 40px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.about-sub-header h1,
.chap-sub-header h1,
.dep-sub-header h1,
.barrouallie-sub-header h1,
.layou-sub-header h1,
.buccament-sub-header h1,
.clare-sub-header h1,
.dubois-sub-header h1,
.cpark-sub-header h1,
.gtown-sub-header h1,
.bequia-sub-header h1,
.simon-sub-header h1,
.youth-sub-header h1,
.men-sub-header h1,
.women-sub-header h1,
.children-sub-header h1,
.district-sub-header h1,
.edu-sub-header h1 {
    margin-top: 100px;
    text-align: center;
}

.about-us {
    width: 100%;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 20px;
    background: #E0D6AE;
}

.about-col {
    text-align: center;
    background-color: #F5F1E3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 20px;
}

.about-col h1 {
    font-size: 60px;
    color: #9C7A4B;
}

.about-col p {
    font-size: 25px;
    padding-top: 20px;
    padding-bottom: 30px;
    font-weight: bold;
}

.about-col img {
    border: 3px solid #B38E5D;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0px auto 50px auto;
}

.row {
    background-color: #F5F1E3;
    padding: 10px;
    margin: 5px;
    padding-bottom: 100px;
}

.row img {
    width: 50%;
}

.row .about-col img {
    width: 80%;
}

.row p {
    text-align: center;
}

.row h3 {
    font-size: 70px;
    color: #4E342E;
    -webkit-text-stroke: 0.4px #FFF;
    text-shadow: none;
    text-align: center;
}

.row h4 {
    padding-top: 20px;
    padding-bottom: 70px;
    font-size: 20px;
    color: #4E342E;
    text-align: center;
}

.row h5 {
    padding-top: 30px;
    font-size: 45px;
    color: #C89F5D;
    text-align: center;
}

.row h6 {
    padding-bottom: 100px;
    font-size: 32px;
    color: #4E342E;
    text-align: center;
}

.about-row {
    background-color: #C89F5D;
    padding: 10px;
    margin: 5px;
}

.chap-row img {
    width: 50%;
}

.chap-row h3 {
    padding-top: 20px;
    font-size: 50px;
    text-align: center;
}

.about-row h4 {
    padding-top: 20px;
    font-size: 50px;
    color: #fff;
    text-align: center;
}

.chap-row p {
    padding-bottom: 80px;
    color: #F5F1E3;
    font-size: 30px;
    text-align: center;
}

.chap-row h5 {
    font-size: 45px;
    color: #4E342E;
}

.chap-row h6 {
    padding-bottom: 70px;
    font-size: 32px;
    color: #4E342E;
}

/* Local Chapters Page */
.chap-sub-header {
    height: 80vh;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    font-size: 50px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    color: #E6C27A;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/photo-collage.png (2) (1).png");
}

.chapters {
    padding-top: 80px;
    color: #fff;
    background: #B38E5D;
    text-align: center;
    font-size: 40px;
    width: 100%;
    background-size: cover;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.chapters h3 {
    color: #000;
    padding-top: 50px;
    font-size: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.chapters img {
    width: 80%;
    border: 3px solid #B38E5D;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Departments Page */
.dep-sub-header {
    height: 80vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/photo-collage.png (1) (1).png");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #E6C27A;
    font-size: 50px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.departments {
    color: #fff;
    background: #B38E5D;
    text-align: center;
    font-size: 40px;
    width: 100%;
    background-size: cover;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.departments h3 {
    color: #000;
    padding-top: 50px;
    font-size: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.departments p {
    text-align: center;
}

.departments img {
    width: 70%;
    border: 3px solid #B38E5D;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Specific Location Pages */
.barrouallie-sub-header,
.layou-sub-header,
.buccament-sub-header,
.clare-sub-header,
.dubois-sub-header,
.cpark-sub-header,
.gtown-sub-header,
.ktown-sub-header,
.bequia-sub-header,
.youth-sub-header,
.men-sub-header,
.simon-sub-header,
.women-sub-header,
.children-sub-header,
.district-sub-header,
.edu-sub-header {
    height: 90vh;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
    font-size: 50px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
    color: #C89F5D;
}

.barrouallie-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/barrouallie1.png");
}

.layou-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/layououtside.jpg");
}

.buccament-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/buccamentoutside.jpg");
}

.clare-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/Clarevalleyoutside.jpg");
    background-position: center;
}

.dubois-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/duboi1.jpg");
    background-position: left;
}

.cpark-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/campden Park (1).jpg");
    background-position: center;
}

.simon-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/simonoutside.jpg");
    background-position: center;
    color: #5593D0;
}

.ktown-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/church placeholder.jpg");
    background-position: center;
    color: #5593D0;
}

.gtown-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/gtownoutside.jpg");
    background-position: center;
}

.bequia-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/bequiaoutside.jpg");
    background-position: center;
}

.youth-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/Youths_edited.jpg");
    background-position: center;
    color: #5593D0;
}

.men-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url(images/mens\ logo.jpg);
    background-position: center;
    color: #5593D0;
}

.women-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/wesleyanwomenlogo.jpg");
    background-position: center;
    color: #5593D0;
}

.children-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/wesleyanchildren1.webp");
    background-position: center;
    color: #5593D0;
}

.edu-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/christianeducation1.jpeg");
    background-position: center;
    color: #5593D0;
}

.district-sub-header {
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/flag.jpg");
    background-position: center;
    height: 80vh;
    color: #5593D0;
}

.details {
    padding-top: 10px;
    color: #fff;
    background: #B38E5D;
    text-align: center;
    font-size: 40px;
    width: 100%;
}

.details h3 {
    color: #000;
    padding-top: 30px;
}

.details img {
    border: 3px solid #B38E5D;
    border-radius: 10px;
    padding: 5px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Media Queries */
@media (max-width: 950px) {
    .text-box h1 {
        font-size: 40px;
        text-shadow: 10px 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links ul li {
        display: block;
    }

    html, body {
        overflow: auto;
        overflow-x: hidden;
    }

    .nav-links {
        position: fixed;
        top: 0px;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #C89F5D;
        color: #4E342E;
        text-align: left;
        z-index: 2;
        font-size: 10px;
        transition: right 0.3s ease;
        overflow-y: auto;
        display: none;
    }

    .nav-links.active {
        display: block;
        right: 0px;
    }

    nav .fa {
        display: block;
        color: #9C7A4B;
        margin: 10px;
        font-size: 50px;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    nav .fa:hover {
        transform: scale(1.1);
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    }

    nav .fa:active {
        transform: scale(0.95);
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    }

    .nav-links ul {
        padding: 40px;
    }

    .layer {
        font-size: 30px;
    }

    .about-col h1 {
        font-size: 40px;
    }

    .about-col p {
        font-size: 15px;
    }

    .row img {
        width: 90%;
    }

    .row h3 {
        font-size: 40px;
    }

    .row h4 {
        font-size: 15px;
    }

    .row h5 {
        font-size: 30px;
    }

    .row h6 {
        font-size: 18px;
    }

    .chap-row img {
        width: 90%;
    }

    .chap-row h3 {
        font-size: 50px;
        color: #4E342E;
        -webkit-text-stroke: 0.4px #FFF;
        text-shadow: none;
    }

    .chap-row h4 {
        padding-top: 20px;
        font-size: 20px;
        color: #fff;
    }

    .chap-row p {
        padding-bottom: 80px;
        color: #F5F1E3;
        font-size: 15px;
    }

    .chap-row h5 {
        font-size: 45px;
        color: #4E342E;
    }

    .chap-row h6 {
        padding-bottom: 70px;
        font-size: 32px;
        color: #4E342E;
    }

    .chapters,
    .departments,
    .details {
        font-size: 30px;
        padding-top: 20px;
    }

    .about-sub-header,
    .chap-sub-header,
    .dep-sub-header,
    .barrouallie-sub-header,
    .layou-sub-header,
    .buccament-sub-header,
    .clare-sub-header,
    .dubois-sub-header,
    .simon-sub-header,
    .cpark-sub-header,
    .gtown-sub-header,
    .bequia-sub-header,
    .youth-sub-header,
    .men-sub-header,
    .women-sub-header,
    .children-sub-header,
    .district-sub-header,
    .edu-sub-header {
        font-size: 20px;
    }

    .about-sub-header h1,
    .chap-sub-header h1,
    .dep-sub-header h1,
    .barrouallie-sub-header h1,
    .layou-sub-header h1,
    .buccament-sub-header h1,
    .clare-sub-header h1,
    .dubois-sub-header h1,
    .cpark-sub-header h1,
    .gtown-sub-header h1,
    .bequia-sub-header h1,
    .simon-sub-header h1,
    .youth-sub-header h1,
    .men-sub-header h1,
    .women-sub-header h1,
    .children-sub-header h1,
    .district-sub-header h1,
    .edu-sub-header h1 {
        font-size: 50px;
    }

    .chapters h3 {
        font-size: 30px;
    }

    .chapters img {
        width: 94%;
    }

    .departments h3 {
        font-size: 28px;
    }

    .departments img {
        width: 95%;
    }

    .gtown-details h4 {
        font-size: 30px;
        padding-bottom: 5px;
    }

    .gtown-details p {
        font-size: 20px;
        padding-bottom: 60px;
    }
}

@media (min-width: 701px) {
    .nav-links {
        position: static;
    }
}

@media (min-width: 1024px) {
    .see-more {
        padding: 25px 40px;
        font-size: 20px;
    }
}

@media (min-width: 1200px) {
    .chap-sub-header {
        background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/resized.png");
    }
}

@media (min-width: 701px) and (max-width: 1200px) {
    .text-box h1 {
        font-size: 75px;
    }

    
}

/* Locate Section within Row */
.row .locate {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #F5F1E3;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.row .locate iframe {
    width: 100%;
    height: 600px;
    border: 3px solid #B38E5D;
    border-radius: 5px;
    display: block;
    margin: 0px auto;
}

.row h3 {
    font-size: 50px;
    color: #4E342E;
    -webkit-text-stroke: 0.4px #FFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    padding-bottom: 20px;
    text-align: center;
}

.row .locate::before {
    content: attr(data-caption);
    display: block;
    text-align: center;
    font-size: 20px;
    color: #9C7A4B;
    font-weight: bold;
    padding: 10px 0px;
    background: rgba(224, 214, 174, 0.8);
    border-bottom: 2px solid #B38E5D;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.social-row {
    background-color: #C89F5D;
    padding-bottom: 100px;
}

/* Media Queries */
@media (max-width: 1200px) {
    .row h3 {
        font-size: 40px;
    }

    .row .locate {
        padding: 10px;
        margin: 10px auto;
        width: 90%;
        max-width: none;
    }

    .row .locate iframe {
        height: 500px;
        width: 100%;
        max-width: 100%;
    }

    .row .locate::before {
        font-size: 16px;
        padding: 8px 0px;
    }
}

@media (min-width: 1200px) {
    .row .locate iframe {
        height: 600px;
    }
}

/* Events Page Styles */
.events-sub-header {
    height: 80vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7), rgba(4,9,30,0.7)), url("images/Screenshot 2024-10-30 105439.png");
    background-position: center;
    background-size: cover;
    text-align: center;
    color: #E6C27A;
    font-size: 40px;
    text-shadow: 5px 5px 10px rgba(0, 0, 0, 0.5);
}

.events-section {
    width: 100%;
    margin: auto;
    padding: 80px 0px;
    background: #E0D6AE;
    text-align: center;
}

.calendar-container {
    max-width: 800px;
    margin: 0px auto;
    padding: 20px;
    background: #F5F1E3;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header button {
    background: #C89F5D;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.calendar-header button:hover {
    background: #B38E5D;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-day-header {
    padding: 10px;
    background: #C89F5D;
    color: #fff;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    overflow-y: auto;
    max-height: 400px;
}

.calendar-day {
    padding: 15px;
    background: #fff;
    border: 1px solid #B38E5D;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.calendar-day:hover {
    background: #E6C27A;
}

.calendar-day.active {
    background: #C89F5D;
    color: #fff;
    border: 2px solid #000;
}

.calendar-day.has-events {
    background: #E6C27A;
    color: #4E342E;
}

.calendar-day.has-events:hover {
    background: #D9B56A;
}

.calendar-day.has-events.active {
    background: #C89F5D;
    color: #fff;
}

.calendar-day.event-general {
    background-color: #6b829c;
    color: white;
}

.calendar-day.event-youth {
    background-color: #e8b07e;
    color: white;
}

.calendar-day.event-men {
    background-color: #73b093;
    color: white;
}

.calendar-day.event-women {
    background-color: #e88ea7;
    color: white;
}

.calendar-day.event-children {
    background-color: #f4d78e;
    color: black;
}

.calendar-day.event-multi {
    background-color: #98a2ab;
    color: white;
}

.calendar-day.event-local {
    background-color: #957bad;
    color: white;
}

.events-list {
    margin-top: 20px;
    text-align: left;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    min-height: 100px;
}

.events-list ul li.event-general {
    background-color: #2c5d8f; /* Blue for General */
    color: #fff;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-list ul li.event-youth {
    background-color: #e67e22; /* Orange for Youth */
    color: #fff;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-list ul li.event-men {
    background-color: #27ae60; /* Green for Men */
    color: #fff;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-list ul li.event-women {
    background-color: #e91e63; /* Pink for Women */
    color: #fff;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-list ul li.event-children {
    background-color: #f1c40f; /* Yellow for Children */
    color: #000;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-list ul li.event-multi {
    background-color: #6c757d; /* Gray for Multi */
    color: #fff;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-list ul li.event-local {
    background-color: #5F2A8A;
    color: #fff;
    padding: 5px;
    margin: 2px 0;
    border-radius: 3px;
}

.events-key {
    margin-top: 20px;
    text-align: center;
}

.events-key h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.events-key ul {
    list-style: none;
    padding: 0px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.events-key li {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.key-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    border-radius: 3px;
}

.key-color.event-general {
    background-color: #2c5d8f;
}

.key-color.event-youth {
    background-color: #e67e22;
}

.key-color.event-men {
    background-color: #27ae60;
}

.key-color.event-women {
    background-color: #e91e63;
}

.key-color.event-children {
    background-color: #f1c40f;
}

.key-color.event-multi {
    background-color: #6c757d;
}

.key-color.event-local {
    background-color: #5F2A8A;
}

/* Landscape mode adjustments for headers */
@media (min-width: 701px) and (max-width: 950px) and (orientation: landscape) {
    .header {
        min-height: 80vh;
        height: 80vh;
    }

    .text-box h1 {
        font-size: 28px;
        margin-top: 80px;
    }

    .about-sub-header,
    .chap-sub-header,
    .dep-sub-header,
    .barrouallie-sub-header,
    .layou-sub-header,
    .buccament-sub-header,
    .clare-sub-header,
    .dubois-sub-header,
    .cpark-sub-header,
    .simon-sub-header,
    .gtown-sub-header,
    .bequia-sub-header,
    .youth-sub-header,
    .men-sub-header,
    .women-sub-header,
    .children-sub-header,
    .district-sub-header,
    .edu-sub-header {
        height: 80vh;
    }

    .about-sub-header h1,
    .chap-sub-header h1,
    .dep-sub-header h1,
    .barrouallie-sub-header h1,
    .layou-sub-header h1,
    .buccament-sub-header h1,
    .clare-sub-header h1,
    .dubois-sub-header h1,
    .cpark-sub-header h1,
    .gtown-sub-header h1,
    .simon-sub-header h1,
    .bequia-sub-header h1,
    .youth-sub-header h1,
    .men-sub-header h1,
    .women-sub-header h1,
    .children-sub-header h1,
    .district-sub-header h1,
    .edu-sub-header h1 {
        font-size: 70px;
        text-align: center;
    }

    nav {
        position: absolute;
        top: 0px;
        width: 100%;
    }

    .about-col h1 {
        font-size: 35px;
    }

    .row h3 {
        font-size: 50px;
    }

    .services h1 {
        font-size: 35px;
    }
}

/* Mobile Media Query */
@media (max-width: 700px) {
    .row .about-col img {
        width: 100%;
    }
    
    .calendar-container {
        padding: 10px;
        max-width: 100%;
    }

    .calendar-days-header {
        gap: 3px;
    }

    .calendar-day-header {
        padding: 8px;
        font-size: 12px;
    }

    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
        gap: 3px;
        max-height: 300px;
    }

    .calendar-day {
        padding: 10px;
        font-size: 14px;
    }

    .calendar-day.has-events {
        background: #E6C27A;
        color: #4E342E;
    }

    .calendar-day.has-events:hover {
        background: #D9B56A;
    }

    .calendar-day.has-events.active {
        background: #C89F5D;
        color: #fff;
    }

    /* Ensure event-specific colors persist on mobile */
    .calendar-day.event-general {
        background-color: #2c5d8f;
        color: white;
    }

    .calendar-day.event-youth {
        background-color: #e67e22;
        color: white;
    }

    .calendar-day.event-men {
        background-color: #27ae60;
        color: white;
    }

    .calendar-day.event-women {
        background-color: #e91e63;
        color: white;
    }

    .calendar-day.event-children {
        background-color: #f1c40f;
        color: black;
    }

    .calendar-day.event-multi {
        background-color: #6c757d;
        color: white;
    }

    .calendar-day.event-local {
        background-color: #5F2A8A;
        color: white;
    }

    .calendar-header button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .events-list {
        padding: 15px;
        font-size: 14px;
    }

    /* Event list colors on mobile */
    .events-list ul li.event-general {
        background-color: #2c5d8f;
        color: #fff;
    }

    .events-list ul li.event-youth {
        background-color: #e67e22;
        color: #fff;
    }

    .events-list ul li.event-men {
        background-color: #27ae60;
        color: #fff;
    }

    .events-list ul li.event-women {
        background-color: #e91e63;
        color: #fff;
    }

    .events-list ul li.event-children {
        background-color: #f1c40f;
        color: #000;
    }

    .events-list ul li.event-multi {
        background-color: #6c757d;
        color: #fff;
    }

    .events-list ul li.local {
        background-color: #5F2A8A;
        color: #fff;
    }

    .gallery-item {
        flex: 0 0 100%;
        padding: 2px; /* Reduced from 5px to make images larger */
        box-sizing: border-box; /* Include padding in width */
    }

    .gallery-item img {
        width: 100%; /* Reset to fit container */
        height: auto;
        border-radius: 10px;
    }
}

/* Fix toggle menu in landscape mode */
@media (min-width: 701px) and (max-width: 950px) and (orientation: landscape) {
    nav {
        position: relative;
        width: 100%;
        padding: 1% 2%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 1000;
    }

    nav img {
        max-width: 120px;
    }

    .nav-links {
        position: fixed;
        top: 0px;
        right: -200px;
        width: 200px;
        height: 100vh;
        background: #C89F5D;
        color: #4E342E;
        text-align: left;
        z-index: 2000;
        transition: right 0.3s ease;
        display: none;
    }

    .nav-links[style*="display: block"] {
        right: 0px;
        display: block;
    }

    nav .fa-bars {
        display: block;
        position: absolute;
        top: 40px;
        right: 60px;
        color: #9C7A4B;
        font-size: 40px;
        cursor: pointer;
        z-index: 2500;
        margin: 0px;
    }

    .nav-links .fa-times {
        display: none;
        position: absolute;
        top: 10px;
        right: 10px;
        color: #9C7A4B;
        font-size: 40px;
        cursor: pointer;
        z-index: 2500;
        margin: 0px;
    }

    .nav-links[style*="display: block"] .fa-times {
        display: block;
    }

    .nav-links ul {
        padding: 60px 20px 40px 20px;
    }

    .nav-links ul li {
        display: block;
        padding: 10px 0px;
    }

    .nav-links ul li a {
        font-size: 16px;
    }
}

.social-row {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers buttons, adjust to flex-start or flex-end if needed */
}
.social-btns {
    margin: 15px 0;
    display: flex; /* Displays buttons side by side */
    gap: 15px; /* Space between buttons */
    flex-wrap: wrap; /* Wraps buttons on smaller screens */
    justify-content: center; /* Centers buttons horizontally */
}

/* Facebook Button */
.btn-facebook {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background-color: #1877F2; /* Facebook blue */
    color: #FFFFFF; /* White text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #0A5DC5; /* Darker blue border */
    transition: all 0.3s ease;
}
.btn-facebook:hover {
    background-color: #0A5DC5; /* Darker blue on hover */
    color: #FFFFFF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.btn-facebook i {
    margin-right: 10px;
    font-size: 24px;
}

/* Instagram Button */
.btn-instagram {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D); /* Instagram gradient */
    color: #FFFFFF; /* White text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 2px solid #833AB4; /* Purple border from gradient */
    transition: all 0.3s ease;
}
.btn-instagram:hover {
    background: linear-gradient(45deg, #2A45C2, #3F3FB5, #5F2A8A, #A12366, #B92356, #D31717); /* Darker gradient on hover */
    color: #FFFFFF;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}
.btn-instagram i {
    margin-right: 10px;
    font-size: 24px;
}