﻿/* =================================================
   FVA FINAL GLOBAL CONSISTENCY
   Loaded last on every page
   ================================================= */

/* SAME TOP TITLE ON EVERY PAGE */
.site-title,
.site-title a,
body.home-exact-reference .site-title,
body.home-exact-reference .site-title a{
    font-family:Arial, Helvetica, sans-serif !important;
    font-size:36px !important;
    line-height:1.15 !important;
    font-weight:700 !important;
    letter-spacing:-0.5px !important;
    color:#20262b !important;
    text-align:center !important;
    text-decoration:none !important;
}

.site-title{
    margin:24px 0 22px !important;
    padding:0 15px !important;
}

/* RESET ALL OLD WORDPRESS ACTIVE STATES */
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a,
.main-navigation .current_page_ancestor > a,
#site-navigation .current-menu-item > a,
#site-navigation .current_page_item > a,
#site-navigation .current-menu-ancestor > a,
#site-navigation .current_page_ancestor > a{
    background:transparent !important;
    color:#252a2f !important;
    box-shadow:none !important;
}

/* ONLY OUR REAL ACTIVE ITEM */
.main-navigation a.fva-active-menu,
#site-navigation a.fva-active-menu{
    background:#415033 !important;
    color:#fff !important;
    border-radius:7px !important;
    box-shadow:0 3px 8px rgba(52,65,40,.18) !important;
}

/* Parent menu highlighted only for child routes */
.main-navigation a.fva-active-parent,
#site-navigation a.fva-active-parent{
    background:#415033 !important;
    color:#fff !important;
    border-radius:7px !important;
    box-shadow:0 3px 8px rgba(52,65,40,.18) !important;
}

/* Hover only for NON active */
.main-navigation a:not(.fva-active-menu):not(.fva-active-parent):hover,
#site-navigation a:not(.fva-active-menu):not(.fva-active-parent):hover{
    background:#eef2e9 !important;
    color:#344128 !important;
}

/* SAME GLOBAL SIDE PADDING */
body .site{
    width:100% !important;
    max-width:1500px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:20px !important;
    padding-right:20px !important;
    box-sizing:border-box !important;
}

@media(max-width:768px){
    .site-title,
    .site-title a,
    body.home-exact-reference .site-title,
    body.home-exact-reference .site-title a{
        font-size:27px !important;
    }

    body .site{
        padding-left:12px !important;
        padding-right:12px !important;
    }
}

/* Client requested Office Bearer spacing */
.fva-portfolio{
    display:block !important;
}

.fva-member-phone{
    display:block !important;
    margin-top:12px !important;
    padding-top:10px !important;
    border-top:1px solid rgba(70,88,57,.12) !important;
}

@media(max-width:768px){
    .fva-member-phone{
        margin-top:10px !important;
        padding-top:8px !important;
    }
}


/* Executive Committee - designation/contact spacing */
body .entry-content p b br,
body .fva-executive-card p b br{
    display:block !important;
    content:"" !important;
    margin-top:14px !important;
}

body .entry-content p,
body .fva-executive-card p{
    line-height:1.45 !important;
}

@media(max-width:768px){
    body .entry-content p b br,
    body .fva-executive-card p b br{
        margin-top:12px !important;
    }
}


.fva-designation{
    display:block !important;
    line-height:1.35 !important;
}

.fva-contact-number{
    display:block !important;
    margin-top:14px !important;
    padding-top:3px !important;
    line-height:1.35 !important;
}

@media(max-width:768px){
    .fva-contact-number{
        margin-top:12px !important;
    }
}


/* FINAL Executive Committee role/contact layout */

#content .fva-role-final{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    text-align:center !important;
    line-height:1.35 !important;
}

#content .fva-phone-final{
    display:block !important;
    width:100% !important;

    margin-top:14px !important;
    padding-top:10px !important;

    text-align:center !important;
    line-height:1.3 !important;

    border-top:1px solid rgba(65,82,52,.13) !important;
}

@media(max-width:768px){

    #content .fva-phone-final{
        margin-top:13px !important;
        padding-top:9px !important;
    }

}


/* =====================================================
   FINAL EXECUTIVE COMMITTEE GRID
===================================================== */

.fva-executive-grid{
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    gap:28px !important;
    margin-top:40px !important;
}

.fva-executive-card{
    overflow:hidden !important;
    border:1px solid #dde3d9 !important;
    border-radius:18px !important;
    background:#fff !important;
    box-shadow:0 12px 34px rgba(44,55,37,.08) !important;
}

.fva-executive-photo{
    width:100% !important;
    aspect-ratio:1/1 !important;
    overflow:hidden !important;
    background:#eef2ea !important;
}

.fva-executive-photo img{
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
}

.fva-executive-body{
    padding:22px 18px 24px !important;
    text-align:center !important;
}

.fva-executive-name{
    margin:0 !important;
    color:#182019 !important;
    font-size:20px !important;
    line-height:1.3 !important;
    font-weight:800 !important;
}

