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

html{
    scroll-behavior:smooth;
    scroll-padding-top:96px;
}

body{
    margin:0;
    min-height:100vh;
    overflow-x:hidden;
    overflow-y:auto;

    background-image: 
        radial-gradient(circle at 15% 15%, rgba(243, 222, 180, 0), transparent 24%),
        radial-gradient(circle at 85% 0%, rgba(255, 244, 214, 0.089), transparent 30%),
        linear-gradient(135deg, rgba(25, 15, 8, 0.087) 0%, rgba(74, 41, 19, 0.498) 45%, rgba(16, 9, 5, 0.433) 100%),
        url('https://www.thefilipinoexpat.com/wp-content/uploads/2024/05/1280px-Supreme_Court_of_the_Philippines-800x600.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;

}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.16));
    pointer-events: none;
    z-index: 0;
}

/* Ensure content is above the overlay */
header,
main,
footer {
    position: relative;
    z-index: 1;
}

main{
    min-height:auto;
}

/* Header */
header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(18, 80, 60, 0.965);
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:nowrap;
    gap:12px;
    padding:10px 40px;
}

.logo{
    display:flex;
    align-items:center;
    gap:10px;
    width: 20%;
}

.logo img{
    width:100px;
}

.logo-text{
    color:white;
    font-size:12px !important;
}

.logo-text h3{
    margin:0;
    font-size:16px !important; 
    line-height:1.1;
    font-weight:700;
}

.logo-text p{
    margin:0;
    font-size:11px;
    line-height:1.2;
    width: 250px;
}

@media (max-width: 780px) {
 
.logo{
    display:flex;
    align-items:center;
    gap:10px;
    width: 100%;
}
}

nav{
    display: flex;
    justify-content: center;
    align-items: center;
    gap:clamp(16px, 2.6vw, 80px);
    width: 75%;
}

nav a{
    font-size: 16px;
    font-weight:bold;
    text-transform: uppercase;
    text-decoration: none;
    color:rgb(255, 255, 255);
    text-decoration:none;
    padding: 0.4rem 0;
    transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.dropbtn{
    font-size: 18px;
}

/* Active main navigation item */
nav > a.active,
nav .dropdown.active .dropbtn {
    color: #78fdc6;
}

/* Active submenu item */
.dropdown-content a.active {
    color: #030303;
    background: rgba(118, 237, 187, 0.804);
    font-weight: bold;
}

/*  active ABOUT US */
nav .dropdown.active .dropbtn {
    border-bottom: 3px solid #78fdc6;
    padding-bottom: 5px;
}

nav a.active {
    border-bottom: 3px solid #78fdc6;
    padding-bottom: 5px;
}

.nav-toggle{
    display:none;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:1px solid rgba(255,255,255,0.45);
    border-radius:8px;
    background:rgba(100, 97, 97, 0.08);
    color:#ffffff;
    cursor:pointer;
    
}

.nav-toggle i{
    font-size:18px;
    
}

.dropdown{
    position:relative;
}

.dropbtn{
    background:transparent;
    border:none;
    color:rgb(255, 255, 255);
    font-weight:bold;
    cursor:pointer;
    padding:0;
    margin:0;
    font-size:inherit;
    transition: none; 
}
nav a:hover,
.dropbtn:hover{
    color:#78fdc6;
}

/* Dim-on-hover disabled: keep all main nav items at full opacity
       so ABOUT US no longer fades when hovering other links. */

.dropbtn:focus,
.dropbtn:active{
    outline: none;
    color:rgb(255, 255, 255); 
}

.dropdown-content{
    display:none;
    position:absolute;
    top:110%;
    left:0;
    background: rgba(7, 63, 45, 0.96);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    min-width:180px;
    box-shadow:0 6px 18px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.14);
    border-radius:6px;
    overflow:hidden;
    z-index:50;
}

.dropdown.open .dropdown-content{
    display:block;
}

.dropdown-content a{
    display:block;
    color:#ffffff;
    padding:10px 14px;
    text-decoration:none;
    font-size:14px;
}

.dropdown-content a:hover{
    background:rgba(255, 255, 255, 0.14);
}

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

    /* Submenu container */
    header nav .dropdown-content {
        width: 100%;
        padding: 0;
    }

    /* Submenu text */
    header nav .dropdown-content a {
        font-size: 8px;
        font-weight: 600;
        padding: 8px 20px;
        line-height: 1.2;
    }

}

/* Overlay */
.overlay{
    background:rgba(0,0,0,0.35);
    min-height:calc(100vh - 80px);
    padding:0;
    width:100%;
    display:flex;
    flex-direction:column;
}

/* Main Layout */
.content{
    border:2px solid #00aaff;
    display:grid;
    grid-template-columns:650px 1fr;
    gap:clamp(18px, 2.6vw, 30px);
    padding:clamp(16px, 2.4vw, 35px);
    background:rgba(255,255,255,0.05);
    width:100%;
    max-width:none;
    margin:0;
    min-height:100%;
    overflow-x:hidden;
}

.page-section{
    width:100%;
    padding:clamp(8px, 1.4vw, 10px) 0;
    color: #fff;
}

@media (max-width: 900px){
    .history-page-section,
    .data-protection-page-section,
    .core-values-page-section,
    .annual-page-section,
    .membership-page{
        width:min(100%, 100%);
        margin:20px auto;
        padding:clamp(22px, 4vw, 32px);
        border-radius:12px;
    }

    .history-header h1,
    .data-protection-header h1,
    .core-values-header h1,
    .annual-report-header h1,
    .membership-header h1{
        font-size:clamp(24px, 6vw, 34px);
    }

    .history-content h2,
    .data-protection-content h2,
    .core-values-intro h2,
    .annual-feature-copy h2,
    .membership-section-heading h2{
        font-size:clamp(20px, 4.6vw, 28px);
    }

    .history-content p,
    .history-header p,
    .data-protection-header p,
    .data-protection-content p,
    .core-values-header p,
    .core-values-intro p,
    .annual-report-header p,
    .membership-header p,
    .annual-feature-copy p,
    .membership-guidelines p,
    .membership-faqs p{
        font-size:15px;
        text-align:left;
    }
}


/* History */

.history-page-section {
    max-width: 1500px;
    margin: 50px auto;
    padding: 50px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.history-header{
    text-align:center;
    margin-bottom:50px;
}

.history-header h1{
    font-size:3rem;
    color:#0b6b3a;
    margin-bottom:15px;
    font-weight:700;
}

.history-header p{
    color:#666;
    font-size:1.1rem;
    line-height:1.8;
}

.history-content h2{
    color:#0b6b3a;
    font-size:2rem;
    margin-top:45px;
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:3px solid #0b6b3a;
}

.history-content p{
    font-size:1.05rem;
    color:#444;
    line-height:1.9;
    text-align:justify;
    margin-bottom:18px;
}

.history-content strong{
    color:#0b6b3a;
}

.history-content hr{
    margin:55px 0;
    border:none;
    border-top:1px solid #d9d9d9;
}

/* ===========================
   HISTORY CARDS
=========================== */

.history-card{
    background:#f8fbf8;
    border-left:6px solid #0b6b3a;
    padding:25px 30px;
    border-radius:12px;
    margin:25px 0;
    transition:.3s ease;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
}


.history-card h3{
    color:#0b6b3a;
    margin-bottom:12px;
    font-size:1.3rem;
}

.history-card p{
    margin:0;
}

/* ===========================
   LIST
=========================== */

.history-list{
    margin:25px 0;
    padding-left:0;
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:15px;
    list-style:none;
}

.history-list li{
    background:#ffffff;
    border-left:5px solid #0b6b3a;
    padding:18px 20px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
    font-weight:500;
    color:#333;
    transition:.3s;
}



.reader-activity-caption,
.reader-activity-narrative,
.meta-item p{
    color: #000000 !important;
}

/* check icon */

.history-list li::before{
    content:"✔";
    color:#0b6b3a;
    font-weight:bold;
    margin-right:10px;
}


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

@media (max-width:992px){

    .page-section{
        padding:40px 30px;
        margin:30px 20px;
    }

    .history-header h1{
        font-size:2.5rem;
    }

    .history-content h2{
        font-size:1.7rem;
    }

}

@media (max-width:768px){

    .page-section{
        padding:30px 20px;
    }

    .history-header h1{
        font-size:2rem;
    }

    .history-header p{
        font-size:1rem;
    }

    .history-content p{
        font-size:1rem;
    }

    .history-card{
        padding:20px;
    }

    .history-card h3{
        font-size:1.15rem;
    }

    .history-list{
        grid-template-columns:1fr;
    }

}

@media (max-width:480px){

    .page-section{
        padding:20px 15px;
    }

    .history-header h1{
        font-size:1.7rem;
    }

    .history-content h2{
        font-size:1.4rem;
    }

}
/* ===========================
   DATA PRIVACY PAGE
=========================== */

.data-protection-page-section{
    max-width:1500px;
    margin:50px auto;
    padding:50px;
    background:rgba(255,255,255,.97);
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
}

/* ===========================
   HEADER
=========================== */

.data-protection-header{
    text-align:center;
    margin-bottom:50px;
}

.data-protection-header h1{
    font-size:3rem;
    color:#0b6b3a;
    margin-bottom:15px;
    font-weight:700;
}

.data-protection-header p{
    color:#666;
    font-size:1.1rem;
    line-height:1.8;
    max-width:850px;
    margin:10px auto;
}

/* ===========================
   CONTENT
=========================== */

.data-protection-content h2{
    color:#0b6b3a;
    font-size:2rem;
    margin-top:45px;
    margin-bottom:20px;
    padding-bottom:10px;
    border-bottom:3px solid #0b6b3a;
}

.data-protection-content p{
    color:#444;
    font-size:1.05rem;
    line-height:1.9;
    text-align:justify;
    margin-bottom:18px;
}

.data-protection-content strong{
    color:#0b6b3a;
}

.data-protection-content hr{
    margin:50px 0;
    border:none;
    border-top:1px solid #d9d9d9;
}

/* ===========================
   INFORMATION CARDS
=========================== */

.data-card{
    background:#f8fbf8;
    border-left:6px solid #0b6b3a;
    padding:25px 30px;
    border-radius:12px;
    margin:25px 0;
    box-shadow:0 4px 15px rgba(0,0,0,.05);
    transition:.3s ease;
}


.data-card h3{
    color:#0b6b3a;
    font-size:1.3rem;
    margin-bottom:12px;
}

.data-card p{
    margin:0;
}

/* ===========================
   LIST
=========================== */

.data-list{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:15px;
    list-style:none;
    padding:0;
    margin:30px 0;
}

.data-list li{
    background:#fff;
    border-left:5px solid #0b6b3a;
    padding:18px 20px;
    border-radius:10px;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
    color:#333;
    font-weight:500;
    transition:.3s;
}

.data-list li::before{
    content:"🔒";
    margin-right:10px;
}

/* ===========================
   EFFECTIVE DATE
=========================== */

.effective-date{
    margin-top:40px;
    background:#0b6b3a;
    color:#fff;
    padding:20px;
    border-radius:10px;
    text-align:center;
    font-size:1.1rem;
    font-weight:600;
    letter-spacing:.5px;
}

.effective-date strong{
    color:#fff;
}

/* ===========================
   YEARBOOK READER UI (MODERN)
=========================== */

.content {
    border: none;
    background: transparent;
    padding: 0;
}



.yearbook-library-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.16));
    pointer-events: none;
}

.yearbook-library-shell {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.yearbook-library-header {
    margin-bottom: 2rem;
    color: #f8e8c9;
}

.premium-reader-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
}

.reader-header-main {
    text-align: center;
    grid-column: 1 / -1;
}

.yearbook-library-header h1 {
    font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    margin-bottom: 0.45rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.yearbook-subtitle {
    max-width: 580px;
    margin: 0 auto;
    font-size: 1rem;
    color: rgba(248, 232, 201, 0.9);
    line-height: 1.8;
}

.yearbook-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.yearbook-book {
    border: 0;
    background: transparent;
    text-align: center;
    color: #f7e7c7;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.yearbook-book.is-selected {
    transform: translateY(-4px);
    opacity: 1;
}

.yearbook-cover {
    display: block;
    max-width: 230px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.yearbook-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.yearbook-book .book-title {
    margin-top: 0.85rem;
    display: inline-block;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.2rem;
}

.yearbook-reader {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.yearbook-reader[hidden] {
    display: none !important;
}

.reader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 14, 8, 0.56);
    backdrop-filter: blur(2px);
}

.yearbook-reader.is-visible .reader-panel {
    animation: readerPopIn 0.28s ease-out;
}

@keyframes readerPopIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reader-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 1100px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 20px;
    padding: 1.25rem;
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 255, 255, 0.28), transparent 34%),
        repeating-linear-gradient(90deg, rgba(156, 122, 81, 0.08) 0 1px, rgba(0, 0, 0, 0) 1px 8px),
        linear-gradient(145deg, #dac4a3 0%, #cfb48f 48%, #c5a77f 100%);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.38);
}

.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.reader-intro {
    color: #3b2d1a;
}

.reader-badge {
    margin: 0 0 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    color: #7a5c31;
}

.reader-intro h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
}

.reader-summary {
    margin: 0.35rem 0 0;
    color: #5a4831;
}

.reader-close {
    border: 0;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(66, 41, 22, 0.9);
    color: #f8e6c8;
    cursor: pointer;
}

.reader-close:hover {
    background: rgba(49, 31, 17, 0.96);
}

.reader-stage {
    display: grid;
    place-items: center;
    margin-top: 0.35rem;
    position: relative;
    padding: 10px 6px;
}

