/* --- 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 SECTION --- */
.Hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh; 
    width: 100%;
    text-align: center;
    overflow: hidden; 
    color: white;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(50%);
}

/* DROPDOWNS SYNC */
.aboutdrop, .committeedrop { 
    position: relative; 
}

.aboutcont, .committeecont {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    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;
}

.aboutdrop:hover .aboutcont,
.committeedrop:hover .committeecont { 
    display: flex; 
}

.aboutcont a, .committeecont a {
    font-size: 0.75rem !important;
    font-family: var(--body-font);
    padding: 5px 0 !important;
    border: none !important;
    text-transform: none;
    letter-spacing: normal;
}

/* --- CONTENT STYLING --- */
.secretariat-header,
.content {
    position:relative;
    z-index:1;
}

.Hero h1{
    font-family:var(--header-font);
    font-size:var(--size-header);
    text-transform:uppercase;
    letter-spacing:3px;
    margin-bottom:15px;
    text-shadow:2px 2px 10px rgba(0,0,0,.5);
}

.Hero p{
    font-size:1.2rem;
    letter-spacing:1px;
}

.Secretariat-Content{
    padding:80px 8%;
    background:#fff;
}

.content-container{
    max-width:1200px;
    margin:auto;
    width: 70%;
}

.content-container p, h2{
    margin-bottom: 20px;
}

.secretariat-page .content-container h2{
    font-family:var(--header-font);
    font-size:3rem;
    color:#123F78;
    text-align:center;
    margin-bottom:30px;
    letter-spacing:.5px;
}



/* --- TEAM & DEPARTMENTS --- */
.team-section-header {
    margin-top: 40px;
    text-align: center;
}

.team-intro {
    max-width: 780px;
    margin: 0 auto 60px;
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
}

.secretariat-page .department{
    position:relative;
    margin-bottom:110px;
    padding-bottom:45px;
}

.secretariat-page .department:last-child{
    margin-bottom:20px;
}

.secretariat-page .department::after{
    content:"";
    position:absolute;
    left:50%;
    bottom:0;
    transform:translateX(-50%);
    width:75%;
    height:1px;
    background:linear-gradient(
        to right,
        transparent,
        rgba(18,63,120,.15),
        rgba(18,63,120,.45),
        rgba(18,63,120,.15),
        transparent
    );
}

.secretariat-page .department:last-child::after{
    display:none;
}

.secretariat-page .department-title{
    text-align:center;
    color:#123F78;
    font-size:2rem;
    font-weight:700;
    margin-bottom:55px;
    letter-spacing:.4px;
    position:relative;
}

.secretariat-page .department-title::after{
    content:"";
    display:block;
    width:70px;
    height:3px;
    background:#123F78;
    border-radius:10px;
    margin:16px auto 0;
}

.secretariat-page .member-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:40px;
}

.secretariat-page .member-card{    
    background:#fff;
    border:1px solid #ececec;
    border-radius:18px;
    overflow:hidden;
    text-align:center;
    box-shadow:0 8px 25px rgba(0,0,0,.05);
    transition:all .35s ease;
}

.secretariat-page .member-card:hover{
    transform:translateY(-10px);
    box-shadow:0 20px 45px rgba(0,0,0,.12);
}

.secretariat-page .member-img{
    width:100%;
    height:320px;
    object-fit:cover;
    border-bottom:1px solid #ececec;
}

.secretariat-page .member-card h4{
    margin-top:24px;
    margin-bottom:10px;
    color:#123F78;
    font-size:1.35rem;
    font-weight:700;
}

.secretariat-page .member-role{
    margin:0 20px 25px;
    color:#666;
    font-size:1rem;
    line-height:1.6;
}

.secretariat-page .social-links{
    display:flex;
    justify-content:center;
    gap:18px;
    padding:22px 0;
    border-top:1px solid #f2f2f2;
}

.secretariat-page .social-links a{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#f7f7f7;
    color:#123F78;
    text-decoration:none;
    font-size:16px;
    transition:.3s;
}

.secretariat-page .social-links a:hover{
    background:#123F78;
    color:#fff;
    transform:scale(1.08);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width:768px){
    .Secretariat-Content{
        padding:60px 5%;
    }
    
    .sec-speech-card {
        flex-direction: column !important;
        align-items: center !important;
        padding: 20px !important;
    }

    .speech-profile-box {
        flex: none !important;
        width: 100% !important;
        max-width: 220px !important;
    }

    .secretariat-page .member-grid{
        grid-template-columns:1fr;
    }

    .secretariat-page .department{
        margin-bottom:80px;
    }

    .secretariat-page .member-img{
        height:280px;
    }
}

/* --- FOOTER UNIFICATION --- */
/* footer {
    background-color: var(--rich-black);
    padding: 60px 0;
    text-align: center;
}

.footer-social a {
    color: var(--off-white);
    font-size: 1.8rem;
    margin: 0 20px;
    border: none !important;
    background: none !important;
    padding: 0 !important;
}

.footer-social a:hover {
    color: var(--sage-green);
} */

/* NUCLEAR FIX FOR OVERSIZED IMAGES */
.sec-speech-card img,
.speech-profile-box img {
    max-width: 200px !important;
    width: 200px !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
}
