/* ===========================
   RESET
=========================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#F8F9FA;
}

/* ===========================
   NAVIGATION
=========================== */

.navbar{

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:18px 60px;

    background:#3C096C;

    position:absolute;
    top:0;
    width:100%;

    z-index:1000;

    box-shadow:0 4px 15px rgba(0,0,0,.15);

}

.logo{

    display:flex;
    align-items:center;
    gap:15px;

    color:white;

    font-size:22px;
    font-weight:bold;

}

.logo img{

    width:60px;
    height:60px;
    border-radius:50%;

}

.nav-links{

    display:flex;
    list-style:none;

}

.nav-links li{

    margin-left:35px;

}

.nav-links a{

    color:white;
    text-decoration:none;
    font-size:17px;

    position:relative;

    transition:.3s;

}

.nav-links a:hover{

    color:#FFD60A;

}

.nav-links a::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-6px;

    width:0;

    height:2px;

    background:#FFD60A;

    transition:.3s;

}

.nav-links a:hover::after{

    width:100%;

}

/* ===========================
   HERO
=========================== */

.hero{

    height:100vh;

    background:
    linear-gradient(
    rgba(60,9,108,.72),
    rgba(90,24,154,.72)),
    url("images/hero.jpg");

    background-size:cover;
    background-position:center;

    display:flex;
    justify-content:center;
    align-items:center;

    text-align:center;

}

.overlay{

    color:white;

    width:80%;
    max-width:900px;

}

.overlay h1{

    font-size:64px;

    margin-bottom:25px;

    text-shadow:3px 3px 12px rgba(0,0,0,.35);

}

.overlay p{

    font-size:23px;

    line-height:1.7;

    margin-bottom:40px;

}

/* ===========================
   BUTTONS
=========================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:25px;

    margin-top:20px;

    flex-wrap:wrap;

}

.hero-buttons .btn{

    min-width:220px;

    text-align:center;

}

.btn{

    background:#FFD60A;

    color:#3C096C;

    text-decoration:none;

    padding:16px 40px;

    border-radius:8px;

    font-size:18px;

    font-weight:bold;

    transition:.3s;

}

.btn:hover{

    transform:translateY(-5px) scale(1.05);

    box-shadow:0 10px 25px rgba(0,0,0,.25);

}

.secondary{

    background:white;

    color:#3C096C;

}

.secondary:hover{

    background:#F1F1F1;

}

/* ===========================
   PAGE BANNER
=========================== */

.page-banner{

    margin-top:95px;

    background:transparent;

    color:purple;

    text-align:center;

    padding:70px 20px;

}

.page-banner h1{

    font-size:48px;

}

/* ===========================
   ABOUT SECTION
=========================== */

.about-section{

    display:flex;

    align-items:center;

    justify-content:center;

    gap:50px;

    padding:80px 10%;

    flex-wrap:wrap;

}

.about-image{

    width:450px;

    border-radius:15px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.about-content{

    max-width:600px;

}

.about-content h2{

    color:#3C096C;

    margin-bottom:20px;

    font-size:36px;

}

.about-content p{

    line-height:1.8;

    color:#555;

    font-size:18px;

}

/* ===========================
   VISION & MISSION
=========================== */

.vision-mission{

    display:flex;

    justify-content:center;

    gap:40px;

    flex-wrap:wrap;

    padding:70px 10%;

    background:transparent;

}

.vision,
.mission{

    background:transparent;

    padding:35px;

    border-radius:12px;

    width:500px;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.vision h2,
.mission h2{

    color:#5A189A;

    margin-bottom:20px;

}

.mission ul{

    padding-left:20px;

}

.mission li{

    margin-bottom:10px;

}

/* ===========================
   CORE VALUES
=========================== */

.values{

    padding:80px 10%;

    text-align:center;

}

.values h2{

    color:#3C096C;

    margin-bottom:40px;

}

.value-boxes{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.value-boxes div{

    background:#5A189A;

    color:white;

    padding:20px 35px;

    border-radius:10px;

    font-weight:bold;

    transition:.3s;

}

.value-boxes div:hover{

    transform:translateY(-8px);

    background:#7B2CBF;

}

/* ===========================
   CALL TO ACTION
=========================== */

.cta{

    text-align:center;

    padding:90px 20px;

    background:transparent;

    color:purple;

}

.cta h2{

    margin-bottom:20px;

    font-size:40px;

}

.cta p{

    margin-bottom:30px;

}

/* ===========================
   OFFICERS PAGE
=========================== */

.page-header{

    margin-top:120px;
    text-align:center;
    padding:40px 20px;

}

.page-header h1{

    color:#3C096C;
    font-size:50px;
    margin-bottom:15px;

}

.page-header p{

    max-width:700px;
    margin:auto;
    color:#555;
    font-size:18px;
    line-height:1.6;

}

.officer-section{

    padding:50px 8%;

}

.officer-section h2{

    color:#3C096C;
    font-size:35px;
    margin-bottom:30px;
    border-left:8px solid #FFD60A;
    padding-left:15px;

}

.officer-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(280px, 1fr));
    gap:44px 42px;
    max-width:1580px;
    margin:0 auto;
    align-items:start;
}

.officer-card{
    min-height:0;
    overflow:hidden;
    border-radius:15px;
    background:white;
    color:black;
    text-decoration:none;
    box-shadow:0 8px 20px rgba(0,0,0,.10);
    transition:transform .35s ease, box-shadow .35s ease;
}

.officer-card:hover{
    transform:translateY(-8px);
    box-shadow:0 18px 35px rgba(60,9,108,.18);
}

.officer-card img{
    display:block;
    width:100%;
    height:420px;
    object-fit:cover;
    object-position:center top;
}

.officer-card h3{
    line-height:1.15;
    margin:20px 0 8px;
    color:#3C096C;
    font-size:24px;
    text-align:center;
}

.officer-card h4{
    margin:0 0 15px;
    color:#666;
    font-size:18px;
    font-weight:600;
    text-align:center;
}

.officer-card p{
    min-height:48px;
    margin-bottom:12px;
    font-size:15px;
    color:#777;
    font-style:italic;
    line-height:1.6;
    padding:0 20px 15px;
    text-align:center;
}

.officer-card span{
    display:block;
    padding-bottom:25px;
    text-align:center;
    color:#3C096C;
    font-weight:bold;
    transition:.3s;
}

/* ===============================
   OFFICER PROFILE
================================ */

.profile-container{

    margin-top:120px;

    padding:50px 10%;

}

.back-button{

    display:inline-block;

    margin-bottom:30px;

    color:#3C096C;

    font-weight:bold;

    text-decoration:none;

    transition:.3s;

}

.back-button:hover{

    color:#FFD60A;

    transform:translateX(-5px);

}

.profile-card{

    background:transparent;

    box-shadow:none;

    padding:40px;

    text-align:center;

}

.profile-card img{

    width:220px;

    height:220px;

    object-fit:cover;

    border-radius:50%;

    border:6px solid #FFD60A;

    margin-bottom:25px;

}

.profile-card h1{

    color:#3C096C;

    font-size:40px;

}

.profile-card h2{

    color:#666;

    margin-bottom:40px;

}

.info-grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));

    gap:20px;

    margin-bottom:40px;

}

.info-box{

    background:#F8F4FF;

    border-radius:15px;

    padding:20px;

}

.info-box h3{

    color:#3C096C;

    margin-bottom:10px;

}

.section{

    text-align:left;

    margin-top:40px;

}

.section h3{

    color:#3C096C;

    margin-bottom:15px;

    border-left:6px solid #FFD60A;

    padding-left:12px;

}

.section p{

    line-height:1.8;

}

.section ul{

    padding-left:20px;

    line-height:2;

}

/* ===================================
   PREMIUM PROFILE ANIMATIONS
=================================== */

/* Page Load */

.profile-card{

    animation:slideUp .8s ease;

}

/* Animation */

@keyframes slideUp{

    from{

        opacity:0;
        transform:translateY(25px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* Photo */

.profile-card img{

    transition:
    transform .35s ease,
    box-shadow .35s ease;

}

.profile-card img:hover{

    transform:scale(1.05);

    box-shadow:
    0 18px 35px rgba(60,9,108,.20);

}

/* Name */

.profile-card h1{

    transition:.3s;

}

.profile-card:hover h1{

    letter-spacing:1px;

}

/* Position */

.profile-card h2{

    transition:.3s;

}

.profile-card:hover h2{

    color:#5A189A;

}

/* Info Cards */

.info-box{

    transition:
    transform .35s ease,
    box-shadow .35s ease,
    background .35s ease;

}

.info-box:hover{

    background:white;

    box-shadow:
    0 15px 30px rgba(60,9,108,.12);

}

/* Sections */

.section{

    transition:
    transform .35s ease,
    box-shadow .35s ease;

    border-radius:12px;

    padding:10px;

}

.section:hover{

    box-shadow:
    0 8px 20px rgba(60,9,108,.08);

}

/* Gold Underline */

.section h3{

    position:relative;

    display:inline-block;

}

.section h3::after{

    content:"";

    position:absolute;

    left:0;

    bottom:-6px;

    width:0;

    height:3px;

    background:#FFD60A;

    transition:.35s;

}

.section:hover h3::after{

    width:100%;

}

/* ===================================
   ELEGANT BACKGROUND
=================================== */

/* Home Page */

body{

    background:
    linear-gradient(
        rgba(60,9,108,.12),
        rgba(60,9,108,.12)
    ),
    url("images/background1.png");

    background-size:cover;

    background-position:center;

    background-attachment:fixed;

}

/* Pages (About, Officers, Resources, Gallery, Concern, etc.) */

.page-background{

    background:
    linear-gradient(
        rgba(60,9,108,.12),
        rgba(60,9,108,.12)
    ),
    url("../images/background1.png");

    background-size:cover;

    background-position:center;

    background-attachment:fixed;

}

/* Officer Profile Pages */

.profile-background{

    background:
    linear-gradient(
        rgba(60,9,108,.12),
        rgba(60,9,108,.12)
    ),
    url("../../images/background1.png");

    background-size:cover;

    background-position:center;

    background-attachment:fixed;

}

/* White Content Cards */

.about-card,
.content-card,
.section,
.info-box{

    background:rgba(255,255,255,.90);

    backdrop-filter:blur(10px);

    border-radius:18px;

}

/* ===========================
   TRANSPARENT WISDOM NAVBAR
=========================== */

body.wisdom-page .navbar {
    background: rgba(60, 9, 108, 0.35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border-bottom: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 8px 25px rgba(0,0,0,.20);
}

body.wisdom-page .navbar,
body.trivia-page .navbar{
    background: rgba(38, 8, 74, .28) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.12);
}

@media(max-width:900px){
    .officer-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:600px){
    .officer-grid{
        grid-template-columns:1fr;
    }
}

/* ===========================
   ABOUT TRANSPARENT CARDS
=========================== */

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

/* Same glass style */
.about-officers-card,
.about-outro-card {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    text-align: center;
}

/* Meet Our Officers square */
.about-officers-card {
    width: 72%;
    max-width: 950px;
    padding: 45px 55px;
}

/* Outro square */
.about-outro-card {
    width: 85%;
    max-width: 1550px;
    padding: 55px 70px;
}

.about-officers-card h2 {
    color: #3C096C;
    font-size: 44px;
    margin-bottom: 18px;
}

.about-officers-card p,
.about-outro-card p {
    color: #3C096C;
    font-size: 22px;
    line-height: 1.7;
}

.about-officers-card .btn {
    display: inline-block;
    margin-top: 20px;
}


/* Make Meet Our Officers visually match the Today square */
.about-officers-card {
    background: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;

    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;

    box-shadow: 0 20px 45px rgba(0,0,0,.22) !important;
}

/* ===========================
   ABOUT SMALL GLASS CARDS
=========================== */

.about-info-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 35px;
    flex-wrap: wrap;

    padding: 40px 8%;
}

.about-small-card {
      width:420px;
    min-height:420px;

     padding:45px 38px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    text-align: center;

   display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.about-small-card p {
    min-height: 150px;
}

.about-small-card h2 {
    color: #3C096C;
    font-size: 34px;
    margin-bottom: 18px;
}

.about-small-card p {
    color: #3C096C;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.about-small-card .btn {
    display: inline-block;
}

/* ===========================
   ABOUT CORE VALUES CARD
=========================== */

.about-values-card {
    width: 85%;
    max-width: 1100px;
    margin: 0 auto;

    padding: 45px 55px;

    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    text-align: center;
}

.about-values-card h2 {
    color: #3C096C;
    font-size: 36px;
    margin-bottom: 35px;
}

/* ===========================
   MISSION AND VISION CARDS
=========================== */

.mission-vision-section {
    align-items: stretch;
}

.mission-card,
.vision-card {
    width: 520px;
    min-height: 360px;
}

.mission-card ul {
    text-align: left;
    color: #3C096C;
    font-size: 18px;
    line-height: 1.6;
    padding-left: 25px;
}

.mission-card li {
    margin-bottom: 12px;
}

.vision-card{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 35px;
}

.vision-card h2{
    margin-bottom: 25px;
}

.vision-card p{
    text-align: left;
    margin: 0;
    line-height: 1.8;
}

/* Force Mission and Vision to stay side by side */
.mission-vision-section {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 35px !important;
    flex-wrap: nowrap !important;
}

.mission-card,
.vision-card {
    width: 470px !important;
    min-height: 430px !important;

    background: rgba(255, 255, 255, 0.13) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    border-radius: 30px !important;

    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;

    box-shadow: 0 20px 45px rgba(0,0,0,.22) !important;
}

/* ===========================
   ABOUT STACKED GLASS CARDS
=========================== */

.about-stack-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;

    padding: 40px 8%;
}

.about-wide-card {
    width: 85%;
    max-width: 1100px;

    padding: 45px 55px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    text-align: center;
}

.about-wide-card h2 {
    color: #3C096C;
    font-size: 38px;
    margin-bottom: 18px;
}

.about-wide-card p {
    color: #3C096C;
    font-size: 21px;
    line-height: 1.7;
}

.about-hero-image {
    width: 520px;
    max-width: 90%;
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,.25);
    margin-bottom: 20px;
}

/* About page title color */
.page-banner h1 {
    color: #3C096C;
}

/* ===========================
   ABOUT HISTORY CARD
=========================== */

.about-history-card {
    text-align: left;
}

.about-history-card h2,
.about-history-card h3 {
    text-align: center;
    color: #3C096C;
}

.about-history-card h2 {
    font-size: 34px;
    margin-bottom: 18px;
}

.about-history-card h3 {
    font-size: 26px;
    margin-bottom: 25px;
}

.about-history-card p {
    text-align: justify;
    margin-bottom: 22px;
}

/* ===========================
   ABOUT LOGO MEANING CARD
=========================== */

.about-logo-card {
    width: 85%;
    max-width: 1100px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;

    padding: 50px 60px;
    margin: 0 auto;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.about-logo-left {
    width: 100%;
    text-align: center;
}

.about-logo-left img {
    width: 420px;
    max-width: 90%;
    border-radius: 18px;
}

.about-logo-meaning {
    width: 100%;
}

.about-logo-meaning h2 {
    color: #3C096C;
    font-size: 34px;
    margin-bottom: 25px;
    text-align: center;
}

.about-logo-meaning p {
    color: #3C096C;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 18px;
    text-align: left;
}

/* ===========================
   ABOUT ROLE CARD
=========================== */

.about-role-card {
    text-align: left;
}

.about-role-card h2 {
    color: #3C096C;
    font-size: 34px;
    margin-bottom: 25px;
    text-align: center;
}

.about-role-card p {
    text-align: justify;
    margin-bottom: 22px;
}

/* ===========================
   ACCOMPLISHMENTS PAGE
=========================== */

.accomplishment-section {
    padding: 40px 8% 90px;
}

.accomplishment-card {
    width: 85%;
    max-width: 1100px;

    margin: 0 auto 40px;
    padding: 45px 55px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    text-align: center;
}

.accomplishment-card h2 {
    color: #3C096C;
    font-size: 38px;
    margin-bottom: 18px;
}

.accomplishment-card p {
    color: #3C096C;
    font-size: 20px;
    line-height: 1.7;
}

.year-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.year-buttons a {
    background: #FFD60A;
    color: #3C096C;

    border: 2px solid #111;
    border-radius: 12px;

    padding: 18px 35px;

    font-size: 20px;
    font-weight: bold;
    text-decoration: none;

    cursor: pointer;
    transition: .35s;
}

.year-buttons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* ===========================
   ACCOMPLISHMENT TOC UNDER TITLE
=========================== */

.toc-under-title {
    padding: 0 8% 80px;
}

.toc-text {
    width: fit-content;
    margin-left: 8%;
    margin-top: -25px;
    text-align: left;
}

.toc-text p {
    color: #111;
    font-size: 26px;
    line-height: 1.35;
    margin-bottom: 8px;
}

.toc-text .toc-main {
    margin-bottom: 26px;
}

/* ===========================
   BACK TO YEARS BUTTON
=========================== */

.toc-text .back-button {
    display: inline-block;

    margin-top: 30px;
    padding: 16px 32px;

    background: #FFD60A;
    color: #3C096C;

    border: 2px solid #111;
    border-radius: 12px;

    font-size: 18px;
    font-weight: bold;
    text-decoration: none;

    box-shadow: 0 6px 14px rgba(0,0,0,.20);
    transition: .35s;
}

.toc-text .back-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    background: white;
}

/* ===========================
   ACCOMPLISHMENT RESPONSIVE
=========================== */

@media(max-width:900px) {
    .accomplishment-card {
        width: 92%;
        padding: 35px 25px;
    }

    .toc-text {
        margin-left: 4%;
        margin-top: -10px;
    }

    .toc-text p {
        font-size: 21px;
    }
}

/* ===========================
   LEFT TOC GLASS BOXES
=========================== */

.boxed-toc {
    width: 1150px;
    max-width: 70vw;

    padding: 28px 50px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.boxed-toc .toc-main {
    color: #111;
    font-size: 26px;
    margin-bottom: 24px;
}

.toc-mini-box {
    width: 100%;

    margin-bottom: 14px;
    padding: 16px 28px;

    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;

    color: #111;
    font-size: 24px;
    line-height: 1.25;

    box-shadow: 0 10px 24px rgba(0,0,0,.12);

    cursor: pointer;
    transition: .35s;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toc-mini-box::after {
    content: "→";
    color: #3C096C;
    font-size: 28px;
    font-weight: bold;
    transition: .35s;
}

.toc-mini-box:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.24);
    box-shadow: 0 16px 32px rgba(0,0,0,.20);
}

.toc-mini-box:hover::after {
    transform: translateX(8px);
}

.toc-under-title .boxed-toc {
    margin-bottom: 70px;
}

.back-year-wrapper {
    .back-year-wrapper{
    display:flex;
    justify-content:center;
    align-items:center;

    margin:60px 0 80px;
}
}

.toc-mini-box {
    text-decoration: none;
}

/* ===========================
   FACT OR FICTION GALLERY
=========================== */

.fof-gallery-card {
    max-width: 1200px;
}

.fof-image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.fof-image-row img {
    width: 100%;
    height: 420px;

    object-fit: cover;
    border-radius: 22px;

    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

@media(max-width:900px) {
    .fof-image-row {
        grid-template-columns: 1fr;
    }

    .fof-image-row img {
        height: auto;
    }
}

.fof-pair-title {
    color: #3C096C;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
}

/* ===========================
   USAPANG POLSAY IMAGE PAIRS
=========================== */

.polsay-pair-card {
    width: 85%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 28px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.polsay-image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.polsay-image-row img {
    width: 100%;
    height: 420px;

    object-fit: cover;
    object-position: center top;

    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

@media(max-width:900px) {
    .polsay-image-row {
        grid-template-columns: 1fr;
    }

    .polsay-image-row img {
        height: auto;
    }
}

/* ===========================
   CASE DIGEST IMAGE PAIRS
=========================== */

.case-digest-pair-card {
    width: 85%;
    max-width: 1200px;
    margin: 35px auto;
    padding: 28px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);
}

.case-digest-image-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-digest-image-row img {
    width: 100%;
    height: 420px;

    object-fit: cover;
    object-position: center top;

    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

@media(max-width:900px) {
    .case-digest-image-row {
        grid-template-columns: 1fr;
    }

    .case-digest-image-row img {
        height: auto;
    }
}

/* ===========================
   CASE DIGEST MAIN IMAGE
=========================== */

.case-main-image {
    display: block;
    width: 65%;
    max-width: 900px;

    margin: 35px auto 45px;

    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(0,0,0,.22);
}

/* ===========================
   CASE DIGEST PHOTO CARD
=========================== */

.case-photo-card {
    width: 70%;
    max-width: 1000px;

    margin: 35px auto 45px;
    padding: 28px;

    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;

    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);

    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    text-align: center;
}

.case-photo-card img {
    width: 100%;
    border-radius: 18px;
    display: block;
}

.case-photo-card p {
    color: #111;
    font-size: 18px;
    margin-top: 18px;
}

/* ===========================
   POLI-CONNECT MAIN IMAGE
=========================== */

.poli-main-image {
    display: block;
    width: 65%;
    max-width: 900px;

    margin: 35px auto 45px;

    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(0,0,0,.22);

    object-fit: cover;
}

/* ===========================
   LEFT ALIGNED ACCOMPLISHMENT TEXT
=========================== */

.text-left-card {
    text-align: left !important;
}

.text-left-card h2 {
    text-align: left !important;
}

.text-left-card p {
    text-align: left !important;
}

.text-left-card {
    text-align: justify !important;
}

.text-left-card p {
    text-align: justify !important;
    color: #111;
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 26px;
}

.text-left-card strong {
    font-weight: 800;
}

.text-left-card em {
    font-style: italic;
}

.text-left-card {
    text-align: justify !important;
}

.text-left-card p {
    text-align: justify !important;
    color: #111;
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 26px;
}

.text-left-card strong {
    font-weight: 800;
}

.text-left-card em {
    font-style: italic;
}

/* Accomplishment section titles purple */
.boxed-toc .toc-main {
    color: #3C096C !important;
    font-weight: bold;
}

/* ===========================
   RESPONSIVE + ONLINE BACKGROUND FIX
   Mobile / Tablet / Laptop / PC
=========================== */

img {
    max-width: 100%;
    height: auto;
}

/* Fix background online */
body.page-background,
body.profile-background {
    background:
        linear-gradient(
            rgba(60,9,108,.12),
            rgba(60,9,108,.12)
        ),
        url("images/background1.png") !important;

    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}


/* Faster backgrounds for the officer directory and profile pages. */
body.officers-page,
body.profile-background {
    background-image:
        linear-gradient(rgba(60,9,108,.12), rgba(60,9,108,.12)),
        url("images/background1-optimized.webp?v=1") !important;
}

/* Laptop */
@media (max-width: 1200px) {
    .navbar {
        padding: 18px 35px;
    }

    .nav-links li {
        margin-left: 22px;
    }

    .overlay h1 {
        font-size: 52px;
    }

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

/* Tablet */
@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 18px 20px;
        position: relative;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        font-size: 15px;
    }

    .hero {
        height: auto;
        min-height: 100vh;
        padding: 140px 20px 70px;
    }

    .overlay {
        width: 95%;
    }

    .overlay h1 {
        font-size: 42px;
    }

    .overlay p {
        font-size: 19px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .page-banner {
        margin-top: 30px;
        padding: 50px 20px;
    }

    .page-banner h1 {
        font-size: 36px;
        line-height: 1.2;
    }

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

    .officer-card img {
        height: auto;
        max-height: none;
    }
}

/* Phone final fix */
@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden !important;
    }

    body.page-background,
    body.profile-background {
        background-attachment: scroll !important;
        background-position: center top !important;
    }

    .navbar {
        position: relative;
        padding: 12px 10px;
        gap: 8px;
    }

    .logo img {
        width: 42px;
        height: 42px;
    }

    .logo span {
        font-size: 13px;
        line-height: 1.2;
    }

    .nav-links {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li {
        margin-left: 0;
    }

    .nav-links a {
        font-size: 12px;
    }

    .page-banner {
        margin-top: 25px !important;
        padding: 35px 14px !important;
    }

    .page-banner h1 {
        font-size: 32px !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    .about-section,
    .about-info-section,
    .mission-vision-section,
    .values,
    .cta,
    .accomplishment-section {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }

    .about-content,
    .about-small-card,
    .about-values-card,
    .about-officers-card,
    .about-outro-card,
    .identity-card,
    .logo-meaning-card,
    .mission-role-card,
    .accomplishment-card,
    .boxed-toc,
    .case-photo-card,
    .polsay-pair-card,
    .fof-gallery-card {
        width: 94% !important;
        max-width: 94% !important;
        padding: 24px 18px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        border-radius: 24px !important;
        overflow: visible !important;
    }

    .about-content h2,
    .about-small-card h2,
    .about-values-card h2,
    .about-officers-card h2,
    .identity-card h2,
    .logo-meaning-card h2,
    .mission-role-card h2,
    .accomplishment-card h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }

    .about-content p,
    .about-small-card p,
    .about-outro-card p,
    .identity-card p,
    .logo-meaning-card p,
    .mission-role-card p,
    .accomplishment-card p,
    .text-left-card p {
        font-size: 16px !important;
        line-height: 1.55 !important;
        text-align: left !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
    }

    .mission-card ul,
    .about-small-card ul {
        padding-left: 22px !important;
        text-align: left !important;
    }

    .mission-card li,
    .about-small-card li {
        font-size: 16px !important;
        line-height: 1.55 !important;
        margin-bottom: 10px !important;
    }

    .about-image,
    .case-main-image,
    .poli-main-image {
        width: 94% !important;
        max-width: 94% !important;
        height: auto !important;
        object-fit: contain !important;
        margin: 20px auto 30px !important;
        display: block !important;
    }

    .fof-image-row,
    .polsay-image-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
    }

    .fof-image-row img,
    .polsay-image-row img,
    .case-photo-card img {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: center center !important;
        display: block !important;
        border-radius: 18px !important;
    }

    .toc-text {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }

    .toc-main {
        font-size: 22px !important;
    }

    .toc-mini-box {
        font-size: 17px !important;
        padding: 15px 18px !important;
        line-height: 1.35 !important;
    }

    .value-boxes {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    .value-boxes div {
        width: 100% !important;
        font-size: 16px !important;
    }

    .btn,
    .back-button,
    .year-buttons a {
        width: 100%;
        max-width: 320px;
        text-align: center;
        font-size: 16px !important;
    }
}

/* Smaller phone */
@media (max-width: 480px) {
    .page-banner h1 {
        font-size: 28px !important;
    }

    .about-content h2,
    .about-small-card h2,
    .about-values-card h2,
    .about-officers-card h2,
    .identity-card h2,
    .logo-meaning-card h2,
    .mission-role-card h2,
    .accomplishment-card h2 {
        font-size: 25px !important;
    }

    .about-content p,
    .about-small-card p,
    .about-outro-card p,
    .identity-card p,
    .logo-meaning-card p,
    .mission-role-card p,
    .accomplishment-card p,
    .text-left-card p {
        font-size: 15px !important;
    }
}

/* ===========================
   ABOUT PAGE MOBILE FIX 
=========================== */

@media (max-width: 768px) {

    .about-stack-section {
        padding: 20px 14px 60px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .about-hero-image {
        width: 94% !important;
        max-width: 94% !important;
        height: auto !important;
        margin: 20px auto 35px !important;
        display: block !important;
        border-radius: 22px !important;
    }

    .about-wide-card,
    .about-history-card {
        width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto 35px !important;
        padding: 28px 22px !important;
        box-sizing: border-box !important;
        border-radius: 28px !important;
        overflow: visible !important;
    }

    .about-wide-card h2,
    .about-history-card h2 {
        font-size: 30px !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin-bottom: 22px !important;
    }

    .about-wide-card h3,
    .about-history-card h3 {
        font-size: 22px !important;
        line-height: 1.25 !important;
        text-align: center !important;
        margin-bottom: 18px !important;
    }

    .about-wide-card p,
    .about-history-card p {
        font-size: 16px !important;
        line-height: 1.65 !important;
        text-align: left !important;
        word-spacing: normal !important;
        letter-spacing: normal !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        margin-bottom: 18px !important;
    }

    .about-wide-card .btn,
    .about-history-card .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 25px auto 0 !important;
        display: block !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {

    .about-wide-card,
    .about-history-card {
        padding: 24px 18px !important;
    }

    .about-wide-card h2,
    .about-history-card h2 {
        font-size: 26px !important;
    }

    .about-wide-card h3,
    .about-history-card h3 {
        font-size: 20px !important;
    }

    .about-wide-card p,
    .about-history-card p {
        font-size: 15px !important;
        line-height: 1.6 !important;
    }
}

/* ===========================
   USAPANG POLSAY MOBILE IMAGE FIX
=========================== */

@media (max-width: 768px) {

    .polsay-pair-card {
        width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto 35px !important;
        padding: 22px 14px !important;
        box-sizing: border-box !important;
        border-radius: 26px !important;
    }

    .polsay-image-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        align-items: center !important;
    }

    .polsay-image-row img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 18px !important;
        display: block !important;
    }
}

/* ===========================
   MOBILE IMAGE READABILITY FIX
   Usapang PolSay + Fact or Fiction
=========================== */

/* Tablet / large phones: keep pair layout */
@media (min-width: 481px) and (max-width: 768px) {

    .polsay-pair-card,
    .fof-gallery-card {
        width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto 35px !important;
        padding: 24px 18px !important;
        box-sizing: border-box !important;
        border-radius: 26px !important;
    }

    .polsay-image-row,
    .fof-image-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
        align-items: start !important;
    }

    .polsay-image-row img,
    .fof-image-row img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 18px !important;
        display: block !important;
    }
}