.reader-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.reader-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(90, 72, 49, 0.4);
    border-radius: 999px;
    background: rgba(248, 230, 200, 0.6);
    color: #5a4831;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.reader-nav:hover:not(:disabled) {
    background: rgba(90, 72, 49, 0.16);
}

.reader-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.reader-page-indicator {
    min-width: 9.5rem;
    text-align: center;
    color: #6e5534;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.turnjs-reader {
    width: min(100%, 1000px);
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    perspective: 2600px;
    perspective-origin: center center;
    /* Open-book 3D: tilt the whole spread so it reads as a real book lying
       at a slight angle instead of a flat rectangle. rotateY gives the
       horizontal slant without inflating the book's vertical bounds. */
    transform: perspective(1400px) rotateY(-5deg) rotateZ(-0.8deg);
    transform-origin: 50% 50%;
}

#flipbook {
    margin: 0 auto;
    max-width: 100%;
    transform: translateZ(0);
    /* Critical: without preserve-3d this element flattens its subtree into a
       plane, so the sheet's rotateY() renders as an orthographic squash and
       the page-turn looks like an abrupt content swap. */
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

#flipbook .book3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

#flipbook .book-half {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transform-style: preserve-3d;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(0deg, rgba(134, 90, 43, 0.05) 0 1px, transparent 1px 4px),
        #efd7af;
    border: 1px solid rgba(73, 57, 39, 0.26);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 2px 8px rgba(44, 29, 17, 0.18);
}

#flipbook .book-half.left {
    left: 0;
    border-right: 0;
}

#flipbook .book-half.right {
    right: 0;
    border-left: 0;
}

#flipbook .turn-sheet {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 40;
    pointer-events: none;
}

#flipbook .turn-sheet.turn-forward {
    left: 50%;
    transform-origin: left center;
    transform: rotateY(0deg);
}

#flipbook .turn-sheet.turn-forward.animate {
    animation: bookTurnForward 0.9s cubic-bezier(0.55, 0.06, 0.35, 1) forwards;
}

#flipbook .turn-sheet.turn-backward {
    left: 0;
    transform-origin: right center;
    transform: rotateY(0deg);
}

#flipbook .turn-sheet.turn-backward.animate {
    animation: bookTurnBackward 0.9s cubic-bezier(0.55, 0.06, 0.35, 1) forwards;
}

#flipbook .turn-face {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(0deg, rgba(134, 90, 43, 0.05) 0 1px, transparent 1px 4px),
        #efd7af;
    border: 1px solid rgba(73, 57, 39, 0.26);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    overflow: hidden;
}

#flipbook .book-half > .album-page,
#flipbook .turn-face > .album-page {
    width: 100%;
    height: 100%;
}

#flipbook .turn-front {
    transform: rotateY(0deg);
}

#flipbook .turn-back {
    transform: rotateY(180deg);
}

#flipbook .turn-shadow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0));
    opacity: 0;
    mix-blend-mode: multiply;
}

#flipbook .turn-sheet.animate .turn-shadow {
    animation: turnShadowPulse 0.9s cubic-bezier(0.55, 0.06, 0.35, 1) forwards;
}

@keyframes bookTurnForward {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(-180deg);
    }
}

@keyframes bookTurnBackward {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(180deg);
    }
}

@keyframes turnShadowPulse {
    0% {
        opacity: 0.08;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0.1;
    }
}

@media (prefers-reduced-motion: reduce) {
    #flipbook .turn-sheet.animate {
        animation-duration: 0.01s;
    }

    #flipbook .turn-sheet.animate .turn-shadow {
        animation: none;
        opacity: 0;
    }
}

/* Turn.js-era shell styling: scope it to the book body only. Applying it to
   every direct child (#flipbook > div) also hit the turn sheet, whose painted
   background + backface-visibility:hidden fought the page-turn animation. */
#flipbook > .book3d {
    background:
        radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 42%),
        repeating-linear-gradient(0deg, rgba(134, 90, 43, 0.05) 0 1px, transparent 1px 4px),
        #efd7af;
    border: 1px solid rgba(73, 57, 39, 0.26);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        /* Stacked page edges: layered offsets below the book mimic the
           thickness of a real bound volume. */
        0 1px 0 #d9c49a,
        0 2px 0 #ccb68a,
        0 3px 0 #bda77d,
        0 5px 0 #ab9569,
        0 8px 0 #97805a,
        0 12px 22px rgba(44, 29, 17, 0.32);
    border-radius: 10px;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

/* Bound-spine crease down the centre of the open book. */
#flipbook .book3d::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 26px;
    transform: translateX(-50%);
    background: linear-gradient(to right,
        rgba(64, 42, 22, 0) 0%,
        rgba(64, 42, 22, 0.14) 42%,
        rgba(64, 42, 22, 0.26) 50%,
        rgba(64, 42, 22, 0.14) 58%,
        rgba(64, 42, 22, 0) 100%);
    pointer-events: none;
    z-index: 60;
}

#flipbook .hard {
    display: none;
}

#flipbook .album-page {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.55rem 0.75rem;
}

#flipbook .print-layout {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
}

#flipbook .layout-title {
    /* The markup emits this heading empty; hiding it hands the freed vertical
       space to the taped print so the photo is as large as the page allows. */
    display: none;
    margin: 0;
    text-align: center;
    color: #5a3e23;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(0.95rem, 1.4vw, 1.25rem);
}

#flipbook .album-page::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 14px;
    background: linear-gradient(to right, rgba(68, 39, 11, 0.48), rgba(68, 39, 11, 0));
    pointer-events: none;
}

#flipbook .album-page::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: linear-gradient(to bottom, rgba(132, 84, 34, 0.56), rgba(98, 58, 20, 0.5));
    pointer-events: none;
}

#flipbook .scrap-card {
    position: relative;
    /* Landscape 3:2 print matches the photos' native aspect, so the whole
       image fits edge to edge — no crop and no letterbox. */
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    max-height: 92%;
    margin: 0;
    padding: 0;
    /* Borderless: the print itself is taped straight onto the page. */
    background: transparent;
    border: none;
    box-shadow: none;
    transform-origin: center;
}

#flipbook .photo-mat {
    width: 100%;
    height: 100%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

#flipbook .album-page-left .scrap-card {
    transform: rotate(-1.4deg);
}

#flipbook .album-page-right .scrap-card {
    transform: rotate(1.4deg);
}

#flipbook .scrap-card .tape {
    position: absolute;
    width: 56px;
    height: 15px;
    background: linear-gradient(180deg, rgba(255, 250, 214, 0.82), rgba(237, 225, 179, 0.68));
    border: 1px solid rgba(198, 183, 138, 0.45);
    box-shadow: 0 2px 4px rgba(37, 26, 12, 0.14);
    opacity: 0.9;
}

#flipbook .scrap-card .tape-tl {
    top: -8px;
    left: 10px;
    transform: rotate(-16deg);
}

#flipbook .scrap-card .tape-tr {
    top: -8px;
    right: 10px;
    transform: rotate(15deg);
}

#flipbook .scrap-card .tape-bl {
    bottom: -7px;
    left: 10px;
    transform: rotate(10deg);
}

#flipbook .scrap-card .tape-br {
    bottom: -7px;
    right: 10px;
    transform: rotate(-9deg);
}

#flipbook .album-page img {
    width: 100%;
    height: 100%;
    /* Show the WHOLE photo — never crop. The 3:2 card already matches the
       photos' aspect, so contain fills it cleanly; any leftover band reads
       as the print's white border. */
    object-fit: contain;
    object-position: center;
    background: #fffdf7;
    display: block;
    border: none;
    /* The print itself casts the shadow onto the page. */
    box-shadow: 0 10px 22px rgba(53, 35, 17, 0.32);
}

#flipbook .layout-caption {
    margin: 0;
    text-align: center;
    color: #6e5534;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 1.3;
    font-size: clamp(0.82rem, 1.2vw, 0.98rem);
    min-height: 2.6em;
}

#flipbook .layout-page-number {
    margin: 0;
    text-align: center;
    color: #705837;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#flipbook .album-page.filler-page::before {
    display: none;
}

#flipbook .album-page.filler-page .scrap-card,
#flipbook .album-page.filler-page figcaption,
#flipbook .album-page.filler-page .tape {
    display: none;
}

/* Phone-only pill that reveals the detail text; desktop always shows it. */
.reader-details-toggle {
    display: none;
}

.reader-details {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0.9rem;
}

.reader-detail-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(120, 104, 81, 0.2);
    border-radius: 12px;
    padding: 0.85rem 1rem;
}

.reader-detail-label {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #705837;
    font-weight: 700;
}

.reader-activity-title {
    margin: 0 0 0.45rem;
    color: #4e3720;
    font-family: "Playfair Display", Georgia, serif;
}

.reader-activity-caption,
.reader-activity-narrative {
    margin: 0 0 0.55rem;
    color: #443623;
    line-height: 1.6;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 0.9rem;
}

.meta-item span {
    display: block;
    margin-bottom: 0.15rem;
    color: #705837;
    font-size: 0.73rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.meta-item p {
    margin: 0;
    color: #3f3120;
    font-size: 0.92rem;
    line-height: 1.45;
}

.meta-tags {
    grid-column: 1 / -1;
}

/* ===========================
   RESPONSIVE READER
=========================== */

@media (max-width: 1100px) {
    .premium-reader-header {
        grid-template-columns: 1fr;
    }

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

    .reader-details {
        grid-template-columns: 1fr;
    }
}

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

    .reader-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .reader-close {
        align-self: flex-end;
    }

    #flipbook .album-page {
        padding: 0.8rem;
    }
}

/* Phone-sized reader: the SAME two-page spread as desktop, scaled to the
   viewport. The whole panel scrolls (book on top, content below), exactly
   like the desktop layout. */
@media (max-width: 820px) {
    .yearbook-reader {
        padding: 0.4rem;
    }

    .reader-panel {
        width: 100%;
        /* Like desktop: a floating card whose content scrolls inside. */
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
        padding: 0.7rem 0.7rem 0.9rem;
    }

    /* Keep the title and CLOSE on one compact row (overrides the <=768px
       column layout, which wasted a whole row of screen height). */
    .yearbook-reader .reader-toolbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.6rem;
        margin-bottom: 0.55rem;
    }

    .yearbook-reader .reader-close {
        align-self: auto;
        flex: 0 0 auto;
        padding: 0.35rem 0.75rem;
        font-size: 0.72rem;
    }

    .reader-intro h2 {
        font-size: 1.05rem;
    }

    .reader-badge {
        margin: 0 0 0.15rem;
        font-size: 0.66rem;
    }

    .reader-summary {
        margin: 0.3rem 0 0;
        font-size: 0.82rem;
        line-height: 1.5;
    }

    .reader-stage {
        margin-top: 0.55rem;
    }

    /* On phones the detail text starts COLLAPSED: the taped print — not the
       paragraph below it — is what the visitor sees first. A small pill
       button reveals the content on demand. */
    .reader-details-toggle {
        display: flex;
        width: max-content;
        margin: 0.8rem auto 0;
        padding: 0.42rem 1.15rem;
        border: 1px solid rgba(90, 72, 49, 0.55);
        border-radius: 999px;
        background: rgba(248, 230, 200, 0.65);
        color: #5a4831;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .reader-panel.details-collapsed .reader-details {
        display: none;
    }

    /* Details sit in normal flow below the book; the panel itself scrolls. */
    .reader-details {
        margin-top: 0.9rem;
    }

    /* On phones the book is the hero: keep the detail text compact so the
       spread, not the paragraph below it, dominates the screen. */
    .reader-detail-card {
        padding: 0.7rem 0.85rem;
    }

    .reader-activity-title {
        font-size: 1.1rem;
    }

    .reader-activity-caption,
    .reader-activity-narrative {
        font-size: 0.88rem;
        line-height: 1.55;
    }

    .meta-item p {
        font-size: 0.85rem;
    }

    /* Scale the page furniture down so the small spread stays uncluttered. */
    #flipbook .album-page {
        padding: 0.4rem 0.4rem 0.5rem;
    }

    /* Phones show the WHOLE photo: the taped print becomes a landscape 3:2
       card centred on each portrait page, and contain letterboxes (never
       crops) any photo aspect inside it. The paper-white backing reads as
       the print's own border, so the page never shows naked gaps. */
    #flipbook .print-layout {
        justify-content: center;
        gap: 0.35rem;
    }

    #flipbook .scrap-card {
        height: auto;
        aspect-ratio: 3 / 2;
        /* Short/landscape viewports: clamp the print so it never overflows
           the page; contain still shows the whole photo inside the clamp. */
        max-height: 76%;
    }

    #flipbook .album-page img {
        object-fit: contain;
        background: #fffdf7;
    }

    /* Phones keep the OPEN TWO-PAGE SPREAD — the spine and facing pages are
       what make the reader read as a book. Only the furniture scales down. */

    #flipbook .scrap-card .tape {
        width: 34px;
        height: 10px;
    }

    #flipbook .scrap-card .tape-tl {
        top: -5px;
        left: 6px;
    }

    #flipbook .scrap-card .tape-tr {
        top: -5px;
        right: 6px;
    }

    #flipbook .scrap-card .tape-bl {
        bottom: -4px;
        left: 6px;
    }

    #flipbook .scrap-card .tape-br {
        bottom: -4px;
        right: 6px;
    }

    #flipbook .layout-page-number {
        font-size: 0.62rem;
        letter-spacing: 0.06em;
    }

    #flipbook .album-page::before {
        width: 8px;
    }
}

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

