/* --- VARIABLES & RESET --- */
:root {
    --deep-forest: #2F4F3A;
    --moss-green: #4B6B4A;
    --muted-green: #6F8F62;
    --sage-green: #8FAF7A;
    --off-white: #F5F7F5;
    --rich-black: #0F0F0F;
    --header-font: 'Libre Baskerville', serif;
    --body-font: 'Montserrat', sans-serif;
    --size-header: 3.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--body-font);
    background-color: var(--off-white);
    color: var(--rich-black);
    line-height: 1.6;
    overflow-x: hidden;
}

.Hero-d{
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    height:80vh;
    width:100%;
    text-align:center;
    overflow:hidden;
    color:#fff;
}

.background-image{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    filter:brightness(50%);
    z-index:-1;
}

.Hero-d h1{
    font-family:var(--header-font);
    font-size:var(--size-header);
    letter-spacing:3px;
    text-transform:uppercase;
    margin-bottom:15px;
    text-shadow:2px 2px 10px rgba(0,0,0,.45);
}

.Hero-d p{
    font-size:1.2rem;
    letter-spacing:1px;
}

nav {
    font-family: var(--nav-font);
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.6rem 8%;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

nav a {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    color: white !important;
}

nav ul {
    display: flex;
    gap: 50px;
    list-style: none;
}

nav img {
    height: 50px;
    width: auto;
}

nav a:hover {
    opacity: 0.7;
}

/* DROPDOWNS */
.aboutdrop, .committeedrop { 
    position: relative; 
}

.aboutcont, .committeecont {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: rgba(15, 15, 15, 0.95);
    padding: 1rem;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 4px;
}

.aboutdrop:hover .aboutcont,
.committeedrop:hover .committeecont { 
    display: flex; 
}

.aboutcont a, .committeecont a {
    font-size: 0.8rem !important;
    font-family: var(--body-font);
    padding: 6px 0 !important;
    border: none !important;
    text-transform: none;
    letter-spacing: normal;
}

.team-section-header {
    width: 100%;
    height: 40vh;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-section-header h2 {
    font-family:var(--header-font);
    font-size:2rem;
    color:var(--deep-forest);
    text-align:center;
    margin-bottom:45px;
    position:relative;
    padding-bottom:20px;
    letter-spacing:1px;
}

.team-section-header h2::after {
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:180px;
    height:2px;
    background:linear-gradient(
        to right,
        transparent,
        var(--sage-green),
        var(--deep-forest),
        var(--sage-green),
        transparent
    );
}

.team-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.Secretariat-Content{
    padding:90px 8%;
    background:var(--off-white);
}

.content-container{
    width:100%;
    max-width:1700px;
    margin:auto;
}

.content-container h2{
    font-family:var(--header-font);
    font-size:2.8rem;
    color:var(--deep-forest);
    text-align:center;
    margin-bottom:20px;
}

.content-container>p{
    max-width:850px;
    margin:0 auto 70px;
    text-align:center;
    font-size:1.1rem;
    color:#555;
    line-height:1.8;
}

.departments-container{
    display:flex;
    flex-direction:column;
    gap:90px;
}

.department{
    width:100%;
    margin-bottom:90px;
}

.department-title{
    font-family:var(--header-font);
    font-size:2rem;
    color:var(--deep-forest);
    text-align:center;
    margin-bottom:45px;
    position:relative;
    padding-bottom:20px;
    letter-spacing:1px;
}

.department-title::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:180px;
    height:2px;
    background:linear-gradient(
        to right,
        transparent,
        var(--sage-green),
        var(--deep-forest),
        var(--sage-green),
        transparent
    );
}

.member-grid{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:35px;
}

.member-card{
    width:220px;
    background:#fff;
    border-radius:16px;
    padding:14px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    transition:.35s;
}

.member-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 42px rgba(0,0,0,.16);
}

.member-img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:12px;
    margin-bottom:12px;
}

.member-card h4{
    font-size:1rem;
    margin-bottom:4px;
    color:#222;
}

.member-role{
    color:var(--deep-forest);
    font-weight:600;
    font-size:.9rem;
    margin-bottom:12px;
    line-height:1.3;
}

.social-links{
    display:flex;
    justify-content:center;
    gap:14px;
    margin-top:6px;
}

.social-links a{
    color:var(--deep-forest);
    font-size:1.2rem;
    transition:.3s;
}

.social-links a:hover{
    color:var(--sage-green);
    transform:scale(1.15);
}

@media (max-width:1400px){

    .member-grid{
        grid-template-columns:repeat(4,1fr);
    }

}

@media (max-width:1100px){

    .Hero-d h1{
        font-size:3rem;
    }

    .member-grid{
        grid-template-columns:repeat(3,1fr);
    }

    nav ul{
        gap:35px;
    }

}

@media (max-width:850px){

    .Hero-d{
        height:70vh;
    }

    .Hero-d h1{
        font-size:2.5rem;
    }

    .Hero-d p{
        font-size:1rem;
    }

    .member-grid{
        grid-template-columns:repeat(2,1fr);
        gap:30px;
    }

    .member-img{
        width:160px;
        height:200px;
    }

    .department-title{
        font-size:1.7rem;
    }

}

@media (max-width:425px){
    .secretariat-header h1 {
        font-size: 2.2rem;
    }
}

@media (max-width:650px){

    nav{
        flex-direction:row;
        gap:20px;
        padding:20px;
    }

    nav ul{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    .content-container h2{
        font-size:2.2rem;
    }

}

@media (max-width:500px){

    .member-grid{
        grid-template-columns:1fr;
    }

    .member-card{
        max-width:280px;
        margin:auto;
    }

    .Hero-d h1{
        font-size:2.6rem;
    }

}

footer{
    background:var(--rich-black);
    padding:60px 0;
    text-align:center;
    margin-top:80px;
}

.footer-social{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:35px;
}

.footer-social a{
    color:var(--off-white);
    font-size:1.8rem;
    transition:.3s;
}

.footer-social a:hover{
    color:var(--sage-green);
    transform:translateY(-3px);
}

footer{
    background:#111;
    padding:60px 0;
    margin-top:80px;
}

.footer-social{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
}

.footer-social a{
    color:#fff;
    font-size:1.5rem;
    transition:.3s ease;
}

.footer-social a:hover{
    color:#7b1e4d;
    transform:translateY(-3px);
}

@media (max-width:1400px){
    .member-grid{
        grid-template-columns:repeat(4,1fr);
    }
}

@media (max-width:1100px){

    .Hero-d h1{
        font-size:3rem;
    }

    .department-title{
        font-size:1.8rem;
    }

    .member-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media (max-width:900px){

    nav{
        padding:20px 6%;
    }

    nav ul{
        gap:25px;
    }

    .member-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .member-card{
        max-width:240px;
    }

    .member-img{
        width:170px;
        height:220px;
    }
}

@media (max-width:600px){

    .Hero-d{
        height:65vh;
    }

    .Hero-d h1{
        font-size:2.2rem;
    }

    .Hero-d p{
        font-size:1rem;
    }

    .department-title{
        font-size:1.5rem;
    }

    .department-title::after{
        width:120px;
    }

    .member-grid{
        grid-template-columns:1fr;
        gap:25px;
    }

    .member-card{
        max-width:280px;
    }

    .member-img{
        width:180px;
        height:230px;
    }

    .social-links{
        gap:20px;
    }

    .footer-social{
        gap:20px;
    }

    .footer-social a{
        font-size:1.3rem;
    }
}
