@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif !important;
    font-weight: 900;
}
.header, .subpage-header {
    width: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
    background-image: linear-gradient(rgba(21, 68, 38, 0.3), rgba(21, 68, 38, 0.3)), url(../images/banner.jpg);
}
.header { min-height: 100vh; }
.subpage-header { min-height: 50vh; }

/* ===== NAVBAR: sticks to top, always above hero ===== */
nav {
    display: flex;
    padding: 1% 4% 2% 4%;
    justify-content: space-between;
    align-items: center;

    /* make it follow the user */
    position: sticky;
    top: 0;

    /* keep it clickable above all hero layers */
    z-index: 1200;
}
nav .logo-link { display: inline-block; }
nav .logo-link img {
    width: 160px;
    height: auto;
    transition: opacity 0.3s ease;
}
nav .logo-link:hover img { opacity: 0.75; }

/* Mobile Navigation Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 4px;
    z-index: 1301; /* above the slide-out panel trigger */
}
.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

.nav-links { flex: 1; text-align: right; }
.nav-links ul { margin: 0; padding: 0; }
.nav-links ul li {
    list-style: none;
    display: inline-block;
    padding: 8px 15px;
    position: relative;
}
.nav-links ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    display: block;
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-links ul li::after {
    content: "";
    width: 0%;
    height: 3px;
    background: #8fb88e;
    display: block;
    margin: auto;
    transition: 0.55s;
}
.nav-links ul li:hover::after { width: 100%; }

/* ===== HERO TEXT: below nav in stacking; doesn't capture clicks ===== */
.text-box {
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;

    z-index: 1;           /* strictly under nav */
    pointer-events: none; /* never block nav clicks */
}
/* If you add buttons/links inside hero later, make them clickable */
.text-box a, .text-box button { pointer-events: auto; }

.header .text-box h1 { font-size: clamp(60px, 10vw, 120px); letter-spacing: 8px; }
.header .text-box h4 {
    font-family: 'Lato', sans-serif !important;
    font-size: clamp(18px, 2.5vw, 28px);
    margin-top: 20px;
    font-weight: 400;
    letter-spacing: 2px;
}
.subpage-header .text-box h1 { font-size: 75px; letter-spacing: 5px; }