@media (max-width:992px){

    .data-protection-page-section{
        margin:30px 20px;
        padding:40px 30px;
    }

    .data-protection-header h1{
        font-size:2.5rem;
    }

    .data-protection-content h2{
        font-size:1.7rem;
    }

}

@media (max-width:768px){

    .data-protection-page-section{
        padding:30px 20px;
    }

    .data-protection-header h1{
        font-size:2rem;
    }

    .data-protection-header p{
        font-size:1rem;
    }

    .data-protection-content p{
        font-size:1rem;
    }

    .data-card{
        padding:20px;
    }

    .data-card h3{
        font-size:1.15rem;
    }

    .data-list{
        grid-template-columns:1fr;
    }

}

@media (max-width:480px){

    .data-protection-page-section{
        padding:20px 15px;
    }

    .data-protection-header h1{
        font-size:1.7rem;
    }

    .data-protection-content h2{
        font-size:1.4rem;
    }

}


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

.core-values-page-section{
    width:100%;
    max-width:1700px;
    margin:35px auto;
    padding:42px;
    color:#fff;
    background:rgba(18, 80, 60, 0.734);
    border:1px solid rgba(255,255,255,0.18);
    border-radius:16px;
    box-shadow:0 18px 44px rgba(0,0,0,0.25);
    overflow-wrap:anywhere;
}

.core-values-header{
    text-align:center;
    padding-bottom:24px;
    border-bottom:1px solid rgba(255,255,255,0.3);
    margin-bottom:30px;
}
.core-values-header h1{
    margin-bottom:12px;
    color:#fff;
    font-size:clamp(28px, 4vw, 52px);
    line-height:1.05;
}
.core-values-header p{
    margin:0 auto;
    color:#edf4f2;
    line-height:1.7;
    font-size:20px;
    max-width:1000px;
}

.core-values-intro{
    max-width:1000px;
}

.core-values-intro h2{
    margin-bottom:12px;
    color:#ffffff;
    font-size:28px;
    max-width:1000px;
}

.core-values-intro p{
    color:#edf4f2;
    line-height:1.75;
    font-size:17px;
    margin-bottom:30px;
    max-width:1000px;
}

.core-values-grid{
    display:grid;
    grid-template-columns:repeat(5, minmax(0, 1fr));
    gap:18px;
}

.core-value-card{
    min-height:245px;
    padding:26px 20px;
    border-radius:8px;
    background:rgba(255,255,255,0.96);
    color:#24352f;
    box-shadow:0 14px 30px rgba(0,0,0,0.22);
}

.core-value-card span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    margin-bottom:18px;
    border-radius:50%;
    background:#eaf4ef;
    color:#1d5c3f;
    font-weight:800;
}

.core-value-card h3{
    margin-bottom:12px;
    color:#164a35;
    font-size:clamp(22px, 2vw, 32px);
    line-height:1.15;
    overflow-wrap:anywhere;
}

.core-value-card p{
    color:#3e5149;
    line-height:1.65;
    font-size:clamp(15px, 1.3vw, 20px);
}

@media (max-width:1200px){
    .core-values-grid{
        grid-template-columns:repeat(3, minmax(0, 1fr));
    }
}

@media (max-width:800px){
    .core-values-page-section{
        margin:24px auto;
        padding:28px 18px;
    }

    .core-values-header p,
    .core-values-intro p{
        font-size:15px;
        text-align:left;
    }

    .core-values-intro h2{
        font-size:clamp(22px, 6vw, 28px);
    }

    .core-values-grid{
        grid-template-columns:1fr;
    }

    .core-value-card{
        min-height:auto;
    }
}

/* =============================
 Annual Report
 =============================== */
.annual-page-section{
    width:100%;
    max-width:1800px;
    margin:35px auto;
    padding:42px;
    color:#fff;
    background:rgba(18, 80, 60, 0.734);
    border:1px solid rgba(255,255,255,0.18);
    border-radius:16px;
    box-shadow:0 18px 44px rgba(0,0,0,0.25);
}

.annual-report-header{
    text-align:center;
    margin-bottom:30px;
    padding-bottom:22px;
    border-bottom:1px solid rgba(255,255,255,0.3);
}

.annual-eyebrow,
.annual-status{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.13);
    color:#e8fff3;
    font-size:12px;
    font-weight:700;
    letter-spacing:1.3px;
    text-transform:uppercase;
}

.annual-report-header h1{
    margin:14px 0 12px;
    font-size:clamp(34px, 4vw, 52px);
    line-height:1.05;
    color:#ffffff;
}

.annual-report-header p{
    max-width:1000px;
    margin:0 auto;
    color:#edf4f2;
    line-height:1.7;
    font-size:17px;
}

.annual-feature{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    margin-bottom:26px;
    padding:28px;
    border-radius:12px;
    background:rgba(255,255,255,0.12);
    border:1px solid rgba(255,255,255,0.18);
}

.annual-feature-copy h2{
    margin:14px 0 10px;
    font-size:28px;
    color:#fff;
}

.annual-feature-copy p{
    max-width:680px;
    color:#edf4f2;
    line-height:1.7;
}

.annual-feature-actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.annual-primary-link,
.report-actions a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:12px 16px;
    border-radius:8px;
    text-decoration:none;
    font-weight:700;
    transition:transform .2s ease, background .2s ease, color .2s ease;
}

.annual-primary-link{
    background:#ffffff;
    color:#1d5c3f;
}

.annual-primary-link:hover,
.report-actions a:hover{
    transform:translateY(-2px);
}

.annual-report-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:80px;
    height:60%;
    
}

.report-card{
    min-height:300px;
    padding:24px 18px;
    color:#24352f;
    background:#ffffff;
    border-radius:8px;
    box-shadow:0 12px 28px rgba(0,0,0,.14);
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
}

.report-details{
    margin:auto 0;
}

.report-details h3{
    font-size:30px;
    margin-bottom:6px;
    color:#1d5c3f;
}

.report-details p{
    color:#63716c;
    margin-bottom:20px;
    font-weight:700;
}

.report-actions{
    width:100%;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin-top:auto;
}

.report-actions a{
    min-height:40px;
    padding:10px 12px;
    background:#eef5f1;
    color:#1d5c3f;
}

.report-actions a:first-child{
    background:#1d5c3f;
    color:#ffffff;
}

.report-actions span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:40px;
    padding:10px 12px;
    border-radius:8px;
    background:#eef1ef;
    color:#6a7772;
    font-weight:700;
}

.annual-note{
    display:flex;
    align-items:flex-start;
    gap:12px;
    margin-top:26px;
    padding:18px 20px;
    border-radius:8px;
    background:#194b3496;
    border:1px solid rgba(255, 255, 255, 0.212);
}

.annual-note i{
    color:#78fdc6;
    margin-top:3px;
}

.annual-note p{
    margin:0;
    color:#edf4f2;
    line-height:1.6;
}

@media (max-width:1200px){
    .annual-report-grid{
        grid-template-columns:repeat(3,1fr);
    }
}

@media (max-width:850px){
    .annual-page-section{
        padding:30px 22px;
        margin:24px auto;
    }

    .annual-feature{
        align-items:flex-start;
        flex-direction:column;
    }

    .annual-feature-actions{
        width:100%;
        justify-content:flex-start;
    }

    .annual-primary-link{
        flex:1;
    }
}

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

@media (max-width:500px){
    .annual-page-section{
        padding:24px 16px;
    }

    .annual-report-grid{
        grid-template-columns:1fr;
    }

    .annual-primary-link{
        width:100%;
    }
}

/* =============================
 Annual Report Detail
 =============================== */
.report-container{
    width:min(1120px, calc(100% - 40px));
    margin:38px auto;
    padding:34px;
    background:rgba(255,255,255,0.97);
    color:#26352f;
    border-radius:12px;
    box-shadow:0 18px 44px rgba(0,0,0,0.22);
}

.report-header{
    position:static;
    display:block;
    padding:0 0 24px;
    margin-bottom:28px;
    background:transparent;
    color:#164a35;
    text-align:center;
    border-bottom:3px solid #164a35;
}

.report-header h1{
    margin-bottom:10px;
    font-size:clamp(30px, 4vw, 46px);
    line-height:1.1;
}

.report-header p{
    color:#4d6159;
    font-size:18px;
    font-weight:700;
    margin-bottom:16px;
}

.intro-section h3,
.section,
.closing-section{
    margin-bottom:5px;
    font-size:18px;
    line-height:1.8;
}

.description,
.closing-section p{
    margin-bottom:16px;
    color:#384941;
    font-size:16px;
    line-height:1.8;
    text-align:justify;
}

.section-title{
    margin:34px 0 16px;
    padding-bottom:10px;
    color:#164a35;
    font-size:28px;
    border-bottom:2px solid #d9e3de;
} 

.section-title-expenses{
    padding-bottom:10px;
    color:#0c3d26b9;
    font-size:20px;
    font-weight:600;
}

.table-wrapper{
    width:100%;
    overflow-x:auto;
    margin-bottom:18px;
    border-radius:8px;
    border:1px solid #dce5e0;
}

.table-wrapper table{
    width:100%;
    min-width:650px;
    border-collapse:collapse;
    background:#fff;
}

.table-wrapper th,
.table-wrapper td{
    padding:14px 16px;
    border-bottom:1px solid #e3e9e6;
    text-align:left;
}

.table-wrapper th{
    background:#164a35;
    color:#fff;
    font-weight:700;
}

.table-wrapper td:not(:first-child),
.table-wrapper th:not(:first-child){
    text-align:right;
}

.total-row td,
.highlight-row td{
    background:#eef6f2;
    color:#164a35;
    font-weight:800;
}

.increase-box{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:14px;
    margin:18px 0;
}

.stat-card{
    padding:18px;
    border-radius:8px;
    background:#f3f7f5;
    border-left:5px solid #1d7c4d;
}

.stat-card h3{
    margin-bottom:8px;
    color:#164a35;
    font-size:16px;
}

.stat-card p{
    margin:0;
    color:#26352f;
    font-size:22px;
    font-weight:800;
}

.signature{
    margin-top:30px;
    padding-top:18px;
    text-align:center;
    border-top:1px solid #d9e3de;
}

.signature h3{
    color:#164a35;
    margin-bottom:6px;
}

.signature p{
    margin-bottom:4px;
    text-align:center;
}

.report-book .book-page{
    display:none;
}

.report-book .book-page.active{
    display:block;
}

.report-controls{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
    margin-top:28px;
    padding-top:20px;
    border-top:1px solid #d9e3de;
}

.report-controls button{
    min-width:110px;
    min-height:42px;
    border:0;
    border-radius:8px;
    background:#1d5c3f;
    color:#fff;
    font-weight:700;
    cursor:pointer;
}

.report-controls button:disabled{
    cursor:not-allowed;
    background:#b8c5bf;
}

.report-controls span{
    color:#26352f;
    font-weight:700;
}

@media (max-width:700px){
    .report-container{
        width:calc(100% - 24px);
        padding:22px 16px;
        margin:20px auto;
        border-radius:8px;
    }

    .intro-section p,
    .description,
    .closing-section p{
        text-align:left;
    }

    .report-header h1{
        font-size:clamp(24px, 8vw, 34px);
    }

    .report-header p{
        font-size:15px;
    }

    .section-title{
        font-size:clamp(21px, 6vw, 26px);
    }


    .table-wrapper{
        border-radius:6px;
    }

    .table-wrapper table{
        min-width:560px;
    }

    .stat-card p{
        font-size:18px;
        overflow-wrap:anywhere;
    }

    .report-controls{
        gap:10px;
    }

    .report-controls button{
        flex:1 1 130px;
    }
}



/* =================================
 SCSLAI Framework 
 ================================*/
.framework-page{
    color:#101010;
}


.framework-scroll::-webkit-scrollbar{
    display:none;
}

.framework-chart{
    position:relative;
    min-width:1080px;
    min-height:1920px;
    padding:0 40px 40px;
    overflow:hidden;
}

.framework-chart::before{
    content:"";
    position:absolute;
    top:112px;
    left:50%;
    width:3px;
    height:1240px;
    background:#f9f7f7;
    transform:translateX(-50%);
    opacity:.9;
}

.framework-watermark{
    display:none;
}

.framework-chart h1{
    position:relative;
    z-index:2;
    text-align:center;
    font-size:42px;
    font-weight:1000;
    line-height:1.05;
    margin-bottom:12px;
    color:#ffffff;
}

.framework-row{
    position:relative;
    z-index:2;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    gap:58px;
    margin-bottom:26px;
}

.framework-row-4::before,
.framework-row-6::before,
.framework-row-7::before,
.framework-row-8::before{
    content:"";
    position:absolute;
    top:-17px;
    left:105px;
    right:105px;
    height:3px;
    background:#ffffff;
    z-index:-1;
}

.framework-row-3::before{
    content:"";
    position:absolute;
    top:-17px;
    left:calc(50% - 220px);
    width:440px;
    height:3px;
    background:#ffffff;
    z-index:-1;
}

.framework-row-3{
    gap:230px;
    margin-top:4px;
}

.framework-row-4,
.framework-row-6,
.framework-row-7,
.framework-row-8{
    justify-content:space-between;
}

.framework-row-4{
    margin-top:8px;
}

.framework-row-5{
    margin-top:0;
}

.framework-person{
    position:relative;
    width:210px;
    text-align:center;
}

.framework-person::before{
    content:"";
    position:absolute;
    top:-26px;
    left:50%;
    width:3px;
    height:26px;
    background:#ffffff;
    transform:translateX(-50%);
    z-index:-1;
}