/* Small phones: 1 image per row for readability */
@media (max-width: 480px) {

    .polsay-pair-card,
    .fof-gallery-card {
        width: 94% !important;
        max-width: 94% !important;
        margin: 0 auto 35px !important;
        padding: 22px 14px !important;
        box-sizing: border-box !important;
        border-radius: 26px !important;
    }

    .polsay-image-row,
    .fof-image-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 28px !important;
        align-items: center !important;
    }

    .polsay-image-row img,
    .fof-image-row img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        border-radius: 18px !important;
        display: block !important;
    }
}

/* ===========================
   TOP MOBILE DROPDOWN MENU
=========================== */

.mobile-menu-btn {
    display: none;
    width: 44px !important;
    height: 44px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 3000 !important;
}

.mobile-menu-btn span {
    display: block !important;
    width: 28px !important;
    height: 3px !important;
    background: white !important;
    border-radius: 999px !important;
    margin: 5px auto !important;
    transition: .3s ease !important;
}

.mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg) !important;
}

.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0 !important;
}

.mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg) !important;
}

.nav-links a.active-page {
    color: #FFD60A !important;
    font-weight: 700 !important;
}

@media (max-width: 900px) {

    .navbar {
        padding: 14px 22px !important;
        height: auto !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .nav-links {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;

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

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

        padding: 0 18px !important;
        gap: 14px !important;

        background:
            linear-gradient(135deg, rgba(60,9,108,.98), rgba(90,24,154,.98)) !important;

        border-top: 1px solid rgba(255,255,255,.18) !important;
        box-shadow: 0 15px 35px rgba(0,0,0,.25) !important;

        z-index: 2500 !important;

        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;

        transition:
            max-height .35s ease,
            opacity .25s ease,
            padding .35s ease !important;
    }

    .nav-links.active {
        max-height: 520px !important;
        opacity: 1 !important;
        padding: 22px 18px 28px !important;
        pointer-events: auto !important;
    }

    .nav-links li {
        margin-left: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }

    .nav-links a {
        display: block !important;
        width: 100% !important;

        padding: 13px 16px !important;
        border-radius: 14px !important;

        color: white !important;
        font-size: 16px !important;
        font-weight: 600 !important;

        background: rgba(255,255,255,.08) !important;
    }

    .nav-links a:hover,
    .nav-links a.active-page {
        background: rgba(255,214,10,.95) !important;
        color: #3C096C !important;
    }

    .logo span {
        font-size: 17px !important;
        line-height: 1.2 !important;
    }

    .logo img {
        width: 46px !important;
        height: 46px !important;
    }
}

/* ===========================
   IMAGE MODAL / VIEWER
=========================== */

.clickable-image {
    cursor: zoom-in !important;
}

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .88);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 5000;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal img {
    max-width: 95vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.image-modal-close {
    position: fixed;
    top: 22px;
    right: 25px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #FFD60A;
    color: #3C096C;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5100;
}

/* ===========================
   BACK TO TOP BUTTON
=========================== */

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #FFD60A;
    color: #3C096C;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: .3s ease;
    z-index: 3500;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* ===========================
   ABOUT PAGE FB + CONTACT FIX
=========================== */

@media (max-width: 768px) {

    .about-info-section:not(.mission-vision-section) {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        width: 96% !important;
        max-width: 96% !important;
        margin: 0 auto 18px !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    .about-info-section:not(.mission-vision-section) .about-small-card {
        width: 100% !important;
        min-height: 245px !important;
        margin: 0 !important;
        padding: 18px 10px 14px !important;
        border-radius: 20px !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    .about-info-section:not(.mission-vision-section) .about-small-card h2 {
        font-size: 18px !important;
        line-height: 1.15 !important;
        text-align: center !important;
        margin: 0 0 10px !important;
    }

    .about-info-section:not(.mission-vision-section) .about-small-card p {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        text-align: center !important;
        margin: 0 0 12px !important;
    }

    .about-info-section:not(.mission-vision-section) .about-small-card .btn {
        width: 100% !important;
        padding: 10px 6px !important;
        font-size: 11px !important;
        line-height: 1.15 !important;
        margin-top: auto !important;
        border-radius: 9px !important;
        min-width: 0 !important;
    }

    .about-info-section:not(.mission-vision-section) + * {
        margin-top: 8px !important;
    }

    .about-officers-card {
        margin-top: 8px !important;
    }
}

/* ===========================
   FIX CROPPED ACTIVITY IMAGES
   Usapang PolSay + Fact or Fiction
=========================== */

.polsay-image-row img,
.fof-image-row img {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
}

/* Keep desktop/tablet paired but not cropped */
.polsay-image-row,
.fof-image-row {
    align-items: start !important;
}

/* ===========================
   POLSCIBLES UNFILTERED PAGE
=========================== */

.polscibles-card{
    width:85%;
    max-width:1200px;

    margin:20px auto 40px;   /* moved upward */

    padding:30px;

    display:grid;
    grid-template-columns:42% 1fr;
    gap:35px;

    align-items:stretch;

    background:rgba(255,255,255,.13);
    border:1px solid rgba(255,255,255,.28);
    border-radius:30px;

    backdrop-filter:blur(2px);
    -webkit-backdrop-filter:blur(2px);

    box-shadow:0 20px 45px rgba(0,0,0,.22);
}

.polscibles-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

.polscibles-content{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;

    height:100%;
}

.episode-badge {
    display: inline-block;
    background: #FFD60A;
    color: #3C096C;
    font-weight: 800;
    padding: 10px 18px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.polscibles-content h2 {
    color: #3C096C;
    font-size: 34px;
    margin-bottom: 18px;
}

.polscibles-content p {
    color: #111;
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 26px;
}

.polscibles-content .btn{
    margin-top:auto;
    align-self:flex-start;
}

@media (max-width: 768px) {
    .polscibles-card {
        width: 94% !important;
        max-width: 94% !important;
        grid-template-columns: 1fr !important;
        padding: 24px 18px !important;
        gap: 24px !important;
    }

    .polscibles-content {
        text-align: center !important;
    }

    .polscibles-content h2 {
        font-size: 26px !important;
    }

    .polscibles-content p {
        font-size: 16px !important;
        text-align: left !important;
    }

    .polscibles-content .btn {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
    }
}

.extra-video-note {
    margin-top: 22px !important;
    margin-bottom: 12px !important;
    color: #3C096C !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.secondary-video-btn {
    background: #FFD60A !important;
    color: #3C096C !important;
    border: none !important;
}

.secondary-video-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* ===========================
   POLSCIBLES BACK BUTTON
=========================== */

.back-page-wrapper{

    width:85%;
    max-width:1100px;

    margin:60px auto 80px;

    display:flex;
    justify-content:flex-start;

}

.back-page-wrapper .back-button{

    display:inline-block;

    padding:16px 34px;

    background:#FFD60A;
    color:#3C096C;

    border:2px solid #111;
    border-radius:12px;

    text-decoration:none;

    font-size:18px;
    font-weight:bold;

    box-shadow:0 8px 18px rgba(0,0,0,.20);

    transition:.35s;
}

.back-page-wrapper .back-button:hover{

    background:white;

    transform:translateY(-4px);

    box-shadow:0 12px 25px rgba(0,0,0,.25);

}

/* ===========================
   MISSION & VISION MOBILE FIX
=========================== */

@media (max-width: 768px) {

    .mission-vision-section {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 28px !important;
        align-items: center !important;
    }

    .mission-card,
    .vision-card {
        width: 94% !important;
        max-width: 94% !important;
        min-height: auto !important;
        padding: 28px 22px !important;
    }

    .mission-card h2,
    .vision-card h2 {
        font-size: 30px !important;
        text-align: center !important;
        margin-bottom: 22px !important;
    }

    .mission-card ul {
        padding-left: 22px !important;
    }

    .mission-card li,
    .vision-card p {
        font-size: 16px !important;
        line-height: 1.65 !important;
        text-align: left !important;
    }

    .vision-card p {
        padding: 0 !important;
        margin: 0 !important;
    }
}

.anonymous-note{
    background:#fff8d6;
    border-left:6px solid #FFD60A;
    color:#3C096C;
    padding:18px;
    border-radius:12px;
    margin:30px 0;
    font-size:17px;
    font-weight:500;
}

.concern-card .btn{
    margin-top:40px;
}

/* ===========================
   CONCERN PAGE BUTTON SPACING
=========================== */

.concern-card p {
    margin-bottom: 35px !important;
}

.concern-card .btn {
    display: inline-block !important;
    margin-top: 25px !important;
}

/* ===========================
   GLOBAL GLASS NAVBAR
=========================== */

.navbar {
    background: rgba(35, 8, 74, 0.48) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.18) !important;
}

/* Mobile dropdown also glass */
@media (max-width: 900px) {
    .nav-links {
        background: rgba(35, 8, 74, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }
}

/* Homepage Trivia Button Hover */
.hero-buttons .btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

.hero-buttons a.btn,
.hero-buttons a.btn:visited {
    display: inline-block !important;
    transition: transform .3s ease, box-shadow .3s ease, background .3s ease !important;
}

.hero-buttons a.btn:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.25) !important;
}

.hero-buttons a.secondary:hover {
    background: #F1F1F1 !important;
    color: #3C096C !important;
}

.hero-buttons a.btn:link,
.hero-buttons a.btn:visited,
.hero-buttons a.btn:active {
    transform: none !important;
}

.hero-buttons a.btn:hover,
.hero-buttons a.btn:visited:hover {
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.25) !important;
}

.hero-buttons a.secondary:visited:hover {
    background: #F1F1F1 !important;
    color: #3C096C !important;
}

/* ===========================
   RESOURCES HUB PAGE
=========================== */

.resources-hub-section {
    padding: 40px 8% 90px;
}

.resources-intro-card {
    max-width: 1050px;
    margin: 0 auto 45px;
    padding: 45px 55px;
    text-align: center;
    background: rgba(255,255,255,.92);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    border-top: 8px solid #FFD60A;
}

.resources-intro-card h2 {
    color: #3C096C;
    font-size: 40px;
    margin-bottom: 18px;
}

.resources-intro-card p {
    color: #333;
    font-size: 21px;
    line-height: 1.7;
}

.resources-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 35px;
}

.resource-hub-card {
    display: block;
    text-decoration: none;
    color: #222;
    background: rgba(255,255,255,.95);
    padding: 42px 38px;
    border-radius: 28px;
    box-shadow: 0 16px 35px rgba(0,0,0,.16);
    border: 2px solid rgba(255,214,10,.35);
    transition: .35s ease;
}

.resource-hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 45px rgba(60,9,108,.28);
    border-color: #FFD60A;
}

.resource-icon {
    font-size: 48px;
    margin-bottom: 18px;
}

.resource-hub-card h3 {
    color: #3C096C;
    font-size: 28px;
    margin-bottom: 16px;
}

.resource-hub-card p {
    color: #444;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 22px;
}

.resource-hub-card span {
    color: #5A189A;
    font-weight: bold;
    font-size: 18px;
}

/* ===========================
   EXTRA MOBILE POLISH
=========================== */

@media (max-width: 900px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .resources-intro-card {
        width: 94%;
        padding: 35px 24px;
    }

    .resources-intro-card h2 {
        font-size: 32px;
    }

    .resources-intro-card p {
        font-size: 18px;
    }

    .resource-hub-card {
        padding: 34px 24px;
    }

    .resource-hub-card h3 {
        font-size: 24px;
    }

    .page-banner h1,
    .page-header h1 {
        font-size: 38px !important;
        line-height: 1.2 !important;
    }

    .accomplishment-card,
    .about-wide-card,
    .text-left-card {
        width: 94% !important;
        padding: 32px 22px !important;
    }

    .text-left-card p {
        font-size: 18px !important;
        line-height: 1.65 !important;
        text-align: left !important;
    }
}

@media (max-width: 480px) {
    .resources-hub-section {
        padding: 25px 14px 70px;
    }

    .resources-intro-card h2 {
        font-size: 28px;
    }

    .resource-icon {
        font-size: 42px;
    }

    .resource-hub-card h3 {
        font-size: 22px;
    }

    .resource-hub-card p {
        font-size: 16px;
    }

    .btn,
    .back-button,
    .collection-btn {
        width: 100% !important;
        max-width: 320px !important;
        text-align: center !important;
    }
}

/* ===========================
   POLITICAL DICTIONARY + CONSTITUTION HUB
=========================== */

.dictionary-section {
    padding: 40px 8% 90px;
}

.dictionary-search-card {
    max-width: 1050px;
    margin: 0 auto 35px;
    padding: 45px 55px;
    text-align: center;
    background: rgba(255,255,255,.94);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    border-top: 8px solid #FFD60A;
}

.dictionary-search-card h2 {
    color: #3C096C;
    font-size: 38px;
    margin-bottom: 15px;
}

.dictionary-search-card p {
    color: #444;
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.dictionary-search-card input {
    width: 100%;
    max-width: 650px;
    padding: 17px 22px;
    border-radius: 14px;
    border: 2px solid #5A189A;
    font-size: 18px;
    outline: none;
}

.dictionary-search-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    max-width: 980px;
    margin: 0 auto;
}

.dictionary-search-controls #dictionarySearch {
    flex: 1 1 650px;
}

.dictionary-search-actions {
    display: flex;
    flex: 0 0 245px;
    flex-direction: column;
    gap: 10px;
    transform: none;
}

.dictionary-search-actions .dictionary-saved-link {
    width: 100%;
    margin-top: 0;
    box-sizing: border-box;
    text-align: center;
}

.dictionary-search-button {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 28px;
    border: 2px solid #5A189A;
    border-radius: 12px;
    background: #fff;
    color: #3C096C;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.dictionary-search-button:hover,
.dictionary-search-button:focus-visible {
    background: #f7efff;
    transform: translateY(-2px);
    box-shadow: 0 11px 22px rgba(0,0,0,.2);
}

.dictionary-search-button:focus-visible {
    outline: 3px solid rgba(255, 214, 10, .75);
    outline-offset: 3px;
}

.dictionary-categories {
    max-width: 1100px;
    margin: 0 auto 35px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.dict-category {
    padding: 12px 22px;
    border: none;
    border-radius: 30px;
    background: white;
    color: #3C096C;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.12);
    transition: .3s;
}

.dict-category:hover,
.dict-category.active {
    background: #FFD60A;
    transform: translateY(-4px);
}

.dictionary-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 28px;
}

.dictionary-card {
    background: rgba(255,255,255,.96);
    padding: 35px;
    border-radius: 25px;
    box-shadow: 0 16px 35px rgba(0,0,0,.16);
    border: 2px solid rgba(255,214,10,.35);
    transition: .35s;

    display: flex;
    flex-direction: column;
    height: 100%;
}

.dictionary-card:hover {
    transform: translateY(-8px);
    border-color: #FFD60A;
    box-shadow: 0 22px 45px rgba(60,9,108,.25);
}

.dict-badge {
    display: inline-block;
    background: #FFD60A;
    color: #3C096C;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: bold;
    margin-bottom: 18px;
}

.dictionary-card h3 {
    color: #3C096C;
    font-size: 28px;
    margin-bottom: 18px;
}

.dictionary-card p {
    color: #333;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 14px;
}


@media (max-width: 900px) {
    .dictionary-grid {
        grid-template-columns: 1fr;
    }

    .dictionary-search-card {
        width: 94%;
        padding: 35px 24px;
    }

    .dictionary-search-card h2 {
        font-size: 30px;
    }

    .dictionary-search-controls {
        flex-direction: column;
        gap: 14px;
    }

    .dictionary-search-controls #dictionarySearch {
        flex: none;
        max-width: none;
    }

    .dictionary-search-actions {
        width: 100%;
        flex: none;
        flex-direction: row;
        transform: none;
    }

    .dictionary-search-actions > * {
        flex: 1;
    }

    .dictionary-card {
        padding: 30px 24px;
    }
}

/* ===========================
   SAVED DICTIONARY TERMS
=========================== */

.dictionary-saved-link {
    display: inline-block;
    margin-top: 24px;
    background: #FFD60A;
    color: #3C096C;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
    transition: .3s;
}

.dictionary-saved-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,.25);
}

.dict-save-btn {
    margin-top: auto;
    align-self: flex-start;

    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    background: #3C096C;
    color: white;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: .3s;
}

.dict-save-btn:hover {
    transform: translateY(-4px);
    background: #5A189A;
}

.dict-save-btn.saved {
    background: #FFD60A;
    color: #3C096C;
    box-shadow: 0 0 18px rgba(255,214,10,.65);
}

.empty-saved-card {
    text-align: center;
    grid-column: 1 / -1;
}

/* ===========================
   SOURCES & REFERENCES PAGE
=========================== */

.resources-reference-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 15px 32px;
    background: #FFD60A;
    color: #3C096C;
    text-decoration: none;
    font-weight: bold;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(0,0,0,.18);
    transition: .3s ease;
}

.resources-reference-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(60,9,108,.25);
}

.references-section {
    padding: 40px 8% 90px;
}

.references-intro-card {
    max-width: 1100px;
    margin: 0 auto 45px;
    padding: 45px 55px;
    text-align: center;
    background: rgba(255,255,255,.94);
    border-radius: 28px;
    border-top: 8px solid #FFD60A;
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
}

.references-intro-card h2 {
    color: #3C096C;
    font-size: 40px;
    margin-bottom: 18px;
}

.references-intro-card p {
    color: #333;
    font-size: 20px;
    line-height: 1.7;
}

.references-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 32px;
}

.reference-card {
    background: rgba(255,255,255,.96);
    padding: 35px;
    border-radius: 26px;
    border: 2px solid rgba(255,214,10,.38);
    box-shadow: 0 16px 35px rgba(0,0,0,.16);
    transition: .35s ease;
}

.reference-card:hover {
    transform: translateY(-8px);
    border-color: #FFD60A;
    box-shadow: 0 22px 45px rgba(60,9,108,.25);
}

.reference-card h3 {
    color: #3C096C;
    font-size: 27px;
    margin-bottom: 18px;
}

.reference-description{
    margin:18px 0 20px;
    color:#555;
    line-height:1.8;
    font-size:16px;
}

.reference-note{
    margin-top:25px;
    padding:18px 22px;

    background:#FFF8DC;

    border-left:5px solid #FFD60A;

    border-radius:12px;

    line-height:1.8;

    color:#444;

    font-size:16px;
}

.reference-card ul {
    padding-left: 22px;
}

.reference-card li {
    color: #333;
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .references-grid {
        grid-template-columns: 1fr;
    }

    .references-intro-card {
        width: 94%;
        padding: 35px 24px;
    }

    .references-intro-card h2 {
        font-size: 32px;
    }

    .reference-card {
        padding: 30px 24px;
    }
}

/* ===========================
   DICTIONARY ALPHABET
=========================== */

.dictionary-alphabet{

    max-width:1200px;

    margin:35px auto;

    display:flex;

    flex-wrap:wrap;

    justify-content:center;

    gap:10px;

}

.alphabet-btn{

    width:44px;

    height:44px;

    border:none;

    border-radius:12px;

    background:white;

    color:#3C096C;

    font-weight:bold;

    cursor:pointer;

    transition:.25s;

    box-shadow:0 8px 18px rgba(0,0,0,.12);

}

.alphabet-btn:first-child{

    width:70px;

}

.alphabet-btn:hover{

    transform:translateY(-3px);

}

.alphabet-btn.active{

    background:#FFD60A;

    color:#3C096C;

    box-shadow:0 0 18px rgba(255,214,10,.55);

}

/* ===========================
   1987 CONSTITUTION HUB
=========================== */

.constitution-page {
    min-height: 100vh;
    padding: 125px 8% 80px;
    background: transparent;
}

.constitution-hero {
    text-align: center;
    margin-bottom: 28px;
}

.constitution-hero h1 {
    color: #3C096C;
    font-size: 48px;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.constitution-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.constitution-divider span {
    width: 120px;
    height: 2px;
    background: #FFD60A;
}

.constitution-divider b {
    color: #FFD60A;
    font-size: 22px;
}

.constitution-hero p {
    color: #222;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.constitution-tools {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 90px;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto 25px;
}

.constitution-total {
    border: 2px solid rgba(123,44,191,.35);
    color: #3C096C;
    background: rgba(255,255,255,.65);
    padding: 13px 20px;
    border-radius: 50px;
    font-size: 16px;
}

.constitution-search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid rgba(123,44,191,.45);
    background: rgba(255,255,255,.75);
    padding: 13px 20px;
    border-radius: 50px;
    color: #3C096C;
    font-size: 20px;
}

.constitution-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #222;
}

#constitutionContainer.constitution-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.constitution-card {
    position: relative;
    min-height: 215px;
    padding: 20px 22px 18px;
    background: rgba(255,255,255,.92);
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,.13);
    transition: .3s ease;

    display: flex;
    flex-direction: column;
}

.constitution-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(60,9,108,.20);
}

.constitution-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 150px;
    background: #FFD60A;
    color: #3C096C;
    padding: 5px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.constitution-card h3 {
    color: #3C096C;
    font-size: 23px;
    line-height: 1.15;
    margin-bottom: 9px;
    padding-right: 78px;
}

.constitution-card p {
    color: #222;
    font-size: 15.5px;
    line-height: 1.45;
    padding-right: 62px;
    margin-bottom: 20px;
}