.fva-executive-role{
    margin-top:14px !important;
    color:#405035 !important;
    font-family:Georgia,"Times New Roman",serif !important;
    font-size:17px !important;
    font-weight:700 !important;
    line-height:1.35 !important;
}

.fva-executive-phone{
    display:block !important;
    width:max-content !important;
    max-width:100% !important;

    margin:16px auto 0 !important;
    padding-top:12px !important;

    border-top:1px solid rgba(65,82,52,.14) !important;

    color:#4e603f !important;
    text-decoration:none !important;
    font-size:15px !important;
    font-weight:700 !important;
    line-height:1.25 !important;
}

@media(max-width:900px){

    .fva-executive-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

@media(max-width:600px){

    .fva-executive-grid{
        grid-template-columns:1fr !important;
        gap:22px !important;
    }

    .fva-executive-body{
        padding:20px 16px 22px !important;
    }

    .fva-executive-name{
        font-size:19px !important;
    }

    .fva-executive-phone{
        margin-top:14px !important;
        padding-top:11px !important;
    }
}


/* =========================================
   Notifications - remove unwanted lines
========================================= */

body.page-notifications .entry-content hr,
body.page-notifications .notification-card hr,
body.page-notifications .fva-notification-card hr{
    display:none !important;
}

body.page-notifications .entry-content h2::before,
body.page-notifications .entry-content h2::after,
body.page-notifications .entry-content h3::before,
body.page-notifications .entry-content h3::after,
body.page-notifications .notification-card h2::before,
body.page-notifications .notification-card h2::after,
body.page-notifications .notification-card h3::before,
body.page-notifications .notification-card h3::after,
body.page-notifications .fva-notification-card h2::before,
body.page-notifications .fva-notification-card h2::after,
body.page-notifications .fva-notification-card h3::before,
body.page-notifications .fva-notification-card h3::after{
    display:none !important;
    content:none !important;
    border:0 !important;
    width:0 !important;
}

body.page-notifications .entry-content h2,
body.page-notifications .entry-content h3,
body.page-notifications .notification-card h2,
body.page-notifications .notification-card h3,
body.page-notifications .fva-notification-card h2,
body.page-notifications .fva-notification-card h3{
    border-top:0 !important;
    border-bottom:0 !important;
    text-decoration:none !important;
}


/* Notifications final cleanup */
body:has(a[href*="/notifications"]) .notification-card hr,
body:has(a[href*="/notifications"]) .fva-notification-card hr{
    display:none !important;
}

.notification-card h2::before,
.notification-card h2::after,
.notification-card h3::before,
.notification-card h3::after,
.fva-notification-card h2::before,
.fva-notification-card h2::after,
.fva-notification-card h3::before,
.fva-notification-card h3::after{
    content:none !important;
    display:none !important;
}


/* =========================================
   Notifications - remove unwanted lines
========================================= */

body.page-notifications .entry-content hr,
body.page-notifications .notification-card hr,
body.page-notifications .fva-notification-card hr{
    display:none !important;
}

body.page-notifications .entry-content h2::before,
body.page-notifications .entry-content h2::after,
body.page-notifications .entry-content h3::before,
body.page-notifications .entry-content h3::after,
body.page-notifications .notification-card h2::before,
body.page-notifications .notification-card h2::after,
body.page-notifications .notification-card h3::before,
body.page-notifications .notification-card h3::after,
body.page-notifications .fva-notification-card h2::before,
body.page-notifications .fva-notification-card h2::after,
body.page-notifications .fva-notification-card h3::before,
body.page-notifications .fva-notification-card h3::after{
    display:none !important;
    content:none !important;
    border:0 !important;
    width:0 !important;
}

body.page-notifications .entry-content h2,
body.page-notifications .entry-content h3,
body.page-notifications .notification-card h2,
body.page-notifications .notification-card h3,
body.page-notifications .fva-notification-card h2,
body.page-notifications .fva-notification-card h3{
    border-top:0 !important;
    border-bottom:0 !important;
    text-decoration:none !important;
}


/* Notifications final cleanup */
body:has(a[href*="/notifications"]) .notification-card hr,
body:has(a[href*="/notifications"]) .fva-notification-card hr{
    display:none !important;
}

.notification-card h2::before,
.notification-card h2::after,
.notification-card h3::before,
.notification-card h3::after,
.fva-notification-card h2::before,
.fva-notification-card h2::after,
.fva-notification-card h3::before,
.fva-notification-card h3::after{
    content:none !important;
    display:none !important;
}


/* Notifications title cleanup */
#content .notification-card h2,
#content .notification-card h3,
#content .fva-notification-card h2,
#content .fva-notification-card h3{
    border:0 !important;
    text-decoration:none !important;
}

#content .notification-card h2::before,
#content .notification-card h2::after,
#content .notification-card h3::before,
#content .notification-card h3::after,
#content .fva-notification-card h2::before,
#content .fva-notification-card h2::after,
#content .fva-notification-card h3::before,
#content .fva-notification-card h3::after{
    content:none !important;
    display:none !important;
}