.framework-row-1 .framework-person::before{
    display:none;
}

.framework-photo{
    width:178px;
    height:208px;
    margin:0 auto 8px;
    display:grid;
    place-items:center;
    border:3px solid #151515;
    background:linear-gradient(180deg, #f5f7f6 0%, #d8e6df 100%);
    color:#14503c;
    font-size:44px;
    font-weight:800;
    overflow:hidden;
}

.framework-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.framework-person h2{
    display:block;
    margin:0 auto;
    padding:5px 7px 2px;
    width:100%;
    background:rgba(255,255,255,0.96);
    border:2px solid #151515;
    border-bottom:none;
    font-size:16px;
    line-height:1.08;
    color:#050505;
}

.framework-person p{
    display:block;
    margin:0 auto;
    padding:0 7px 5px;
    width:100%;
    background:rgba(255,255,255,0.96);
    border:2px solid #151515;
    border-top:none;
    font-size:12px;
    line-height:1.15;
    color:#111;
    font-weight:700;
}

@media (max-width: 768px){
    .framework-scroll{
        max-height:calc(100vh - 220px);
        padding:12px;
        overflow-x:auto;
    }

    .framework-chart{
        min-width:min(1080px, 100%);
        width:100%;
        min-height:1500px;
        padding-left:12px;
        padding-right:12px;
        overflow-x:auto;
    }

    .framework-chart h1{
        font-size:clamp(24px, 6vw, 36px);
    }

    .framework-row{
        flex-wrap:wrap;
        gap:24px;
        justify-content:center;
    }

    .framework-row-3,
    .framework-row-4,
    .framework-row-6,
    .framework-row-7,
    .framework-row-8{
        gap:24px;
        justify-content:center;
        margin-top:0;
    }

    .framework-person{
        width:min(100%, 180px);
    }

    .framework-photo{
        width:min(100%, 160px);
        height:auto;
        aspect-ratio:178 / 208;
        font-size:32px;
    }
}

.mission-page{
    width:min(100%, 1700px);
    margin:clamp(20px, 3vw, 35px) auto;
    padding:clamp(24px, 3vw, 42px);
    color:#fff;
    background:rgba(18, 80, 60, 0.734);
    border:1px solid rgba(255,255,255,0.18);
    border-radius:clamp(12px, 2vw, 16px);
    box-shadow:0 18px 44px rgba(0,0,0,0.25);
}

.mission-header{
    text-align:center;
    padding-bottom:24px;
    border-bottom:1px solid rgba(255,255,255,0.3);
    margin-bottom:30px;
}

.mission-header h1{
    margin-bottom:12px;
    color:#ffffff;
    font-size:clamp(30px, 4vw, 52px);
    line-height:1.1;
}

.mission-header p{
    margin:0 auto;
    color:#edf4f2;
    line-height:1.7;
    font-size:clamp(15px, 1.8vw, 17px);
    max-width:780px;
}

.mission-cards{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:22px;
    align-items:stretch;
}

.mission-card{
    position:relative;
    display:flex;
    flex-direction:column;
    padding:clamp(22px, 2.6vw, 30px) clamp(18px, 2.8vw, 26px);
    border-radius:8px;
    background:rgba(255,255,255,0.96);
    border:1px solid rgba(255,255,255,0.25);
    box-shadow:0 14px 30px rgba(0,0,0,0.22);
    min-height:310px;
    overflow:hidden;
}

.mission-card::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:100%;
    height:6px;
    background:#1d7c4d;
}

.mission-card-label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    margin-bottom:18px;
    padding:8px 12px;
    border-radius:999px;
    background:#eaf4ef;
    color:#1d5c3f;
    font-size:12px;
    font-weight:800;
    letter-spacing:1.1px;
}

.mission-card h2{
    font-size:clamp(22px, 3vw, 32px);
    line-height:1.15;
    margin-bottom:14px;
    color:#164a35;
}

.mission-card p{
    color:#3e5149;
    line-height:1.75;
    font-size:clamp(15px, 2vw, 22px);
    text-align:left;
    word-break:break-word;
}

@media (max-width: 1100px){
    .mission-cards{
        grid-template-columns:1fr;
    }

    .mission-card{
        min-height:auto;
    }
}

@media (max-width: 700px){
    .mission-page{
        margin:16px auto;
        padding:22px 16px;
    }

    .mission-header{
        padding-bottom:16px;
        margin-bottom:20px;
    }

    .mission-header p{
        font-size:15px;
    }

    .mission-card{
        padding:22px 16px;
    }

    .mission-card h2{
        font-size:22px;
    }

    .mission-card p{
        font-size:15px;
        line-height:1.65;
    }
}

/* SCSLAIcares */
.cares-page{
    grid-template-columns:1fr;
    gap:24px;
}

.cares-hero{
    display:flex;
    flex-direction:column;
    gap:18px;
    color:#fff;
}

.cares-hero-content,
.cares-story,
.cares-hero-visual{
    border-radius:24px;
    background:linear-gradient(180deg, rgba(18, 80, 60, 0.88), rgba(8, 43, 32, 0.9));
    border:1px solid rgba(255,255,255,0.12);
    box-shadow:0 18px 40px rgba(0,0,0,0.22);
}

.cares-hero-content{
    padding:34px;
}

.section-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
    padding:8px 14px;
    border-radius:999px;
    background:rgba(255,255,255,0.1);
    color:#e8fff3;
    font-size:12px;
    font-weight:700;
    letter-spacing:1.4px;
    text-transform:uppercase;
    
}

.cares-hero-copy h1,
.cares-story-header h2{
    font-size:clamp(32px, 4vw, 56px);
    line-height:1.02;
    margin-bottom:14px;
}

.cares-lead,
.cares-story-header p,
.cares-impact p,
.care-program-card p{
    color:#edf4f2;
    line-height:1.7;
}

.cares-lead{
    font-size:18px;
    max-width:58ch;
    margin-bottom:14px;
}

.cares-metrics{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:14px;
    margin-top:26px;
}

.care-metric{
    padding:18px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
}

.care-metric strong{
    display:block;
    margin-bottom:8px;
    font-size:17px;
    color:#ffffff;
}

.care-metric span{
    display:block;
    font-size:14px;
    line-height:1.6;
    color:#d8efe6;
}

.cares-hero-visual{
    display:grid;
    grid-template-columns:1.5fr 2fr;
    gap:15px;
    padding:20px;
    align-items:stretch;
}

/* Featured image */

.cares-featured-image{
    margin:0;
    border-radius:15px;
    overflow:hidden;
    height:520px;
}

.cares-featured-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    cursor:pointer;
    transition:.3s;
}

/* 9 Images */

.cares-photo-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    grid-template-rows:repeat(3,1fr);
    gap:12px;
}

.cares-photo-grid img{
    width:100%;
    height:165px;
    object-fit:cover;
    border-radius:12px;
    cursor:pointer;
    transition:.3s;
}

/* Hover */

.cares-featured-image img:hover,
.cares-photo-grid img:hover{
    transform:scale(1.04);
}

.cares-photo-grid img:hover{
    transform:scale(1.03);
}

.cares-story{
    padding:30px;
}

.cares-story-header{
    margin-bottom:22px;
}

.cares-story-header h2{
    font-size:clamp(26px, 3vw, 40px);
    color:#fff;
}

.cares-programs{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
}

.care-program-card{
    padding:22px;
    border-radius:18px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
}

.care-program-card h3,
.cares-impact h3{
    margin-bottom:10px;
    color:#ffffff;
    font-size:20px;
}

.cares-impact{
    margin-top:20px;
    padding:20px 22px;
    border-radius:18px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.1);
}

@media(max-width:1000px){

    .cares-hero-visual{
        grid-template-columns:1fr;
    }

    .cares-featured-image{
        height:420px;
    }

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

    .cares-photo-grid img{
        height:150px;
    }

}

@media(max-width:700px){

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

    .cares-photo-grid img{
        height:180px;
    }

}

@media(max-width:500px){

    .cares-photo-grid{
        grid-template-columns:1fr;
    }

}

.cares-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:50px;
    margin-top:40px;
}

.year-card{
    text-decoration:none;
    text-align:center;
    color:#ffffff;
    transition:.3s;
}

.year-card img{
    width:100%;
    height:400px;
    object-fit: cover;    
    object-position: center; 
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
    transition:.3s;
}


.scslai-header {
    padding-bottom:20px;
    border-bottom:1px solid rgb(255, 255, 255);
    margin-bottom:24px;
}
.scslai-section h1{
    color:#fff; 
}
.scslai-section p{
    color:#edf4f2;
    line-height:1.7;
    font-size:16px;
    max-width:780px;
}

.year-card span{
    display:block;
    margin-top:15px;
    font-size:24px;
    font-weight:700;
}

.year-card:hover{
    transform:translateY(-8px);
}

.year-card:hover img{
    box-shadow:0 12px 25px rgba(0,0,0,.3);
    transform:scale(1.03);
}

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

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

/* ---------- LIGHTBOX ---------- */

.lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.8);
    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:opacity .3s ease, visibility .3s ease;

    z-index:99999;
}

.lightbox.show{
    opacity:1;
    visibility:visible;
}

.lightbox img{
    max-width:90vw;
    max-height:90vh;
    border-radius:12px;
    box-shadow:0 20px 50px rgba(0,0,0,.5);

    transform:scale(.9);
    transition:transform .3s ease;
}

.lightbox.show img{
    transform:scale(1);
}

/* Announcement */
.announcements{
    background:rgba(21, 58, 31, 0.963);
    min-height:600px;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    align-items:center;
    padding:20px 10px 20px;
}

.announcement-posters{
    position: relative;
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    max-width:900px;
    margin:0 auto;
    padding:10px 10px 34px;
    overflow:hidden;
}

.announcement-posters img{
    width:100%;
    max-width:100%;
    height:auto;
    object-fit:contain;
    border:1px solid #ccc;
    display:block;
    border-radius:6px;
    background:#fff;
}

.announcement-control{
    position:absolute;
    top:50%;
    /* offset for the 34px bottom dots padding so buttons center on the image, not the container */
    margin-top:-12px;
    transform:translateY(-50%);
    background:rgba(0, 0, 0, 0.164);
    border:1px solid rgba(255,255,255,0.35);
    color:#ffffff;
    width:30px;
    height:30px;
    border-radius:50%;
    cursor:pointer;
    font-size:20px;
    line-height:1;
    padding-bottom:3px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .25s ease, transform .15s ease;
    z-index:3;
    box-shadow:0 4px 12px rgba(0,0,0,0.35);
}

.announcement-control:hover{
    background:rgba(44, 44, 44, 0.75);
    transform:translateY(-50%) scale(1.05);
}

.announcement-control:focus-visible{
    outline:2px solid #78fdc6;
    outline-offset:2px;
}

.announcement-control.prev{
    left:18px;
}

.announcement-control.next{
    right:18px;
}

.announcement-dots{
    position:absolute;
    left:50%;
    bottom:10px;
    transform:translateX(-50%);
    display:flex;
    align-items:center;
    gap:8px;
    z-index:3;
}

.announcement-dot{
    width:10px;
    height:10px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,0.45);
    cursor:pointer;
    padding:0;
    transition:background .25s ease, transform .15s ease;
}

.announcement-dot.active{
    background:#78fdc6;
    transform:scale(1.2);
}

.title{
    position:relative;
    top:auto;
    left:auto;
    transform:none;
    width:100%;
    max-width:900px;
    margin:0 auto;
    text-align:center;
    font-size:35px;
    font-weight:bold;
    color:rgb(250, 250, 250);
    padding:5px 15px 12px;
    z-index:2;
    border-radius:8px;
}

.announcement-posters img.slide-up{
    animation: slideUp 0.35s ease-out forwards;
}