.constitution-icon {
    position: absolute;
    top: 18px;
    right: 24px;
    width: 62px;
    height: 62px;
    background: rgba(123,44,191,.11);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.constitution-view-btn {
    width: 100%;
    margin-top: auto;
    padding-top: 13px;
    border: none;
    border-top: 1px solid rgba(123,44,191,.18);
    background: transparent;
    color: #5A189A;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.constitution-view-btn span {
    font-size: 26px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .constitution-tools {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

@media (max-width: 700px) {
    .constitution-page {
        padding: 115px 5% 60px;
    }

    .constitution-hero h1 {
        font-size: 34px;
    }

    #constitutionContainer.constitution-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Back to Resources Button 2
========================= */

.back-container {
    max-width: 1400px;
    margin: 25px auto 15px;
    padding: 0 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #3C096C;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 16px rgba(60, 9, 108, 0.2);
}

.back-btn:hover {
    background: #5A189A;
    transform: translateX(-4px);
}

/* =========================
   Back to Resources Button
========================= */

.back-container {
    max-width: 1400px;
    margin: 30px auto 20px;
    padding: 0 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: #3C096C;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    transition: all .3s ease;
    box-shadow: 0 8px 20px rgba(60, 9, 108, 0.25);
}

.back-btn:hover {
    background: #5A189A;
    transform: translateX(-5px);
}

.back-btn:active {
    transform: translateX(-2px);
}

/* Constitution Hub only */
.constitution-back-btn{
    margin-top: -18px;
    margin-bottom: 18px;
}

/* ===========================
   CONSTITUTION MODAL
=========================== */

.constitution-modal {
    position: fixed;
    inset: 0;
    background: rgba(20, 20, 20, .60);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px;
}

.constitution-modal-box {
    width: 95%;
    max-width: 760px;
    max-height: 88vh;
    overflow-y: auto;
    background: white;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 25px 60px rgba(0,0,0,.35);
    border-top: 8px solid #FFD60A;
    position: relative;
}

.constitution-close-btn {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #3C096C;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.constitution-modal-box h2 {
    color: #3C096C;
    font-size: 34px;
    margin: 12px 0 20px;
}

.constitution-modal-box p {
    color: #222;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.constitution-modal-box h4 {
    color: #3C096C;
    font-size: 22px;
    margin: 24px 0 12px;
}

.constitution-modal-box ul {
    padding-left: 24px;
    font-size: 17px;
    line-height: 1.9;
}

/* Official Preamble */

.constitution-preamble{
    margin-top:15px;
    padding:22px 24px;
    background:#F8F4FF;
    border-left:5px solid #FFD60A;
    border-radius:10px;

    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    font-weight: 400;

    color:#222;
    font-size:17px;
    line-height:1.9;
    text-align:left;

    letter-spacing:0;
    word-spacing:1px;

    white-space:pre-line;
}

/* ===========================
   CONSTITUTION MOBILE FIX
=========================== */

@media (max-width: 700px) {

    .constitution-modal {
        align-items: flex-start;
        padding: 15px;
        overflow-y: auto;
    }

    .constitution-modal-box {
        width: 100%;
        max-width: 100%;
        max-height: none;
        margin-top: 20px;
        padding: 28px 18px;
        border-radius: 18px;
    }

    .constitution-preamble {
        width: 100%;
        padding: 18px 16px;
        font-size: 15px;
        line-height: 1.8;
        text-align: left;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .constitution-modal-box h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .constitution-modal-box p,
    .constitution-modal-box li {
        font-size: 15px;
    }

    .constitution-close-btn {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        font-size: 22px;
    }
}

/* ===========================
   TABLET
=========================== */
@media (min-width: 769px) and (max-width: 1024px) {

    .dictionary-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 24px !important;
    }

}

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

    .dictionary-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .dictionary-card {
        padding: 24px 20px !important;
    }

}

/* ===========================
   Hero Divider
=========================== */

.hero-divider{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:18px;
    margin:22px 0 28px;
}

.hero-divider span{
    width:180px;
    height:3px;
    background:#f4c400;
    border-radius:50px;
}

.hero-divider{
    color:#e97b2c;
    font-size:2rem;
}

@media (max-width: 560px) {
    .dictionary-search-actions {
        flex-direction: column;
    }
}

/* ================================================================
   Auditor profile — integrity ledger design (scoped to this page)
   ================================================================ */
body.auditor-profile-page .auditor-profile {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 132px 0 64px;
}

body.auditor-profile-page .auditor-back-button {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 12px 19px;
    color: #35105f;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 214, 10, .9);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(34, 6, 67, .14);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.auditor-profile-page .auditor-back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(34, 6, 67, .2);
}

body.auditor-profile-page .auditor-profile-card {
    position: relative;
    overflow: hidden;
    color: #fdfaff;
    background:
        radial-gradient(circle at 85% 8%, rgba(255, 214, 10, .18), transparent 30%),
        linear-gradient(145deg, #1c0836 0%, #35105f 48%, #21043f 100%);
    border: 1px solid rgba(255, 226, 85, .54);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(27, 3, 53, .36);
}

body.auditor-profile-page .auditor-profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

body.auditor-profile-page .auditor-hero {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.42fr);
    min-height: 650px;
}

body.auditor-profile-page .auditor-portrait-panel {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #19032e;
}

body.auditor-profile-page .auditor-portrait-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 2, 40, .82), transparent 48%);
    pointer-events: none;
}

body.auditor-profile-page .auditor-image-frame {
    position: absolute;
    z-index: 2;
    inset: 22px;
    border: 1px solid rgba(255, 214, 10, .55);
    border-radius: 22px;
    pointer-events: none;
}

body.auditor-profile-page .auditor-portrait-panel img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 650px;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform .7s ease;
}

body.auditor-profile-page .auditor-profile-card:hover .auditor-portrait-panel img {
    transform: scale(1.018);
}

body.auditor-profile-page .auditor-photo-caption {
    position: absolute;
    z-index: 3;
    left: 42px;
    right: 42px;
    bottom: 38px;
    color: #ffe96b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
    text-align: center;
    text-transform: uppercase;
}

body.auditor-profile-page .auditor-intro {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px 70px;
    background-image:
        linear-gradient(
            90deg,
            rgba(28, 8, 54, .82) 0%,
            rgba(28, 8, 54, .58) 48%,
            rgba(28, 8, 54, .24) 100%
        ),
        url("images/officer-card-bg-optimized.webp?v=2");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}

body.auditor-profile-page .auditor-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