.section { width: 80%; margin: auto; padding: 100px 0; }
.section-header { text-align: center; color: #154426; margin-bottom: 50px; font-size: 2em; }
.line { width: 130px; height: 4px; background: #8fb88e; margin: 10px auto; }

.message-section {
    width: 80%;
    margin: auto;
    padding: 100px 0;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.message-image { flex: 1 1 300px; text-align: center; }
.message-image img {
    max-width: 350px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.message-content { flex: 2 1 400px; }
.message-content h2 { color: #154426; margin-bottom: 20px; font-size: 2.2em; }
.message-content p { color: #333; font-size: 1.1em; line-height: 1.7; }

.card-row { margin-top: 2%; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.committee-card, .committee-card-2 {
    text-align: center;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 25px 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.committee-card { flex-basis: 31%; min-width: 280px; }
.committee-card-2 { flex-basis: 48%; min-width: 280px; }
.committee-card h3, .committee-card-2 h3 { color: #154426; padding-bottom: 10px; }
.committee-card p, .committee-card-2 p { color:#666; padding: 10px 0; min-height: 60px; }
.committee-card:hover, .committee-card-2:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(21, 68, 38, 0.2);
}
.card-btn {
    align-self: center; border: 2px solid #154426; color: white; background: #154426;
    border-radius: 20px; padding: 12px 34px; font-size: 14px; font-weight: bold;
    cursor: pointer; margin-top: 15px; transition: all 0.3s ease; text-decoration: none;
}
.card-btn:hover { background-color: #0f2f1f; color: white; }

.contact-section { padding: 60px 0; background-color: #154426; color: #fff; text-align: center; }
.contact-section h2 { font-size: 2.5em; margin-bottom: 15px; }
.contact-section p { font-size: 1.1em; margin-bottom: 30px; color: #eee; }
.contact-info a { color: #fff; margin: 0 15px; font-size: 1.2em; font-weight: bold; text-decoration: underline; }

.about-table { width: 100%; max-width: 800px; margin: auto; border-collapse: collapse; }
.about-table td { padding: 15px; text-align: center; }
.about-table img { width: 100%; max-width: 200px; border-radius: 10px; }

/* ========================================
   MOBILE-FIRST RESPONSIVE DESIGN
   ======================================== */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 2% 4%;
        position: sticky;
        top: 0;
        z-index: 1200;
    }
    nav .logo-link img { width: 120px; }

    .mobile-menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: linear-gradient(135deg, #154426 0%, #0f2f1f 100%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 1300; /* above hero and nav */
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }
    .nav-links.active { right: 0; }

    .nav-links ul { flex-direction: column; text-align: center; width: 100%; padding: 0; }
    .nav-links ul li {
        display: block;
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    .nav-links ul li:last-child { border-bottom: none; }
    .nav-links ul li a { font-size: 18px; padding: 20px 40px; width: 100%; text-align: center; min-height: 60px; }

    /* Hero Section */
    .header .text-box h1 { font-size: clamp(40px, 12vw, 80px); letter-spacing: 4px; }
    .header .text-box h4 { font-size: clamp(16px, 4vw, 24px); letter-spacing: 1px; margin-top: 15px; }
    .subpage-header .text-box h1 { font-size: clamp(35px, 10vw, 60px); letter-spacing: 3px; }

    /* Layout */
    .section { width: 90%; padding: 60px 0; }
    .message-section { width: 90%; padding: 60px 0; gap: 30px; }
    .message-content h2 { font-size: 1.8em; text-align: center; margin-bottom: 25px; }
    .message-content p { font-size: 1em; line-height: 1.6; text-align: justify; }

    /* Cards */
    .committee-card, .committee-card-2 { flex-basis: 100%; min-width: 250px; margin-bottom: 25px; }
    .card-btn { padding: 16px 40px; font-size: 16px; min-height: 44px; }

    /* Contact Section */
    .contact-section h2 { font-size: 2em; }
    .contact-section p { font-size: 1em; }
    .contact-info a { font-size: 1.1em; margin: 0 10px; }

    /* About Table */
    .about-table { width: 100%; }
    .about-table td { padding: 10px; font-size: 0.9em; }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {
    nav { padding: 3% 5%; }
    nav .logo-link img { width: 100px; }
    .nav-links { width: 85%; }
    .nav-links ul li a { font-size: 16px; padding: 18px 30px; }

    .header .text-box h1 { font-size: clamp(32px, 10vw, 60px); letter-spacing: 2px; }
    .header .text-box h4 { font-size: clamp(14px, 4vw, 20px); letter-spacing: 1px; margin-top: 10px; }
    .subpage-header .text-box h1 { font-size: clamp(28px, 8vw, 45px); letter-spacing: 2px; }

    .section { width: 95%; padding: 40px 0; }
    .section-header { font-size: 1.6em; margin-bottom: 30px; }
    .message-section { width: 95%; padding: 40px 0; gap: 20px; }
    .message-content h2 { font-size: 1.5em; }
    .message-content p { font-size: 0.95em; line-height: 1.5; }
    .message-image img { max-width: 280px; }

    .committee-card, .committee-card-2 { min-width: 200px; padding: 20px 15px; }
    .card-btn { padding: 14px 30px; font-size: 14px; }

    .contact-section { padding: 40px 0; }
    .contact-section h2 { font-size: 1.7em; }
    .contact-info a { font-size: 1em; margin: 0 5px; display: block; margin-bottom: 10px; }

    .about-table td { padding: 8px 5px; font-size: 0.85em; }
    .secretariat-img { max-width: 200px; }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    nav .logo-link img { width: 90px; }
    .header .text-box h1 { font-size: clamp(28px, 8vw, 50px); letter-spacing: 1px; }
    .section { width: 98%; padding: 30px 0; }
    .message-section { width: 98%; padding: 30px 0; }
    .committee-card, .committee-card-2 { padding: 15px 10px; }
    .card-btn { padding: 12px 25px; font-size: 13px; }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000; /* above everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}
.modal-content {
    margin: 15% auto;
    padding: 20px;
    width: 80%;
    max-width: 700px;
    background: #fff;
    border-radius: 10px;
    position: relative;
}
.close-button { color: #aaa; float: right; font-size: 28px; font-weight: bold; }
.close-button:hover, .close-button:focus { color: black; text-decoration: none; cursor: pointer; }

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    width: 40px;
    height: 40px;
    background-color: #154426;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    z-index: 1500;
    cursor: pointer;
    transition: background-color 0.3s;
}
#back-to-top:hover { background-color: #0f2f1f; }

/* Search Bar */
.search-container { display: flex; justify-content: center; padding: 20px; }
#search-bar {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1e1e1e;
    color: #ffffff;
    padding: 15px;
    text-align: center;
    z-index: 1400;
}
#cookie-consent-banner p { margin: 0; display: inline; }
#cookie-consent-banner a { color: #8fb88e; text-decoration: underline; margin-left: 10px; }
#cookie-consent-banner button {
    background-color: #8fb88e;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
}

/* Live Chat Widget */
#live-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 400px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    display: none;
    flex-direction: column;
    z-index: 1600;
}
#live-chat-header {
    background-color: #154426;
    color: #fff;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#live-chat-messages { flex-grow: 1; padding: 10px; overflow-y: auto; }
#live-chat-input { border-top: 1px solid #ccc; padding: 10px; }
#live-chat-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
#live-chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #154426;
    color: white;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    z-index: 1601;
    cursor: pointer;
}