@keyframes slideUp{
    from{
        opacity:0;
        transform:translateY(30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* Right Section */
.gallery-section,
.right-section{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.featured-banner{
    position:relative;
    overflow:hidden;
    border-radius:12px;
    width:100%;
    min-height:clamp(280px, 46vh, 520px);
}

.carousel{
    position:relative;
    width:100%;
    height:100%;
}

.carousel-slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity .6s ease;
    background:rgba(63, 85, 77, 0.734);
    padding:10px;
}

.carousel-slide.active{
    opacity:1;
}

.carousel-slide img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.slide-caption{
    position:absolute;
    left:12px;
    bottom:12px;
    background:rgba(0, 0, 0, 0.671);
    color:white;
    padding:clamp(10px, 1.8vw, 14px) clamp(12px, 2vw, 20px);
    border-radius:8px;
    font-size:clamp(14px, 2.2vw, 18px);
    max-width:min(90%, 420px);
}

.carousel-control{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.2);
    border:none;
    color:white;
    width:clamp(32px, 5.2vw, 36px);
    height:clamp(32px, 5.2vw, 36px);
    border-radius:50%;
    cursor:pointer;
    font-size:clamp(16px, 2.4vw, 20px);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .3s, color .3s;
}

.carousel-control.prev{
    left:12px;
}

.carousel-control.next{
    right:12px;
}

.carousel-control:hover{
    background:rgba(0,0,0,0.65);
}

/* Home Gallery */
.gallery-home{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:clamp(10px, 1.4vw, 12px);
    width:100%;
}

.gallery-home .gallery-item{
    height:clamp(170px, 26vw, 220px);
    overflow:hidden;
    border-radius:10px;
}


.gallery-home .gallery-item img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform .3s ease;
}


.gallery-home .gallery-item img:hover{
    transform:scale(1.05);
}


/* Home Gallery item label */
.gallery-home .gallery-item-label{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    padding:28px 14px 10px;
    background:linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 100%);
    color:#ffffffd7;
    font-size:clamp(13px, 1.7vw, 16px);
    font-weight:500;
    letter-spacing:.05em;
    text-transform:uppercase;
    pointer-events:none;
    z-index:2;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


/* Keep gallery below carousel */
.gallery-section{
    width:100%;
    margin-top:20px;
    padding:clamp(16px, 2.4vw, 20px);
    background:rgba(69, 137, 112, 0.734);
    border-radius:12px;
}




/* Membership */
.membership-page{
    width:100%;
    max-width:2000px;
    margin:35px auto;
    padding:42px;
    color:#fff;
    background:rgba(18, 80, 60, 0.734);
    border:1px solid rgba(255, 255, 255, 0.18);
    border-radius:16px;
    box-shadow:0 18px 44px rgba(0,0,0,0.25);
    overflow-wrap:anywhere;
}

.membership-header{
    text-align:center;
    padding-bottom:24px;
    border-bottom:1px solid rgba(255,255,255,0.3);
    margin-bottom:30px;
}

.membership-header h1{
    margin-bottom:12px;
    color:#fff;
    font-size:clamp(34px, 4vw, 52px);
    line-height:1.05;
}

.membership-header p{
    margin:0 auto;
    color:#edf4f2;
    line-height:1.7;
    font-size:16px;
    max-width:1000px;
}

.membership-layout{
    display:grid;
    grid-template-columns:minmax(0, 2fr) minmax(320px, 1fr);
    gap:24px;
    align-items:start;
}

.membership-guidelines,
.membership-faqs{
    min-width:0;
    padding:28px;
    border-radius:8px;
    background:rgba(255,255,255,0.96);
    color:#24352f;
    box-shadow:0 14px 30px rgba(0,0,0,0.22);
}

.membership-guidelines{
    min-height:520px;
}

.membership-section-heading{
    margin-bottom:22px;
    padding-bottom:16px;
    border-bottom:1px solid #d9e3de;
}

.membership-section-heading span{
    display:inline-flex;
    margin-bottom:10px;
    padding:8px 12px;
    border-radius:999px;
    background:#eaf4ef;
    color:#1d5c3f;
    font-size:12px;
    font-weight:800;
    letter-spacing:1.1px;
    text-transform:uppercase;
}

.membership-section-heading h2{
    color:#164a35;
    font-size:28px;
    line-height:1.15;
}

.guideline-list,
.faq-list{
    display:grid;
    gap:16px;
}

.guideline-item{
    display:flex;
    gap:16px;
    padding:18px;
    border-radius:8px;
    background:#f5f8f6;
    border-left:5px solid #1d7c4d;
    min-width:0;
}

.guideline-item > div,
.faq-item{
    min-width:0;
}

.guideline-item span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 44px;
    width:44px;
    height:44px;
    border-radius:50%;
    background:#1d5c3f;
    color:#fff;
    font-weight:800;
}

.guideline-item h3,
.faq-item h3{
    margin-bottom:8px;
    color:#164a35;
    font-size:18px;
}

.guideline-item p,
.faq-item p{
    color:#3e5149;
    line-height:1.65;
    font-size:15px;
}

.guideline-item h4,
.faq-item h4{
    margin:12px 0 8px;
    color:#164a35;
    font-size:16px;
}

.policy-lead{
    margin:0 0 8px;
}

.policy-list{
    margin:0;
    padding-left:22px;
    color:#3e5149;
    overflow-wrap:anywhere;
}

.policy-list li{
    margin:0 0 8px;
    line-height:1.6;
    font-size:15px;
}

.policy-sublist-numbered{
    margin-top:8px;
}

.policy-note{
    margin:8px 0 0;
    padding:10px 12px;
    border-left:3px solid #1d7c4d;
    background:#eef4f0;
    border-radius:4px;
    color:#2e4139;
    font-size:14px;
}

.faq-item{
    padding:18px;
    border-radius:8px;
    background:#f5f8f6;
    border:1px solid #dce5e0;
}

@media (max-width:1000px){
    .membership-layout{
        grid-template-columns:1fr;
    }

    .membership-guidelines{
        min-height:auto;
    }
}

@media (max-width:700px){
    .membership-page{
        margin:0 0 16px;
        padding:24px 14px;
    }

    .membership-guidelines,
    .membership-faqs{
        padding:20px 14px;
    }

    .membership-section-heading h2{
        font-size:clamp(20px, 5.8vw, 26px);
    }

    .guideline-item{
        flex-direction:column;
        padding:16px 14px;
    }

    .policy-list{
        padding-left:18px;
    }

    .policy-list li{
        font-size:14px;
    }
}

/* Calculator */
.calculator-page{
    position:relative;
    display:flex;
    flex-direction:column;
    gap:22px;
    color:#fff;
}

.calculator-hero{
    max-width:760px;
    padding:18px 0 6px;
}

.calculator-eyebrow{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    margin-bottom:14px;
    color:#eaf8f2;
    font-size:clamp(18px, 4.5vw, 35px) !important;
    letter-spacing:clamp(4px, 1.4vw, 15px);
    text-transform:uppercase;
}

.calculator-dialog-header .calculator-eyebrow{
    display:flex;
    width:fit-content;
    margin:0 auto 14px;
    font-weight:800;
    font-family: "Inter", sans-serif;
}

.calculator-hero h1{
    font-size:clamp(34px, 4vw, 56px);
    line-height:1.02;
    margin-bottom:12px;
}

.calculator-hero p{
    max-width:760px;
    line-height:1.7;
    color:#eef6f1;
}

.calculator-launch,
.calculator-compute,
.calculator-close,
.calculator-tab{
    border:none;
    cursor:pointer;
}

.calculator-launch{
    margin-top:18px;
    padding:14px 22px;
    border-radius:14px;
    background:linear-gradient(180deg, #5fd3a3, #2f6a56);
    color:#fff;
    font-size:16px;
    font-weight:700;
    letter-spacing:.4px;
    box-shadow:0 14px 28px rgba(0,0,0,0.24);
}

.calculator-modal{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:rgba(0,0,0,0.62);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
    z-index:3000;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}

.calculator-modal.open{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.calculator-dialog{
    position:relative;
    width:min(920px, 100%);
    max-height:calc(100vh - 48px);
    overflow-y:auto;
    overflow-x:hidden;
    padding:24px;
    border-radius:28px;
    background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,248,245,0.98));
    color:#12231e;
    box-shadow:0 28px 70px rgba(0,0,0,0.36);
    display:flex;
    flex-direction:column;
    gap:16px;
}

.calculator-dialog-header h2{
    margin-bottom:5px;
    padding-right:48px;
    font-size:clamp(24px, 2.4vw, 10px);
    line-height:1.05;
}

.calculator-dialog-header p{
    max-width:72ch;
    color:#4a5a55;
    line-height:1.6;
    font-size:30px;
    font-weight:700;
    color:#0f7555;
    justify-content: center;
}

.calculator-close{
    position:absolute;
    top:18px;
    right:18px;
    z-index:5;
    width:42px;
    height:42px;
    border-radius:50%;
    background:#e8eeea;
    color:#1c352d;
    font-size:28px;
    line-height:1;
}

.calculator-tabs{
    display:flex;
    gap:14px;
    margin:0;
    flex-wrap:wrap;
}

.calculator-tab{
    padding:14px 22px;
    border-radius:14px;
    background:#e8ecea;
    color:#273832;
    font-size:14px;
    font-weight:700;
    letter-spacing:.8px;
}

.calculator-tab.active{
    background:linear-gradient(180deg, #79e0b7, #57b88f);
    color:#103326;
    box-shadow:0 10px 22px rgba(0,0,0,0.14);
}

.calculator-panel{
    display:none;
    gap:18px;
    flex:1;
    min-height:0;
}

.calculator-panel.active{
    display:flex;
    flex-direction:column;
}

.calculator-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:14px;
}

.calculator-field{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.calculator-field--full{
    grid-column:1 / -1;
}

.calculator-field label{
    font-size:14px;
    font-weight:700;
    color:#20352f;
}

.calculator-field select,
.calculator-field input{
    width:100%;
    padding:12px 14px;
    border-radius:12px;
    border:1px solid #d6ddda;
    background:#fff;
    color:#20352f;
    font-size:14px;
    outline:none;
    box-shadow:0 8px 16px rgba(0,0,0,0.06);
}

.calculator-field input::placeholder{
    color:#889793;
}

.calculator-field input[readonly]{
    background:#eef4f1;
    cursor:default;
}

.calculator-actions{
    display:flex;
    justify-content:center;
    margin:0;
}

.calculator-compute{
    min-width:240px;
    padding:12px 22px;
    border-radius:14px;
    background:#2f6a56;
    color:#fff;
    font-size:15px;
    font-weight:700;
    letter-spacing:.6px;
    box-shadow:0 12px 22px rgba(47,106,86,0.34);
    margin-top:12px;
    margin-bottom:10px;

}

.calculator-result{
    padding:14px 16px;
    border-radius:18px;
    background:#eef4f1;
    border:1px solid #d7e1dc;
    
}

.calculator-result strong{
    display:block;
    margin-bottom:6px;
    font-size:16px;
    color:#17312a;
}

.calculator-result span{
    display:block;
    color:#485b55;
    line-height:1.6;
}

.calculator-disclaimer{
    margin-top:12px;
    padding:14px 16px;
    border-radius:18px;
    background:#ccc8c62e;
    border:1px solid #504f4e25;
    line-height:1.6;
    font-size:13.5px;
}

.calculator-disclaimer strong{
    display:block;
    margin-bottom:6px;
    font-size:14px;
    color:#000000;
}

.calculator-disclaimer span{
    display:block;
    color:#0a0a0a;
    font-weight: 500;
}

.calculator-disclaimer .not-final{
    display:inline-block;
    margin:0 2px;
    padding:1px 1px;
    border-radius:6px;
    color:#0c0c0c;
    font-style:normal;
    font-weight:800;
    letter-spacing:0.06em;
}

.calculator-result-muted{
    margin-top:0;
    background:#eef4f1;
}


.calculator-note{
    margin-top:0;
    margin-bottom: 10px;  
    padding:5px 10px;
    border-radius:14px;
    background:#ccc8c62e;
    color:#f13f3f;
    line-height:1.6;
    font-size:13px;
    font-weight:550;
    
}


.calculator-note span{
    color:#2e2e2e;
}


.calculator-lower-copy h3{
    margin-bottom:8px;
    font-size:18px;
    color:#17312a;
}

.calculator-lower-copy p{
    color:#4a5a55;
    line-height:1.5;
    margin-bottom:8px;
    font-size:14px;
}

body.calculator-modal-open{
    overflow:hidden;
}

.calculator-result {
  color: inherit;
}

.calculator-result.error-result,
.calculator-result.error-result strong,
.calculator-result.error-result span {
  color: #f13f3f !important;
}
@media (max-width: 900px){
    .calculator-modal{
        align-items:flex-start;
        padding:12px;
    }

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

    .calculator-dialog{
        padding:20px;
        width:100%;
        max-height:none;
        min-height:auto;
    }
}

@media (max-width: 700px){
    .calculator-hero{
        padding-top:8px;
    }

    .calculator-modal{
        padding:8px;
    }

    .calculator-launch,
    .calculator-compute{
        width:100%;
    }

    .calculator-tabs{
        gap:10px;
    }

    .calculator-tab{
        width:100%;
        padding:12px;
    }

    .calculator-dialog{
        width:100%;
        max-height:none;
        padding:54px 14px 16px;
        border-radius:16px;
        gap:12px;
    }

    .calculator-close{
        top:10px;
        right:10px;
        width:38px;
        height:38px;
        font-size:24px;
    }

    .calculator-dialog-header h2{
        padding-right:0;
        font-size:clamp(21px, 6.2vw, 28px);
    }

    .calculator-eyebrow{
        max-width:100%;
        letter-spacing:2px;
        text-align:center;
        white-space:normal;
    }

    .calculator-note,
    .calculator-result{
        padding:12px;
    }

    .calculator-dialog-header p{
        font-size:clamp(14px, 3.2vw, 18px);
    }
}

@media (max-width: 380px){
    .calculator-dialog{
        padding-left:10px;
        padding-right:10px;
    }

    .calculator-field select,
    .calculator-field input{
        padding:11px 10px;
    }
}

.download-page .download-header{
    padding-bottom:20px;
    border-bottom:1px solid rgb(255, 255, 255);
    margin-bottom:24px;
}

.download-page .download-header h1{
    font-size:34px;
    color:#fff;
    margin-bottom:10px;
}

.download-page .download-header p{
    color:#ececec;
    line-height:1.8;
    max-width:780px;
}

.download-section{
    margin-bottom:28px;
}

.download-note{
    margin-top:20px;
    margin-bottom:12px;
    padding:14px 20px;
    border-radius:8px;
    background:linear-gradient(90deg, rgba(209, 209, 209, 0.911));
    border:1.5px solid rgb(165, 18, 18);
    /*box-shadow:inset 0 1px 0 rgb(223, 65, 65);*/
    color:#000000;
    line-height:1.6;
    font-size:16px;
    font-weight:700;
    display:flex;
    align-items:flex-start;
    justify-content:flex-start;
    gap:8px;
    letter-spacing:0.3px;
    width:100%;
    box-sizing:border-box;
    overflow-wrap:anywhere;
}

.download-note strong{
    flex:0 0 auto;
    white-space:nowrap;
    color:#e40707;
}

.download-note span{
    flex:1 1 auto;
    min-width:0;
}

@media (max-width: 700px){
    .download-note{
        flex-direction:column;
        align-items:flex-start;
        justify-content:flex-start;
        text-align:left;
        gap:4px;
        padding:12px 14px;
        font-size:14px;
        line-height:1.5;
    }

    .download-note strong{
        white-space:normal;
    }

    .download-note span{
        width:100%;
        flex:none;
    }
}

@media (max-width: 480px){
    .download-note{
        font-size:13.5px;
        padding:12px;
        border-radius:6px;
    }
}
.section-heading{
    display:flex;
    align-items:center;
    justify-content:center;
    background: rgba(18, 80, 60, 0.719);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    padding:14px 20px;
    border-radius:8px;
    margin-bottom:12px;
    border:1px solid rgba(255,255,255,0.2);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.section-heading span{
    color:#f8f7f7;
    font-weight:700;
    letter-spacing:1px;
    font-size:18px;
}

.download-list{
    display:grid;
    gap:10px;
    background:rgba(255, 255, 255, 0.863);
    padding:10px;
    border-radius:10px;
    border:1px solid rgba(12, 12, 12, 0.925);
}

.download-item{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 16px;
    background:rgba(145, 142, 142, 0.575);
    border-radius:8px;
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.download-item span{
    color:#0f0f0f;
    font-weight:600;
    font-size:19px;
    flex:1;
}

.download-actions{
    display:flex;
    gap:10px;
    align-items:center;
}


.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:90px;
    padding:10px 14px;
    border-radius:6px;
    text-decoration:none;
    font-size:13px;
    font-weight:700;
    transition:transform .2s ease, background .2s ease, color .2s ease;
}

.btn:hover{
    transform:translateY(-1px);
}

.btn-view{
    background:rgba(31, 87, 80, 0.685);
    color:#fff;
    border:1px solid rgba(255, 255, 255, 0.644);
}

.btn-view:hover{
    background:rgba(51, 190, 174, 0.932);
}

.btn-download{
    background:#1f3b2d;
    color:#fff;
    border: #fcf9f9be solid 1px;
}

.btn-download:hover{
    background:#57a878;
}

.contact-page .contact-header{
    padding-bottom:20px;
    border-bottom:1px solid rgb(255, 255, 255);
    margin-bottom:24px;
}

.contact-page .contact-header h1{
    color:#fff;
    font-size:34px;
    margin-bottom:12px;
}

.contact-page {
    color:#edf4f2;
    max-width:780px;
    line-height:1.75;
    font-size:16px;
}

.contact-cards{
    display:grid;
    gap:18px;
    margin-bottom:22px;
}

.contact-card{
    display:flex;
    align-items:flex-start;
    gap:18px;
    padding:20px 22px;
    background: rgba(20, 46, 38, 0.863);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.22);
    box-shadow:0 10px 25px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.18);
}