body.auditor-profile-page .auditor-role {
    display: inline-flex;
    width: fit-content;
    padding: 10px 18px;
    color: #250547;
    background: linear-gradient(135deg, #ffe762, #ffd60a);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(255, 214, 10, .18);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.auditor-profile-page .auditor-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    color: #ffd60a;
    border: 1px solid rgba(255, 214, 10, .65);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 900;
}

body.auditor-profile-page .auditor-eyebrow {
    margin: 0 0 10px;
    color: #d8c5e8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

body.auditor-profile-page .auditor-intro h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
}

body.auditor-profile-page .auditor-lead {
    max-width: 720px;
    margin: 24px 0 34px;
    color: #e6dced;
    font-size: 18px;
    line-height: 1.7;
}

body.auditor-profile-page .auditor-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

body.auditor-profile-page .auditor-fact {
    min-width: 0;
    padding: 18px;
    background: rgba(255, 255, 255, .075);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

body.auditor-profile-page .auditor-fact span {
    display: block;
    margin-bottom: 7px;
    color: #d9c8e6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

body.auditor-profile-page .auditor-fact strong {
    display: block;
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
}

body.auditor-profile-page .auditor-motto {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 24px;
    padding: 34px 54px;
    color: #270548;
    background: linear-gradient(110deg, #ffd60a, #fff0a0 58%, #ffd60a);
}

body.auditor-profile-page .auditor-section-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(39, 5, 72, .3);
    border-radius: 50%;
    font-size: 18px;
}

body.auditor-profile-page .auditor-section-label {
    display: block;
    margin-bottom: 8px;
    color: inherit;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.auditor-profile-page .auditor-motto blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

body.auditor-profile-page .auditor-detail-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    padding: 46px 54px 22px;
}

body.auditor-profile-page .auditor-detail-card {
    position: relative;
    min-height: 340px;
    padding: 38px;
    color: #2a0a47;
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(14, 0, 30, .2);
}

body.auditor-profile-page .auditor-detail-card-gold {
    background: linear-gradient(150deg, #fffdf2, #fff4bd);
    border-color: rgba(255, 214, 10, .72);
}

body.auditor-profile-page .auditor-card-index {
    position: absolute;
    top: 26px;
    right: 30px;
    color: rgba(60, 9, 108, .13);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
}

body.auditor-profile-page .auditor-detail-card h2 {
    max-width: 80%;
    margin: 6px 0 24px;
    color: #3c096c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 31px;
    line-height: 1.15;
}

body.auditor-profile-page .auditor-detail-card ul {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.auditor-profile-page .auditor-detail-card li {
    position: relative;
    padding: 0 0 0 25px;
    color: #54435f;
    font-size: 17px;
    line-height: 1.55;
}

body.auditor-profile-page .auditor-detail-card li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 9px;
    height: 9px;
    background: #ffd60a;
    border: 2px solid #3c096c;
    border-radius: 50%;
}

body.auditor-profile-page .auditor-quote {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    margin: 0 54px 54px;
    padding: 36px 40px;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.14);
    border-left: 6px solid #ffd60a;
    border-radius: 20px;
}

body.auditor-profile-page .auditor-quote-mark {
    color: #ffd60a;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 74px;
    line-height: .8;
}

body.auditor-profile-page .auditor-quote blockquote {
    max-width: 920px;
    margin: 5px 0 14px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(22px, 2.4vw, 32px);
    font-style: italic;
    line-height: 1.48;
}

body.auditor-profile-page .auditor-quote cite {
    color: #ffe96b;
    font-size: 14px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .08em;
}

@media (max-width: 940px) {
    body.auditor-profile-page .auditor-profile {
        width: min(100% - 28px, 720px);
        padding: 112px 0 46px;
    }

    body.auditor-profile-page .auditor-hero {
        grid-template-columns: 1fr;
    }

    body.auditor-profile-page .auditor-portrait-panel,
    body.auditor-profile-page .auditor-portrait-panel img {
        min-height: 0;
        height: auto;
    }

    body.auditor-profile-page .auditor-portrait-panel img {
        aspect-ratio: 4 / 5;
    }

    body.auditor-profile-page .auditor-intro {
        padding: 42px 32px 46px;
        text-align: center;
    }

    body.auditor-profile-page .auditor-role-row {
        justify-content: center;
    }

    body.auditor-profile-page .auditor-eyebrow,
    body.auditor-profile-page .auditor-lead {
        margin-left: auto;
        margin-right: auto;
    }

    body.auditor-profile-page .auditor-facts,
    body.auditor-profile-page .auditor-detail-grid {
        grid-template-columns: 1fr;
    }

    body.auditor-profile-page .auditor-detail-grid {
        padding: 30px 26px 18px;
    }

    body.auditor-profile-page .auditor-detail-card {
        min-height: 0;
    }

    body.auditor-profile-page .auditor-quote {
        margin: 0 26px 34px;
    }
}

/* ================================================================
   Clean isolated Auditor layout for every standard officer profile.
   This class intentionally carries no role-specific layout classes.
   ================================================================ */
body.officer-uniform-page:not(.president-profile-page) .profile-container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 132px 0 64px;
    text-align: left;
}

body.officer-uniform-page:not(.president-profile-page) .back-button {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 12px 19px;
    color: #35105f;
    background: rgba(255,255,255,.95);
    border: 1px solid rgba(255,214,10,.9);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(34,6,67,.14);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(330px,.82fr) minmax(520px,1.42fr);
    grid-template-rows: auto auto minmax(270px,1fr) auto auto auto;
    gap: 0 22px;
    overflow: hidden;
    max-width: none;
    padding: 0 0 54px;
    color: #fdfaff;
    background:
        radial-gradient(circle at 85% 8%, rgba(255,214,10,.18), transparent 30%),
        linear-gradient(145deg,#1c0836 0%,#35105f 48%,#21043f 100%);
    border: 1px solid rgba(255,226,85,.54);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(27,3,53,.36);
    text-align: left;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    padding: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size: 42px 42px;
    border: 0;
    mask-image: linear-gradient(to bottom,#000,transparent 70%);
}

body.officer-uniform-page:not(.president-profile-page) .profile-card::after {
    display: none;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > img {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    height: 650px;
    min-height: 650px;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    transform: none;
    clip-path: none;
    filter: none;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > h1 {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: stretch;
    margin: 0;
    padding: 82px 54px 8px 32px;
    color: #fff;
    background: none;
    border: 0;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(48px,5vw,80px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.035em;
    text-align: left;
    text-shadow: none;
    text-transform: none;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > h2 {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    width: fit-content;
    margin: 14px 0 26px 32px;
    padding: 10px 18px;
    color: #250547;
    background: linear-gradient(135deg,#ffe762,#ffd60a);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(255,214,10,.18);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.officer-uniform-page:not(.president-profile-page) .info-grid {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin: 0;
    padding: 0 54px 48px 32px;
}

body.officer-uniform-page:not(.president-profile-page) .info-box {
    min-height: 110px;
    padding: 18px;
    color: #fff;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    text-align: left;
}

body.officer-uniform-page:not(.president-profile-page) .info-box h3 {
    margin: 0 0 9px;
    color: #d9c8e6;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
}

body.officer-uniform-page:not(.president-profile-page) .info-box p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section {
    position: relative;
    z-index: 1;
    transform: none;
    clip-path: none;
    text-align: left;
}

/* Motto */
body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(2) {
    grid-column: 1 / -1;
    grid-row: 4;
    align-self: stretch;
    margin: 0;
    padding: 34px 54px;
    color: #270548;
    background: linear-gradient(110deg,#ffd60a,#fff0a0 58%,#ffd60a);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(2) h3 {
    margin: 0 0 8px;
    color: #270548;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(2) p {
    margin: 0;
    color: #270548;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(25px,3vw,38px);
    font-weight: 700;
    line-height: 1.2;
}

/* Achievements and contributions */
body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4),
body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5) {
    grid-row: 5;
    min-height: 330px;
    margin-top: 46px;
    padding: 38px;
    color: #2a0a47;
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(14,0,30,.2);
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4) {
    grid-column: 1;
    margin-left: 54px;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5) {
    grid-column: 2;
    margin-right: 54px;
    background: linear-gradient(150deg,#fffdf2,#fff4bd);
    border-color: rgba(255,214,10,.72);
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4) h3,
body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5) h3 {
    margin: 0 0 24px;
    color: #3c096c;
    font-family: Georgia,"Times New Roman",serif;
    font-size: 29px;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4) li,
body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5) li {
    color: #54435f;
    font-size: 17px;
    line-height: 1.55;
}

/* Political quote */
body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(3) {
    grid-column: 1 / -1;
    grid-row: 6;
    margin: 22px 54px 0;
    padding: 36px 40px;
    color: #fff;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.14);
    border-left: 6px solid #ffd60a;
    border-radius: 20px;
    box-shadow: none;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(3) h3 {
    margin: 0 0 12px;
    color: #ffe96b;
    font-family: Arial,Helvetica,sans-serif;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(3) p {
    margin: 0;
    color: #fff;
    font-family: Georgia,"Times New Roman",serif;
    font-size: clamp(21px,2.3vw,30px);
    font-style: italic;
    line-height: 1.5;
}

@media (max-width: 940px) {
    body.officer-uniform-page:not(.president-profile-page) .profile-container {
        width: min(100% - 28px,720px);
        padding: 112px 0 46px;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        padding-bottom: 28px;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > img,
    body.officer-uniform-page:not(.president-profile-page) .profile-card > h1,
    body.officer-uniform-page:not(.president-profile-page) .profile-card > h2,
    body.officer-uniform-page:not(.president-profile-page) .info-grid,
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(2),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(3),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5) {
        grid-column: 1;
        grid-row: auto;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > h1 {
        padding: 42px 28px 8px;
        text-align: center;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > h2 {
        justify-self: center;
        margin: 14px 0 28px;
    }

    body.officer-uniform-page:not(.president-profile-page) .info-grid {
        grid-template-columns: 1fr;
        padding: 0 28px 38px;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(3) {
        min-height: 0;
        margin: 22px 22px 0;
    }
}

@media (max-width: 560px) {
    body.officer-uniform-page:not(.president-profile-page) .profile-container {
        width: calc(100% - 20px);
        padding-top: 96px;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card {
        border-radius: 22px;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > h1 {
        font-size: 38px;
    }

    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(2),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(3),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(4),
    body.officer-uniform-page:not(.president-profile-page) .profile-card > div.section:nth-of-type(5) {
        padding: 26px 22px;
    }
}

@media (max-width: 560px) {
    body.auditor-profile-page .auditor-profile {
        width: calc(100% - 20px);
        padding-top: 96px;
    }

    body.auditor-profile-page .auditor-profile-card {
        border-radius: 22px;
    }

    body.auditor-profile-page .auditor-image-frame {
        inset: 14px;
    }

    body.auditor-profile-page .auditor-photo-caption {
        left: 22px;
        right: 22px;
        bottom: 25px;
        font-size: 9px;
    }

    body.auditor-profile-page .auditor-intro {
        padding: 34px 20px 38px;
    }

    body.auditor-profile-page .auditor-intro h1 {
        font-size: 39px;
    }

    body.auditor-profile-page .auditor-role-row {
        gap: 10px;
    }

    body.auditor-profile-page .auditor-role {
        padding: 9px 14px;
        font-size: 10px;
    }

    body.auditor-profile-page .auditor-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    body.auditor-profile-page .auditor-facts {
        gap: 9px;
    }

    body.auditor-profile-page .auditor-fact {
        padding: 15px;
    }

    body.auditor-profile-page .auditor-motto {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 24px;
        text-align: center;
    }

    body.auditor-profile-page .auditor-section-icon {
        margin: 0 auto;
    }

    body.auditor-profile-page .auditor-detail-grid {
        padding: 22px 14px 14px;
        gap: 14px;
    }

    body.auditor-profile-page .auditor-detail-card {
        padding: 30px 24px;
    }

    body.auditor-profile-page .auditor-detail-card h2 {
        font-size: 27px;
    }

    body.auditor-profile-page .auditor-quote {
        grid-template-columns: 1fr;
        gap: 8px;
        margin: 0 14px 22px;
        padding: 28px 24px;
        text-align: left;
    }

    body.auditor-profile-page .auditor-quote-mark {
        font-size: 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.auditor-profile-page .auditor-profile-card,
    body.auditor-profile-page .auditor-portrait-panel img,
    body.auditor-profile-page .auditor-back-button {
        animation: none;
        transition: none;
    }
}

.divider-leaf{
    width:78px;
    height:46px;
    display:block;
    object-fit:contain;
    flex:0 0 auto;
    filter:drop-shadow(0 3px 8px rgba(60,9,108,.22));
}

.constitution-divider .divider-leaf{
    width:58px;
    height:34px;
}

/* Subtitle */

.page-subtitle{
    text-align:center;
    max-width:900px;
    margin:0 auto 12px;
    font-size:1.45rem;
    line-height:1.6;
    color:#3f3f3f;
}

/* ===========================
   POLITICAL DICTIONARY HERO FIX
=========================== */

.dictionary-hero-banner{
    padding-bottom: 25px !important;
}

.dictionary-hero-banner + .dictionary-section{
    padding-top: 0 !important;
}

/* ===========================
   STANDARD HERO FIX
=========================== */

.standard-hero-banner{
    padding-bottom:25px !important;
}

.standard-hero-banner + section{
    padding-top:0 !important;
}

@media (max-width: 768px){

    .hero{
        background:
        linear-gradient(
        rgba(60,9,108,.20),
        rgba(20,20,20,.20)),
        url("images/hero2.jpg");

        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

.overlay h1{
    display: block;
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.overlay p{
    display: block;
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 25px;
}

.overlay{
    width: 100%;
    max-width: 100%;
    position: absolute;
    left: 0;
    bottom: -100px;   /* Move everything lower */
    padding: 0 20px;
}

.hero-buttons{
    display: flex;
}

}

@media (max-width: 768px){

    .hero{
        min-height: 100vh;
        height: auto;
        padding: 95px 18px 45px;

        background:
        linear-gradient(rgba(20,20,20,.15), rgba(20,20,20,.20)),
        url("images/hero2.jpg");

        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;

        display: flex;
        align-items: flex-start;
        justify-content: center;
    }

    .overlay{
        width: 100%;
        max-width: 430px;
        position: static;
        margin-top: 270px;
        padding: 0;
        text-align: center;
    }

    .overlay h1{
        display: block;
        color: white;
        font-size: 34px;
        line-height: 1.18;
        margin-bottom: 16px;
        text-shadow: 0 4px 14px rgba(0,0,0,.85);
    }

    .overlay p{
        display: block;
        color: white;
        font-size: 17px;
        line-height: 1.5;
        margin-bottom: 26px;
        text-shadow: 0 3px 12px rgba(0,0,0,.85);
    }

    .hero-buttons{
        flex-direction: column;
        gap: 18px;
        width: 100%;
    }

    .hero-buttons .btn{
        width: 100%;
        min-width: 0;
        padding: 18px 20px;
        font-size: 19px;
        border-radius: 12px;
    }
}
/* ===========================
   RECREATED HOME HERO
=========================== */

body.home-page {
    min-height: 100vh;
    background: #f6f2f8;
    color: #ffffff;
    overflow-x: hidden;
}

.home-page .back-to-top {
    display: none !important;
}

.home-shell {
    min-height: 100vh;
    background: #f6f2f8;
}

.home-hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 76% 43%, rgba(255, 241, 190, .58) 0 7%, rgba(124, 80, 177, .58) 18%, rgba(71, 28, 116, .28) 38%, transparent 58%),
        radial-gradient(circle at 82% 18%, rgba(126, 70, 186, .82), transparent 32%),
        linear-gradient(112deg, #13092d 0%, #231044 42%, #4a2672 70%, #291247 100%);
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .19;
    background-image: url("images/background1.png");
    background-size: cover;
    background-position: center;
    mix-blend-mode: screen;
    filter: saturate(.8) contrast(1.1);
}

.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 4, 31, .72), rgba(11, 4, 31, .2) 54%, rgba(18, 7, 40, .05)),
        radial-gradient(circle at 64% 92%, rgba(255, 195, 46, .16), transparent 26%);
}

.home-page .navbar.home-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 22px 6.8%;
    background: transparent !important;
    box-shadow: none;
    border: none;
    z-index: 10;
}

.home-page .logo.home-logo {
    color: #ffffff;
    text-decoration: none;
    gap: 16px;
    font-size: 15px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.home-page .logo.home-logo img {
    width: 66px;
    height: 66px;
    border-radius: 0;
    object-fit: cover;
    clip-path: inset(14% 14% 14% 14%);
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .34));
}

.home-page .logo.home-logo span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.home-page .logo.home-logo strong {
    font-size: 19px;
    line-height: 1;
}

.home-page .logo.home-logo em {
    color: #f2c43a;
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 3px;
}

.home-page .nav-links {
    align-items: center;
    gap: 38px;
}

.home-page .nav-links li {
    margin-left: 0;
}

.home-page .nav-links a {
    color: rgba(255, 255, 255, .78);
    font-size: 16px;
    font-weight: 700;
}

.home-page .nav-links a:hover,
.home-page .nav-links a.active-page {
    color: #f6cb38;
}

.home-page .nav-links a.active-page::after,
.home-page .nav-links a:hover::after {
    width: 100%;
}

.home-page .nav-links a::after {
    height: 3px;
    bottom: -12px;
    background: #f6cb38;
    border-radius: 999px;
}

.home-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(460px, 1.05fr);
    align-items: center;
    min-height: calc(86vh - 110px);
    padding: 16px 7% 130px;
}

.home-copy {
    max-width: 660px;
    padding-top: 18px;
}

.home-kicker {
    color: #f1c942;
    font-size: 27px;
    font-weight: 800;
    margin-bottom: 12px;
}

.home-copy h1 {
    max-width: 660px;
    color: #ffffff;
    font-size: 57px;
    line-height: 1.15;
    font-weight: 900;
    text-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

.gold-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px 0 28px;
    color: #f0c53f;
}

.gold-divider span {
    width: 190px;
    height: 3px;
    background: linear-gradient(90deg, #f6cf42, #b98c26);
    border-radius: 999px;
}

.gold-divider b {
    font-size: 21px;
    letter-spacing: -3px;
    transform: rotate(25deg);
}

.home-divider-laurel {
    width: 74px;
    height: 44px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 3px 8px rgba(255, 214, 10, .28));
}

.home-subtitle {
    max-width: 475px;
    color: rgba(255, 255, 255, .82);
    font-size: 23px;
    line-height: 1.55;
    margin-bottom: 32px;
}

.home-page .hero-buttons {
    justify-content: flex-start;
    gap: 16px;
    margin-top: 0;
}

.home-page .hero-buttons .btn {
    min-width: 0;
    min-height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 18px 29px;
    border-radius: 9px;
    font-size: 16px;
    box-shadow: 0 15px 28px rgba(0, 0, 0, .22);
}

.home-page .primary-btn {
    background: linear-gradient(180deg, #ffdc48, #f6bd21);
    color: #291247;
}

.home-page .secondary {
    background: rgba(255, 255, 255, .92);
    color: #322044;
}

.hero-art {
    position: relative;
    height: 620px;
    min-width: 500px;
}

.gold-orbit,
.violet-orbit {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.gold-orbit {
    width: 720px;
    height: 720px;
    right: -95px;
    top: -28px;
    border: 34px solid rgba(245, 200, 71, .88);
    clip-path: polygon(21% 0, 100% 0, 100% 23%, 38% 100%, 0 100%, 0 79%);
    transform: rotate(15deg);
    box-shadow: inset 0 0 45px rgba(255, 255, 255, .18), 0 0 45px rgba(255, 203, 75, .12);
}

.violet-orbit {
    width: 780px;
    height: 780px;
    right: -175px;
    top: 20px;
    border: 58px solid rgba(113, 57, 171, .72);
    clip-path: polygon(50% 0, 100% 14%, 100% 100%, 66% 100%, 20% 51%);
    transform: rotate(12deg);
}

.art-medallion {
    position: absolute;
    right: 185px;
    top: 185px;
    width: 245px;
    height: 245px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff2db 0 40%, #d3b8df 74%, rgba(115, 65, 167, .72));
    box-shadow: 0 0 55px rgba(255, 236, 204, .74);
}

.scale-icon {
    position: absolute;
    inset: 48px 48px 44px;
    color: #9a6722;
}

.scale-beam,
.scale-post,
.scale-base,
.scale-post::before,
.scale-post::after {
    position: absolute;
    background: linear-gradient(90deg, #8a591b, #d6a842, #7f5016);
}

.scale-beam {
    left: 20px;
    right: 20px;
    top: 54px;
    height: 6px;
    border-radius: 999px;
}

.scale-post {
    left: 50%;
    top: 21px;
    width: 8px;
    height: 112px;
    transform: translateX(-50%);
    border-radius: 999px;
}

.scale-post::before {
    content: "";
    left: -13px;
    top: -10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.scale-post::after {
    content: "";
    left: -28px;
    bottom: -4px;
    width: 64px;
    height: 12px;
    border-radius: 999px;
}

.scale-base {
    left: 42px;
    right: 42px;
    bottom: 5px;
    height: 9px;
    border-radius: 999px;
}

.pan {
    position: absolute;
    top: 86px;
    width: 55px;
    height: 25px;
    border: 4px solid #9c641c;
    border-top: none;
    border-radius: 0 0 50px 50px;
}

.pan::before,
.pan::after {
    content: "";
    position: absolute;
    top: -34px;
    width: 3px;
    height: 38px;
    background: #9c641c;
}

.pan-left { left: 4px; }
.pan-right { right: 4px; }
.pan-left::before { left: 10px; transform: rotate(20deg); }
.pan-left::after { right: 10px; transform: rotate(-20deg); }
.pan-right::before { left: 10px; transform: rotate(20deg); }
.pan-right::after { right: 10px; transform: rotate(-20deg); }

.column,
.dome-building,
.podium,
.books {
    position: absolute;
    filter: drop-shadow(0 18px 20px rgba(21, 8, 40, .3));
}

.column-left {
    left: 28px;
    bottom: 120px;
    width: 86px;
    height: 208px;
    opacity: .78;
    background:
        linear-gradient(90deg, transparent 0 16%, rgba(255,255,255,.45) 16% 24%, transparent 24% 38%, rgba(255,255,255,.45) 38% 46%, transparent 46% 60%, rgba(255,255,255,.45) 60% 68%, transparent 68%),
        linear-gradient(180deg, #bba1cc, #e5d8e9 50%, #8866a5);
    clip-path: polygon(16% 8%, 84% 8%, 84% 100%, 16% 100%);
}

.column-left::before,
.column-left::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    height: 18px;
    background: #d8c5df;
    border-radius: 3px;
}

.column-left::before { top: 0; }
.column-left::after { bottom: 0; }

.dome-building {
    right: 40px;
    bottom: 158px;
    width: 160px;
    height: 260px;
    opacity: .86;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.42) 18% 24%, transparent 24% 38%, rgba(255,255,255,.42) 38% 45%, transparent 45% 59%, rgba(255,255,255,.42) 59% 66%, transparent 66%),
        linear-gradient(180deg, #eadff0, #a789bc);
    clip-path: polygon(6% 43%, 20% 43%, 20% 20%, 35% 8%, 50% 0, 65% 8%, 80% 20%, 80% 43%, 94% 43%, 94% 100%, 6% 100%);
}

.podium {
    right: 145px;
    bottom: 70px;
    width: 108px;
    height: 155px;
    background: linear-gradient(180deg, #785f76, #302040);
    clip-path: polygon(10% 0, 90% 0, 78% 100%, 22% 100%);
}

.podium::before {
    content: "";
    position: absolute;
    left: -14px;
    right: -14px;
    top: 0;
    height: 18px;
    background: #d5b28c;
    border-radius: 4px;
}

.podium img {
    position: absolute;
    width: 48px;
    height: 48px;
    left: 50%;
    top: 48px;
    transform: translateX(-50%);
    border-radius: 50%;
    object-fit: cover;
}

.books {
    right: 268px;
    bottom: 58px;
    width: 148px;
    height: 58px;
    background:
        linear-gradient(8deg, #f4ebd7 0 33%, transparent 34%),
        linear-gradient(-8deg, transparent 0 39%, #d1a978 40% 61%, transparent 62%),
        linear-gradient(0deg, #8b5a45 0 20%, #eadfca 21% 56%, #755041 57% 80%, transparent 81%);
    border-radius: 4px;
}

.home-map {
    position: absolute;
    left: 12%;
    top: 132px;
    width: 470px;
    height: 150px;
    opacity: .34;
    background:
        radial-gradient(circle at 18% 48%, rgba(244, 201, 70, .75) 0 4px, transparent 5px),
        radial-gradient(circle at 45% 33%, rgba(244, 201, 70, .75) 0 5px, transparent 6px),
        radial-gradient(circle at 62% 58%, rgba(244, 201, 70, .75) 0 4px, transparent 5px),
        radial-gradient(circle at 84% 42%, rgba(244, 201, 70, .75) 0 5px, transparent 6px);
}

.home-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.38) 1.4px, transparent 1.7px);
    background-size: 10px 9px;
    mask-image: radial-gradient(ellipse at center, #000 0 48%, transparent 72%);
}

.home-map span {
    position: absolute;
    height: 1px;
    background: rgba(244, 201, 70, .42);
    transform-origin: left center;
}

.home-map span:nth-child(1) { width: 120px; left: 82px; top: 72px; transform: rotate(-14deg); }
.home-map span:nth-child(2) { width: 90px; left: 202px; top: 47px; transform: rotate(27deg); }
.home-map span:nth-child(3) { width: 108px; left: 292px; top: 92px; transform: rotate(-18deg); }
.home-map span:nth-child(4) { width: 72px; left: 55px; top: 82px; transform: rotate(20deg); }

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 176px;
    z-index: 4;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-wave path {
    fill: #f6f2f8;
}

.home-feature-band {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    max-width: 1240px;
    margin: -62px auto 0;
    padding: 28px 18px 38px;
    color: #1f1730;
}

.home-feature {
    display: grid;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto;
    column-gap: 18px;
    align-items: center;
    padding: 20px 22px;
    color: #1f1730;
    text-decoration: none;
    border-right: 1px solid rgba(70, 55, 96, .12);
}

.home-feature:last-child {
    border-right: none;
}

.feature-icon {
    grid-row: 1 / span 2;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2a165c;
    color: #ffffff;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(42, 22, 92, .2);
}

.home-feature strong {
    color: #25183d;
    font-size: 17px;
    margin-bottom: 10px;
}

.home-feature small {
    color: #4e465e;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1120px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .hero-art {
        position: absolute;
        right: -140px;
        bottom: 80px;
        opacity: .45;
        transform: scale(.85);
        transform-origin: right bottom;
    }

    .home-copy {
        max-width: 720px;
    }

    .home-feature-band {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -48px;
    }

    .home-feature:nth-child(2) {
        border-right: none;
    }
}

@media (max-width: 900px) {
    .home-page .navbar.home-navbar {
        padding: 16px 20px;
    }

    .home-page .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,.22);
        border-radius: 10px;
        background: rgba(255,255,255,.12);
    }

    .home-page .mobile-menu-btn span {
        width: 21px;
        height: 2px;
        background: #ffffff;
        border-radius: 999px;
    }

    .home-page .nav-links {
        position: absolute;
        top: 82px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 18px;
        background: rgba(24, 10, 51, .94);
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 14px;
        box-shadow: 0 18px 38px rgba(0,0,0,.28);
    }

    .home-page .nav-links.active {
        display: flex;
    }

    .home-page .nav-links a {
        display: block;
        padding: 12px 4px;
    }
}

@media (max-width: 720px) {
    .home-hero {
        min-height: 100vh;
    }

    .home-hero-inner {
        min-height: auto;
        padding: 38px 22px 150px;
    }

    .home-page .logo.home-logo img {
        width: 50px;
        height: 50px;
    }

    .home-page .logo.home-logo strong {
        font-size: 14px;
    }

    .home-page .logo.home-logo em {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .home-kicker {
        font-size: 22px;
    }

    .home-copy h1 {
        font-size: 42px;
    }

    .home-subtitle {
        font-size: 18px;
    }

    .gold-divider span {
        width: 112px;
    }

    .home-page .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .hero-buttons .btn {
        width: 100%;
    }

    .hero-art {
        right: -250px;
        bottom: 80px;
        opacity: .28;
        transform: scale(.68);
    }

    .home-map {
        left: -50px;
        top: 170px;
        opacity: .18;
    }

    .home-feature-band {
        grid-template-columns: 1fr;
        margin-top: -46px;
        padding: 18px 20px 34px;
    }

    .home-feature {
        border-right: none;
        border-bottom: 1px solid rgba(70, 55, 96, .12);
        padding: 18px 4px;
    }

    .home-feature:last-child {
        border-bottom: none;
    }
}

/* Home hero second-pass sizing refinements */
.home-page .navbar.home-navbar {
    padding-top: 18px;
    padding-bottom: 16px;
}

.home-hero {
    min-height: 760px;
}

.home-hero-inner {
    grid-template-columns: minmax(560px, 1fr) minmax(420px, .9fr);
    min-height: 610px;
    padding-top: 0;
    padding-bottom: 94px;
}

.home-copy h1 {
    font-size: 52px;
    max-width: 620px;
}

.home-subtitle {
    font-size: 21px;
    margin-bottom: 28px;
}

.gold-divider {
    margin: 24px 0 24px;
}

.home-page .hero-buttons {
    flex-wrap: nowrap;
    gap: 14px;
}

.home-page .hero-buttons .btn {
    min-height: 58px;
    padding: 16px 24px;
    font-size: 15px;
    white-space: nowrap;
}

.hero-art {
    height: 535px;
    min-width: 420px;
    transform: translateX(10px) scale(.94);
    transform-origin: center right;
}

.hero-wave {
    height: 150px;
}

.home-feature-band {
    margin-top: -52px;
}

@media (max-width: 1120px) {
    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-page .hero-buttons {
        flex-wrap: wrap;
    }
}

/* Home hero final viewport balance */
.home-hero {
    min-height: 710px;
}

.home-hero-inner {
    min-height: 560px;
    padding-bottom: 76px;
}

.home-feature-band {
    margin-top: -58px;
}

@media (max-width: 720px) {
    .home-hero {
        min-height: 100vh;
    }

    .home-hero-inner {
        padding-bottom: 150px;
    }
}

/* Home hero reference-match pass */
body.home-page {
    background: #f7f3f8 !important;
}

.home-page .navbar.home-navbar {
    min-height: 96px;
    padding: 16px 4.2% 14px;
}

.home-page .logo.home-logo img {
    width: 58px;
    height: 58px;
}

.home-page .logo.home-logo strong {
    font-size: 18px;
}

.home-page .logo.home-logo em {
    font-size: 12px;
    letter-spacing: 3px;
}

.home-page .nav-links {
    gap: 34px;
}

.home-page .nav-links a {
    font-size: 14px;
}

.home-hero {
    min-height: 740px;
}

.home-hero-inner {
    grid-template-columns: minmax(470px, 560px) minmax(430px, 1fr);
    min-height: 590px;
    padding: 12px 4.3% 112px;
}

.home-copy {
    max-width: 560px;
}

.home-kicker {
    font-size: 24px;
    margin-bottom: 12px;
}

.home-copy h1 {
    max-width: 520px;
    font-size: 46px;
    line-height: 1.18;
}

.gold-divider {
    gap: 18px;
    margin: 22px 0 24px;
}

.gold-divider span {
    width: 158px;
}

.home-subtitle {
    max-width: 430px;
    font-size: 18px;
    line-height: 1.58;
    margin-bottom: 28px;
}

.home-page .hero-buttons {
    gap: 14px;
}

.home-page .hero-buttons .btn {
    min-height: 52px;
    padding: 14px 22px;
    font-size: 14px;
    border-radius: 8px;
}

.hero-art {
    height: 505px;
    min-width: 430px;
    transform: translateX(18px) scale(.86);
}

.gold-orbit {
    width: 690px;
    height: 690px;
    right: -108px;
    top: -70px;
    border-width: 28px;
}

.violet-orbit {
    width: 720px;
    height: 720px;
    right: -165px;
    top: -18px;
    border-width: 48px;
}

.art-medallion {
    right: 188px;
    top: 176px;
    width: 226px;
    height: 226px;
}

.column-left {
    left: 60px;
    bottom: 94px;
    width: 74px;
    height: 188px;
}

.dome-building {
    right: 62px;
    bottom: 138px;
    width: 150px;
    height: 238px;
}

.podium {
    right: 158px;
    bottom: 58px;
    width: 98px;
    height: 142px;
}

.books {
    right: 276px;
    bottom: 52px;
    width: 138px;
}

.home-map {
    left: 8%;
    top: 145px;
    transform: scale(.86);
    transform-origin: left top;
}

.hero-wave {
    height: 140px;
}

.home-feature-band {
    max-width: 1120px;
    margin-top: -54px;
    padding-top: 20px;
}

.home-feature {
    grid-template-columns: 50px 1fr;
    column-gap: 16px;
    padding: 16px 20px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.home-feature strong {
    font-size: 15px;
}

.home-feature small {
    font-size: 13px;
}

@media (min-width: 1500px) {
    .home-hero {
        min-height: 760px;
    }

    .home-hero-inner {
        max-width: 1220px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }

    .home-page .navbar.home-navbar {
        max-width: 1220px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Home hero: use the provided artwork as the real background */
.home-hero {
    min-height: 760px;
    background:
        linear-gradient(90deg, rgba(13, 5, 36, .76) 0%, rgba(13, 5, 36, .54) 36%, rgba(13, 5, 36, .08) 68%),
        url("images/home-portal-bg-optimized.webp") center / cover no-repeat !important;
}

.home-hero::before,
.home-hero::after,
.home-map,
.hero-art {
    display: none !important;
}

.home-page .navbar.home-navbar {
    max-width: none;
    min-height: 92px;
    padding: 16px 4.3% 12px;
    background: rgba(12, 5, 31, .18) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.home-hero-inner {
    display: flex;
    align-items: center;
    min-height: 570px;
    padding: 18px 5.1% 112px;
}

.home-copy {
    max-width: 560px;
}

.home-kicker {
    font-size: 24px;
}

.home-copy h1 {
    max-width: 540px;
    font-size: 48px;
    line-height: 1.14;
}

.home-subtitle {
    max-width: 440px;
    color: rgba(255, 255, 255, .86);
    font-size: 18px;
}

.gold-divider span {
    width: 158px;
}

.home-page .hero-buttons .btn {
    min-width: 0;
    min-height: 52px;
    padding: 14px 24px;
}

.hero-wave {
    height: 150px;
}

.home-feature-band {
    max-width: 1180px;
    margin-top: -58px;
}

@media (min-width: 1500px) {
    .home-hero {
        min-height: 770px;
    }

    .home-hero-inner {
        max-width: none;
        padding-left: 5.1%;
        padding-right: 5.1%;
    }

    .home-page .navbar.home-navbar {
        max-width: none;
        padding-left: 4.3%;
        padding-right: 4.3%;
    }
}

@media (max-width: 900px) {
    .home-hero {
        background:
            linear-gradient(90deg, rgba(13, 5, 36, .82) 0%, rgba(13, 5, 36, .58) 58%, rgba(13, 5, 36, .18) 100%),
            url("images/home-portal-bg-optimized.webp") 62% center / cover no-repeat !important;
    }
}

/* Mobile home: keep only the hero, no white curve or feature list */
@media (max-width: 720px) {
    .home-page .hero-wave,
    .home-page .home-feature-band {
        display: none !important;
    }

    .home-page .home-hero {
        min-height: 100vh !important;
        padding-bottom: 0 !important;
    }

    .home-page .home-hero-inner {
        padding-bottom: 42px !important;
    }

    .home-page .home-shell {
        min-height: 100vh;
        background: #10062c;
    }
}

.home-feature-title {
    display: none;
}

.home-feature-divider {
    display: none;
}

/* Homepage mobile layout based on the supplied mockup */
@media (max-width: 720px) {
    body.home-page {
        background: #10062c !important;
    }

    .home-page .home-hero {
        min-height: 100vh !important;
        background:
            linear-gradient(180deg, rgba(10, 4, 32, .38) 0%, rgba(10, 4, 32, .18) 42%, rgba(10, 4, 32, .08) 100%),
            url("images/home-mobile-bg-optimized.webp?v=3") center top / cover no-repeat !important;
        overflow: hidden;
    }

    .home-page .navbar.home-navbar {
        min-height: 78px !important;
        padding: 18px 26px 10px !important;
        background: transparent !important;
        align-items: flex-start;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .home-page .logo.home-logo {
        min-width: 0;
        max-width: calc(100% - 48px);
        gap: 10px;
    }

    .home-page .logo.home-logo img {
        width: 48px !important;
        height: 48px !important;
        border-radius: 0 !important;
        box-shadow: none;
        background: transparent;
    }

    .home-page .logo.home-logo strong {
        font-size: 14px !important;
        line-height: 1.05;
        max-width: 190px;
    }

    .home-page .logo.home-logo em {
        font-size: 10px !important;
        letter-spacing: 2px;
    }

    .home-page .mobile-menu-btn {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px !important;
        height: 34px !important;
        margin-top: 7px;
        margin-left: auto;
        border: none !important;
        background: transparent !important;
    }

    .home-page .mobile-menu-btn span {
        width: 22px !important;
        height: 3px !important;
        margin: 3px auto !important;
    }

    .home-page .nav-links {
        top: 76px;
        left: 24px;
        right: 24px;
        background: rgba(14, 6, 40, .94);
    }

    .home-page .home-hero-inner {
        display: block;
        min-height: auto;
        padding: 35px 29px 36px !important;
    }

    .home-page .home-copy {
        max-width: 100%;
        padding-top: 0;
    }

    .home-page .home-kicker {
        font-size: 21px;
        line-height: 1.2;
        margin-bottom: 7px;
    }

    .home-page .home-copy h1 {
        max-width: 320px;
        font-size: 35px;
        line-height: 1.18;
        letter-spacing: 0;
    }

    .home-page .gold-divider {
        gap: 13px;
        margin: 18px 0 18px;
    }

    .home-page .gold-divider span {
        width: 111px;
        height: 2px;
    }

    .home-page .home-divider-laurel {
        width: 52px;
        height: 32px;
    }

    .home-page .home-subtitle {
        max-width: 305px;
        font-size: 15px;
        line-height: 1.55;
        margin-bottom: 23px;
    }

    .home-page .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 305px;
    }

    .home-page .hero-buttons .btn {
        width: 100% !important;
        min-height: 44px;
        padding: 12px 18px;
        border-radius: 8px;
        font-size: 14px;
        box-shadow: 0 10px 18px rgba(0, 0, 0, .24);
    }

    .home-page .hero-buttons .primary-btn {
        justify-content: center;
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-page .hero-buttons .secondary {
        color: #2d1b40;
        background: rgba(255, 255, 255, .94);
    }
}

@media (max-width: 390px) {
    .home-page .home-hero-inner {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .home-page .home-copy h1 {
        font-size: 33px;
    }

    .home-page .hero-buttons,
    .home-page .home-subtitle {
        max-width: 300px;
    }
}

/* Home nav closer to the reference image */
.home-page .navbar.home-navbar {
    min-height: 82px !important;
    padding: 14px 4.2% 10px !important;
    background: rgba(13, 5, 34, .06) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    gap: 28px;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.home-page .logo.home-logo {
    gap: 12px;
    flex: 0 0 auto;
    min-width: 330px;
}

.home-page .logo.home-logo img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    clip-path: none !important;
    object-fit: cover;
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

.home-page .logo.home-logo strong {
    font-size: 15px !important;
    line-height: 1.05;
}

.home-page .logo.home-logo em {
    font-size: 10px !important;
    letter-spacing: 2.6px;
}

.home-page .nav-links {
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: clamp(18px, 2.3vw, 32px) !important;
    min-width: 0;
}

.home-page .nav-links a {
    font-size: 13px !important;
    font-weight: 700;
    white-space: nowrap;
}

.home-page .nav-links a::after {
    bottom: -10px;
    height: 2px;
}

.home-hero-inner {
    min-height: 552px;
    padding-top: 8px;
}

/* Desktop homepage spacing after navbar was made non-sticky */
@media (min-width: 721px) {
    .home-page .home-hero-inner {
        padding-top: 118px !important;
    }
}

/* Shared navbar style for every inner page */
body:not(.home-page) .navbar {
    min-height: 82px !important;
    padding: 14px 4.2% 10px !important;
    background: rgba(13, 5, 34, .06) !important;
    border-bottom: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    gap: 28px;
}

body:not(.home-page) .logo {
    flex: 0 0 auto;
    min-width: 330px;
    gap: 12px;
    text-transform: uppercase;
    text-decoration: none;
}

body:not(.home-page) .logo img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 50% !important;
    object-fit: cover;
    background: rgba(255, 255, 255, .04);
    box-shadow: 0 5px 14px rgba(0, 0, 0, .18);
}

body:not(.home-page) .logo span {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: #ffffff;
    font-size: 15px !important;
    line-height: 1.05 !important;
    font-weight: 900;
    letter-spacing: .5px;
}

body:not(.home-page) .logo span::after {
    content: "STUDENT PORTAL";
    color: #FFD60A;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2.6px;
}

body:not(.home-page) .nav-links {
    flex: 1 1 auto;
    justify-content: flex-end;
    align-items: center;
    gap: clamp(18px, 2.3vw, 32px) !important;
    min-width: 0;
}

body:not(.home-page) .nav-links li {
    margin-left: 0 !important;
}

body:not(.home-page) .nav-links a {
    color: rgba(255, 255, 255, .78) !important;
    font-size: 13px !important;
    font-weight: 700;
    white-space: nowrap;
}

body:not(.home-page) .nav-links a:hover,
body:not(.home-page) .nav-links a.active-page {
    color: #FFD60A !important;
    background: transparent !important;
}

body:not(.home-page) .nav-links a::after {
    bottom: -10px;
    height: 2px;
    background: #FFD60A;
    border-radius: 999px;
}

body:not(.home-page) .nav-links a.active-page::after,
body:not(.home-page) .nav-links a:hover::after {
    width: 100%;
}

@media (max-width: 900px) {
    body:not(.home-page) .navbar {
        min-height: 78px !important;
        padding: 12px 20px !important;
    }

    body:not(.home-page) .logo {
        min-width: 0;
    }

    body:not(.home-page) .logo img {
        width: 48px !important;
        height: 48px !important;
    }

    body:not(.home-page) .logo span {
        font-size: 13px !important;
    }

    body:not(.home-page) .logo span::after {
        font-size: 9px;
        letter-spacing: 2px;
    }

    body:not(.home-page) .nav-links {
        top: 100% !important;
        background: rgba(13, 5, 34, .92) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        gap: 12px !important;
    }

    body:not(.home-page) .nav-links a {
        color: #ffffff !important;
        font-size: 15px !important;
        background: rgba(255, 255, 255, .08) !important;
    }

    body:not(.home-page) .nav-links a:hover,
    body:not(.home-page) .nav-links a.active-page {
        background: rgba(255, 214, 10, .95) !important;
        color: #3C096C !important;
    }
}

@media (max-width: 720px) {
    .home-page .navbar.home-navbar {
        position: relative;
        min-height: 78px !important;
        height: 78px !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        padding: 18px 26px 10px !important;
    }

    .home-page .logo.home-logo {
        min-width: 0 !important;
        width: auto !important;
        max-width: calc(100% - 52px) !important;
        flex: 0 1 auto !important;
    }

    .home-page .mobile-menu-btn {
        position: absolute !important;
        top: 25px !important;
        right: 26px !important;
        flex: 0 0 34px !important;
        margin: 0 !important;
    }
}

/* Final mobile homepage match */
@media (max-width: 720px) {
    .home-page .home-hero {
        min-height: 100vh !important;
        background:
            linear-gradient(180deg, rgba(10, 4, 32, .28) 0%, rgba(10, 4, 32, .12) 48%, rgba(10, 4, 32, .04) 100%),
            url("images/home-mobile-bg-optimized.webp?v=3") center top / cover no-repeat !important;
    }

    .home-page .navbar.home-navbar {
        position: relative !important;
        height: 82px !important;
        min-height: 82px !important;
        padding: 17px 22px 8px !important;
        background: transparent !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
    }

    .home-page .logo.home-logo {
        min-width: 0 !important;
        width: auto !important;
        max-width: 270px !important;
        flex: 0 1 auto !important;
        gap: 10px !important;
    }

    .home-page .logo.home-logo img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 0 !important;
        clip-path: inset(6% 6% 6% 6%) !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .home-page .logo.home-logo strong {
        max-width: 190px !important;
        font-size: 14px !important;
        line-height: 1.02 !important;
    }

    .home-page .logo.home-logo em {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }

    .home-page .mobile-menu-btn {
        position: absolute !important;
        top: 27px !important;
        right: 27px !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        z-index: 5000 !important;
    }

    .home-page .mobile-menu-btn span {
        display: block !important;
        width: 24px !important;
        height: 3px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 999px !important;
    }

    .home-page .home-hero-inner {
        display: block !important;
        min-height: 0 !important;
        padding: 30px 29px 34px !important;
    }

    .home-page .home-kicker {
        font-size: 20px !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
    }

    .home-page .home-copy h1 {
        max-width: 315px !important;
        font-size: 34px !important;
        line-height: 1.18 !important;
        letter-spacing: 0 !important;
    }

    .home-page .gold-divider {
        gap: 13px !important;
        margin: 18px 0 19px !important;
    }

    .home-page .gold-divider span {
        width: 112px !important;
        height: 2px !important;
    }

    .home-page .home-subtitle {
        max-width: 305px !important;
        font-size: 15px !important;
        line-height: 1.55 !important;
        margin-bottom: 23px !important;
    }

    .home-page .hero-buttons {
        max-width: 305px !important;
        gap: 12px !important;
    }

    .home-page .hero-buttons .btn {
        min-height: 44px !important;
        padding: 12px 18px !important;
        border-radius: 8px !important;
        font-size: 14px !important;
    }

    .home-page .hero-buttons .primary-btn {
        justify-content: center !important;
        padding-left: 18px !important;
    }
}

/* Gallery page */
.gallery-page .gallery-shell {
    width: min(1500px, calc(100% - 72px));
    margin: 0 auto;
    padding: 34px 0 80px;
}

.gallery-page .gallery-banner {
    width: min(980px, 100%);
    margin: 0 auto 38px;
    padding-top: 42px;
    padding-bottom: 34px;
}

.gallery-years {
    display: grid;
    gap: 34px;
}

.gallery-year-panel {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .93), rgba(255, 255, 255, .78)),
        linear-gradient(135deg, rgba(255, 214, 10, .22), rgba(60, 9, 108, .08));
    border: 2px solid rgba(255, 214, 10, .46);
    box-shadow: 0 22px 48px rgba(40, 10, 78, .22);
}

.gallery-year-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 9px;
    background: linear-gradient(90deg, #FFD60A, #f6bd21, #FFD60A);
}

.gallery-year-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.gallery-year-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #FFD60A;
    color: #3C096C;
    font-weight: 900;
    font-size: 14px;
}

.gallery-year-heading h2 {
    color: #3C096C;
    font-size: clamp(36px, 4vw, 62px);
    line-height: 1;
    margin: 0;
}

.gallery-level-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.gallery-level-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1;
    min-height: 210px;
    padding: 22px;
    border-radius: 18px;
    overflow: hidden;
    color: #ffffff;
    text-decoration: none;
    background:
        linear-gradient(160deg, rgba(45, 13, 85, .92), rgba(104, 52, 154, .84)),
        url("images/background1.png") center / cover no-repeat;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 16px 30px rgba(40, 10, 78, .18);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gallery-level-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -38% -20%;
    height: 68%;
    background: radial-gradient(circle at center, rgba(255, 214, 10, .34), transparent 62%);
    pointer-events: none;
}

.gallery-level-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 214, 10, .82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 22px 42px rgba(40, 10, 78, .28);
}

.gallery-level-card.is-active {
    border-color: #FFD60A;
    box-shadow: inset 0 0 0 2px rgba(255, 214, 10, .54), 0 22px 42px rgba(40, 10, 78, .32);
}

.gallery-level-number {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #FFD60A;
    color: #3C096C;
    font-weight: 900;
    font-size: 17px;
}

.gallery-level-card h3 {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(21px, 1.8vw, 30px);
    line-height: 1.12;
    margin: 0;
    text-shadow: 0 8px 18px rgba(0, 0, 0, .34);
}

.gallery-view {
    margin-top: 38px;
    padding: 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    border: 2px solid rgba(255, 214, 10, .48);
    box-shadow: 0 22px 48px rgba(40, 10, 78, .22);
}

.gallery-view-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.gallery-view-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 13px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: #FFD60A;
    color: #3C096C;
    font-size: 12px;
    font-weight: 900;
}

.gallery-view-heading h1,
.gallery-view-heading h2 {
    margin: 0;
    color: #3C096C;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.08;
}

.gallery-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    margin: 22px 0 18px;
    border-radius: 999px;
    background: #FFD60A;
    color: #3C096C;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(40, 10, 78, .18);
}

.gallery-back-link::before {
    content: "<";
    margin-right: 9px;
}

.class-gallery-page .gallery-shell {
    padding-top: 92px;
}

.class-gallery-view {
    margin-top: 0;
}

.gallery-photo-count {
    flex: 0 0 auto;
    color: #3C096C;
    font-weight: 900;
}

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.gallery-photo-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    overflow: hidden;
    border: none;
    border-radius: 12px;
    background: #2d0d55;
    box-shadow: 0 10px 22px rgba(40, 10, 78, .20);
    cursor: pointer;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: auto 160px;
}

.gallery-photo-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0;
    transition: transform .22s ease, filter .22s ease;
}

.gallery-photo-card img.is-loaded {
    opacity: 1;
}

.gallery-load-sentinel {
    grid-column: 1 / -1;
    min-height: 42px;
    display: grid;
    place-items: center;
    color: #4a3760;
    font-size: 13px;
    font-weight: 800;
}

html.gallery-lightbox-open,
body.gallery-lightbox-open {
    overflow: hidden;
    overscroll-behavior: none;
}

body.gallery-lightbox-open {
    position: fixed;
    left: 0;
    width: 100%;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    padding: 24px;
    background: rgba(15, 4, 29, .94);
    backdrop-filter: blur(8px);
    overscroll-behavior: contain;
    touch-action: none;
}

.gallery-lightbox.is-open {
    display: grid;
    place-items: center;
}

.gallery-lightbox-stage {
    position: relative;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
}

.gallery-lightbox img {
    display: block;
    max-width: min(94vw, 1500px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .55);
    transition: opacity .18s ease, filter .18s ease, transform .18s ease;
}

.gallery-lightbox-loader {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 1;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(36, 0, 70, .88);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease;
}

.gallery-lightbox.is-loading .gallery-lightbox-loader {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gallery-lightbox.is-loading img {
    opacity: .82;
    filter: blur(5px);
    transform: scale(.985);
}

.gallery-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 1;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(60, 9, 108, .84);
    color: white;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
    background: #FFD60A;
    color: #3C096C;
}

@media (max-width: 720px) {
    .gallery-lightbox {
        padding: 12px;
        backdrop-filter: none;
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
    }

    .gallery-lightbox-loader {
        bottom: 12px;
        font-size: 12px;
    }
}

.gallery-photo-card span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    min-height: 24px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 214, 10, .94);
    color: #3C096C;
    font-size: 11px;
    font-weight: 900;
}

.gallery-photo-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.gallery-coming-soon-card {
    grid-column: 1 / -1;
    min-height: 280px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    padding: 36px 24px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 246, 190, .86)),
        linear-gradient(135deg, rgba(255, 214, 10, .26), rgba(60, 9, 108, .08));
    border: 2px dashed rgba(255, 214, 10, .82);
    color: #3C096C;
    text-align: center;
}

.gallery-coming-soon-card span {
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1;
    font-weight: 900;
}

.gallery-coming-soon-card p {
    max-width: 520px;
    margin: 0;
    color: #4a3760;
    font-size: 20px;
    line-height: 1.45;
}

@media (max-width: 1020px) {
    .gallery-level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-photo-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .gallery-page .gallery-shell {
        width: calc(100% - 34px);
        padding: 18px 0 54px;
    }

    .gallery-page .gallery-banner {
        margin-bottom: 24px;
        padding-top: 18px;
        padding-bottom: 12px;
    }

    .gallery-year-panel {
        padding: 22px 16px 18px;
        border-radius: 18px;
    }

    .gallery-year-heading {
        display: grid;
        gap: 12px;
        margin-bottom: 18px;
    }

    .gallery-year-heading span {
        justify-self: start;
        min-height: 34px;
        font-size: 12px;
        padding: 0 14px;
    }

    .gallery-year-heading h2 {
        font-size: 36px;
    }

    .gallery-level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .gallery-level-card {
        min-height: 0;
        padding: 15px;
        border-radius: 14px;
    }

    .gallery-level-number {
        width: 40px;
        height: 40px;
        font-size: 13px;
    }

    .gallery-level-card h3 {
        font-size: 17px;
        line-height: 1.12;
    }

    .gallery-view {
        margin-top: 24px;
        padding: 16px;
        border-radius: 18px;
    }

    .gallery-view-heading {
        display: grid;
        gap: 8px;
        margin-bottom: 16px;
    }

    .gallery-photo-count {
        justify-self: start;
    }

    .gallery-photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .gallery-photo-card {
        border-radius: 10px;
    }

    .gallery-photo-card span {
        left: 6px;
        bottom: 6px;
        min-height: 20px;
        padding: 0 7px;
        font-size: 9px;
    }

    .class-gallery-page .gallery-shell {
        padding-top: 96px;
    }

    .gallery-back-link {
        min-height: 40px;
        margin: 12px 0 16px;
        padding: 0 16px;
        font-size: 14px;
    }
}

/* Final shared mobile navbar: match homepage on every page */
@media (max-width: 720px) {
    body:not(.home-page) .navbar {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 82px !important;
        min-height: 82px !important;
        padding: 17px 22px 8px !important;
        background: transparent !important;
        border-bottom: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        z-index: 3000 !important;
    }

    body:not(.home-page) .logo {
        min-width: 0 !important;
        width: auto !important;
        max-width: 270px !important;
        flex: 0 1 auto !important;
        gap: 10px !important;
    }

    body:not(.home-page) .logo img {
        width: 50px !important;
        height: 50px !important;
        border-radius: 0 !important;
        clip-path: inset(6% 6% 6% 6%) !important;
        background: transparent !important;
        box-shadow: none !important;
        object-fit: cover !important;
    }

    body:not(.home-page) .logo span {
        max-width: 190px !important;
        color: #ffffff !important;
        font-size: 14px !important;
        line-height: 1.02 !important;
        font-weight: 900 !important;
        letter-spacing: .5px !important;
    }

    body:not(.home-page) .logo span::after {
        font-size: 9px !important;
        letter-spacing: 2px !important;
    }

    body:not(.home-page) .mobile-menu-btn {
        position: absolute !important;
        top: 27px !important;
        right: 27px !important;
        width: 30px !important;
        height: 30px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
        z-index: 5000 !important;
    }

    body:not(.home-page) .mobile-menu-btn span {
        display: block !important;
        width: 24px !important;
        height: 3px !important;
        margin: 0 !important;
        background: #ffffff !important;
        border-radius: 999px !important;
    }

    body:not(.home-page) .nav-links {
        position: absolute !important;
        top: 82px !important;
        left: 22px !important;
        right: 22px !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        padding: 0 14px !important;
        background: rgba(14, 6, 40, .94) !important;
        border: 1px solid rgba(255, 255, 255, .12) !important;
        border-radius: 14px !important;
        box-shadow: 0 18px 38px rgba(0, 0, 0, .28) !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        transition: max-height .35s ease, opacity .25s ease, padding .35s ease !important;
        z-index: 4500 !important;
    }

    body:not(.home-page) .nav-links.active {
        max-height: 540px !important;
        opacity: 1 !important;
        padding: 16px 14px 18px !important;
        pointer-events: auto !important;
    }

    body:not(.home-page) .nav-links li {
        width: 100% !important;
        margin-left: 0 !important;
        text-align: center !important;
    }

    body:not(.home-page) .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 12px 14px !important;
        border-radius: 10px !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        background: rgba(255, 255, 255, .08) !important;
    }

    body:not(.home-page) .nav-links a::after {
        display: none !important;
    }

    body:not(.home-page) .nav-links a:hover,
    body:not(.home-page) .nav-links a.active-page {
        background: rgba(255, 214, 10, .95) !important;
        color: #3C096C !important;
    }
}

/* Portrait/mobile page backgrounds */
@media (max-width: 900px), (orientation: portrait) {
    body.page-background {
        background: transparent !important;
        background-attachment: initial !important;
    }

    body.profile-background {
        background: transparent !important;
        background-attachment: initial !important;
    }

    body.page-background::before,
    body.profile-background::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background:
            linear-gradient(
                rgba(60, 9, 108, .04),
                rgba(60, 9, 108, .04)
            ),
            url("images/background-portrait.jpg") center top / cover no-repeat;
    }

    body.page-background,
    body.profile-background {
        isolation: isolate;
    }

    body.page-background .about-wide-card,
    body.page-background .about-logo-card,
    body.page-background .about-small-card,
    body.page-background .about-values-card,
    body.page-background .resources-intro-card,
    body.page-background .resource-hub-card,
    body.page-background .reference-card,
    body.page-background .references-intro-card,
    body.page-background .dictionary-search-card,
    body.page-background .dictionary-card,
    body.page-background .accomplishment-card,
    body.page-background .text-left-card,
    body.profile-background .profile-card,
    body.profile-background .info-box,
    body.profile-background .section {
        background: rgba(255, 255, 255, .78) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
    }
}

/* Mobile portrait cards: match the clean white rounded panels */
@media (max-width: 900px), (orientation: portrait) {
    body.page-background .page-banner {
        width: 100% !important;
        margin: 98px auto 26px !important;
        padding: 22px 24px 8px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.page-background .page-banner h1,
    body.page-background .page-title {
        color: #3C096C !important;
        font-size: 25px !important;
        line-height: 1.16 !important;
        margin-bottom: 12px !important;
        text-align: center !important;
    }

    body.page-background .page-subtitle {
        color: #3C096C !important;
        font-size: 16px !important;
        line-height: 1.55 !important;
        max-width: 100% !important;
        margin: 12px auto 0 !important;
        text-align: center !important;
    }

    body.page-background .hero-divider {
        margin: 18px 0 !important;
    }

    body.page-background .hero-divider span {
        width: 100px !important;
        height: 3px !important;
    }

    body.page-background .about-wide-card,
    body.page-background .about-logo-card,
    body.page-background .about-small-card,
    body.page-background .about-values-card,
    body.page-background .about-officers-card,
    body.page-background .about-outro-card,
    body.page-background .resources-intro-card,
    body.page-background .resource-hub-card,
    body.page-background .reference-card,
    body.page-background .references-intro-card,
    body.page-background .dictionary-search-card,
    body.page-background .dictionary-card,
    body.page-background .accomplishment-card,
    body.page-background .text-left-card,
    body.page-background .content-card,
    body.page-background .officer-card,
    body.profile-background .profile-card,
    body.profile-background .info-box,
    body.profile-background .section {
        width: calc(100% - 44px) !important;
        max-width: 430px !important;
        min-height: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 34px 24px !important;
        background: rgba(221, 190, 235, .44) !important;
        border: 1px solid rgba(255, 255, 255, .42) !important;
        border-radius: 18px !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .28),
            0 16px 34px rgba(43, 17, 82, .24) !important;
        backdrop-filter: blur(4px) saturate(1.08) !important;
        -webkit-backdrop-filter: blur(4px) saturate(1.08) !important;
    }

    body.page-background .about-wide-card h2,
    body.page-background .about-logo-card h2,
    body.page-background .about-small-card h2,
    body.page-background .resources-intro-card h2,
    body.page-background .resource-hub-card h3,
    body.page-background .reference-card h3,
    body.page-background .dictionary-search-card h2,
    body.page-background .dictionary-card h3,
    body.page-background .accomplishment-card h2,
    body.page-background .text-left-card h2,
    body.page-background .officer-card h3,
    body.profile-background .profile-card h1,
    body.profile-background .section h3 {
        color: #3C096C !important;
        font-size: 27px !important;
        line-height: 1.18 !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    body.page-background .about-wide-card p,
    body.page-background .about-logo-card p,
    body.page-background .about-small-card p,
    body.page-background .resources-intro-card p,
    body.page-background .resource-hub-card p,
    body.page-background .reference-card p,
    body.page-background .dictionary-search-card p,
    body.page-background .dictionary-card p,
    body.page-background .accomplishment-card p,
    body.page-background .text-left-card p,
    body.page-background .officer-card p,
    body.profile-background .profile-card p,
    body.profile-background .section p {
        color: #3C096C !important;
        font-size: 16.5px !important;
        line-height: 1.72 !important;
    }

    body.page-background .about-wide-card p,
    body.page-background .text-left-card p,
    body.page-background .accomplishment-card p {
        text-align: center !important;
    }

    body.page-background .about-stack-section,
    body.page-background .about-info-section,
    body.page-background .about-logo-section,
    body.page-background .resources-hub-section,
    body.page-background .references-section,
    body.page-background .dictionary-section,
    body.page-background .officer-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.page-background .about-stack-section,
    body.page-background .resources-grid,
    body.page-background .references-grid,
    body.page-background .dictionary-grid,
    body.page-background .officer-grid {
        gap: 28px !important;
    }

    body.page-background .about-hero-image {
        width: calc(100% - 44px) !important;
        max-width: 430px !important;
        border-radius: 14px !important;
        box-shadow: 0 14px 30px rgba(43, 17, 82, .28) !important;
    }

    body.page-background .officer-card {
        padding: 0 0 22px !important;
        overflow: hidden !important;
    }

    body.page-background .officer-card img {
        height: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
    }
}

/* Final mobile glass-card match to desktop card style */
@media (max-width: 720px) {
    body.page-background .about-wide-card,
    body.page-background .about-logo-card,
    body.page-background .about-small-card,
    body.page-background .about-values-card,
    body.page-background .about-officers-card,
    body.page-background .about-outro-card,
    body.page-background .resources-intro-card,
    body.page-background .resource-hub-card,
    body.page-background .reference-card,
    body.page-background .references-intro-card,
    body.page-background .dictionary-search-card,
    body.page-background .dictionary-card,
    body.page-background .accomplishment-card,
    body.page-background .text-left-card,
    body.page-background .content-card,
    body.profile-background .profile-card,
    body.profile-background .info-box,
    body.profile-background .section {
        background: rgba(221, 190, 235, .42) !important;
        border: 1px solid rgba(255, 255, 255, .44) !important;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .30),
            0 18px 38px rgba(45, 17, 82, .24) !important;
        backdrop-filter: blur(4px) saturate(1.1) !important;
        -webkit-backdrop-filter: blur(4px) saturate(1.1) !important;
    }
}

/* Preserve original white/yellow cards on mobile when that is the desktop design */
@media (max-width: 720px) {
    body.page-background .resources-intro-card,
    body.page-background .resource-hub-card,
    body.page-background .references-intro-card,
    body.page-background .reference-card,
    body.page-background .dictionary-search-card,
    body.page-background .dictionary-card,
    body.page-background .constitution-card,
    body.page-background .empty-saved-card {
        background: rgba(255, 255, 255, .94) !important;
        border: 2px solid rgba(255, 214, 10, .38) !important;
        border-radius: 24px !important;
        box-shadow: 0 16px 35px rgba(0, 0, 0, .16) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.page-background .resources-intro-card,
    body.page-background .references-intro-card,
    body.page-background .dictionary-search-card {
        border: none !important;
        border-top: 8px solid #FFD60A !important;
    }

    body.page-background .resources-reference-btn,
    body.page-background .dictionary-saved-link,
    body.page-background .resource-hub-card .btn,
    body.page-background .dict-category.active,
    body.page-background .alphabet-btn.active {
        background: #FFD60A !important;
        color: #3C096C !important;
    }

    body.page-background .resources-intro-card h2,
    body.page-background .resource-hub-card h3,
    body.page-background .references-intro-card h2,
    body.page-background .reference-card h3,
    body.page-background .dictionary-search-card h2,
    body.page-background .dictionary-card h3,
    body.page-background .constitution-card h3 {
        color: #3C096C !important;
    }

    body.page-background .resources-intro-card p,
    body.page-background .resource-hub-card p,
    body.page-background .references-intro-card p,
    body.page-background .reference-card p,
    body.page-background .dictionary-search-card p,
    body.page-background .dictionary-card p,
    body.page-background .constitution-card p {
        color: #333 !important;
    }

    body.page-background .resource-hub-card,
    body.page-background .reference-card,
    body.page-background .dictionary-card,
    body.page-background .constitution-card,
    body.page-background .empty-saved-card {
        text-align: left !important;
    }

    body.page-background .resource-icon {
        display: block !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    body.page-background .resource-hub-card h3,
    body.page-background .resource-hub-card p,
    body.page-background .resource-hub-card span,
    body.page-background .reference-card h3,
    body.page-background .reference-card p,
    body.page-background .reference-card li,
    body.page-background .dictionary-card h3,
    body.page-background .dictionary-card p,
    body.page-background .constitution-card h3,
    body.page-background .constitution-card p {
        text-align: left !important;
    }

    body.page-background .resource-hub-card h3,
    body.page-background .reference-card h3,
    body.page-background .dictionary-card h3,
    body.page-background .constitution-card h3 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Final homepage button alignment */
.home-page .hero-buttons {
    display: flex !important;
    align-items: center !important;
    gap: 18px !important;
}

.home-page .hero-buttons .btn {
    height: 62px !important;
    min-height: 62px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.home-page .hero-buttons .primary-btn {
    width: 180px !important;
}

.home-page .hero-buttons .secondary {
    width: 258px !important;
}

@media (max-width: 720px) {
    .home-page .hero-buttons {
        align-items: stretch !important;
        gap: 12px !important;
        max-width: 305px !important;
    }

    .home-page .hero-buttons .btn,
    .home-page .hero-buttons .primary-btn,
    .home-page .hero-buttons .secondary {
        width: 100% !important;
        height: 44px !important;
        min-height: 44px !important;
        justify-content: center !important;
        padding: 0 18px !important;
    }

    .home-page .hero-buttons .primary-btn {
        justify-content: center !important;
        padding-left: 18px !important;
    }
}


/* Only post-restore mobile adjustment: circular navbar logos on every page */
@media (max-width: 720px) {
    .home-page .logo.home-logo img,
    body:not(.home-page) .logo img {
        border-radius: 50% !important;
        clip-path: circle(50% at 50% 50%) !important;
        object-fit: cover !important;
    }
}
/* Officers mobile cards: retain the original desktop white-card design */
@media (max-width: 720px) {
    body.officers-page .officer-card {
        width: calc(100% - 32px) !important;
        max-width: 430px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 0 24px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: none !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 28px rgba(35, 12, 65, .18) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body.officers-page .officer-card img {
        display: block !important;
        width: 100% !important;
        height: 420px !important;
        max-height: 420px !important;
        padding: 0 !important;
        border-radius: 0 !important;
        object-fit: cover !important;
        object-position: center top !important;
    }

    body.officers-page .officer-card h3 {
        margin: 22px 16px 8px !important;
        color: #3C096C !important;
        font-size: 24px !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }

    body.officers-page .officer-card h4 {
        margin: 0 14px 15px !important;
        color: #666666 !important;
        font-size: 18px !important;
        text-align: center !important;
    }

    body.officers-page .officer-card p {
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 20px 18px !important;
        color: #777777 !important;
        font-size: 15px !important;
        line-height: 1.6 !important;
        font-style: italic !important;
        text-align: center !important;
    }

    body.officers-page .officer-card span {
        display: block !important;
        padding: 0 14px !important;
        color: #3C096C !important;
        font-weight: 800 !important;
        text-align: center !important;
    }
}

/* Normal mobile and phone "Desktop site" portrait view: keep desktop cards opaque. */
@media (max-width: 900px), (orientation: portrait) {
    body.resources-page .resources-intro-card,
    body.resources-page .resource-hub-card,
    body.officers-page .officer-card {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
        opacity: 1 !important;
        border-color: rgba(255, 214, 10, .38) !important;
        box-shadow: 0 16px 35px rgba(0, 0, 0, .16) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        mix-blend-mode: normal !important;
    }

    body.officers-page .officer-card {
        border: none !important;
    }

    body.resources-page .resource-hub-card,
    body.resources-page .resource-hub-card h3,
    body.resources-page .resource-hub-card p,
    body.resources-page .resource-hub-card span {
        text-align: left !important;
    }

    body.resources-page .resource-hub-card h3,
    body.resources-page .resource-hub-card p,
    body.resources-page .resource-hub-card span {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.resources-page .resource-icon {
        display: block !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
}

/* About page only: readable sizing in a phone's "Desktop site" portrait view. */
@media (orientation: portrait) and (min-width: 721px) {
    body.about-page .page-banner {
        width: calc(100% - 80px) !important;
        max-width: 900px !important;
    }

    body.about-page .page-banner h1,
    body.about-page .page-title {
        font-size: 38px !important;
        line-height: 1.2 !important;
    }

    body.about-page .page-subtitle {
        max-width: 820px !important;
        font-size: 20px !important;
        line-height: 1.65 !important;
    }

    body.about-page .about-stack-section,
    body.about-page .about-info-section,
    body.about-page .about-logo-section {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: 1fr !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    body.about-page .about-hero-image,
    body.about-page .about-wide-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card {
        width: calc(100% - 80px) !important;
        max-width: 760px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.about-page .about-wide-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card {
        padding: 44px 42px !important;
    }

    body.about-page .about-wide-card h2,
    body.about-page .about-logo-card h2,
    body.about-page .about-small-card h2,
    body.about-page .about-values-card h2,
    body.about-page .about-officers-card h2,
    body.about-page .about-outro-card h2 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    body.about-page .about-wide-card h3,
    body.about-page .about-logo-card h3,
    body.about-page .about-small-card h3,
    body.about-page .about-values-card h3 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    body.about-page .about-wide-card p,
    body.about-page .about-logo-card p,
    body.about-page .about-small-card p,
    body.about-page .about-values-card p,
    body.about-page .about-officers-card p,
    body.about-page .about-outro-card p,
    body.about-page .about-small-card li,
    body.about-page .about-values-card li {
        font-size: 20px !important;
        line-height: 1.75 !important;
    }
}

/* Homepage only: phone "Desktop site" portrait layout matching the reference. */
@media (orientation: portrait) and (min-width: 721px) {
    body.home-page {
        min-height: 0 !important;
        background: #16072f url("images/home-feature-footer.jpg") center bottom / 100% auto no-repeat !important;
    }

    .home-page .home-shell {
        min-height: 0 !important;
        background: transparent !important;
    }

    .home-page .home-feature-band {
        width: 100% !important;
        max-width: none !important;
        min-height: 650px !important;
        margin: -58px auto 0 !important;
        padding: 105px 58px 92px !important;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 26px !important;
        background: #ffffff !important;
        border-top: none !important;
        outline: none !important;
    }

    .home-page .hero-wave {
        bottom: -2px !important;
        border: none !important;
        outline: none !important;
        background: transparent !important;
    }

    .home-page .hero-wave path {
        fill: #ffffff !important;
        stroke: #ffffff !important;
        stroke-width: 2px !important;
    }

    .home-page .home-feature-title {
        display: block !important;
        grid-column: 1 / -1 !important;
        margin: 0 !important;
        color: #2d0c60 !important;
        font-size: 38px !important;
        line-height: 1.2 !important;
        font-weight: 900 !important;
        text-align: center !important;
    }

    .home-page .home-feature-title::after {
        content: none !important;
        display: none !important;
    }

    .home-page .home-feature-divider {
        display: flex !important;
        grid-column: 1 / -1 !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 20px !important;
        margin: -4px 0 18px !important;
    }

    .home-page .home-feature-divider span {
        width: 135px !important;
        height: 4px !important;
        flex: 0 0 auto !important;
        border-radius: 999px !important;
        background: linear-gradient(90deg, #d99f16, #ffd95a, #d99f16) !important;
    }

    .home-page .home-feature-divider img {
        display: block !important;
        width: 65px !important;
        height: 42px !important;
        flex: 0 0 auto !important;
        object-fit: contain !important;
        filter: drop-shadow(0 3px 5px rgba(189, 132, 12, .2)) !important;
    }

    .home-page .home-feature {
        min-height: 175px !important;
        display: grid !important;
        grid-template-columns: 74px minmax(0, 1fr) !important;
        grid-template-rows: auto auto !important;
        column-gap: 24px !important;
        align-content: center !important;
        align-items: center !important;
        padding: 28px 30px !important;
        background: #ffffff !important;
        border: none !important;
        border-radius: 17px !important;
        box-shadow: 0 16px 34px rgba(50, 22, 78, .13) !important;
        text-align: left !important;
    }

    .home-page .home-feature .feature-icon {
        grid-row: 1 / span 2 !important;
        width: 68px !important;
        height: 68px !important;
        font-size: 27px !important;
        border-radius: 50% !important;
        background: #2a0967 !important;
        box-shadow: 0 10px 22px rgba(42, 9, 103, .24) !important;
    }

    .home-page .home-feature strong {
        align-self: end !important;
        margin: 0 0 10px !important;
        color: #28104f !important;
        font-size: 21px !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    .home-page .home-feature small {
        align-self: start !important;
        color: #554b60 !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        text-align: left !important;
    }

    .home-page .home-feature-band::after {
        content: "" !important;
        display: block !important;
        grid-column: 1 / -1 !important;
        width: auto !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1590 / 896 !important;
        margin: 46px -58px -92px !important;
        border-top: 7px solid #d6a51f !important;
        background: #210b46 url("images/home-feature-footer.jpg") center / cover no-repeat !important;
        border-right: none !important;
        border-bottom: none !important;
        border-left: none !important;
        outline: none !important;
        box-shadow: inset 0 2px 0 rgba(255, 224, 98, .35) !important;
    }
}

/* Resources intro only: wide desktop-style card on phone Desktop-site portrait view. */
@media (orientation: portrait) and (min-width: 721px) {
    body.resources-page .resources-intro-card {
        width: calc(100% - 100px) !important;
        max-width: 1050px !important;
        padding: 58px 64px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 28px !important;
    }

    body.resources-page .resources-intro-card h2 {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-bottom: 24px !important;
        text-align: center !important;
    }

    body.resources-page .resources-intro-card p {
        max-width: 900px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        font-size: 22px !important;
        line-height: 1.65 !important;
        text-align: center !important;
    }

    body.resources-page .resources-reference-btn {
        margin-top: 28px !important;
        padding: 18px 34px !important;
        font-size: 19px !important;
    }
}

/* Inner pages: one fixed portrait background with a purple repaint fallback. */
@media (orientation: portrait) and (min-width: 721px) {
    html:has(body.page-background),
    html:has(body.profile-background) {
        background: #68419a !important;
    }

    body.page-background,
    body.profile-background {
        min-height: 100% !important;
        background-color: #68419a !important;
        background-image: none !important;
        background-attachment: initial !important;
    }

    body.page-background::before,
    body.profile-background::before {
        display: block !important;
        content: "" !important;
        position: fixed !important;
        inset: -2px !important;
        z-index: -1 !important;
        pointer-events: none !important;
        background-color: #68419a !important;
        background-image:
            linear-gradient(rgba(60, 9, 108, .04), rgba(60, 9, 108, .04)),
            url("images/background-portrait.jpg") !important;
        background-position: center top !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
    }
}

/* President profile redesign — intentionally scoped to this page only. */
body.president-profile-page {
    color: #281044;
}

body.president-profile-page .president-profile {
    width: min(1220px, calc(100% - 48px));
    margin: 0 auto;
    padding: 150px 0 80px;
}

body.president-profile-page .president-back-button {
    display: inline-flex;
    align-items: center;
    margin: 0 0 22px;
    padding: 12px 20px;
    color: #3c096c;
    background: #ffd60a;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(38, 10, 67, .18);
    font-size: 15px;
    font-weight: 800;
}

body.president-profile-page .president-profile-card {
    overflow: hidden;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 214, 10, .62);
    border-top: 8px solid #ffd60a;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(34, 7, 66, .25);
}

body.president-profile-page .president-profile-hero {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 54px;
    align-items: center;
    padding: 54px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 214, 10, .20), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fbf7ff 58%, #f1e5fb 100%);
}

body.president-profile-page .president-photo-wrap {
    position: relative;
    padding: 10px;
    background: linear-gradient(145deg, #ffd60a, #fff2a6 48%, #5a189a);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(60, 9, 108, .24);
}

body.president-profile-page .president-photo-wrap img {
    display: block;
    width: 100%;
    height: 390px;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 18px;
    margin: 0;
}

body.president-profile-page .president-role {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    color: #3c096c;
    background: #ffd60a;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.president-profile-page .president-profile-intro h1 {
    max-width: 700px;
    margin: 0 0 12px;
    color: #3c096c;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

body.president-profile-page .president-lead {
    max-width: 720px;
    margin: 0 0 32px;
    color: #51445c;
    font-size: 19px;
    line-height: 1.65;
}

body.president-profile-page .president-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.president-profile-page .president-fact {
    min-height: 94px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid rgba(60, 9, 108, .12);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(60, 9, 108, .07);
}

body.president-profile-page .president-fact span,
body.president-profile-page .president-section-label {
    display: block;
    margin-bottom: 8px;
    color: #7a6687;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.president-profile-page .president-fact strong {
    color: #3c096c;
    font-size: 16px;
    line-height: 1.35;
}

body.president-profile-page .president-quote-card {
    padding: 34px 54px;
    color: #ffffff;
    background: linear-gradient(115deg, #2b0754, #5a189a);
    text-align: center;
}

body.president-profile-page .president-quote-card .president-section-label {
    color: #ffd60a;
}

body.president-profile-page .president-quote-card blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 36px);
    font-style: italic;
    line-height: 1.35;
}

body.president-profile-page .president-interest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 46px 54px 24px;
}

body.president-profile-page .president-interest-card {
    position: relative;
    min-height: 310px;
    padding: 36px;
    background: #ffffff;
    border: 1px solid rgba(60, 9, 108, .12);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(60, 9, 108, .10);
}

body.president-profile-page .president-card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: #3c096c;
    background: #ffd60a;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 900;
}

body.president-profile-page .president-interest-card h2 {
    margin: 0 0 20px;
    color: #3c096c;
    font-size: 28px;
}

body.president-profile-page .president-interest-card ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.president-profile-page .president-interest-card li {
    position: relative;
    padding-left: 24px;
    color: #51445c;
    font-size: 17px;
    line-height: 1.55;
}

body.president-profile-page .president-interest-card li::before {
    content: "";
    position: absolute;
    top: .65em;
    left: 0;
    width: 9px;
    height: 9px;
    background: #ffd60a;
    border: 2px solid #5a189a;
    border-radius: 50%;
}

body.president-profile-page .president-political-quote {
    margin: 0 54px 54px;
    padding: 34px 40px;
    background: #f8f2fc;
    border-left: 7px solid #ffd60a;
    border-radius: 18px;
}

body.president-profile-page .president-political-quote blockquote {
    margin: 0 0 12px;
    color: #3c096c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-style: italic;
    line-height: 1.55;
}

body.president-profile-page .president-political-quote cite {
    color: #725e80;
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 860px) {
    body.president-profile-page .president-profile {
        width: min(100% - 28px, 680px);
        padding: 112px 0 44px;
    }

    body.president-profile-page .president-profile-hero {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 28px;
    }

    body.president-profile-page .president-photo-wrap {
        width: min(100%, 390px);
        margin: 0 auto;
    }

    body.president-profile-page .president-photo-wrap img {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    body.president-profile-page .president-profile-intro {
        text-align: center;
    }

    body.president-profile-page .president-profile-intro h1,
    body.president-profile-page .president-lead {
        margin-left: auto;
        margin-right: auto;
    }

    body.president-profile-page .president-facts,
    body.president-profile-page .president-interest-grid {
        grid-template-columns: 1fr;
    }

    body.president-profile-page .president-quote-card {
        padding: 30px 24px;
    }

    body.president-profile-page .president-interest-grid {
        padding: 28px 22px 18px;
    }

    body.president-profile-page .president-interest-card {
        min-height: 0;
        padding: 28px;
        text-align: left;
    }

    body.president-profile-page .president-political-quote {
        margin: 0 22px 28px;
        padding: 28px;
        text-align: left;
    }
}

@media (max-width: 520px) {
    body.president-profile-page .president-profile {
        width: calc(100% - 20px);
        padding-top: 96px;
    }

    body.president-profile-page .president-profile-card {
        border-radius: 22px;
    }

    body.president-profile-page .president-profile-hero {
        padding: 20px;
    }

    body.president-profile-page .president-profile-intro h1 {
        font-size: 34px;
    }

    body.president-profile-page .president-facts {
        gap: 10px;
    }

    body.president-profile-page .president-fact {
        min-height: 0;
        padding: 15px;
    }
}

/* iPad/tablet: one full-screen background that remains fixed while content scrolls. */
@media (min-width: 768px) and (max-width: 1500px) {
    html:has(body.page-background),
    html:has(body.profile-background) {
        min-height: 100%;
        background: #68419a !important;
    }

    body.page-background,
    body.profile-background {
        min-height: 100vh !important;
        background: #68419a !important;
        background-image: none !important;
        background-attachment: initial !important;
        isolation: isolate;
    }

    body.page-background::before,
    body.profile-background::before {
        display: block !important;
        content: "" !important;
        position: fixed !important;
        inset: -3px !important;
        width: auto !important;
        height: auto !important;
        z-index: -1 !important;
        pointer-events: none !important;
        background-color: #68419a !important;
        background-image:
            linear-gradient(rgba(60, 9, 108, .04), rgba(60, 9, 108, .04)),
            url("images/background1.png") !important;
        background-position: center center !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        transform: translate3d(0, 0, 0) !important;
        backface-visibility: hidden !important;
        will-change: transform !important;
    }
}

@media (max-width: 1500px) {
    body.officers-page::before,
    body.profile-background::before {
        background-image:
            linear-gradient(rgba(60, 9, 108, .04), rgba(60, 9, 108, .04)),
            url("images/background1-optimized.webp?v=1") !important;
    }
}

@media (min-width: 768px) and (max-width: 1500px) and (orientation: portrait) {
    body.page-background::before,
    body.profile-background::before {
        background-image:
            linear-gradient(rgba(60, 9, 108, .04), rgba(60, 9, 108, .04)),
            url("images/background-portrait.jpg") !important;
        background-position: center top !important;
    }
}

/* ================================================================
   Position-led officer profiles (President and Auditor stay unique)
   ================================================================ */
body.role-profile-page {
    --role-primary: #4c1d95;
    --role-deep: #25103d;
    --role-accent: #ffd60a;
    --role-soft: #f5effb;
    --role-label: "OFFICER PROFILE";
}

body.role-adviser {
    --role-primary: #7f1d1d;
    --role-deep: #3f0d12;
    --role-accent: #f7c948;
    --role-soft: #fff5e7;
    --role-label: "GUIDANCE & MENTORSHIP";
}

body.role-program-chair {
    --role-primary: #153e75;
    --role-deep: #102a43;
    --role-accent: #f6c344;
    --role-soft: #eaf4ff;
    --role-label: "ACADEMIC LEADERSHIP";
}

body.role-assistant-chair {
    --role-primary: #286089;
    --role-deep: #16324f;
    --role-accent: #7dd3fc;
    --role-soft: #eef8ff;
    --role-label: "PROGRAM COORDINATION";
}

body.role-vp-internal {
    --role-primary: #087f5b;
    --role-deep: #064e3b;
    --role-accent: #fbd34d;
    --role-soft: #ecfdf5;
    --role-label: "INTERNAL AFFAIRS";
}

body.role-vp-external {
    --role-primary: #1d4ed8;
    --role-deep: #172554;
    --role-accent: #67e8f9;
    --role-soft: #eff6ff;
    --role-label: "EXTERNAL RELATIONS";
}

body.role-secretary {
    --role-primary: #7c3aed;
    --role-deep: #3b1768;
    --role-accent: #f0abfc;
    --role-soft: #faf5ff;
    --role-label: "RECORDS & DOCUMENTATION";
}

body.role-treasurer {
    --role-primary: #047857;
    --role-deep: #064e3b;
    --role-accent: #fbbf24;
    --role-soft: #f0fdf4;
    --role-label: "FINANCE & STEWARDSHIP";
}

body.role-communications {
    --role-primary: #be185d;
    --role-deep: #500724;
    --role-accent: #38bdf8;
    --role-soft: #fff1f6;
    --role-label: "PUBLIC INFORMATION";
}

body.role-business {
    --role-primary: #b45309;
    --role-deep: #522006;
    --role-accent: #fde047;
    --role-soft: #fff7ed;
    --role-label: "OPERATIONS & ENTERPRISE";
}

body.role-committee {
    --role-primary: #475569;
    --role-deep: #1e293b;
    --role-accent: #facc15;
    --role-soft: #f8fafc;
    --role-label: "STANDING COMMITTEE";
}

body.role-representative {
    --role-primary: #4338ca;
    --role-deep: #28206b;
    --role-accent: #fcd34d;
    --role-soft: #f1f1ff;
    --role-label: "YEAR REPRESENTATION";
}

body.role-rep-two {
    --role-primary: #0369a1;
    --role-deep: #0c4a6e;
    --role-accent: #facc15;
    --role-soft: #f0f9ff;
    --role-label: "SECOND YEAR VOICE";
}

body.role-rep-three {
    --role-primary: #6d28d9;
    --role-deep: #3b0764;
    --role-accent: #f9a8d4;
    --role-soft: #faf5ff;
    --role-label: "THIRD YEAR VOICE";
}

body.role-rep-four {
    --role-primary: #9f1239;
    --role-deep: #4c0519;
    --role-accent: #fcd34d;
    --role-soft: #fff1f2;
    --role-label: "FOURTH YEAR VOICE";
}

body.role-profile-page .profile-container {
    width: min(1380px, calc(100% - 48px));
    margin: 0 auto;
    padding: 132px 0 64px;
    text-align: left;
}

body.role-profile-page .back-button {
    display: inline-flex;
    align-items: center;
    margin: 0 0 20px;
    padding: 12px 19px;
    color: var(--role-deep);
    background: rgba(255,255,255,.95);
    border: 1px solid color-mix(in srgb, var(--role-accent) 75%, white);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(28, 5, 52, .14);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

body.role-profile-page .back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(28, 5, 52, .2);
}

body.role-profile-page .profile-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 0 44px;
    overflow: hidden;
    max-width: none;
    padding: 88px 48px 48px;
    color: #34243d;
    background:
        radial-gradient(circle at 92% 10%, color-mix(in srgb, var(--role-accent) 22%, transparent), transparent 27%),
        linear-gradient(145deg, #ffffff 0%, var(--role-soft) 100%);
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 32px;
    box-shadow: 0 28px 75px rgba(29, 5, 52, .3);
    text-align: left;
}

body.role-profile-page .profile-card::before {
    content: var(--role-label);
    position: absolute;
    inset: 0 0 auto;
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 48px;
    color: #fff;
    background: linear-gradient(110deg, var(--role-deep), var(--role-primary));
    border-bottom: 4px solid var(--role-accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .2em;
    text-transform: uppercase;
}

body.role-profile-page .profile-card::after {
    content: "";
    position: absolute;
    top: 20px;
    right: 48px;
    width: 17px;
    height: 17px;
    background: var(--role-accent);
    border: 4px solid rgba(255,255,255,.35);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--role-accent);
}

body.role-profile-page .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: stretch;
    width: 100%;
    height: 570px;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    border: 8px solid #fff;
    border-radius: 24px;
    outline: 2px solid color-mix(in srgb, var(--role-primary) 45%, transparent);
    box-shadow: 0 20px 48px color-mix(in srgb, var(--role-deep) 24%, transparent);
}

body.role-profile-page .profile-card > h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 12px 0 6px;
    color: var(--role-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 4.8vw, 70px);
    font-weight: 750;
    line-height: 1.04;
    letter-spacing: -.035em;
}

body.role-profile-page .profile-card > h2 {
    grid-column: 2;
    grid-row: 2;
    width: fit-content;
    margin: 10px 0 28px;
    padding: 9px 16px;
    color: #fff;
    background: var(--role-primary);
    border-left: 5px solid var(--role-accent);
    border-radius: 0 999px 999px 0;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.role-profile-page .info-grid {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

body.role-profile-page .info-box {
    min-height: 110px;
    padding: 18px;
    color: var(--role-deep);
    background: rgba(255,255,255,.82);
    border: 1px solid color-mix(in srgb, var(--role-primary) 16%, #fff);
    border-top: 4px solid var(--role-accent);
    border-radius: 16px;
    box-shadow: 0 10px 25px color-mix(in srgb, var(--role-deep) 9%, transparent);
    text-align: left;
}

body.role-profile-page .info-box h3 {
    margin: 0 0 9px;
    color: var(--role-primary);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.3;
}

body.role-profile-page .info-box p {
    margin: 0;
    color: var(--role-deep);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

body.role-profile-page .profile-card > div.section {
    position: relative;
    margin: 0;
    padding: 28px;
    color: #46374e;
    background: rgba(255,255,255,.9);
    border: 1px solid color-mix(in srgb, var(--role-primary) 14%, #fff);
    border-radius: 20px;
    box-shadow: 0 14px 32px color-mix(in srgb, var(--role-deep) 10%, transparent);
    text-align: left;
}

body.role-profile-page .profile-card > div.section h3 {
    margin: 0 0 14px;
    color: var(--role-primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
}

body.role-profile-page .profile-card > div.section p,
body.role-profile-page .profile-card > div.section li {
    color: #53475a;
    font-size: 16px;
    line-height: 1.65;
}

body.role-profile-page .profile-card > div.section ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.role-profile-page .profile-card > div.section li {
    position: relative;
    padding-left: 22px;
}

body.role-profile-page .profile-card > div.section li::before {
    content: "";
    position: absolute;
    top: .72em;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--role-accent);
    border: 2px solid var(--role-primary);
    border-radius: 50%;
}

/* The four existing content blocks become motto, quote, achievements, contributions. */
body.role-profile-page .profile-card > div.section:nth-of-type(2) {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    color: #fff;
    background: linear-gradient(130deg, var(--role-deep), var(--role-primary));
    border-color: transparent;
    border-left: 6px solid var(--role-accent);
}

body.role-profile-page .profile-card > div.section:nth-of-type(2) h3,
body.role-profile-page .profile-card > div.section:nth-of-type(2) p {
    color: #fff;
}

body.role-profile-page .profile-card > div.section:nth-of-type(3) {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 28px;
    padding: 32px 38px;
    background: color-mix(in srgb, var(--role-soft) 60%, #fff);
    border-left: 7px solid var(--role-primary);
}

body.role-profile-page .profile-card > div.section:nth-of-type(3) p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-style: italic;
}

body.role-profile-page .profile-card > div.section:nth-of-type(4),
body.role-profile-page .profile-card > div.section:nth-of-type(5) {
    grid-row: 6;
    margin-top: 22px;
}

body.role-profile-page .profile-card > div.section:nth-of-type(4) {
    grid-column: 1;
}

body.role-profile-page .profile-card > div.section:nth-of-type(5) {
    grid-column: 2;
}

body.role-profile-page .profile-card > div.section:nth-of-type(5) {
    background: linear-gradient(145deg, #fff, var(--role-soft));
    border-bottom: 5px solid var(--role-accent);
}

@media (max-width: 980px) {
    body.role-profile-page .profile-container {
        width: min(100% - 28px, 760px);
        padding: 112px 0 48px;
    }

    body.role-profile-page .profile-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 82px 30px 34px;
        text-align: center;
    }

    body.role-profile-page .profile-card > img,
    body.role-profile-page .profile-card > h1,
    body.role-profile-page .profile-card > h2,
    body.role-profile-page .info-grid,
    body.role-profile-page .profile-card > div.section:nth-of-type(2),
    body.role-profile-page .profile-card > div.section:nth-of-type(3),
    body.role-profile-page .profile-card > div.section:nth-of-type(4),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        grid-column: 1;
        grid-row: auto;
    }

    body.role-profile-page .profile-card > img {
        width: min(100%, 430px);
        height: auto;
        aspect-ratio: 4 / 5;
        justify-self: center;
        margin-bottom: 30px;
    }

    body.role-profile-page .profile-card > h1 {
        justify-self: center;
        margin-top: 0;
        text-align: center;
    }

    body.role-profile-page .profile-card > h2 {
        justify-self: center;
        border-right: 5px solid var(--role-accent);
        border-radius: 999px;
    }

    body.role-profile-page .profile-card > div.section,
    body.role-profile-page .profile-card > div.section:nth-of-type(2),
    body.role-profile-page .profile-card > div.section:nth-of-type(3),
    body.role-profile-page .profile-card > div.section:nth-of-type(4),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        margin-top: 16px;
    }

    body.role-profile-page .profile-card > div.section:nth-of-type(2) {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    body.role-profile-page .profile-container {
        width: calc(100% - 20px);
        padding-top: 96px;
    }

    body.role-profile-page .profile-card {
        padding: 76px 16px 20px;
        border-radius: 22px;
    }

    body.role-profile-page .profile-card::before {
        height: 52px;
        padding: 0 20px;
        font-size: 9px;
        letter-spacing: .13em;
    }

    body.role-profile-page .profile-card::after {
        top: 17px;
        right: 20px;
        width: 13px;
        height: 13px;
    }

    body.role-profile-page .profile-card > h1 {
        font-size: 36px;
    }

    body.role-profile-page .info-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    body.role-profile-page .info-box {
        min-height: 0;
        text-align: center;
    }

    body.role-profile-page .profile-card > div.section,
    body.role-profile-page .profile-card > div.section:nth-of-type(3) {
        padding: 25px 22px;
    }
}

/* ================================================================
   Immediate background paint and matched optimized preloads
   ================================================================ */

/* Use the lightweight background everywhere the desktop artwork appears. */
body.page-background,
body.profile-background {
    background-image:
        linear-gradient(rgba(60, 9, 108, .08), rgba(60, 9, 108, .08)),
        url("images/background1-optimized.webp?v=2") !important;
    background-color: #68419a !important;
}

/* Mobile browsers can defer a GPU-promoted negative layer until interaction.
   Keep the fixed artwork but paint it as a normal composited layer. */
body.page-background::before,
body.profile-background::before {
    background-image:
        linear-gradient(rgba(60, 9, 108, .04), rgba(60, 9, 108, .04)),
        url("images/background1-optimized.webp?v=2") !important;
    background-color: #68419a !important;
    transform: none !important;
    backface-visibility: visible !important;
    will-change: auto !important;
}

@media (max-width: 900px), (orientation: portrait) {
    body.page-background::before,
    body.profile-background::before {
        background-image:
            linear-gradient(rgba(60, 9, 108, .04), rgba(60, 9, 108, .04)),
            url("images/background-portrait.jpg") !important;
        background-position: center top !important;
    }
}

/* ================================================================
   Uniform officer profiles — all use the Auditor visual system
   ================================================================ */
body.role-profile-page {
    --role-primary: #3c096c;
    --role-deep: #1c0836;
    --role-accent: #ffd60a;
    --role-soft: #f8f2fc;
}

body.role-profile-page .profile-card {
    display: grid;
    grid-template-columns: minmax(330px, .82fr) minmax(520px, 1.42fr);
    grid-template-rows: auto auto minmax(270px, 1fr) auto auto auto;
    gap: 0 22px;
    overflow: hidden;
    padding: 0 0 54px;
    color: #fdfaff;
    background:
        radial-gradient(circle at 85% 8%, rgba(255,214,10,.18), transparent 30%),
        linear-gradient(145deg, #1c0836 0%, #35105f 48%, #21043f 100%);
    border: 1px solid rgba(255,226,85,.54);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(27,3,53,.36);
}

body.role-profile-page .profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    pointer-events: none;
    opacity: .38;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 42px 42px;
    border: 0;
    mask-image: linear-gradient(to bottom, #000, transparent 70%);
}

body.role-profile-page .profile-card::after {
    display: none;
}

body.role-profile-page .profile-card > img {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: stretch;
    width: 100%;
    height: 650px;
    min-height: 650px;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    transform: none;
    clip-path: none;
    filter: none;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: inset 0 -100px 60px rgba(21,2,40,.42);
}

body.role-profile-page .profile-card > h1 {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: stretch;
    margin: 0;
    padding: 82px 54px 8px 32px;
    color: #fff;
    background: none;
    border: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5vw, 80px);
    line-height: 1.02;
    letter-spacing: -.035em;
    text-align: left;
    text-shadow: none;
    text-transform: none;
}

body.role-profile-page .profile-card > h2 {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    width: fit-content;
    margin: 14px 0 26px 32px;
    padding: 10px 18px;
    color: #250547;
    background: linear-gradient(135deg, #ffe762, #ffd60a);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(255,214,10,.18);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: .16em;
    text-transform: uppercase;
}

body.role-profile-page .info-grid {
    position: relative;
    z-index: 1;
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0 54px 48px 32px;
}

body.role-profile-page .info-box {
    min-height: 110px;
    padding: 18px;
    color: #fff;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 16px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    text-align: left;
}

body.role-profile-page .info-box h3 {
    margin: 0 0 9px;
    color: #d9c8e6;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
}

body.role-profile-page .info-box p {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

body.role-profile-page .profile-card > div.section {
    position: relative;
    z-index: 1;
    transform: none;
    clip-path: none;
    text-align: left;
}

body.role-profile-page .profile-card > div.section:nth-of-type(2) {
    grid-column: 1 / -1;
    grid-row: 4;
    align-self: stretch;
    margin: 0;
    padding: 34px 54px;
    color: #270548;
    background: linear-gradient(110deg, #ffd60a, #fff0a0 58%, #ffd60a);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.role-profile-page .profile-card > div.section:nth-of-type(2) h3 {
    margin: 0 0 8px;
    color: #270548;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.role-profile-page .profile-card > div.section:nth-of-type(2) p {
    margin: 0;
    color: #270548;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.2;
}

body.role-profile-page .profile-card > div.section:nth-of-type(4),
body.role-profile-page .profile-card > div.section:nth-of-type(5) {
    grid-row: 5;
    min-height: 330px;
    margin-top: 46px;
    padding: 38px;
    color: #2a0a47;
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(14,0,30,.2);
}

body.role-profile-page .profile-card > div.section:nth-of-type(4) {
    grid-column: 1;
    margin-left: 54px;
}

body.role-profile-page .profile-card > div.section:nth-of-type(5) {
    grid-column: 2;
    margin-right: 54px;
    background: linear-gradient(150deg, #fffdf2, #fff4bd);
    border-color: rgba(255,214,10,.72);
    border-bottom: 1px solid rgba(255,214,10,.72);
}

body.role-profile-page .profile-card > div.section:nth-of-type(4) h3,
body.role-profile-page .profile-card > div.section:nth-of-type(5) h3 {
    margin: 0 0 24px;
    color: #3c096c;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 29px;
}

body.role-profile-page .profile-card > div.section:nth-of-type(4) li,
body.role-profile-page .profile-card > div.section:nth-of-type(5) li {
    color: #54435f;
    font-size: 17px;
    line-height: 1.55;
}

body.role-profile-page .profile-card > div.section:nth-of-type(3) {
    grid-column: 1 / -1;
    grid-row: 6;
    margin: 22px 54px 0;
    padding: 36px 40px;
    color: #fff;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.14);
    border-left: 6px solid #ffd60a;
    border-radius: 20px;
    box-shadow: none;
}

body.role-profile-page .profile-card > div.section:nth-of-type(3) h3 {
    margin: 0 0 12px;
    color: #ffe96b;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.role-profile-page .profile-card > div.section:nth-of-type(3) p {
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 2.3vw, 30px);
    font-style: italic;
    line-height: 1.5;
}

/* President uses the same Auditor structure while preserving its own content. */
body.president-profile-page .president-profile-card {
    overflow: hidden;
    color: #fdfaff;
    background:
        radial-gradient(circle at 85% 8%, rgba(255,214,10,.18), transparent 30%),
        linear-gradient(145deg, #1c0836 0%, #35105f 48%, #21043f 100%);
    border: 1px solid rgba(255,226,85,.54);
    border-radius: 34px;
    box-shadow: 0 28px 80px rgba(27,3,53,.36);
}

body.president-profile-page .president-profile-hero {
    grid-template-columns: minmax(330px,.82fr) minmax(520px,1.42fr);
    gap: 0;
    min-height: 650px;
    padding: 0;
    background: transparent;
}

body.president-profile-page .president-photo-wrap {
    width: 100%;
    height: 650px;
}

body.president-profile-page .president-photo-wrap::before,
body.president-profile-page .president-photo-wrap::after,
body.president-profile-page .president-photo-badge {
    display: none;
}

body.president-profile-page .president-photo-wrap img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.president-profile-page .president-profile-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px 70px;
    color: #fff;
}

body.president-profile-page .president-role {
    color: #250547;
    background: linear-gradient(135deg,#ffe762,#ffd60a);
    border: 0;
}

body.president-profile-page .president-profile-intro h1 {
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
}

body.president-profile-page .president-lead {
    color: #e6dced;
}

body.president-profile-page .president-fact {
    color: #fff;
    background: rgba(255,255,255,.075);
    border-color: rgba(255,255,255,.13);
    box-shadow: none;
}

body.president-profile-page .president-fact span { color: #d9c8e6; }
body.president-profile-page .president-fact strong { color: #fff; }

body.president-profile-page .president-quote-card {
    margin: 0;
    padding: 34px 54px;
    color: #270548;
    background: linear-gradient(110deg,#ffd60a,#fff0a0 58%,#ffd60a);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.president-profile-page .president-quote-card blockquote,
body.president-profile-page .president-quote-card .president-section-label {
    color: #270548;
}

body.president-profile-page .president-interest-grid {
    gap: 22px;
    padding: 46px 54px 22px;
}

body.president-profile-page .president-interest-card {
    min-height: 330px;
    padding: 38px;
    color: #2a0a47;
    background: #fff;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(14,0,30,.2);
}

body.president-profile-page .president-interest-card:nth-child(2) {
    background: linear-gradient(150deg,#fffdf2,#fff4bd);
    border-color: rgba(255,214,10,.72);
}

body.president-profile-page .president-political-quote {
    margin: 0 54px 54px;
    padding: 36px 40px;
    color: #fff;
    background: rgba(255,255,255,.085);
    border: 1px solid rgba(255,255,255,.14);
    border-left: 6px solid #ffd60a;
    border-radius: 20px;
}

body.president-profile-page .president-political-quote blockquote { color: #fff; }
body.president-profile-page .president-political-quote cite,
body.president-profile-page .president-political-quote .president-section-label { color: #ffe96b; }

@media (max-width: 940px) {
    body.role-profile-page .profile-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 0;
        padding-bottom: 28px;
    }

    body.role-profile-page .profile-card > img,
    body.role-profile-page .profile-card > h1,
    body.role-profile-page .profile-card > h2,
    body.role-profile-page .info-grid,
    body.role-profile-page .profile-card > div.section:nth-of-type(2),
    body.role-profile-page .profile-card > div.section:nth-of-type(3),
    body.role-profile-page .profile-card > div.section:nth-of-type(4),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        grid-column: 1;
        grid-row: auto;
    }

    body.role-profile-page .profile-card > img {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
        margin: 0;
        border: 0;
        border-radius: 0;
        outline: 0;
    }

    body.role-profile-page .profile-card > h1 {
        justify-self: stretch;
        padding: 42px 28px 8px;
        text-align: center;
    }

    body.role-profile-page .profile-card > h2 {
        justify-self: center;
        margin: 14px 0 28px;
    }

    body.role-profile-page .info-grid {
        grid-template-columns: 1fr;
        padding: 0 28px 38px;
    }

    body.role-profile-page .profile-card > div.section:nth-of-type(4),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        min-height: 0;
        margin: 22px 22px 0;
    }

    body.role-profile-page .profile-card > div.section:nth-of-type(3) {
        margin: 22px 22px 0;
    }

    body.president-profile-page .president-profile-hero {
        grid-template-columns: 1fr;
    }

    body.president-profile-page .president-photo-wrap,
    body.president-profile-page .president-photo-wrap img {
        height: auto;
        aspect-ratio: 4 / 5;
    }

    body.president-profile-page .president-profile-intro {
        padding: 42px 28px 46px;
    }

    body.president-profile-page .president-interest-grid {
        grid-template-columns: 1fr;
        padding: 28px 22px 18px;
    }

    body.president-profile-page .president-interest-card {
        min-height: 0;
    }

    body.president-profile-page .president-political-quote {
        margin: 0 22px 28px;
    }
}

@supports not (color: color-mix(in srgb, red, blue)) {
    body.role-profile-page .profile-card,
    body.role-profile-page .profile-card > div.section:nth-of-type(3),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        background: #fff;
    }

    body.role-profile-page .back-button,
    body.role-profile-page .info-box,
    body.role-profile-page .profile-card > div.section {
        border-color: rgba(60, 9, 108, .16);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.role-profile-page .profile-card,
    body.role-profile-page .profile-card > img,
    body.role-profile-page .back-button {
        animation: none;
        transition: none;
    }
}

/* ================================================================
   Truly distinct layouts by office
   ================================================================ */

/* ADVISER — formal academic portrait and mentorship dossier */
body.role-adviser .profile-card {
    grid-template-columns: 390px repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 104px 52px 52px;
    background:
        linear-gradient(90deg, rgba(127,29,29,.055) 1px, transparent 1px),
        linear-gradient(#fffaf0, #fff);
    background-size: 34px 34px, auto;
}

body.role-adviser .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 3;
    align-self: start;
    width: 340px;
    height: 340px;
    justify-self: center;
    border-width: 12px;
    border-radius: 50%;
    outline: 8px double #7f1d1d;
}

body.role-adviser .profile-card > h1 {
    grid-column: 2 / -1;
    grid-row: 1;
    align-self: end;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(127,29,29,.25);
}

body.role-adviser .profile-card > h2 {
    grid-column: 2;
    grid-row: 2;
}

body.role-adviser .info-grid {
    grid-column: 2 / -1;
    grid-row: 3;
}

body.role-adviser .profile-card > div.section:nth-of-type(2) {
    grid-column: 1;
    grid-row: 4;
    border-radius: 100px 100px 20px 20px;
    text-align: center;
}

body.role-adviser .profile-card > div.section:nth-of-type(3) {
    grid-column: 2 / -1;
    grid-row: 4;
    margin-top: 0;
}

body.role-adviser .profile-card > div.section:nth-of-type(4) {
    grid-column: 1 / span 2;
    grid-row: 5;
}

body.role-adviser .profile-card > div.section:nth-of-type(5) {
    grid-column: 3;
    grid-row: 5;
}

/* PROGRAM CHAIR — cinematic academic banner with structured agenda */
body.role-program-chair .profile-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 74px 34px 36px;
    background: #f5f9ff;
}

body.role-program-chair .profile-card > img {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 500px;
    border: 0;
    border-radius: 22px;
    outline: 0;
    box-shadow: inset 0 -140px 80px rgba(16,42,67,.4);
}

body.role-program-chair .profile-card > h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 2;
    align-self: end;
    margin: 0;
    padding: 38px 44px 88px;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0,0,0,.7);
}

body.role-program-chair .profile-card > h2 {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
    align-self: end;
    margin: 0 0 34px 44px;
}

body.role-program-chair .info-grid {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0;
}

body.role-program-chair .profile-card > div.section:nth-of-type(2),
body.role-program-chair .profile-card > div.section:nth-of-type(3) {
    grid-row: 3;
    margin-top: 0;
}

body.role-program-chair .profile-card > div.section:nth-of-type(2) { grid-column: 1; }
body.role-program-chair .profile-card > div.section:nth-of-type(3) { grid-column: 2; }
body.role-program-chair .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 4; }
body.role-program-chair .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 4; }

/* ASSISTANT CHAIR — collaborative reverse split with offset cards */
body.role-assistant-chair .profile-card {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 22px 42px;
    padding: 104px 48px 48px;
    background: linear-gradient(118deg, #eef8ff 0 64%, #d9efff 64% 100%);
}

body.role-assistant-chair .profile-card > img {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: 100%;
    height: 600px;
    transform: translateY(22px);
    border-radius: 210px 210px 26px 26px;
}

body.role-assistant-chair .profile-card > h1 { grid-column: 1; grid-row: 1; }
body.role-assistant-chair .profile-card > h2 { grid-column: 1; grid-row: 2; }
body.role-assistant-chair .info-grid { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
body.role-assistant-chair .profile-card > div.section:nth-of-type(2) { grid-column: 1; grid-row: 4; }
body.role-assistant-chair .profile-card > div.section:nth-of-type(3) { grid-column: 1 / -1; grid-row: 5; }
body.role-assistant-chair .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 6; transform: translateY(-10px); }
body.role-assistant-chair .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 6; transform: translateY(22px); }

/* VP INTERNAL — operational dashboard with permanent left rail */
body.role-vp-internal .profile-card {
    grid-template-columns: 360px repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 92px 36px 38px 0;
    background: linear-gradient(90deg, #064e3b 0 360px, #f4fff9 360px);
}

body.role-vp-internal .profile-card::before { padding-left: 392px; }

body.role-vp-internal .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 6;
    width: calc(100% - 42px);
    height: 560px;
    align-self: start;
    justify-self: center;
    margin-top: 10px;
    border: 5px solid rgba(255,255,255,.8);
    border-radius: 0 80px 80px 0;
    outline: 0;
}

body.role-vp-internal .profile-card > h1 { grid-column: 2 / -1; grid-row: 1; }
body.role-vp-internal .profile-card > h2 { grid-column: 2; grid-row: 2; }
body.role-vp-internal .info-grid { grid-column: 2 / -1; grid-row: 3; }
body.role-vp-internal .profile-card > div.section:nth-of-type(2) { grid-column: 2 / -1; grid-row: 4; }
body.role-vp-internal .profile-card > div.section:nth-of-type(3) { grid-column: 2 / -1; grid-row: 5; margin-top: 0; }
body.role-vp-internal .profile-card > div.section:nth-of-type(4) { grid-column: 2; grid-row: 6; }
body.role-vp-internal .profile-card > div.section:nth-of-type(5) { grid-column: 3; grid-row: 6; }

/* VP EXTERNAL — diplomatic reverse composition and correspondence panels */
body.role-vp-external .profile-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 34px;
    padding: 100px 48px 48px;
    background:
        radial-gradient(circle at 82% 24%, rgba(103,232,249,.3), transparent 28%),
        linear-gradient(150deg, #f8fbff, #e7efff);
}

body.role-vp-external .profile-card > img {
    grid-column: 2;
    grid-row: 1 / span 3;
    width: 420px;
    height: 420px;
    justify-self: center;
    border-radius: 50%;
    outline: 14px solid rgba(29,78,216,.08);
}

body.role-vp-external .profile-card > h1 { grid-column: 1; grid-row: 1; align-self: end; }
body.role-vp-external .profile-card > h2 { grid-column: 1; grid-row: 2; }
body.role-vp-external .info-grid { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
body.role-vp-external .profile-card > div.section:nth-of-type(2) { grid-column: 1; grid-row: 4; }
body.role-vp-external .profile-card > div.section:nth-of-type(3) { grid-column: 2; grid-row: 4; margin-top: 0; }
body.role-vp-external .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 5; }
body.role-vp-external .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 5; }

/* SECRETARY — notebook and records layout */
body.role-secretary .profile-card {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 0 50px;
    padding: 108px 54px 54px 82px;
    background:
        linear-gradient(90deg, transparent 0 48px, rgba(190,24,93,.22) 48px 50px, transparent 50px),
        repeating-linear-gradient(#fff 0 39px, #e9dcf7 39px 40px);
}

body.role-secretary .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 300px;
    height: 390px;
    transform: rotate(-3deg);
    border: 14px solid #fff;
    border-radius: 5px;
    outline: 0;
    box-shadow: 12px 16px 0 rgba(124,58,237,.16);
}

body.role-secretary .profile-card > h1 { grid-column: 2; grid-row: 1; font-family: "Segoe Print", "Comic Sans MS", cursive; }
body.role-secretary .profile-card > h2 { grid-column: 2; grid-row: 2; }
body.role-secretary .info-grid { grid-column: 2; grid-row: 3; }
body.role-secretary .profile-card > div.section:nth-of-type(2) { grid-column: 1 / -1; grid-row: 4; margin-top: 34px; }
body.role-secretary .profile-card > div.section:nth-of-type(3) { grid-column: 1 / -1; grid-row: 5; }
body.role-secretary .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 6; }
body.role-secretary .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 6; }

body.role-secretary .profile-card > div.section,
body.role-secretary .info-box {
    border-style: dashed;
}

/* TREASURER — dark financial ledger and metric board */
body.role-treasurer .profile-card {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px 36px;
    padding: 104px 44px 46px;
    color: #fff;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(145deg, #052e25, #064e3b);
    background-size: 30px 30px, 30px 30px, auto;
}

body.role-treasurer .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 270px;
    height: 350px;
    border-radius: 20px;
    outline: 1px solid #fbbf24;
}

body.role-treasurer .profile-card > h1 { grid-column: 2; grid-row: 1; color: #fff; }
body.role-treasurer .profile-card > h2 { grid-column: 2; grid-row: 2; background: #fbbf24; color: #18392f; }
body.role-treasurer .info-grid { grid-column: 2; grid-row: 3; }
body.role-treasurer .info-box { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.17); }
body.role-treasurer .info-box h3 { color: #fbbf24; }
body.role-treasurer .info-box p { color: #fff; }
body.role-treasurer .profile-card > div.section:nth-of-type(2) { grid-column: 1; grid-row: 4; background: #fbbf24; color: #18392f; }
body.role-treasurer .profile-card > div.section:nth-of-type(2) h3,
body.role-treasurer .profile-card > div.section:nth-of-type(2) p { color: #18392f; }
body.role-treasurer .profile-card > div.section:nth-of-type(3) { grid-column: 2; grid-row: 4; margin-top: 0; }
body.role-treasurer .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 5; }
body.role-treasurer .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 5; }

/* PUBLIC INFORMATION OFFICER — magazine cover and editorial columns */
body.role-communications .profile-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 76px 30px 36px;
    background: #fff7fb;
}

body.role-communications .profile-card > img {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    height: 560px;
    border: 0;
    border-radius: 18px;
    outline: 0;
    filter: saturate(1.08) contrast(1.03);
}

body.role-communications .profile-card > h1 {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 2;
    align-self: end;
    margin: 0;
    padding: 160px 38px 78px;
    color: #fff;
    background: linear-gradient(transparent, rgba(80,7,36,.92));
    border-radius: 0 0 18px 18px;
    font-family: Arial Black, Arial, sans-serif;
    text-transform: uppercase;
}

body.role-communications .profile-card > h2 { grid-column: 1; grid-row: 1; z-index: 3; align-self: end; margin: 0 0 28px 38px; }
body.role-communications .info-grid { grid-column: 1 / -1; grid-row: 2; margin: 0; }
body.role-communications .profile-card > div.section:nth-of-type(2) { grid-column: 1; grid-row: 3; }
body.role-communications .profile-card > div.section:nth-of-type(3) { grid-column: 2; grid-row: 3; margin-top: 0; }
body.role-communications .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 4; }
body.role-communications .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 4; }
body.role-communications .profile-card > div.section h3 { text-transform: uppercase; letter-spacing: .04em; }

/* BUSINESS MANAGERS — operations board with staggered modules */
body.role-business .profile-card {
    grid-template-columns: 360px repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 98px 42px 44px;
    background: linear-gradient(145deg, #fffaf2, #fce8ce);
}

body.role-business .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 330px;
    height: 510px;
    border-radius: 22px 90px 22px 90px;
    outline: 8px solid rgba(180,83,9,.09);
}

body.role-business .profile-card > h1 { grid-column: 2 / -1; grid-row: 1; }
body.role-business .profile-card > h2 { grid-column: 2; grid-row: 2; }
body.role-business .info-grid { grid-column: 2 / -1; grid-row: 3; }
body.role-business .profile-card > div.section:nth-of-type(2) { grid-column: 2 / -1; grid-row: 4; }
body.role-business .profile-card > div.section:nth-of-type(3) { grid-column: 1 / span 2; grid-row: 5; margin-top: 4px; }
body.role-business .profile-card > div.section:nth-of-type(4) { grid-column: 3; grid-row: 5; transform: translateY(32px); }
body.role-business .profile-card > div.section:nth-of-type(5) { grid-column: 1 / -1; grid-row: 6; }

/* STANDING COMMITTEE — modular board and centered identity */
body.role-committee .profile-card {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 102px 44px 44px;
    background: #f8fafc;
}

body.role-committee .profile-card > img {
    grid-column: 2;
    grid-row: 1;
    width: 280px;
    height: 280px;
    justify-self: center;
    border-radius: 28px;
}

body.role-committee .profile-card > h1 { grid-column: 1 / -1; grid-row: 2; justify-self: center; text-align: center; }
body.role-committee .profile-card > h2 { grid-column: 2; grid-row: 3; justify-self: center; }
body.role-committee .info-grid { grid-column: 1 / -1; grid-row: 4; }
body.role-committee .profile-card > div.section:nth-of-type(2) { grid-column: 1; grid-row: 5; }
body.role-committee .profile-card > div.section:nth-of-type(3) { grid-column: 2 / -1; grid-row: 5; margin-top: 0; }
body.role-committee .profile-card > div.section:nth-of-type(4) { grid-column: 1 / span 2; grid-row: 6; }
body.role-committee .profile-card > div.section:nth-of-type(5) { grid-column: 3; grid-row: 6; }

/* SECOND YEAR REPRESENTATIVE — youthful horizontal timeline */
body.role-rep-two .profile-card {
    grid-template-columns: 410px minmax(0, 1fr);
    gap: 24px 42px;
    padding: 100px 48px 48px;
    background: linear-gradient(135deg, #f0f9ff, #fff);
}

body.role-rep-two .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 390px;
    height: 480px;
    border-radius: 190px 190px 24px 24px;
}

body.role-rep-two .profile-card > h1 { grid-column: 2; grid-row: 1; }
body.role-rep-two .profile-card > h2 { grid-column: 2; grid-row: 2; }
body.role-rep-two .info-grid { grid-column: 2; grid-row: 3; }
body.role-rep-two .profile-card > div.section:nth-of-type(2),
body.role-rep-two .profile-card > div.section:nth-of-type(3),
body.role-rep-two .profile-card > div.section:nth-of-type(4),
body.role-rep-two .profile-card > div.section:nth-of-type(5) {
    grid-column: 1 / -1;
    margin-top: 0;
    padding-left: 78px;
    border-left: 5px solid #0369a1;
}
body.role-rep-two .profile-card > div.section:nth-of-type(2) { grid-row: 4; }
body.role-rep-two .profile-card > div.section:nth-of-type(3) { grid-row: 5; }
body.role-rep-two .profile-card > div.section:nth-of-type(4) { grid-row: 6; }
body.role-rep-two .profile-card > div.section:nth-of-type(5) { grid-row: 7; }

/* THIRD YEAR REPRESENTATIVE — asymmetric diagonal composition */
body.role-rep-three .profile-card {
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 20px 40px;
    padding: 100px 48px 48px;
    background: linear-gradient(122deg, #faf5ff 0 68%, #eadcff 68%);
}

body.role-rep-three .profile-card > img {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: 400px;
    height: 570px;
    clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%);
    border: 0;
    border-radius: 0;
    outline: 0;
}

body.role-rep-three .profile-card > h1 { grid-column: 1; grid-row: 1; }
body.role-rep-three .profile-card > h2 { grid-column: 1; grid-row: 2; }
body.role-rep-three .info-grid { grid-column: 1; grid-row: 3; grid-template-columns: 1fr; }
body.role-rep-three .profile-card > div.section:nth-of-type(2) { grid-column: 1; grid-row: 4; }
body.role-rep-three .profile-card > div.section:nth-of-type(3) { grid-column: 1 / -1; grid-row: 5; }
body.role-rep-three .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 6; }
body.role-rep-three .profile-card > div.section:nth-of-type(5) { grid-column: 2; grid-row: 6; }

/* FOURTH YEAR REPRESENTATIVE — senior editorial portfolio */
body.role-rep-four .profile-card {
    grid-template-columns: 300px minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    padding: 100px 46px 46px;
    background: linear-gradient(#fff9fa, #fff);
}

body.role-rep-four .profile-card > img {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 270px;
    height: 360px;
    border-radius: 8px;
    outline: 12px double rgba(159,18,57,.22);
}

body.role-rep-four .profile-card > h1 { grid-column: 2 / -1; grid-row: 1; align-self: end; border-bottom: 3px solid #9f1239; padding-bottom: 18px; }
body.role-rep-four .profile-card > h2 { grid-column: 2; grid-row: 2; }
body.role-rep-four .info-grid { grid-column: 2 / -1; grid-row: 3; }
body.role-rep-four .profile-card > div.section:nth-of-type(2) { grid-column: 1 / span 2; grid-row: 4; }
body.role-rep-four .profile-card > div.section:nth-of-type(3) { grid-column: 3; grid-row: 4; margin-top: 0; }
body.role-rep-four .profile-card > div.section:nth-of-type(4) { grid-column: 1; grid-row: 5; }
body.role-rep-four .profile-card > div.section:nth-of-type(5) { grid-column: 2 / -1; grid-row: 5; }

/* Collapse every unique composition safely on tablets and phones. */
@media (max-width: 980px) {
    body.role-profile-page .profile-card,
    body.role-adviser .profile-card,
    body.role-program-chair .profile-card,
    body.role-assistant-chair .profile-card,
    body.role-vp-internal .profile-card,
    body.role-vp-external .profile-card,
    body.role-secretary .profile-card,
    body.role-treasurer .profile-card,
    body.role-communications .profile-card,
    body.role-business .profile-card,
    body.role-committee .profile-card,
    body.role-rep-two .profile-card,
    body.role-rep-three .profile-card,
    body.role-rep-four .profile-card {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 82px 28px 34px;
        background: linear-gradient(145deg, #fff, var(--role-soft));
    }

    body.role-vp-internal .profile-card::before { padding-left: 28px; }

    body.role-profile-page .profile-card > img,
    body.role-profile-page .profile-card > h1,
    body.role-profile-page .profile-card > h2,
    body.role-profile-page .info-grid,
    body.role-profile-page .profile-card > div.section:nth-of-type(2),
    body.role-profile-page .profile-card > div.section:nth-of-type(3),
    body.role-profile-page .profile-card > div.section:nth-of-type(4),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        grid-column: 1;
        grid-row: auto;
        transform: none;
        clip-path: none;
    }

    body.role-profile-page .profile-card > img,
    body.role-adviser .profile-card > img,
    body.role-program-chair .profile-card > img,
    body.role-assistant-chair .profile-card > img,
    body.role-vp-internal .profile-card > img,
    body.role-vp-external .profile-card > img,
    body.role-secretary .profile-card > img,
    body.role-treasurer .profile-card > img,
    body.role-communications .profile-card > img,
    body.role-business .profile-card > img,
    body.role-committee .profile-card > img,
    body.role-rep-two .profile-card > img,
    body.role-rep-three .profile-card > img,
    body.role-rep-four .profile-card > img {
        width: min(100%, 430px);
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
        justify-self: center;
        margin: 0 0 30px;
        border: 8px solid #fff;
        border-radius: 24px;
        outline: 2px solid color-mix(in srgb, var(--role-primary) 40%, transparent);
        box-shadow: 0 20px 45px rgba(31,5,55,.2);
    }

    body.role-profile-page .profile-card > h1,
    body.role-program-chair .profile-card > h1,
    body.role-communications .profile-card > h1 {
        justify-self: center;
        margin: 0;
        padding: 0;
        color: var(--role-deep);
        background: none;
        border: 0;
        text-align: center;
        text-shadow: none;
    }

    body.role-profile-page .profile-card > h2,
    body.role-program-chair .profile-card > h2,
    body.role-communications .profile-card > h2 {
        justify-self: center;
        align-self: auto;
        margin: 12px 0 28px;
    }

    body.role-profile-page .info-grid,
    body.role-assistant-chair .info-grid,
    body.role-vp-external .info-grid,
    body.role-rep-three .info-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.role-profile-page .profile-card > div.section,
    body.role-profile-page .profile-card > div.section:nth-of-type(2),
    body.role-profile-page .profile-card > div.section:nth-of-type(3),
    body.role-profile-page .profile-card > div.section:nth-of-type(4),
    body.role-profile-page .profile-card > div.section:nth-of-type(5) {
        margin-top: 16px;
        padding: 28px;
        text-align: left;
    }
}

@media (max-width: 600px) {
    body.role-profile-page .profile-card,
    body.role-adviser .profile-card,
    body.role-program-chair .profile-card,
    body.role-assistant-chair .profile-card,
    body.role-vp-internal .profile-card,
    body.role-vp-external .profile-card,
    body.role-secretary .profile-card,
    body.role-treasurer .profile-card,
    body.role-communications .profile-card,
    body.role-business .profile-card,
    body.role-committee .profile-card,
    body.role-rep-two .profile-card,
    body.role-rep-three .profile-card,
    body.role-rep-four .profile-card {
        padding: 76px 16px 20px;
    }

    body.role-profile-page .info-grid,
    body.role-assistant-chair .info-grid,
    body.role-vp-external .info-grid,
    body.role-rep-three .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   A.Y. 2025-2026 MILESTONE HUB
=========================== */

body.milestone-page .milestone-section {
    padding: 40px 8% 90px;
}

body.milestone-page .milestone-intro-card {
    margin-bottom: 38px;
}

body.milestone-page .milestone-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
}

body.milestone-page .milestone-panel {
    overflow: hidden;
    background: #fff;
    border: 2px solid rgba(255, 214, 10, .55);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

body.milestone-page .milestone-panel:hover {
    transform: translateY(-7px);
    border-color: #FFD60A;
    box-shadow: 0 24px 48px rgba(60, 9, 108, .28);
}

body.milestone-page .milestone-panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 140px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #240046, #5A189A);
    border-bottom: 6px solid #FFD60A;
    color: #fff;
}

body.milestone-page .milestone-panel-icon {
    display: grid;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    place-items: center;
    border: 2px solid rgba(255, 214, 10, .75);
    border-radius: 50%;
    background: #FFD60A;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
    font-size: 34px;
}

body.milestone-page .milestone-panel-header span {
    display: block;
    margin-bottom: 7px;
    color: #FFD60A;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

body.milestone-page .milestone-panel-header h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.2;
}

body.milestone-page .milestone-link-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
}

body.milestone-page .milestone-link-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 16px;
    min-height: 92px;
    padding: 16px 20px;
    border: 1px solid rgba(90, 24, 154, .18);
    border-left: 6px solid #FFD60A;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #fbf6ff);
    color: #3C096C;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(60, 9, 108, .1);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.milestone-page .milestone-link-card:hover,
body.milestone-page .milestone-link-card:focus-visible {
    transform: translateX(7px);
    border-color: #FFD60A;
    box-shadow: 0 14px 28px rgba(60, 9, 108, .2);
}

body.milestone-page .milestone-link-card:focus-visible {
    outline: 3px solid rgba(255, 214, 10, .75);
    outline-offset: 3px;
}

body.milestone-page .milestone-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 2px solid #FFD60A;
    border-radius: 50%;
    background: #3C096C;
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

body.milestone-page .milestone-link-card strong {
    font-size: 18px;
    line-height: 1.35;
}

body.milestone-page .milestone-arrow {
    color: #5A189A;
    font-size: 28px;
    font-weight: 900;
    transition: transform .25s ease;
}

body.milestone-page .milestone-link-card:hover .milestone-arrow {
    transform: translateX(5px);
}

body.milestone-page .milestone-back-row {
    display: flex;
    justify-content: center;
    margin-top: 48px;
    padding: 0 20px;
}

body.milestone-page .milestone-back-row .back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(780px, 100%);
    max-width: 780px;
    margin: 0;
    padding: 20px 36px;
    border: 3px solid #240046;
    border-radius: 16px;
    background: #FFD60A;
    color: #3C096C;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    box-shadow: 0 9px 0 rgba(36, 0, 70, .12), 0 16px 30px rgba(60, 9, 108, .22);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

body.milestone-page .milestone-back-icon {
    display: inline-block;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 26px;
    line-height: 1;
    transition: transform .25s ease;
}

body.milestone-page .milestone-back-row .back-button:hover,
body.milestone-page .milestone-back-row .back-button:focus-visible {
    transform: translateY(-4px);
    background: #fff;
    color: #3C096C;
    box-shadow: 0 18px 38px rgba(60, 9, 108, .32);
}

body.milestone-page .milestone-back-row .back-button:hover .milestone-back-icon,
body.milestone-page .milestone-back-row .back-button:focus-visible .milestone-back-icon {
    transform: translateX(-3px);
}

body.milestone-page .milestone-back-row .back-button:focus-visible {
    outline: 3px solid rgba(255, 214, 10, .65);
    outline-offset: 4px;
}

@media (max-width: 900px) {
    body.milestone-page .milestone-section {
        padding: 28px 18px 75px;
    }

    body.milestone-page .milestone-groups {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.milestone-page .milestone-panel {
        border-radius: 24px;
    }
}

@media (max-width: 560px) {
    body.milestone-page .milestone-panel-header {
        min-height: 0;
        padding: 24px 20px;
    }

    body.milestone-page .milestone-panel-icon {
        flex-basis: 56px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    body.milestone-page .milestone-panel-header h2 {
        font-size: 23px;
    }

    body.milestone-page .milestone-link-list {
        padding: 18px;
    }

    body.milestone-page .milestone-link-card {
        grid-template-columns: 44px minmax(0, 1fr) 24px;
        gap: 12px;
        min-height: 82px;
        padding: 14px;
    }

    body.milestone-page .milestone-number {
        width: 42px;
        height: 42px;
    }

    body.milestone-page .milestone-link-card strong {
        font-size: 15px;
    }

    body.milestone-page .milestone-back-row {
        margin-top: 32px;
        padding: 0;
    }

    body.milestone-page .milestone-back-row .back-button {
        padding: 16px 18px;
        border-width: 2px;
        border-radius: 14px;
        font-size: 16px;
    }

    body.milestone-page .milestone-back-icon {
        font-size: 21px;
    }
}

/* ===========================
   A.Y. 2026-2027 COMING SOON
=========================== */

body.upcoming-milestone-page .upcoming-milestone-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 26px;
}

body.upcoming-milestone-page .upcoming-milestone-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: min(900px, 100%);
    padding: 58px 64px;
    border: 2px solid rgba(255, 214, 10, .75);
    border-top: 8px solid #FFD60A;
    border-radius: 30px;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 214, 10, .23), transparent 30%),
        linear-gradient(140deg, rgba(255, 255, 255, .98), rgba(250, 243, 255, .96));
    box-shadow: 0 24px 58px rgba(36, 0, 70, .25);
    text-align: center;
}

body.upcoming-milestone-page .upcoming-milestone-card::before,
body.upcoming-milestone-page .upcoming-milestone-card::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(90, 24, 154, .09);
    border-radius: 50%;
}

body.upcoming-milestone-page .upcoming-milestone-card::before {
    width: 340px;
    height: 340px;
    top: -215px;
    right: -105px;
}

body.upcoming-milestone-page .upcoming-milestone-card::after {
    width: 240px;
    height: 240px;
    bottom: -175px;
    left: -85px;
}

body.upcoming-milestone-page .upcoming-milestone-icon {
    display: grid;
    width: 88px;
    height: 88px;
    margin: 0 auto 22px;
    place-items: center;
    border: 3px solid #FFD60A;
    border-radius: 50%;
    background: linear-gradient(145deg, #240046, #5A189A);
    box-shadow: 0 14px 28px rgba(60, 9, 108, .24);
    font-size: 42px;
}

body.upcoming-milestone-page .upcoming-milestone-label {
    margin: 0 0 10px;
    color: #7B4AA6;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

body.upcoming-milestone-page .upcoming-milestone-card h2 {
    margin: 0;
    color: #3C096C;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
}

body.upcoming-milestone-page .upcoming-milestone-copy {
    max-width: 700px;
    margin: 22px auto 0;
    color: #55465E;
    font-size: 19px;
    line-height: 1.65;
}

body.upcoming-milestone-page .upcoming-milestone-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 11px 18px;
    border: 1px solid rgba(90, 24, 154, .14);
    border-radius: 999px;
    background: #F6ECFF;
    color: #5A189A;
    font-size: 14px;
    font-weight: 800;
}

body.upcoming-milestone-page .upcoming-milestone-status span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFD60A;
    box-shadow: 0 0 0 5px rgba(255, 214, 10, .2);
}

body.upcoming-milestone-page .milestone-back-row {
    width: min(900px, 100%);
    margin-top: 34px;
}

@media (max-width: 700px) {
    body.upcoming-milestone-page .upcoming-milestone-section {
        padding-top: 18px;
    }

    body.upcoming-milestone-page .upcoming-milestone-card {
        padding: 42px 24px;
        border-radius: 24px;
    }

    body.upcoming-milestone-page .upcoming-milestone-icon {
        width: 74px;
        height: 74px;
        font-size: 35px;
    }

    body.upcoming-milestone-page .upcoming-milestone-copy {
        font-size: 16px;
    }
}

/* ===========================
   CONCERN HUB PAGE
=========================== */

body.concern-page .concern-hub-section {
    padding-top: 30px;
}

body.concern-page .concern-intro-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

body.concern-page .concern-intro-card::after {
    content: "";
    position: absolute;
    right: -95px;
    bottom: -155px;
    z-index: -1;
    width: 310px;
    height: 310px;
    border: 2px solid rgba(90, 24, 154, .08);
    border-radius: 50%;
}

body.concern-page .concern-intro-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    place-items: center;
    border: 3px solid #FFD60A;
    border-radius: 50%;
    background: linear-gradient(145deg, #240046, #5A189A);
    box-shadow: 0 12px 25px rgba(60, 9, 108, .22);
    font-size: 34px;
}

body.concern-page .concern-grid {
    align-items: stretch;
}

body.concern-page .concern-grid .resource-hub-card {
    position: relative;
    display: flex;
    min-height: 450px;
    flex-direction: column;
    border-top: 7px solid #FFD60A;
}

body.concern-page .concern-grid .resource-hub-card:hover {
    transform: translateY(-7px);
}

body.concern-page .concern-card-label {
    margin: 0 0 9px;
    color: #7B4AA6;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .14em;
    line-height: 1.3;
    text-transform: uppercase;
}

body.concern-page .concern-grid .resource-hub-card h3 {
    margin-bottom: 14px;
}

body.concern-page .concern-grid .resource-hub-card > p:not(.concern-card-label) {
    margin-bottom: 26px;
}

body.concern-page .concern-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin-top: auto;
    padding: 16px 24px;
    border: 2px solid #3C096C;
    border-radius: 14px;
    background: #FFD60A;
    color: #3C096C;
    box-shadow: 0 10px 22px rgba(60, 9, 108, .17);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

body.concern-page .concern-submit-button span {
    color: inherit;
    font-size: 23px;
    line-height: 1;
    transition: transform .25s ease;
}

body.concern-page .concern-submit-button:hover,
body.concern-page .concern-submit-button:focus-visible {
    transform: translateY(-3px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(60, 9, 108, .25);
}

body.concern-page .concern-submit-button:hover span,
body.concern-page .concern-submit-button:focus-visible span {
    transform: translateX(4px);
}

body.concern-page .concern-submit-button:focus-visible {
    outline: 3px solid rgba(255, 214, 10, .75);
    outline-offset: 4px;
}

body.concern-page .concern-assurance-list {
    display: grid;
    gap: 12px;
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

body.concern-page .concern-assurance-list li {
    position: relative;
    padding: 13px 16px 13px 46px;
    border: 1px solid rgba(90, 24, 154, .12);
    border-radius: 13px;
    background: #F8F2FC;
    color: #3C096C;
    font-size: 16px;
    font-weight: 800;
}

body.concern-page .concern-assurance-list li::before {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 16px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #FFD60A;
    color: #3C096C;
    font-size: 13px;
    font-weight: 900;
    transform: translateY(-50%);
}

body.concern-page .concern-support-note {
    max-width: 1050px;
    margin: 34px auto 0;
    padding: 16px 22px;
    border-left: 6px solid #FFD60A;
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    color: #4E3B58;
    box-shadow: 0 10px 24px rgba(60, 9, 108, .12);
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 900px) {
    body.concern-page .concern-grid .resource-hub-card {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    body.concern-page .concern-hub-section {
        padding-top: 20px;
    }

    body.concern-page .concern-intro-icon {
        width: 62px;
        height: 62px;
        font-size: 29px;
    }

    body.concern-page .concern-submit-button {
        width: 100%;
        padding: 15px 16px;
        font-size: 15px;
    }

    body.concern-page .concern-support-note {
        margin-top: 25px;
        font-size: 14px;
    }
}
/* ==========================================================
   ACCOMPLISHMENT DETAIL READABILITY
   Phone view and phone browsers using "Desktop site" only.
   These rules are intentionally scoped so PC/laptop remains unchanged.
========================================================== */

@media (max-width: 900px) {
    body.accomplishment-detail-page .page-title {
        font-size: 30px !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, .7) !important;
    }

    body.accomplishment-detail-page .accomplishment-card,
    body.accomplishment-detail-page .text-left-card,
    body.accomplishment-detail-page .case-photo-card,
    body.accomplishment-detail-page .polsay-pair-card,
    body.accomplishment-detail-page .fof-gallery-card,
    body.accomplishment-detail-page .polscibles-card {
        background: rgba(255, 255, 255, .82) !important;
        border-color: rgba(255, 255, 255, .82) !important;
    }

    body.accomplishment-detail-page .accomplishment-card h2,
    body.accomplishment-detail-page .text-left-card h2 {
        font-size: 29px !important;
        line-height: 1.25 !important;
    }

    body.accomplishment-detail-page .accomplishment-card p,
    body.accomplishment-detail-page .text-left-card p,
    body.accomplishment-detail-page .case-photo-card p,
    body.accomplishment-detail-page .polscibles-content p {
        color: #241135 !important;
        font-size: 18px !important;
        line-height: 1.68 !important;
        text-align: left !important;
    }

    body.accomplishment-detail-page .fof-pair-title,
    body.accomplishment-detail-page .polscibles-content h2 {
        font-size: 27px !important;
        line-height: 1.28 !important;
    }

    body.accomplishment-detail-page .episode-badge,
    body.accomplishment-detail-page .btn,
    body.accomplishment-detail-page .back-button {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }
}

/* A phone in browser "Desktop site" mode keeps a wide layout viewport.
   Coarse pointer + no hover identifies that touch-device presentation. */
@media (min-width: 901px) and (hover: none) and (pointer: coarse) {
    body.accomplishment-detail-page .page-banner {
        margin-top: 92px !important;
        padding-top: 34px !important;
    }

    body.accomplishment-detail-page .page-title {
        font-size: 44px !important;
        line-height: 1.16 !important;
        font-weight: 800 !important;
        text-shadow: 0 2px 3px rgba(255, 255, 255, .72) !important;
    }

    body.accomplishment-detail-page .accomplishment-section {
        padding-left: 4% !important;
        padding-right: 4% !important;
    }

    body.accomplishment-detail-page .accomplishment-card,
    body.accomplishment-detail-page .text-left-card {
        width: calc(100% - 90px) !important;
        max-width: 820px !important;
        padding: 46px 50px !important;
        background: rgba(255, 255, 255, .86) !important;
        border-color: rgba(255, 255, 255, .86) !important;
    }

    body.accomplishment-detail-page .accomplishment-card h2,
    body.accomplishment-detail-page .text-left-card h2 {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-bottom: 25px !important;
    }

    body.accomplishment-detail-page .accomplishment-card p,
    body.accomplishment-detail-page .text-left-card p {
        color: #241135 !important;
        font-size: 29px !important;
        line-height: 1.58 !important;
        text-align: left !important;
        margin-bottom: 30px !important;
    }

    body.accomplishment-detail-page .case-main-image,
    body.accomplishment-detail-page .poli-main-image {
        width: calc(100% - 100px) !important;
        max-width: 820px !important;
    }

    body.accomplishment-detail-page .case-photo-card,
    body.accomplishment-detail-page .polsay-pair-card,
    body.accomplishment-detail-page .fof-gallery-card {
        width: calc(100% - 90px) !important;
        max-width: 860px !important;
        padding: 36px !important;
        background: rgba(255, 255, 255, .84) !important;
    }

    body.accomplishment-detail-page .case-photo-card p {
        color: #241135 !important;
        font-size: 26px !important;
        line-height: 1.55 !important;
    }

    body.accomplishment-detail-page .fof-pair-title {
        font-size: 36px !important;
        line-height: 1.25 !important;
    }

    body.accomplishment-detail-page .polscibles-card {
        width: calc(100% - 70px) !important;
        max-width: 920px !important;
        padding: 38px !important;
        gap: 38px !important;
        background: rgba(255, 255, 255, .84) !important;
    }

    body.accomplishment-detail-page .polscibles-content h2 {
        font-size: 37px !important;
        line-height: 1.22 !important;
    }

    body.accomplishment-detail-page .polscibles-content p {
        color: #241135 !important;
        font-size: 27px !important;
        line-height: 1.58 !important;
    }

    body.accomplishment-detail-page .episode-badge,
    body.accomplishment-detail-page .btn,
    body.accomplishment-detail-page .back-button {
        font-size: 24px !important;
        line-height: 1.25 !important;
    }
}
/* ==========================================================
   ABOUT PAGE READABILITY
   Phone view and phone browsers using "Desktop site" only.
   PC/laptop styling is intentionally unchanged.
========================================================== */

@media (max-width: 900px) {
    body.about-page .page-title {
        font-size: 30px !important;
        font-weight: 800 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, .72) !important;
    }

    body.about-page .page-subtitle {
        color: #301052 !important;
        font-size: 18px !important;
        line-height: 1.65 !important;
        padding: 0 16px !important;
    }

    body.about-page .about-wide-card,
    body.about-page .about-history-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card {
        background: rgba(255, 255, 255, .84) !important;
        border-color: rgba(255, 255, 255, .84) !important;
    }

    body.about-page .about-wide-card h2,
    body.about-page .about-logo-card h2,
    body.about-page .about-small-card h2,
    body.about-page .about-values-card h2,
    body.about-page .about-officers-card h2,
    body.about-page .about-outro-card h2 {
        font-size: 29px !important;
        line-height: 1.25 !important;
    }

    body.about-page .about-wide-card h3,
    body.about-page .about-logo-card h3,
    body.about-page .about-small-card h3,
    body.about-page .about-values-card h3 {
        font-size: 23px !important;
        line-height: 1.3 !important;
    }

    body.about-page .about-wide-card p,
    body.about-page .about-logo-card p,
    body.about-page .about-small-card p,
    body.about-page .about-values-card p,
    body.about-page .about-officers-card p,
    body.about-page .about-outro-card p,
    body.about-page .about-small-card li,
    body.about-page .about-values-card li {
        min-height: 0 !important;
        color: #241135 !important;
        font-size: 18px !important;
        line-height: 1.68 !important;
        text-align: left !important;
    }

    body.about-page .value-boxes div,
    body.about-page .btn {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }
}

/* Phone browser in "Desktop site" mode: enlarge the CSS typography before
   the browser scales the wide page down to the physical phone screen. */
@media (min-width: 901px) and (hover: none) and (pointer: coarse) {
    body.about-page .page-banner {
        width: calc(100% - 80px) !important;
        max-width: 900px !important;
        margin-top: 92px !important;
        padding-top: 34px !important;
    }

    body.about-page .page-title {
        font-size: 44px !important;
        line-height: 1.16 !important;
        font-weight: 800 !important;
        text-shadow: 0 2px 3px rgba(255, 255, 255, .72) !important;
    }

    body.about-page .page-subtitle {
        max-width: 820px !important;
        color: #301052 !important;
        font-size: 28px !important;
        line-height: 1.62 !important;
    }

    body.about-page .about-stack-section,
    body.about-page .about-info-section,
    body.about-page .about-logo-section,
    body.about-page .values {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: 1fr !important;
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    body.about-page .about-hero-image,
    body.about-page .about-wide-card,
    body.about-page .about-history-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card {
        width: calc(100% - 90px) !important;
        max-width: 820px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    body.about-page .about-wide-card,
    body.about-page .about-history-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card {
        min-height: 0 !important;
        padding: 46px 50px !important;
        background: rgba(255, 255, 255, .88) !important;
        border-color: rgba(255, 255, 255, .88) !important;
    }

    body.about-page .about-wide-card h2,
    body.about-page .about-logo-card h2,
    body.about-page .about-small-card h2,
    body.about-page .about-values-card h2,
    body.about-page .about-officers-card h2,
    body.about-page .about-outro-card h2 {
        font-size: 42px !important;
        line-height: 1.2 !important;
        margin-bottom: 26px !important;
    }

    body.about-page .about-wide-card h3,
    body.about-page .about-logo-card h3,
    body.about-page .about-small-card h3,
    body.about-page .about-values-card h3 {
        font-size: 34px !important;
        line-height: 1.28 !important;
    }

    body.about-page .about-wide-card p,
    body.about-page .about-logo-card p,
    body.about-page .about-small-card p,
    body.about-page .about-values-card p,
    body.about-page .about-officers-card p,
    body.about-page .about-outro-card p,
    body.about-page .about-small-card li,
    body.about-page .about-values-card li {
        min-height: 0 !important;
        color: #241135 !important;
        font-size: 28px !important;
        line-height: 1.65 !important;
        text-align: left !important;
    }

    body.about-page .value-boxes div,
    body.about-page .btn {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
}
/* ==========================================================
   PC / LAPTOP READABILITY MATCH
   Extends the clearer mobile treatment to About and the
   Social Media Engagement / Onsite Activities detail pages.
========================================================== */

@media (min-width: 901px) and (hover: hover),
       (min-width: 901px) and (pointer: fine) {
    body.about-page .about-wide-card,
    body.about-page .about-history-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card,
    body.accomplishment-detail-page .accomplishment-card,
    body.accomplishment-detail-page .text-left-card,
    body.accomplishment-detail-page .case-photo-card,
    body.accomplishment-detail-page .polsay-pair-card,
    body.accomplishment-detail-page .fof-gallery-card,
    body.accomplishment-detail-page .polscibles-card {
        background: rgba(255, 255, 255, .9) !important;
        border-color: rgba(255, 214, 10, .52) !important;
        box-shadow: 0 18px 42px rgba(43, 17, 82, .2) !important;
        backdrop-filter: blur(3px) saturate(1.05) !important;
        -webkit-backdrop-filter: blur(3px) saturate(1.05) !important;
    }

    body.about-page .page-title,
    body.accomplishment-detail-page .page-title {
        font-weight: 850 !important;
        text-shadow: 0 1px 2px rgba(255, 255, 255, .62) !important;
    }

    body.about-page .about-wide-card h2,
    body.about-page .about-logo-card h2,
    body.about-page .about-small-card h2,
    body.about-page .about-values-card h2,
    body.about-page .about-officers-card h2,
    body.about-page .about-outro-card h2 {
        color: #3C096C !important;
        font-size: 38px !important;
        line-height: 1.22 !important;
    }

    body.about-page .about-wide-card h3,
    body.about-page .about-logo-card h3,
    body.about-page .about-small-card h3,
    body.about-page .about-values-card h3 {
        color: #3C096C !important;
        font-size: 27px !important;
        line-height: 1.3 !important;
    }

    body.about-page .about-wide-card p,
    body.about-page .about-logo-card p,
    body.about-page .about-small-card p,
    body.about-page .about-values-card p,
    body.about-page .about-officers-card p,
    body.about-page .about-outro-card p,
    body.about-page .about-small-card li,
    body.about-page .about-values-card li {
        min-height: 0 !important;
        color: #241135 !important;
        font-size: 21px !important;
        line-height: 1.75 !important;
    }

    body.about-page .value-boxes div,
    body.about-page .btn {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }

    body.accomplishment-detail-page .accomplishment-card h2,
    body.accomplishment-detail-page .text-left-card h2 {
        color: #3C096C !important;
        font-size: 38px !important;
        line-height: 1.24 !important;
    }

    body.accomplishment-detail-page .accomplishment-card p,
    body.accomplishment-detail-page .text-left-card p {
        color: #241135 !important;
        font-size: 22px !important;
        line-height: 1.68 !important;
        text-align: left !important;
    }

    body.accomplishment-detail-page .case-photo-card p {
        color: #241135 !important;
        font-size: 20px !important;
        line-height: 1.58 !important;
    }

    body.accomplishment-detail-page .fof-pair-title {
        color: #3C096C !important;
        font-size: 30px !important;
        line-height: 1.28 !important;
    }

    body.accomplishment-detail-page .polscibles-content h2 {
        color: #3C096C !important;
        font-size: 35px !important;
        line-height: 1.25 !important;
    }

    body.accomplishment-detail-page .polscibles-content p {
        color: #241135 !important;
        font-size: 21px !important;
        line-height: 1.68 !important;
    }
}
/* ==========================================================
   ABOUT PAGE BALANCE FIX
   Removes the glow and prevents oversized text in a phone's
   browser "Desktop site" view.
========================================================== */

body.about-page .page-title {
    text-shadow: none !important;
}

@media (max-width: 900px) {
    body.about-page .page-title {
        text-shadow: none !important;
    }
}

@media (min-width: 901px) and (hover: none) and (pointer: coarse) {
    body.about-page .page-title {
        font-size: 38px !important;
        line-height: 1.2 !important;
        text-shadow: none !important;
    }

    body.about-page .page-subtitle {
        max-width: 820px !important;
        font-size: 20px !important;
        line-height: 1.65 !important;
    }

    body.about-page .about-wide-card,
    body.about-page .about-history-card,
    body.about-page .about-logo-card,
    body.about-page .about-small-card,
    body.about-page .about-values-card,
    body.about-page .about-officers-card,
    body.about-page .about-outro-card {
        padding: 44px 42px !important;
    }

    body.about-page .about-wide-card h2,
    body.about-page .about-logo-card h2,
    body.about-page .about-small-card h2,
    body.about-page .about-values-card h2,
    body.about-page .about-officers-card h2,
    body.about-page .about-outro-card h2 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    body.about-page .about-wide-card h3,
    body.about-page .about-logo-card h3,
    body.about-page .about-small-card h3,
    body.about-page .about-values-card h3 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    body.about-page .about-wide-card p,
    body.about-page .about-logo-card p,
    body.about-page .about-small-card p,
    body.about-page .about-values-card p,
    body.about-page .about-officers-card p,
    body.about-page .about-outro-card p,
    body.about-page .about-small-card li,
    body.about-page .about-values-card li {
        font-size: 20px !important;
        line-height: 1.7 !important;
    }

    body.about-page .value-boxes div,
    body.about-page .btn {
        font-size: 18px !important;
    }
}