/* =====================================================
   EXECUTIVE COMMITTEE - FINAL RESPONSIVE GRID FIX
===================================================== */

#content .fva-executive-grid{
    display:grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap:30px !important;

    width:100% !important;
    max-width:1180px !important;

    margin:40px auto 0 !important;
    padding:0 !important;

    box-sizing:border-box !important;
}

#content .fva-executive-card{
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;

    margin:0 !important;

    display:flex !important;
    flex-direction:column !important;

    border-radius:20px !important;
    overflow:hidden !important;

    background:#fff !important;
    border:1px solid #dfe5dc !important;

    box-shadow:
        0 12px 32px rgba(43,55,35,.08) !important;
}

#content .fva-executive-photo{
    width:100% !important;
    aspect-ratio:1 / 1 !important;

    overflow:hidden !important;
    background:#eef2ea !important;
}

#content .fva-executive-photo img{
    display:block !important;

    width:100% !important;
    height:100% !important;

    max-width:none !important;

    object-fit:cover !important;
    object-position:center top !important;
}

#content .fva-executive-body{
    width:100% !important;
    box-sizing:border-box !important;

    padding:24px 20px 26px !important;

    text-align:center !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;

    flex:1 !important;
}

#content .fva-executive-name{
    margin:0 !important;

    font-size:22px !important;
    line-height:1.25 !important;
    font-weight:800 !important;

    text-align:center !important;
}

#content .fva-executive-role{
    margin:16px 0 0 !important;

    font-size:18px !important;
    line-height:1.35 !important;

    text-align:center !important;
}

#content .fva-executive-phone{
    display:block !important;

    width:auto !important;

    margin:18px auto 0 !important;
    padding:13px 18px 0 !important;

    border-top:1px solid rgba(65,82,52,.15) !important;

    font-size:15px !important;
    line-height:1.3 !important;

    text-align:center !important;
}


/* TABLET */
@media(max-width:950px){

    #content .fva-executive-grid{
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;

        gap:24px !important;
    }

}


/* MOBILE */
@media(max-width:620px){

    #content .fva-executive-grid{
        grid-template-columns:1fr !important;

        gap:22px !important;
        margin-top:28px !important;
    }

    #content .fva-executive-card{
        max-width:520px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }

    #content .fva-executive-name{
        font-size:20px !important;
    }

    #content .fva-executive-role{
        font-size:17px !important;
    }

}


/* =====================================================
   EXECUTIVE COMMITTEE - TRUE FULL WIDTH FINAL FIX
===================================================== */

/* Remove duplicate small page title */
body:has(.fva-executive-grid) .entry-header{
    display:none !important;
}

/* Release old WordPress width restrictions */
body:has(.fva-executive-grid) #content,
body:has(.fva-executive-grid) #primary,
body:has(.fva-executive-grid) .site-main,
body:has(.fva-executive-grid) article.page,
body:has(.fva-executive-grid) .entry-content{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;
    box-sizing:border-box !important;
}

body:has(.fva-executive-grid) .entry-content{
    padding-left:clamp(24px,5vw,80px) !important;
    padding-right:clamp(24px,5vw,80px) !important;
}

/* Main heading */
body:has(.fva-executive-grid) .entry-content > h2{
    max-width:1280px !important;
    margin:20px auto 34px !important;

    font-size:34px !important;
    line-height:1.15 !important;
    font-weight:800 !important;

    color:#182019 !important;
}

/* Actual grid */
body:has(.fva-executive-grid) .fva-executive-grid{
    display:grid !important;

    grid-template-columns:
        repeat(3,minmax(280px,1fr)) !important;

    gap:32px !important;

    width:100% !important;
    max-width:1280px !important;

    margin:0 auto 60px !important;
    padding:0 !important;

    box-sizing:border-box !important;
}

/* Cards */
body:has(.fva-executive-grid) .fva-executive-card{
    width:100% !important;
    max-width:none !important;
    min-width:0 !important;

    margin:0 !important;

    border-radius:20px !important;
}

/* Images */
body:has(.fva-executive-grid) .fva-executive-photo{
    width:100% !important;
    aspect-ratio:1 / 1 !important;
}

body:has(.fva-executive-grid) .fva-executive-photo img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center top !important;
}

/* Tablet */
@media(max-width:1000px){

    body:has(.fva-executive-grid) .fva-executive-grid{
        grid-template-columns:
            repeat(2,minmax(250px,1fr)) !important;
    }

}

/* Mobile */
@media(max-width:650px){

    body:has(.fva-executive-grid) .entry-content{
        padding-left:14px !important;
        padding-right:14px !important;
    }

    body:has(.fva-executive-grid) .entry-content > h2{
        font-size:28px !important;
        margin-bottom:26px !important;
    }

    body:has(.fva-executive-grid) .fva-executive-grid{
        grid-template-columns:1fr !important;
        gap:22px !important;
    }

    body:has(.fva-executive-grid) .fva-executive-card{
        max-width:520px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
}