.contact-card-icon{
    min-width:56px;
    min-height:56px;
    display:grid;
    place-items:center;
    background: rgba(255, 255, 255, 0.767);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    backdrop-filter: blur(10px) saturate(140%);
    color:#000;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius:50%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.contact-card-icon svg{
    width:40px;
    height:40px;
    fill:#024730e8;
}

.contact-card-body{
    min-width:0;
    flex:1 1 auto;
    max-width:100%;
}

.contact-card-body a{
    margin:0 0 8px;
    font-size:22px;
    color:#4ec291;
    letter-spacing:0.2px;
    overflow-wrap:anywhere;
    transition:color 0.25s ease, text-decoration-color 0.25s ease;
    text-decoration:underline;
    text-decoration-color:transparent;
    text-underline-offset:4px;

}

.contact-card-body p{
    margin:0;
    color:#fdfdfd;
    line-height:1.6;
}

.contact-card-body a:hover{
    color:#ffffff;
    text-decoration-color:#0ed68a;
}
.bank-contact{
    background: rgba(255, 255, 255, 0.88);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    color:#164a35;
    padding:16px 20px;
    border-radius:12px;
    border:1px solid rgba(255, 255, 255, 0.55);
    font-weight:1000;
    font-size:18px;
    text-align:center;
    overflow-wrap:anywhere;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.gallery{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;
}

.gallery-item{
    position:relative;
    overflow:visible;
}

.gallery img{
    width:100%;
    height:180px;
    object-fit:cover;
    display:block;
    transition:transform .25s ease, box-shadow .25s ease, opacity .25s ease;
    cursor:zoom-in;
}

.gallery-overlay{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.52);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .2s ease, visibility .2s ease;
    z-index:9999;
}

.gallery-overlay.visible{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.gallery-overlay img{
    width:auto;
    height:auto;
    max-width:min(92vw, 960px);
    max-height:88vh;
    object-fit:contain;
    background:rgba(61, 60, 60, 0.425);
    padding:10px;
    box-shadow:0 20px 44px rgba(0, 0, 0, 0.34);
    border-radius:8px;
}

.gallery-overlay-text{
    position:absolute;
    bottom:24px;
    left:50%;
    transform:translateX(-50%);
    color:#fff;
    font-size:14px;
    background:rgba(0,0,0,0.35);
    padding:8px 12px;
    border-radius:999px;
}

/*      */
footer{
    background: rgba(18, 80, 60, 0.88);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    color:white;
    padding:20px 40px 5px;
    margin-top:0px;
    bottom: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    border-top: 1px solid rgba(177, 255, 220, 0.22);
    box-shadow: 0 -8px 24px rgba(5, 31, 22, 0.18);
}


.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-section h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #ffffff;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 8px;
}

.footer-section p {
    margin-bottom: 12px;
    line-height: 1.7;
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-section i {
    color: #4ec291;
    min-width: 20px;
    margin-top: 3px;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-section a:hover {
    color: #48daa2;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 20px;
    padding-top: 10px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section p {
        justify-content: center;
    }

    .footer-logo {
        width: 120px;
    }
}

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

    .content,
    .page-section,
    .history-page-section,
    .data-protection-page-section,
    .core-values-page-section,
    .annual-page-section,
    .membership-page,
    .gallery-section,
    .announcements,
    .yearbook-library-section,
    .overlay{
        min-height:auto;
        height:auto;
        overflow:visible;
    }

    .content{
        grid-template-columns:1fr;
        padding:14px;
    }

    .announcements{
        min-height:auto;
        padding:20px 12px 24px;
    }

    .announcement-posters{
        padding:10px 10px 34px;
        max-width:100%;
    }

    .announcement-posters img{
        width:100%;
    }


    .announcement-control.prev{
        left:12px;
    }

    .announcement-control.next{
        right:12px;
    }

    .title{
        position:relative;
        top:auto;
        left:auto;
        transform:none;
        width:100%;
        font-size:clamp(24px, 4.2vw, 30px);
        padding:0 0 10px;
    }

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

    .gallery img{
        height:160px;
    }

    .gallery-home{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }

    .footer-content{ gap:20px; }
}

@media (max-width: 700px){
    .gallery-home{
        grid-template-columns:1fr;
    }

    .page-section,
    .history-page-section,
    .data-protection-page-section,
    .core-values-page-section,
    .annual-page-section,
    .membership-page,
    .gallery-section,
    .announcements {
        margin:0 0 16px;
        padding-bottom:20px;
    }

    .download-page .download-header h1,
    .contact-page .contact-header h1{
        font-size:clamp(24px, 6.2vw, 34px);
    }

    .download-page .download-header p,
    .contact-page .contact-header p{
        font-size:15px;
    }

    .contact-page,
    .download-page{
        width:100%;
    }

    .download-item{
        flex-direction:column;
        align-items:flex-start;
    }

    .download-actions{
        width:100%;
        flex-wrap:wrap;
    }

    .download-actions .btn{
        width:100%;
    }

    .contact-card{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
        padding:18px 16px;
    }

    .contact-card-body h2,
    .contact-card-body a{
        font-size:clamp(16px, 4.8vw, 20px);
        line-height:1.25;
    }

    .contact-card-body p{
        font-size:14px;
    }

    .bank-contact p{
        margin:0;
        line-height:1.5;
    }

    .bank-contact{
        padding:14px;
        font-size:clamp(15px, 4.2vw, 18px);
    }

    .contact-card-icon{
        min-width:38px;
        min-height:38px;
    }

    .contact-card-icon svg{
        width:22px;
        height:22px;
    }

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

    .gallery img{
        height:190px;
    }
}
.loan-modal {

    display: none;

    position: fixed;

    inset: 0;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.6);

    justify-content: center;

    align-items: center;

}


.loan-modal.active {

    display: flex;

}


.loan-modal-content {

    background: white;

    width: 90%;

    max-width: 900px;

    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    border-radius: 12px;

}

/* Global responsive safety */
img,
video,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

/* Compact desktop/laptop nav spacing */
@media (max-width: 1400px) {
    header {
        padding: 10px 22px;
        position: sticky;
    }

    nav {
        gap: 24px;
    }
}

/* Laptop optimization - smaller logo and nav text to fit on one line */
@media (min-width: 769px) and (max-width: 1440px) {
    header {
        padding: 8px 14px;
        gap: 10px;
        flex-wrap: nowrap;
    }
    
    .logo img {
        width: 60px; /* Much smaller logo */
    }
    
    .logo-text h3 {
        font-size: 11px;
    }
    
    .logo-text p {
        font-size: 9px;
    }
    
    nav {
        gap: clamp(8px, 1vw, 14px);
        flex-wrap: nowrap;
    }
    
    nav a,
    .dropbtn {
        font-size: 13px;
        white-space: nowrap; 
        line-height: 1; 
        padding: 0; 
        margin: 0; 
    }
    
    .dropdown {
        display: flex; 
        align-items: center; 
    }
    
}

/* Even tighter for 1024px screens */
@media (min-width: 769px) and (max-width: 1100px) {
    header {
        padding: 8px 100px;
        gap: 20px;
    }
    
    .logo img {
        width: 50px;
    }
    
    .logo-text h3 {
        font-size: 10px;
    }
    
    .logo-text p {
        font-size: 8px;
    }
    
    nav {
        gap: 6px;
    }
    
    nav a,
    .dropbtn {
        font-size: 13px;
        line-height: 1; 
        padding: 0; 
        margin: 0; 
    }
    
    .dropdown {
        display: flex; 
        align-items: center; 
    }
}

/*compact for 1024px - prevent overlap */
@media (min-width: 769px) and (max-width: 1024px) {
    header {
        padding: 6px 8px;
        gap: 4px;
        flex-wrap: nowrap;
    }
    
    .logo {
        gap: 6px;
        min-width: 0;
        flex-shrink: 1;
    }
    
    .logo img {
        width: 45px;
        flex-shrink: 0;
    }
    
    .logo-text {
        min-width: 0;
    }
    
    .logo-text h3 {
        font-size: 9px;
        line-height: 1.1;
        white-space: nowrap;
    }
    
    .logo-text p {
        font-size: 7px;
        line-height: 1.1;
        white-space: nowrap;
    }
    
    nav {
        gap: 5px;
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
    
    nav a,
    .dropbtn {
        font-size: 11px;
        white-space: nowrap;
        padding: 0;
        margin: 0;
        line-height: 1;
    }
    
    .dropdown {
        display: flex;
        align-items: center;
    }
}

/* Slightly larger for 1025-1100px */
@media (min-width: 1025px) and (max-width: 1100px) {
    header {
        padding: 8px 10px;
        gap: 4px;
    }
    
    .logo img {
        width: 50px;
    }
    
    .logo-text h3 {
        font-size: 10px;
    }
    
    .logo-text p {
        font-size: 8px;
    }
    
    nav {
        gap: 6px;
    }
    
    nav a,
    .dropbtn {
        font-size: 12px;
    }
}
    
/* Mobile navigation and small-screen layout */
@media (max-width: 768px) and (max-width: 1440px){
    body {
        overflow-x: hidden;
    }

    header {
        padding: 10px 16px;
        gap: 8px;
    }
    
    nav {
        gap: clamp(10px, 1.2vw, 18px);
        flex-wrap: nowrap;
    }
    
    .logo img {
        width: 60px;
    }
    
    .logo-text h3 {
        font-size: 13px;
    }
    
    .logo-text p {
        font-size: 10px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    nav {
        display: none;
        position: absolute;
        flex-wrap: nowrap;
        gap: clamp(12px, 1.5vw, 24px);
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 12px;
        background: rgba(18, 80, 60, 0.99);
        border-top: 1px solid rgba(255,255,255,0.2);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
        width: 50%;
    }

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

    header.nav-open nav {
        display: flex;
    }

    nav > a,
    nav .dropdown > .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
        padding: 12px 16px;
    }

    nav .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none;
        top: auto;
        left: auto;
        min-width: 100%;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255,255,255,0.95);
    }

    .dropdown.open .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 10px 20px;
    }

    main {
        min-height: auto;
    }

    .overlay {
        min-height: auto;
    }


    /* Keep footer underneath the burger menu */
    footer {
        position: relative;
        z-index: 1;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
    }

    .footer-section p {
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .logo img {
        width: 58px;
    }

    .logo-text h3 {
        font-size: 12px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .content {
        padding: 12px;
    }

    footer {
        padding: 16px 16px 6px;
    }
}

/* ========================================
   FOOTER RESPONSIVE IMPROVEMENTS
======================================== */

/* Tablet devices (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    footer {
        padding: 18px 20px 5px;
    }
    
    .footer-content {
        gap: 15px;
    }
    
    .footer-section {
        min-width: 220px;
    }
    
    .footer-logo {
        width: 150px;
    }
    
    .footer-section h4 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .footer-section p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .footer-section i {
        min-width: 18px;
        font-size: 14px;
    }
}

/* ========================================
   PAGE CONTENT PADDING IMPROVEMENTS
   For membership, download, contact pages
======================================== */

/* Add breathing room to full-width page sections */
.membership-page,
.download-page,
.contact-page {
    max-width: 1600px;
    margin: 20px auto !important;
    padding: 40px !important;
}

/* Ensure overlay has proper padding */
.overlay {
    padding: 20px;
}

/* Content wrapper for single-column pages */
.content[style*="grid-template-columns:1fr"] {
    padding: clamp(20px, 3vw, 20px) !important;
    max-width: 1800px;
    margin: 0 auto;
}

/* Responsive padding adjustments */
@media (max-width: 1200px) {
    .membership-page,
    .download-page,
    .contact-page {
        margin: 16px auto !important;
        padding: 32px 24px !important;
    }
    
    .overlay {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .membership-page,
    .download-page,
    .contact-page {
        margin: 12px auto !important;
        padding: 24px 16px !important;
    }
    
    .overlay {
        padding: 12px;
    }
    
    .content[style*="grid-template-columns:1fr"] {
        padding: 16px !important;
    }
}

@media (max-width: 480px) {
    .membership-page,
    .download-page,
    .contact-page {
        margin: 8px auto !important;
        padding: 20px 12px !important;
    }
    
    .overlay {
        padding: 8px;
    }
    
    .content[style*="grid-template-columns:1fr"] {
        padding: 12px !important;
    }
}

/* Mobile devices (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    footer {
        padding: 16px 16px 6px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-logo {
        width: 140px;
    }
    
    .footer-section h4 {
        font-size: 18px;
    }
    
    .footer-section p {
        justify-content: center;
        font-size: 14px;
        flex-wrap: wrap;
    }
    
    .footer-section i {
        flex-shrink: 0;
    }
    
    .footer-bottom p {
        font-size: 13px;
    }
}

/* Refined site navigation */
header {
    min-height: 88px;
    padding: 12px clamp(20px, 4vw, 56px);
    gap: clamp(12px, 1.5vw, 24px);
    background: rgba(10, 74, 54, 0.88);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(177, 255, 220, 0.22);
    box-shadow: 0 8px 24px rgba(5, 31, 22, 0.18);
}

.logo {
    flex: 0 1 auto;
    width: auto;
    min-width: 250px;
    gap: 10px;
}

.logo img {
    width: clamp(80px, 6.2vw, 80px);
    height: auto;
}

.logo-text h3 {
    font-size: clamp(14px, 1.25vw, 18px);
    letter-spacing: 0.01em;
}

.logo-text p {
    font-size: clamp(9px, 0.78vw, 12px);
    letter-spacing: 0.02em;
}

header nav {
    flex: 0 1 auto;
    width: fit-content;
    max-width: calc(100% - 270px);
    min-width: 0;
    justify-content: flex-start;
    gap: 0;
    flex-wrap: nowrap;
    overflow: visible;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: nav-slide-in 600ms ease-out both;
}

@keyframes nav-slide-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

header nav > a,
header nav .dropbtn {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.55rem clamp(10px, 1vw, 17px);
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(11px, 0.82vw, 15px);
    letter-spacing: 0.025em;
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

header nav > a:hover,
header nav .dropbtn:hover,
header nav > a.active,
header nav .dropdown.active .dropbtn {
    color: #073b2a;
    background: #78fdc6;
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.1);
}

header nav > a.active,
header nav .dropdown.active .dropbtn {
    border-bottom: 0;
    padding-bottom: 0.55rem;
}

header nav .dropdown {
    display: flex;
    align-items: center;
}

header nav .dropbtn::after {
    content: "\f078";
    margin-left: 0.5rem;
    color: currentColor;
    font-family: "Font Awesome 6 Free";
    font-size: 0.65em;
    font-weight: 900;
    transition: transform 180ms ease;
}

header nav .dropdown.open .dropbtn::after {
    transform: rotate(180deg);
}

header nav .dropdown-content {
    top: calc(100% + 9px);
    min-width: 228px;
    padding: 7px;
    border: 1px solid rgba(177, 255, 220, 0.26);
    border-radius: 12px;
    background: rgba(7, 63, 45, 0.96);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: 0 16px 34px rgba(4, 35, 24, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

header nav .dropdown-content a {
    border-radius: 8px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.25;
}

header nav .dropdown-content a:hover,
header nav .dropdown-content a.active {
    color: #073b2a;
    background: #78fdc6;
}

@media (prefers-reduced-motion: reduce) {
    header nav,
    header nav > a,
    header nav .dropbtn {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1100px) {
    header {
        min-height: 72px;
        padding: 10px 16px;
    }

    .logo {
        min-width: 0;
    }

    .logo img {
        width: 68px;
    }

    .logo-text h3 {
        font-size: 13px;
    }

    .logo-text p {
        font-size: 9px;
    }

    .nav-toggle {
        display: inline-flex;
        flex: 0 0 44px;
        border: 1px solid rgba(218, 255, 240, 0.65);
        border-radius: 12px;
        background: rgba(5, 58, 42, 0.42);
    }

    header nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: 16px;
        width: auto;
        padding: 8px;
        border-radius: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: rgba(7, 63, 45, 0.96);
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    header.nav-open nav {
        display: flex;
    }

    header nav > a,
    header nav .dropbtn {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        padding: 0.7rem 0.9rem;
        border-radius: 9px;
        font-size: 14px;
    }

    header nav > a.active,
    header nav .dropdown.active .dropbtn,
    header nav > a:hover,
    header nav .dropbtn:hover {
        transform: none;
    }

    header nav .dropdown {
        display: block;
    }

    header nav .dropdown-content {
        position: static;
        min-width: 0;
        margin: 0 8px 6px;
        padding: 4px;
        border: 1px solid rgba(177, 255, 220, 0.26);
        border-radius: 8px;
        box-shadow: none;
        background: rgba(7, 63, 45, 0.96);
        -webkit-backdrop-filter: blur(14px) saturate(150%);
        backdrop-filter: blur(14px) saturate(150%);
    }

    header nav .dropdown-content a {
        padding: 9px 12px;
        font-size: 12px;
        color: #ffffff;
    }
}

/* Small mobile devices (≤480px) */
@media (max-width: 480px) {
    footer {
        padding: 14px 12px 6px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 18px;
    }
    
    .footer-section {
        min-width: 100%;
    }
    
    .footer-logo {
        width: 100px;
    }
    
    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }
    
    .footer-section p {
        justify-content: center;
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 10px;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .footer-section i {
        font-size: 13px;
        min-width: 16px;
        flex-shrink: 0;
    }
    
    .footer-section a {
        word-break: break-word;
    }
    
    .footer-bottom {
        margin-top: 15px;
        padding-top: 8px;
    }
    
    .footer-bottom p {
        font-size: 12px;
    }
}

/* Extra small devices (≤360px) */
@media (max-width: 360px) {
    footer {
        padding: 12px 10px 5px;
    }
    
    .footer-logo {
        width: 80px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
    
    .footer-section p {
        font-size: 12px;
    }
    
    .footer-section i {
        font-size: 12px;
        min-width: 14px;
    }
    
    .footer-bottom p {
        font-size: 11px;
    }
}

/* Keep calculator depth neutral and remove bright glow effects. */
.calculator-dialog {
    box-shadow: 18px 18px 38px rgba(0, 0, 0, 0.24), inset 1px 1px 0 rgba(255, 255, 255, 0.45);
}

.calculator-close,
.calculator-tab,
.calculator-compute,
.calculator-launch {
    box-shadow: 5px 5px 10px rgba(31, 52, 44, 0.18), inset 1px 1px 0 rgba(255, 255, 255, 0.24);
}

.calculator-field select,
.calculator-field input,
.calculator-field input[readonly],
.calculator-result,
.calculator-result-muted,
.calculator-note,
.calculator-disclaimer {
    box-shadow: inset 4px 4px 9px rgba(31, 52, 44, 0.12), inset -2px -2px 5px rgba(255, 255, 255, 0.42);
}

.calculator-field select:focus,
.calculator-field input:focus {
    box-shadow: inset 3px 3px 7px rgba(31, 52, 44, 0.16), inset -2px -2px 5px rgba(255, 255, 255, 0.42);
}



/* =========================================================
   SCSLAI — SC LOAN APPLICATION INPUT MODAL
   ========================================================= */

body.sc-modal-open {
    overflow: hidden;
}


/* ---------------------------------------------------------
   OVERLAY
   --------------------------------------------------------- */

.sc-input-overlay {
    position: fixed;
    inset: 0;

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

    padding: 20px;

    background: rgba(0, 0, 0, 0.55);

    z-index: 99999;
}


/* ---------------------------------------------------------
   MODAL
   --------------------------------------------------------- */

.sc-input-modal {

    width: min(950px, 100%);

    max-height: 92vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.sc-modal-header {

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    padding: 22px 26px;

    border-bottom: 1px solid #e5e5e5;
}


.sc-modal-header h2 {

    margin: 0;

    font-size: 24px;
}


.sc-modal-header p {

    margin: 5px 0 0;

    color: #777;

    font-size: 14px;
}


.sc-modal-close {

    border: none;

    background: transparent;

    font-size: 30px;

    line-height: 1;

    cursor: pointer;

    color: #555;
}


/* ---------------------------------------------------------
   BODY
   --------------------------------------------------------- */

.sc-modal-body {

    flex: 1;

    overflow-y: auto;

    padding: 25px;
}


/* ---------------------------------------------------------
   SECTIONS
   --------------------------------------------------------- */

.sc-form-section {

    margin-bottom: 28px;
}


.sc-form-section h3 {

    margin: 0 0 16px;

    font-size: 17px;

    font-weight: 600;
}


/* ---------------------------------------------------------
   INPUT GRID
   --------------------------------------------------------- */

.sc-input-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


.sc-full-width {

    grid-column: 1 / -1;
}


/* ---------------------------------------------------------
   FORM GROUP
   --------------------------------------------------------- */

.sc-form-group {

    display: flex;

    flex-direction: column;

    gap: 6px;
}


.sc-form-group label {

    font-size: 13px;

    font-weight: 600;
}


.sc-form-group label span {

    color: #d00;
}


.sc-form-group input,
.sc-form-group select,
.sc-form-group textarea {

    width: 100%;

    box-sizing: border-box;

    padding: 11px 12px;

    border: 1px solid #d5d5d5;

    border-radius: 8px;

    background: #fff;

    font-size: 14px;

    outline: none;

    transition: border-color 0.2s;
}


.sc-form-group textarea {

    min-height: 80px;

    resize: vertical;
}


.sc-form-group input:focus,
.sc-form-group select:focus,
.sc-form-group textarea:focus {

    border-color: #198754;
}


/* ---------------------------------------------------------
   CHECKBOXES
   --------------------------------------------------------- */

.sc-checkbox-grid {

    display: grid;

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

    gap: 8px;
}


.sc-checkbox-option {

    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px;

    border: 1px solid #e2e2e2;

    border-radius: 8px;

    cursor: pointer;

    font-size: 13px;
}


.sc-checkbox-option:hover {

    background: #f7f7f7;
}


.sc-checkbox-option input {

    width: 16px;
    height: 16px;
}


/* ---------------------------------------------------------
   ERROR
   --------------------------------------------------------- */

.sc-input-error {

    display: none;

    margin-top: 15px;

    padding: 12px;

    border-radius: 8px;

    background: #fff0f0;

    color: #b00000;

    font-size: 13px;
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.sc-modal-footer {

    display: flex;

    justify-content: flex-end;

    gap: 10px;

    padding: 18px 25px;

    border-top: 1px solid #e5e5e5;

    background: #fafafa;
}


.sc-btn {

    padding: 11px 20px;

    border-radius: 8px;

    border: none;

    font-size: 14px;

    cursor: pointer;
}


.sc-btn-secondary {

    background: #e5e5e5;

    color: #333;
}


.sc-btn-primary {

    background: #198754;

    color: #fff;
}


/* ---------------------------------------------------------
   TABLET
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .sc-input-overlay {

        padding: 10px;

        align-items: center;
    }


    .sc-input-modal {

        max-height: 95vh;

        border-radius: 12px;
    }


    .sc-input-grid {

        grid-template-columns: 1fr;
    }


    .sc-checkbox-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

/* Neumorphic depth for the primary navigation and calculator surfaces. */
header nav {
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow:
        10px 10px 24px rgba(0, 31, 22, 0.28),
        -8px -8px 20px rgba(133, 255, 210, 0.08),
        inset 1px 1px 0 rgba(255, 255, 255, 0.16);
}

header nav > a,
header nav .dropbtn {
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

header nav > a:hover,
header nav .dropbtn:hover,
header nav > a.active,
header nav .dropdown.active .dropbtn {
    box-shadow:
        4px 4px 10px rgba(0, 43, 30, 0.22),
        -3px -3px 8px rgba(255, 255, 255, 0.28),
        inset 1px 1px 0 rgba(255, 255, 255, 0.35);
}

.calculator-dialog {
    background: #e7f0eb;
    box-shadow:
        22px 22px 50px rgba(0, 0, 0, 0.3),
        -12px -12px 30px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.72);
}

.calculator-close,
.calculator-tab,
.calculator-compute,
.calculator-launch {
    border: 0;
    box-shadow:
        7px 7px 14px rgba(31, 72, 57, 0.18),
        -6px -6px 12px rgba(255, 255, 255, 0.78),
        inset 1px 1px 0 rgba(255, 255, 255, 0.32);
    transition: box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.calculator-close:hover,
.calculator-tab:hover,
.calculator-compute:hover,
.calculator-launch:hover {
    transform: translateY(-1px);
}

.calculator-close:active,
.calculator-tab:active,
.calculator-compute:active,
.calculator-launch:active,
.calculator-tab.active {
    box-shadow:
        inset 4px 4px 9px rgba(31, 72, 57, 0.18),
        inset -3px -3px 8px rgba(255, 255, 255, 0.45);
    transform: translateY(0);
}

.calculator-field select,
.calculator-field input {
    border-color: transparent;
    background: #e7f0eb;
    box-shadow:
        inset 4px 4px 9px rgba(31, 72, 57, 0.13),
        inset -4px -4px 9px rgba(255, 255, 255, 0.78);
}

.calculator-field select:focus,
.calculator-field input:focus {
    border-color: rgba(47, 106, 86, 0.42);
    box-shadow:
        inset 3px 3px 7px rgba(31, 72, 57, 0.16),
        inset -3px -3px 7px rgba(255, 255, 255, 0.7),
        0 0 0 3px rgba(95, 211, 163, 0.18);
}

.calculator-field input[readonly],
.calculator-result,
.calculator-result-muted {
    background: #e7f0eb;
    border-color: transparent;
    box-shadow:
        inset 4px 4px 9px rgba(31, 72, 57, 0.12),
        inset -4px -4px 9px rgba(255, 255, 255, 0.72);
}

.calculator-note,
.calculator-disclaimer {
    background: rgba(231, 240, 235, 0.7);
    border-color: transparent;
    box-shadow:
        inset 3px 3px 7px rgba(31, 72, 57, 0.1),
        inset -3px -3px 7px rgba(255, 255, 255, 0.6);
}

@media (prefers-reduced-motion: reduce) {
    .calculator-close,
    .calculator-tab,
    .calculator-compute,
    .calculator-launch {
        transition: none;
    }
}

/* Shared motion language for the navigation and calculator. */
@keyframes nav-item-reveal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes nav-active-pulse {
    0%, 100% {
        box-shadow:
            4px 4px 10px rgba(0, 43, 30, 0.22),
            -3px -3px 8px rgba(255, 255, 255, 0.28),
            inset 1px 1px 0 rgba(255, 255, 255, 0.35);
    }
    50% {
        box-shadow:
            4px 4px 14px rgba(0, 43, 30, 0.28),
            -3px -3px 10px rgba(255, 255, 255, 0.38),
            inset 1px 1px 0 rgba(255, 255, 255, 0.45);
    }
}

header nav > a,
header nav .dropdown {
    animation: nav-item-reveal 420ms ease-out both;
}

header nav > a,
header nav .dropbtn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

header nav > a::before,
header nav .dropbtn::before {
    content: "";
    position: absolute;
    inset: 2px;
    z-index: 0;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(-105%);
    transition: transform 260ms ease;
}

header nav > a:hover::before,
header nav .dropbtn:hover::before {
    transform: translateX(0);
}

header nav > a,
header nav .dropbtn {
    text-indent: 0;
}

header nav .dropbtn::after {
    position: relative;
    z-index: 1;
}

header nav > a:not(.active):hover,
header nav .dropdown:not(.active) .dropbtn:hover {
    transform: none;
}

header nav > a:nth-of-type(1) { animation-delay: 70ms; }
header nav > a:nth-of-type(2) { animation-delay: 130ms; }
header nav > a:nth-of-type(3) { animation-delay: 190ms; }
header nav > a:nth-of-type(4) { animation-delay: 250ms; }
header nav > a:nth-of-type(5) { animation-delay: 310ms; }
header nav > a:nth-of-type(6) { animation-delay: 370ms; }
header nav .dropdown { animation-delay: 100ms; }

header nav > a.active,
header nav .dropdown.active .dropbtn {
    animation: nav-active-pulse 2.8s ease-in-out 700ms infinite;
}

.calculator-modal {
    transition: opacity 260ms ease, visibility 260ms ease;
}

.calculator-dialog {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 0.8, 0.3, 1);
}

.calculator-modal.open .calculator-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.calculator-dialog > * {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 300ms ease, transform 300ms ease;
}

.calculator-modal.open .calculator-dialog > * {
    opacity: 1;
    transform: translateY(0);
}

.calculator-modal.open .calculator-dialog > :nth-child(1) { transition-delay: 80ms; }
.calculator-modal.open .calculator-dialog > :nth-child(2) { transition-delay: 140ms; }
.calculator-modal.open .calculator-dialog > :nth-child(3) { transition-delay: 200ms; }
.calculator-modal.open .calculator-dialog > :nth-child(4) { transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
    header nav,
    header nav > a,
    header nav .dropdown,
    header nav > a.active,
    header nav .dropdown.active .dropbtn,
    .calculator-dialog,
    .calculator-dialog > * {
        animation: none;
        transition: none;
        transform: none;
    }
}

/* Responsive navigation layout */
@media (max-width: 1100px) {
    header {
        position: sticky;
        min-height: 72px;
        padding: 10px clamp(14px, 3vw, 28px);
    }

    header nav {
        max-width: none;
        top: calc(100% + 10px);
        right: clamp(10px, 2vw, 20px);
        left: clamp(10px, 2vw, 20px);
        max-height: calc(100vh - 92px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow:
            12px 16px 30px rgba(0, 31, 22, 0.3),
            -6px -6px 16px rgba(133, 255, 210, 0.08),
            inset 1px 1px 0 rgba(255, 255, 255, 0.16);
    }

    header nav > a,
    header nav .dropbtn {
        min-height: 46px;
        font-size: clamp(13px, 1.8vw, 15px);
    }

    header nav .dropdown-content {
        max-height: none;
    }
}

@media (max-width: 600px) {
    header {
        gap: 10px;
        padding: 9px 12px;
    }

    .logo {
        gap: 8px;
    }

    .logo img {
        width: 60px;
    }

    .logo-text h3 {
        font-size: 11px;
    }

    .logo-text p {
        max-width: 190px;
        font-size: 8px;
        line-height: 1.15;
    }

    .nav-toggle {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    header nav {
        top: calc(100% + 7px);
        right: 8px;
        left: 8px;
        padding: 6px;
        border-radius: 18px;
    }

    header nav > a,
    header nav .dropbtn {
        min-height: 44px;
        padding: 0.65rem 0.8rem;
        font-size: 13px;
    }

    header nav .dropdown-content {
        margin-right: 5px;
        margin-left: 5px;
    }
}


/* ---------------------------------------------------------
   SMARTPHONE
   --------------------------------------------------------- */

@media (max-width: 480px) {

    .sc-modal-header {

        padding: 18px;
    }


    .sc-modal-body {

        padding: 18px;
    }


    .sc-modal-footer {

        padding: 15px;

        flex-direction: column-reverse;
    }


    .sc-btn {

        width: 100%;
    }


    .sc-checkbox-grid {

        grid-template-columns: 1fr;
    }

}

/* Final calculator override: neutral outer separation, no light halo. */
.calculator-dialog {
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.24) !important;
}




/* =====================================================
   TEMPORARY — HIDDEN STAR HUNT (remove anytime)
   To remove: delete this whole block from START to END
   in style.css + delete the block in script.js marked
   TEMPORARY EASTER EGG. No HTML edits needed.
   START — easter egg styles
   ===================================================== */
.easter-egg-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-left: 10px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.28;
  filter: blur(0.3px);
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
  border-radius: 50%;
  line-height: 1;
  color: #ffe9a8;
  font-size: 26px;
  text-shadow: 0 0 6px rgba(255, 220, 120, 0.55);
}

.easter-egg-trigger .easter-egg-star {
  display: inline-block;
  pointer-events: none;
  user-select: none;
  animation: easterEggTwinkle 2.4s ease-in-out infinite;
}

@keyframes easterEggTwinkle {
  0%, 100% { opacity: 0.55; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(10deg); }
}

/* Slight camouflage variations per hiding spot so each feels different */
.easter-egg-trigger.egg-tint-1 { opacity: 1.0; color: #fff3c4; }
.easter-egg-trigger.egg-tint-2 { opacity: 0.3; color: #ffe9a8; }
.easter-egg-trigger.egg-tint-3 { opacity: 0.22; color: #e8ecff; }
.easter-egg-trigger.egg-tint-4 { opacity: 0.32; color: #fff8dc; }
.easter-egg-trigger.egg-tint-5 { opacity: 0.26; color: #ffe9a8; }

.easter-egg-trigger:hover,
.easter-egg-trigger:focus-visible {
  opacity: 1;
  filter: none;
  transform: scale(1.6) rotate(-8deg);
  outline: 2px dashed #78fdc6;
  outline-offset: 3px;
  box-shadow: 0 0 12px rgba(120, 253, 198, 0.9);
  z-index: 60;
}

.easter-egg-trigger[data-egg-id="framework"] {
  z-index: 50;
}

.easter-egg-trigger.found {
  opacity: 0.9;
  filter: none;
  animation: easterEggWiggle 0.6s ease;
}

@keyframes easterEggWiggle {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.8) rotate(-12deg); }
  50% { transform: scale(1.6) rotate(10deg); }
  75% { transform: scale(1.9) rotate(-6deg); }
  100% { transform: scale(1.6) rotate(0); }
}

/* Floating fallback if no footer found */
.easter-egg-trigger.easter-egg-floating {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  margin: 0;
  width: 14px;
  height: 14px;
  opacity: 0.12;
}

.easter-egg-trigger.easter-egg-floating img {
  width: 14px;
  height: 14px;
}

.easter-egg-trigger {
  width: 89px;
  height: 89px;
}
.easter-egg-trigger img {
  width: 90px;
  height: 90px;
}
/* Popup overlay */
.easter-egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 25, 18, 0.65);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.easter-egg-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.easter-egg-card {
  position: relative;
  width: min(420px, 92vw);
  text-align: center;
  background: linear-gradient(160deg, #ffffff 0%, #e8f8ef 100%);
  border: 3px solid #12503c;
  border-radius: 22px;
  padding: 34px 28px 26px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  transform: scale(0.7) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.easter-egg-overlay.show .easter-egg-card {
  transform: scale(1) translateY(0);
}

.easter-egg-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(120,253,198,0.5), transparent 70%);
  pointer-events: none;
}

.easter-egg-trophy {
  font-size: 56px;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
  animation: easterEggBounce 1s infinite alternate ease-in-out;
}

@keyframes easterEggBounce {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-8px) scale(1.08); }
}

.easter-egg-card h2 {
  margin: 0 0 8px;
  color: #12503c;
  font-size: 26px;
  font-weight: 900;
}

.easter-egg-card p {
  margin: 0 0 6px;
  color: #2f4a3f;
  font-size: 16px;
  line-height: 1.6;
}

.easter-egg-card .easter-egg-sub {
  font-size: 13px;
  color: #6b857a;
  margin-bottom: 18px;
}

.easter-egg-found-star {
  display: block;
  margin: 6px auto 10px;
  font-size: 64px;
  line-height: 1;
  color: #ffd166;
  text-shadow: 0 0 18px rgba(255, 209, 102, 0.9), 0 4px 0 #7a5200;
  animation: easterEggBounce 1s infinite alternate ease-in-out;
}

.easter-egg-close {
  margin-top: 10px;
  border: none;
  cursor: pointer;
  background: #12503c;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  padding: 11px 28px;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.easter-egg-close:hover {
  background: #0c382a;
  transform: scale(1.05);
}

.easter-egg-confetti {
  position: absolute;
  top: -10px;
  width: 10px;
  height: 14px;
  border-radius: 2px;
  pointer-events: none;
  animation: easterEggFall linear forwards;
}

@keyframes easterEggFall {
  to {
    transform: translateY(480px) rotate(720deg);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .easter-egg-trigger { width: 62px; height: 62px; opacity: 0.24; }
  .easter-egg-trigger img { width: 60px; height: 60px; }
  .easter-egg-trophy { font-size: 46px; }
  .easter-egg-card h2 { font-size: 22px; }
}

.easter-egg-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 14px;
}

.easter-egg-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c9d8d1;
  border: 2px solid #12503c;
  transition: background 0.3s ease, transform 0.3s ease;
}

.easter-egg-dot.lit {
  background: #ffd166;
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.9);
}

.easter-egg-count {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(18, 80, 60, 0.1);
  color: #12503c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.easter-egg-prize {
  margin: 10px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: #fff8e1;
  border: 2px dashed #d4a017;
  color: #6b4d00;
  font-size: 14px;
  line-height: 1.6;
}

.easter-egg-prize strong { color: #7a5200; }

/* TEMPORARY EASTER EGG — finale WELCOME blast (word-only + confetti) */
.easter-egg-welcome-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 25, 18, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}

.easter-egg-welcome-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.easter-egg-welcome-text {
  margin: 0;
  text-align: center;
  font-weight: 1000;
  font-size: clamp(38px, 8vw, 96px);
  line-height: 1.05;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 4px 0 #12503c, 0 10px 30px rgba(0,0,0,0.5);
  transform: scale(0.6);
  animation: easterWelcomePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.easter-egg-welcome-text span {
  display: block;
  color: #78fdc6;
}

@keyframes easterWelcomePop {
  to { transform: scale(1); }
}

.easter-egg-welcome-confetti {
  position: absolute;
  top: -16px;
  width: 12px;
  height: 16px;
  border-radius: 2px;
  pointer-events: none;
  animation: easterEggFall linear forwards;
}

/* TEMPORARY EASTER EGG — END (delete everything up to START above to remove) */


