/* ==========================================================================
   1. DESIGN TOKENS & BASE STYLES
   ========================================================================== */
:root {
    --green: #1F9E59;
    --green-dark: #16804A;
    --green-light: #E8F7ED;
    --navy: #1A2152;
    --navy-2: #262E63;
    --navy-3: #10153A;
    --ink: #1A2152;
    --muted: #646B82;
    --paper: #FCFBF8;
    --line: #E6E8F0;
    --gold: #F3A93C;
    --radius: 18px;
    --shadow-sm: 0 2px 10px rgba(20, 28, 60, .06);
    --shadow-md: 0 18px 40px -12px rgba(20, 28, 60, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: 'Sora', sans-serif;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

a {
    text-decoration: none;
}

/* Utilities */
.text-green {
    color: var(--green) !important;
}

.text-muted-c {
    color: var(--muted);
}

.bg-paper {
    background: var(--paper);
}

.bg-mint {
    background: var(--green-light);
}

.bg-navy {
    background: var(--navy);
}

.bg-navy-2 {
    background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
}

.section-pad {
    padding: 96px 0;
}

@media (max-width: 767px) {
    .section-pad {
        padding: 64px 0;
    }
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green-dark);
    background: var(--green-light);
    border: 1px solid rgba(31, 158, 89, .18);
    padding: 7px 16px;
    border-radius: 30px;
}

.eyebrow-light {
    background: rgba(255, 255, 255, .08);
    color: #BFE9D2;
    border: 1px solid rgba(255, 255, 255, .16);
}

.divider-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    display: inline-block;
}

.lead-muted {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* ==========================================================================
   2. BUTTONS & ICON UI
   ========================================================================== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.back-btn .icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.back-btn:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.back-btn:hover .icon {
    transform: translateX(-3px); /* Subtle leftward nudge */
}

.back-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}


.btn-brand {
    background: var(--green);
    border: 1px solid var(--green);
    color: #fff;
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
    transition: .2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-brand:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-ghost-navy {
    background: transparent;
    border: 1.5px solid var(--line);
    color: var(--navy);
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: .2s ease;
}

.btn-ghost-navy:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: #fff;
}

.btn-light-pill {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    color: var(--navy);
    font-weight: 600;
    padding: 13px 28px;
    border-radius: 50px;
}

.btn-brand-block {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
    padding: 13px 20px;
}

.btn-brand-block[disabled] {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

.icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-circle svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.btn-cart {
    color: var(--navy);
    background: var(--paper);
    border: 1px solid var(--line);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
    position: relative;
}

.btn-cart:hover {
    background: var(--green-light);
    color: var(--green-dark);
    border-color: rgba(31, 158, 89, 0.18);
    transform: translateY(-1px);
}

.navbar-msr {
    background: #fff;
    padding: 16px 0;
    transition: .25s ease;
    border-bottom: 1px solid transparent;
}

.navbar-msr.is-scrolled {
    box-shadow: 0 4px 24px rgba(20, 28, 60, .08);
    border-bottom-color: var(--line);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    /*background: var(--navy);*/
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brand-mark img {
    width: 155px;
    height: 100%;
    object-fit: contain;
}

.brand-wordmark {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.05;
    font-size: .95rem;
}

.brand-wordmark .l2 {
    color: var(--green);
}

.nav-link-msr {
    font-weight: 600;
    font-size: .94rem;
    color: var(--navy) !important;
    padding: 8px 16px !important;
    position: relative;
}

.nav-link-msr::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 2px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: .2s ease;
    transform-origin: left;
}

.nav-link-msr:hover::after,
.nav-link-msr.active::after {
    transform: scaleX(1);
}

/* ==========================================================================
   4. HERO SECTION & HERO ILLUSTRATIONS
   ========================================================================== */
.hero {
    padding: 130px 0 80px;
    background: radial-gradient(ellipse 700px 420px at 88% -8%, rgba(31, 158, 89, .10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(26, 33, 82, .06), transparent 70%),
    #fff;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.12;
}

@media (max-width: 767px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2.15rem;
    }
}

.underline-stroke {
    position: relative;
    display: inline;
}

.underline-stroke svg {
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 10px;
}

/* Hero stacked papers composition */
.paper-stack {
    position: relative;
    height: 430px;
}

.sheet {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 22px;
}

.sheet-back {
    width: 78%;
    height: 300px;
    top: 10px;
    right: 0;
    transform: rotate(6deg);
    background: var(--green-light);
    border: 1px solid rgba(31, 158, 89, .18);
}

.sheet-mid {
    width: 74%;
    height: 300px;
    top: 34px;
    right: 10%;
    transform: rotate(-4deg);
}

.sheet-front {
    width: 72%;
    height: 300px;
    top: 60px;
    right: 6%;
    border-top: 5px solid var(--green);
}

.line-bar {
    height: 8px;
    border-radius: 5px;
    background: var(--line);
    margin-bottom: 10px;
}

.line-bar.w-60 {
    width: 60%;
}

.line-bar.w-80 {
    width: 80%;
}

.line-bar.w-40 {
    width: 40%;
}

.tag-pill-mini {
    font-family: 'JetBrains Mono', monospace;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .06em;
    background: var(--green-light);
    color: var(--green-dark);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
}

.float-chip {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    animation: floaty 5s ease-in-out infinite;
}

.float-chip.c1 {
    top: 18px;
    left: -10px;
    animation-delay: .2s;
}

.float-chip.c2 {
    bottom: 30px;
    left: 10px;
    animation-delay: 1.1s;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.mini-chart {
    width: 60px;
    height: 30px;
}

.stars-row svg {
    width: 14px;
    height: 14px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack img,
.avatar-stack .av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2.5px solid #fff;
    margin-left: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .7rem;
    font-weight: 700;
    color: #fff;
}

.avatar-stack .av1 {
    background: #3D6BFF;
}

.avatar-stack .av2 {
    background: #F3A93C;
}

.avatar-stack .av3 {
    background: #E45B7A;
}

.avatar-stack .av4 {
    background: var(--green);
}

/* ==========================================================================
   5. MARQUEE SCROLLER
   ========================================================================== */
.marquee-wrap {
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    overflow: hidden;
    padding: 16px 0;
    position: relative;
    transform: skewY(-1.2deg);
    margin: 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 28s linear infinite;
    width: max-content;
}

.marquee-wrap:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0 28px;
    letter-spacing: .02em;
}

.marquee-item svg {
    width: 16px;
    height: 16px;
    opacity: .85;
}

/* ==========================================================================
   6. STATS BAND
   ========================================================================== */
.stat-band {
    position: relative;
    overflow: hidden;
}

.stat-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}

.stat-col {
    position: relative;
    text-align: center;
    padding: 8px 10px;
}

.stat-col + .stat-col::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 1px;
    background: rgba(255, 255, 255, .12);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: rgba(31, 158, 89, .18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(31, 158, 89, .3);
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    color: #BFE9D2;
}

.stat-num {
    font-size: 2.1rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    color: #A8AFCB;
    font-size: .88rem;
    font-weight: 500;
}

/* ==========================================================================
   7. PAPER CARD & FEATURE CARDS
   ========================================================================== */
.card-paper {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: .25s ease;
    height: 100%;
}

.card-paper::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 22px 22px 0;
    border-style: solid;
    border-color: transparent var(--green-light) transparent transparent;
    transition: .25s ease;
}

.card-paper:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(31, 158, 89, .25);
}

.card-paper:hover::after {
    border-color: transparent var(--green) transparent transparent;
}

.check-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.check-ico {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-ico svg {
    width: 13px;
    height: 13px;
}

.feature-card {
    padding: 32px 26px;
}

.feature-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: .75rem;
    color: var(--muted);
    position: absolute;
    top: 18px;
    right: 30px;
}

.feature-ico-wrap {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: var(--green-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-ico-wrap svg {
    width: 24px;
    height: 24px;
    color: var(--green-dark);
}

/* ==========================================================================
   8. HOW IT WORKS
   ========================================================================== */
.step-track {
    position: relative;
}

.step-line {
    position: absolute;
    top: 28px;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px);
    display: none;
}

@media (min-width: 992px) {
    .step-line {
        display: block;
    }
}

.step-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
    border: 5px solid #fff;
}

.step-circle.is-green {
    background: var(--green);
}

/* ==========================================================================
   9. PRICING & DEALS
   ========================================================================== */
.seg-toggle {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 50px;
    display: inline-flex;
    padding: 5px;
    position: relative;
}

.seg-btn {
    border: none;
    background: transparent;
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--muted);
    font-size: .92rem;
    position: relative;
    z-index: 1;
    transition: .2s ease;
    cursor: pointer;
}

.seg-btn.active {
    background: var(--navy);
    color: #fff;
}

.pill-tabs .nav-link {
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 4px;
    margin-right: 30px;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.pill-tabs .nav-link.active {
    color: var(--navy);
    border-bottom-color: var(--green);
    background: transparent;
}

.price-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 38px 32px;
    height: 100%;
    position: relative;
}

.price-card.featured {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.price-card.featured h3,
.price-card.featured .ink-flip {
    color: #fff;
}

.price-card.featured .lead-muted {
    color: #B7BEDB;
}

.featured-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    white-space: nowrap;
}

.ticket-cut {
    border-top: 1px dashed rgba(0, 0, 0, .14);
    position: relative;
    margin: 26px 0;
}

.price-card.featured .ticket-cut {
    border-top-color: rgba(255, 255, 255, .22);
}

.ticket-cut::before,
.ticket-cut::after {
    content: "";
    position: absolute;
    top: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
}

.ticket-cut::before {
    left: -32px;
}

.ticket-cut::after {
    right: -32px;
}

.price-card.featured .ticket-cut::before,
.price-card.featured .ticket-cut::after {
    background: var(--navy);
}

.price-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.6rem;
    font-weight: 700;
}

.price-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    font-size: .92rem;
    color: var(--muted);
}

.price-card.featured .price-list li {
    color: #D5DAF0;
}

.price-list svg {
    width: 17px;
    height: 17px;
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

.price-card.featured .price-list svg {
    color: #7CE2A6;
}

/* Specific pricing page styles */
.pricing-head-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 36px;
}

.pricing-head-row h2 {
    font-size: 2rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.pricing-section {
    margin-bottom: 70px;
}

.pricing-section:last-of-type {
    margin-bottom: 0;
}

.deals-box {
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    padding: 60px 30px;
    text-align: center;
}

.deals-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .035);
}

.deals-box::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 650px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .06);
}

.deals-input-row {
    position: relative;
    z-index: 1;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50px;
    padding: 6px 6px 6px 22px;
}

.deals-input-row input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #fff;
    font-size: .92rem;
    padding: 10px 0;
}

.deals-input-row input::placeholder {
    color: #B7BEDB;
}

.btn-circle-green {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--green);
    border: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.btn-circle-green:hover {
    background: var(--green-dark);
}

.btn-circle-green svg {
    width: 17px;
    height: 17px;
}

/* ==========================================================================
   10. PRODUCTS
   ========================================================================== */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: .25s ease;
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.product-thumb {
    height: 190px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    color: #fff;
    overflow: hidden;
}

.product-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 110%, rgba(255, 255, 255, .18), transparent 60%);
}

.thumb-blue {
    background: linear-gradient(150deg, #2451C7, #1A2152);
}

.thumb-green {
    background: linear-gradient(150deg, #1F9E59, #0F5B33);
}

.thumb-amber {
    background: linear-gradient(150deg, #F3A93C, #C97412);
}

.thumb-violet {
    background: linear-gradient(150deg, #7A4FE0, #3E1F8C);
}

.year-pill {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, .22);
    font-size: .68rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
    width: fit-content;
    backdrop-filter: blur(2px);
}

.thumb-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    position: relative;
    z-index: 1;
}

.discount-ribbon {
    position: absolute;
    top: 14px;
    right: -32px;
    width: 130px;
    text-align: center;
    background: var(--gold);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 4px 0;
    transform: rotate(40deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    letter-spacing: .04em;
    z-index: 2;
}

.stars-row svg path {
    fill: var(--gold);
}

.price-old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: .88rem;
}

.price-new {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.15rem;
}

/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */
.testi-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ==========================================================================
   12. FAQ ACCORDION & FAQ SEARCH
   ========================================================================== */
.accordion-msr .accordion-item {
    border: 1px solid var(--line);
    border-radius: 14px !important;
    margin-bottom: 14px;
    overflow: hidden;
}

.accordion-msr .accordion-button {
    font-weight: 600;
    color: var(--navy);
    font-family: 'Sora', sans-serif;
    padding: 20px 22px;
}

.accordion-msr .accordion-button:not(.collapsed) {
    background: var(--green-light);
    color: var(--green-dark);
    box-shadow: none;
}

.accordion-msr .accordion-button:focus {
    box-shadow: none;
    border-color: var(--line);
}

.accordion-msr .accordion-button::after {
    filter: hue-rotate(100deg);
}

.accordion-msr .accordion-body {
    color: var(--muted);
    padding: 4px 22px 22px;
}

.faq-search {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 50px;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-search input {
    border: none;
    outline: none;
    flex: 1;
    font-size: .98rem;
    color: var(--ink);
    background: transparent;
}

.faq-search svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

.faq-cat-btn {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: .85rem;
    padding: 9px 18px;
    border-radius: 30px;
    transition: .2s ease;
}

.faq-cat-btn.active,
.faq-cat-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ==========================================================================
   13. NEWSLETTER
   ========================================================================== */
.newsletter-box {
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.newsletter-box::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    border: 60px solid rgba(255, 255, 255, .04);
    top: -220px;
    right: -160px;
}

.newsletter-box::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .04);
    bottom: -200px;
    left: -120px;
}

.input-pill {
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    padding: 14px 22px;
}

.input-pill::placeholder {
    color: #B7BEDB;
}

.input-pill:focus {
    box-shadow: none;
    border-color: var(--green);
    background: rgba(255, 255, 255, .12);
    color: #fff;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer-msr {
    background: var(--navy-3);
    color: #A8AFCB;
}

.footer-msr h6 {
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: .92rem;
    letter-spacing: .02em;
}

.footer-msr a {
    color: #A8AFCB;
    font-size: .92rem;
}

.footer-msr a:hover {
    color: var(--green);
}

.footer-msr ul {
    list-style: none;
    padding: 0;
}

.footer-msr li {
    margin-bottom: 12px;
}

.social-ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .14);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.social-ico:hover {
    background: var(--green);
    border-color: var(--green);
}

.social-ico svg {
    width: 15px;
    height: 15px;
}

hr.footer-line {
    border-color: rgba(255, 255, 255, .08);
}

/* ==========================================================================
   15. INNER PAGE BANNER
   ========================================================================== */
.page-banner {
    padding: 150px 0 70px;
    background: radial-gradient(ellipse 700px 420px at 88% -8%, rgba(31, 158, 89, .10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(26, 33, 82, .06), transparent 70%),
    #fff;
    position: relative;
    overflow: hidden;
}

.page-banner h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.15;
}

.breadcrumb-msr {
    font-family: 'JetBrains Mono', monospace;
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .04em;
}

.breadcrumb-msr a {
    color: var(--green-dark);
    font-weight: 600;
}

@media (max-width: 767px) {
    .page-banner {
        padding: 120px 0 50px;
    }

    .page-banner h1 {
        font-size: 1.9rem;
    }
}

/* ==========================================================================
   16. LEGAL PAGES
   ========================================================================== */
.legal-content h2 {
    font-size: 1.35rem;
    margin-top: 44px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-content h2 .num-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: .85rem;
    flex-shrink: 0;
}

.legal-content p,
.legal-content ul {
    color: var(--muted);
    line-height: 1.8;
    font-size: .98rem;
}

.legal-content ul {
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content li::marker {
    color: var(--green);
}

.legal-sidebar {
    position: sticky;
    top: 110px;
}

.legal-sidebar .side-link {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: .9rem;
    border-left: 2px solid var(--line);
}

.legal-sidebar .side-link:hover {
    color: var(--green-dark);
    background: var(--green-light);
    border-left-color: var(--green);
}

.update-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy);
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 30px;
}

/* ==========================================================================
   17. TEAM & VALUES
   ========================================================================== */
.team-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-align: center;
    padding: 30px 20px;
    height: 100%;
    transition: .25s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(31, 158, 89, .25);
}

.team-avatar {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    font-size: 1.4rem;
    margin: 0 auto 16px;
}

.value-card {
    padding: 30px 26px;
    height: 100%;
}

/* ==========================================================================
   18. AUTHENTICATION PAGES (LOGIN / REGISTER)
   ========================================================================== */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    background: radial-gradient(ellipse 700px 420px at 88% -8%, rgba(31, 158, 89, .10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(26, 33, 82, .06), transparent 70%),
    #fff;
    position: relative;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 44px 40px;
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 28px;
}

.form-label-msr {
    font-weight: 600;
    font-size: .88rem;
    color: var(--navy);
    margin-bottom: 8px;
    display: block;
}

.form-control-msr {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .95rem;
    color: var(--ink);
    background: #fff;
    transition: .2s ease;
}

.form-control-msr:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(31, 158, 89, .12);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    color: var(--muted);
}

.input-icon-wrap .form-control-msr {
    padding-left: 44px;
}

.toggle-pass {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--muted);
    cursor: pointer;
}

.toggle-pass svg {
    width: 17px;
    height: 17px;
}

.form-check-msr {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    color: var(--muted);
}

.form-check-msr input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: .8rem;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 11px;
    font-weight: 600;
    font-size: .9rem;
    color: var(--navy);
    background: #fff;
    transition: .2s ease;
}

.btn-social:hover {
    border-color: var(--navy);
    background: var(--paper);
}

.strength-bar {
    height: 4px;
    border-radius: 3px;
    background: var(--line);
    overflow: hidden;
    margin-top: 8px;
}

.strength-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--green);
    transition: .3s ease;
}

/* ==========================================================================
   19. ORGANIZATION SELECTION
   ========================================================================== */
.org-select-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin: 28px 0 32px;
}

.org-option {
    flex: 1;
    max-width: 170px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 26px 14px;
    text-align: center;
    cursor: pointer;
    transition: .2s ease;
    background: #fff;
}

.org-option:hover {
    border-color: var(--green);
}

.org-option.selected {
    border-color: var(--green);
    background: var(--green-light);
    box-shadow: 0 0 0 3px rgba(31, 158, 89, .14);
}

.org-option .oo-ico {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--navy);
    transition: .2s ease;
}

.org-option.selected .oo-ico {
    background: var(--green);
    color: #fff;
}

.org-option .oo-ico svg {
    width: 26px;
    height: 26px;
}

.org-option p {
    margin: 0;
    font-weight: 700;
    color: var(--navy);
    font-size: .9rem;
}

.org-option span.oo-sub {
    display: block;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 500;
    margin-top: 3px;
}

/* ==========================================================================
   20. DASHBOARD
   ========================================================================== */
body.dash-body {
    background: var(--paper);
}

.dash-shell {
    display: flex;
    min-height: 100vh;
}

.dash-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: var(--navy-3);
    color: #A8AFCB;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: .25s ease;
}

.dash-sidebar .brand-wordmark {
    color: #fff;
}

.dash-nav {
    list-style: none;
    padding: 0;
    margin: 26px 0 0;
    flex: 1;
}

.dash-nav li {
    margin-bottom: 4px;
}

.dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #A8AFCB;
    font-weight: 600;
    font-size: .9rem;
    transition: .15s ease;
}

.dash-nav a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dash-nav a:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.dash-nav a.active {
    background: var(--green);
    color: #fff;
}

.dash-sidebar-foot {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 16px;
    margin-top: 16px;
}

.dash-main {
    margin-left: 260px;
    flex: 1;
    min-width: 0;
}

.dash-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dash-content {
    padding: 32px;
}

.dash-search {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 9px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 280px;
}

.dash-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: .88rem;
    flex: 1;
}

.dash-search svg {
    width: 15px;
    height: 15px;
    color: var(--muted);
}

.topbar-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.topbar-icon-btn svg {
    width: 17px;
    height: 17px;
    color: var(--navy);
}

.notif-dot {
    position: absolute;
    top: 7px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    border: 1.5px solid #fff;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    height: 100%;
}

.stat-tile .tile-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.stat-tile .tile-ico svg {
    width: 20px;
    height: 20px;
}

.stat-tile .tile-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-tile .tile-label {
    color: var(--muted);
    font-size: .85rem;
}

.tile-trend {
    font-size: .76rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.tile-trend.up {
    background: var(--green-light);
    color: var(--green-dark);
}

.dash-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px;
}

.dl-table {
    width: 100%;
    border-collapse: collapse;
}

.dl-table th {
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}

.dl-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    font-size: .9rem;
    vertical-align: middle;
}

.dl-table tr:last-child td {
    border-bottom: none;
}

.file-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-ico svg {
    width: 16px;
    height: 16px;
}

.badge-msr {
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-green {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge-gold {
    background: #FDF1DD;
    color: #B0700E;
}

.plan-card-dash {
    background: linear-gradient(135deg, var(--navy-3), var(--navy-2));
    color: #fff;
    border-radius: 16px;
    padding: 26px;
    position: relative;
    overflow: hidden;
}

.plan-card-dash::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 36px solid rgba(255, 255, 255, .05);
    top: -100px;
    right: -80px;
}

.dash-quick-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: .2s ease;
}

.dash-quick-card:hover {
    border-color: rgba(31, 158, 89, .3);
    box-shadow: var(--shadow-sm);
}

.progress-msr {
    height: 8px;
    border-radius: 6px;
    background: var(--line);
    overflow: hidden;
}

.progress-msr span {
    display: block;
    height: 100%;
    background: var(--green);
    border-radius: 6px;
}

@media (max-width: 991px) {
    .dash-sidebar {
        transform: translateX(-100%);
    }

    .dash-sidebar.open {
        transform: translateX(0);
    }

    .dash-main {
        margin-left: 0;
    }

    .dash-search {
        display: none;
    }
}

/* ==========================================================================
   21. BLOG & ARTICLES
   ========================================================================== */
.blog-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.blog-cat-btn {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: .85rem;
    padding: 9px 18px;
    border-radius: 30px;
    transition: .2s ease;
}

.blog-cat-btn.active,
.blog-cat-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.featured-post {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: stretch;
}

.featured-thumb {
    position: relative;
    min-height: 280px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 26px;
    overflow: hidden;
}

.featured-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 110%, rgba(255, 255, 255, .18), transparent 60%);
}

.featured-thumb .fp-badge {
    position: relative;
    z-index: 1;
    align-self: flex-start;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(4px);
    font-size: .72rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.featured-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-body h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 12px;
}

@media (max-width: 850px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-thumb {
        min-height: 200px;
    }
}

.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: .25s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 158, 89, .25);
}

.blog-thumb {
    height: 170px;
    position: relative;
    color: #fff;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    overflow: hidden;
}

.blog-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 120%, rgba(255, 255, 255, .2), transparent 60%);
}

.blog-thumb .bc-badge {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, .22);
    backdrop-filter: blur(4px);
    font-size: .7rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.blog-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-body h3 {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 10px;
}

.blog-body h3 a {
    color: var(--navy);
}

.blog-body h3 a:hover {
    color: var(--green-dark);
}

.blog-body p {
    color: var(--muted);
    font-size: .87rem;
    line-height: 1.6;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.blog-meta .bm-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    flex-shrink: 0;
}

.blog-meta .bm-info {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.3;
}

.blog-meta .bm-info strong {
    color: var(--navy);
    display: block;
    font-size: .8rem;
}

.pp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.pg-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .86rem;
    transition: .15s ease;
}

.pg-btn.active,
.pg-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.pg-btn svg {
    width: 15px;
    height: 15px;
}

/* Single Article / Details */
.article-hero {
    padding: 150px 0 40px;
    background: radial-gradient(ellipse 700px 420px at 88% -8%, rgba(31, 158, 89, .10), transparent 70%), #fff;
}

.article-cat-badge {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 700;
    font-size: .74rem;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.article-hero h1 {
    font-size: 2.1rem;
    line-height: 1.28;
    margin-bottom: 20px;
    max-width: 820px;
}

@media (max-width: 767px) {
    .article-hero h1 {
        font-size: 1.5rem;
    }
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--line);
}

.article-meta-row .am-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    flex-shrink: 0;
}

.article-meta-row .am-name {
    font-weight: 700;
    color: var(--navy);
    font-size: .9rem;
}

.article-meta-row .am-sub {
    color: var(--muted);
    font-size: .78rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .83rem;
}

.article-meta-item svg {
    width: 15px;
    height: 15px;
}

.article-share {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    transition: .15s ease;
}

.share-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.share-btn svg {
    width: 15px;
    height: 15px;
}

.article-cover {
    border-radius: 20px;
    overflow: hidden;
    height: 380px;
    position: relative;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    margin-bottom: 8px;
}

.article-cover .blog-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    z-index: 2;
    content: "";;
    pointer-events: none;
}


.article-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .15), transparent 60%);
}

@media (max-width: 767px) {
    .article-cover {
        height: 220px;
    }
}

.article-body {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
}

.article-body p {
    margin-bottom: 22px;
    color: #3E4258;
}

.article-body h2 {
    font-size: 1.5rem;
    margin-top: 44px;
    margin-bottom: 18px;
    color: var(--navy);
}

.article-body h3 {
    font-size: 1.2rem;
    margin-top: 32px;
    margin-bottom: 14px;
    color: var(--navy);
}

.article-body ul,
.article-body ol {
    margin-bottom: 22px;
    padding-left: 22px;
    color: #3E4258;
}

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body li::marker {
    color: var(--green);
}

.article-body blockquote {
    border-left: 4px solid var(--green);
    background: var(--green-light);
    border-radius: 0 14px 14px 0;
    padding: 20px 26px;
    margin: 30px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--navy);
    font-weight: 500;
}

.article-body strong {
    color: var(--navy);
}

.article-body img,
.article-inline-img {
    width: 100%;
    border-radius: 16px;
    margin: 30px 0;
}

.article-inline-img {
    height: 260px;
    position: relative;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
}

.article-inline-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .15), transparent 60%);
}

.tag-pill-lg {
    display: inline-block;
    border: 1.5px solid var(--line);
    color: var(--navy);
    font-weight: 600;
    font-size: .82rem;
    padding: 7px 16px;
    border-radius: 20px;
    transition: .15s ease;
}

.tag-pill-lg:hover {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
}

.author-box {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-box .ab-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-box h4 {
    margin-bottom: 4px;
    font-size: 1.02rem;
}

.author-box p {
    color: var(--muted);
    font-size: .88rem;
    margin-bottom: 10px;
}

.toc-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    position: sticky;
    top: 100px;
}

.toc-box p.toc-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
}

.toc-box a {
    display: block;
    padding: 8px 0;
    font-size: .86rem;
    color: var(--muted);
    font-weight: 600;
    border-left: 2px solid var(--line);
    padding-left: 14px;
}

.toc-box a:hover {
    color: var(--green-dark);
    border-left-color: var(--green);
}

.comment-form textarea.form-control-msr {
    resize: vertical;
    min-height: 110px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.comment-item .cm-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.comment-item .cm-name {
    font-weight: 700;
    font-size: .88rem;
    color: var(--navy);
}

.comment-item .cm-date {
    font-size: .75rem;
    color: var(--muted);
    margin-left: 8px;
    font-weight: 400;
}

.comment-item p {
    color: #3E4258;
    font-size: .87rem;
    margin: 6px 0 0;
}

/* ==========================================================================
   22. CONTACT PAGE
   ========================================================================== */
.contact-info-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px;
    height: 100%;
    transition: .25s ease;
    text-align: center;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 158, 89, .25);
}

.contact-info-card .ci-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-info-card .ci-ico svg {
    width: 22px;
    height: 22px;
}

.contact-info-card h3 {
    font-size: .98rem;
    margin-bottom: 8px;
}

.contact-info-card p {
    color: var(--muted);
    font-size: .86rem;
    margin-bottom: 4px;
}

.contact-info-card a {
    color: var(--green-dark);
    font-weight: 600;
}

.contact-form-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.contact-form-panel textarea.form-control-msr {
    resize: vertical;
    min-height: 140px;
}

.office-panel {
    background: var(--navy-3);
    color: #A8AFCB;
    border-radius: 20px;
    padding: 34px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.office-panel::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 40px solid rgba(255, 255, 255, .04);
    top: -120px;
    right: -100px;
}

.office-map {
    border-radius: 14px;
    height: 170px;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    background: linear-gradient(135deg, #2A3266, #1A2152);
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-map svg {
    width: 34px;
    height: 34px;
    color: var(--green);
}

.office-map::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 24px 24px;
}

.office-row {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.office-row .or-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.office-row .or-ico svg {
    width: 16px;
    height: 16px;
}

.office-row h4 {
    color: #fff;
    font-size: .9rem;
    margin-bottom: 3px;
}

.office-row p {
    margin: 0;
    font-size: .83rem;
    line-height: 1.6;
}

.office-hours {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 6px;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.office-hours-row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    padding: 7px 0;
}

.office-hours-row span:first-child {
    color: #fff;
    font-weight: 600;
}

.office-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   23. PAST PAPERS PAGE (v2)
   ========================================================================== */
.pp-hero {
    padding: 130px 0 50px;
    background: radial-gradient(ellipse 700px 420px at 88% -8%, rgba(31, 158, 89, .10), transparent 70%),
    radial-gradient(ellipse 600px 400px at 0% 100%, rgba(26, 33, 82, .06), transparent 70%),
    #fff;
    position: relative;
    overflow: visible; /* <-- Change from 'hidden' to 'visible' */
    z-index: 10;
}

.pp-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .pp-hero h1 {
        font-size: 1.7rem;
    }
}

.pp-search-row {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 7px 7px 24px;
    box-shadow: var(--shadow-md);
}

.pp-search-row svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex-shrink: 0;
}

.pp-search-row input {
    border: none;
    outline: none;
    flex: 1;
    font-size: .95rem;
    background: transparent;
    padding: 11px 0;
}

.pp-search-row button {
    flex-shrink: 0;
}

.pp-quickstats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 28px;
}

.pp-quickstat {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pp-quickstat .qs-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-quickstat .qs-ico svg {
    width: 19px;
    height: 19px;
}

.pp-quickstat .qs-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--navy);
    line-height: 1.1;
}

.pp-quickstat .qs-label {
    color: var(--muted);
    font-size: .78rem;
}

/* Popular subject quick-pick cards */
.pp-quickpick {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: .25s ease;
    display: flex;
    flex-direction: column;
}

.pp-quickpick:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(31, 158, 89, .25);
}

.pp-quickpick-top {
    height: 86px;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #fff;
    overflow: hidden;
}

.pp-quickpick-top::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 120%, rgba(255, 255, 255, .2), transparent 60%);
}

.pp-quickpick-top svg {
    width: 26px;
    height: 26px;
    position: relative;
    z-index: 1;
}

.pp-quickpick-body {
    padding: 16px 20px 20px;
}

.pp-quickpick-body h3 {
    font-size: .98rem;
    margin-bottom: 4px;
}

.pp-quickpick-body p {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 0;
}

/* Sidebar Filter System */
.pp-sidebar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}

.pp-sidebar-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.pp-level-group {
    border-bottom: 1px solid var(--line);
}

.pp-level-group:last-child {
    border-bottom: none;
}

.pp-level-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 15px 4px;
    font-weight: 700;
    font-size: .86rem;
    color: var(--navy);
    font-family: 'Sora', sans-serif;
}

.pp-level-toggle .ltl {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-level-toggle .lt-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--green-light);
    color: var(--green-dark);
}

.pp-level-toggle .lt-ico svg {
    width: 14px;
    height: 14px;
}

.pp-level-toggle .lt-chev {
    width: 14px;
    height: 14px;
    transition: .2s ease;
    color: var(--muted);
    flex-shrink: 0;
}

.pp-level-toggle[aria-expanded="true"] .lt-chev {
    transform: rotate(180deg);
}

.pp-level-body {
    padding: 2px 4px 16px 40px;
}

.pp-level-body-cs {
    padding: 2px 4px 16px 8px;
    max-height: 50vh;
    overflow-y: auto;
}

.pp-most-popular {
    font-family: 'JetBrains Mono', monospace;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .07em;
    color: var(--muted);
    text-transform: uppercase;
}

.pp-subject-row,
.title-scope-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .87rem;
    color: var(--navy);
    margin-bottom: 3px;
    transition: .15s ease;
}

.pp-subject-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.pp-subject-row:hover {
    background: var(--green-light);
}

.pp-subject-row.active {
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    color: #fff;
    box-shadow: 0 6px 16px -6px rgba(31, 158, 89, .5);
}

.title-scope-btn.active {
    border-bottom-color: var(--green-dark);
    box-shadow: 0 6px 16px -6px rgba(31, 158, 89, .5);
}

.pp-subject-row svg, .title-scope-btn svg {
    width: 12px;
    height: 12px;
    transition: .2s ease;
    flex-shrink: 0;
}

.pp-subject-row.active svg, .title-scope-btn.active svg {
    transform: rotate(180deg);
}

.pp-board-list {
    list-style: none;
    padding: 4px 0 10px 12px;
    margin: 0;
}

.pp-board-list li {
    position: relative;
    padding: 7px 0 7px 16px;
    font-size: .83rem;
    color: var(--muted);
    transition: .15s ease;
}

.pp-board-list li .active {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--green);
    color: var(--green-dark);
}


.pp-board-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.pp-board-list a {
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pp-board-list a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--green);
    color: var(--green-dark);
}

.pp-simple-level {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 15px 4px;
    font-weight: 700;
    font-size: .86rem;
    color: var(--navy);
    font-family: 'Sora', sans-serif;
    transition: .15s ease;
    border-radius: 10px;
}

.pp-simple-level:hover {
    color: var(--green-dark);
}

.pp-simple-level .lt-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-simple-level .lt-ico svg {
    width: 14px;
    height: 14px;
}

.pp-count-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
    background: var(--paper);
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: auto;
    margin-right: 6px;
}

/* Main Content Level Sections */
.pp-level-block {
    margin-bottom: 28px;
}

.pp-level-title {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    font-weight: 700;
    font-size: .92rem;
    padding: 16px 22px;
    border-radius: 14px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: .2s ease;
}

.pp-level-title:hover {
    border-color: rgba(31, 158, 89, .3);
}

.pp-level-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--green);
}

.pp-level-title .lvl-ico {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-level-title .lvl-ico svg {
    width: 17px;
    height: 17px;
}

.pp-level-title .lvl-txt {
    flex: 1;
}

.pp-level-title .lvl-txt small {
    display: block;
    font-weight: 500;
    color: var(--muted);
    font-size: .78rem;
    font-family: 'Inter', sans-serif;
    margin-top: 2px;
}

.pp-level-title .lvl-chev {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: .25s ease;
    flex-shrink: 0;
}

.pp-level-title[aria-expanded="false"] .lvl-chev {
    transform: rotate(-90deg);
}

.pp-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 38px;
    padding-left: 2px;
    align-items: flex-start;
}

.subject-pill {
    display: inline-flex;
    align-self: flex-start;
    gap: 7px;
    border: 1.5px solid var(--line);
    border-radius: 30px;
    padding: 9px 18px 9px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    background: #fff;
    transition: .18s ease;
    box-shadow: 0 1px 2px rgba(20, 28, 60, .03);
}

.subject-pill .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
    transition: .18s ease;
    flex-shrink: 0;
}

.subject-pill:hover {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.subject-pill:hover .dot {
    background: var(--green);
}

.pp-no-results {
    display: none;
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
}

.pill-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    box-sizing: border-box;
}

.pill-title {
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    line-height: 1;
}

.icon-toggle {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #1e834b;
    border-radius: 50%;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.back-arrow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.back-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.pill-content {
    padding: 0 16px 16px 16px;
    opacity: 0;
    display: none;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease 0.1s, transform 0.25s ease 0.1s;
}

.description {
    margin: 2px 0 10px 0;
    font-size: 12px;
    opacity: 0.8;
}

.sub-elements {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    background-color: #ffffff;
    border: 1px solid #3bb273;
    color: #1e834b;
    padding: 5px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chip:hover {
    background-color: var(--green);
    color: white;
}

/* ==========================================
   EXPANDED STATE
   ========================================== */
.subject-pill.expanded {
    width: 280px; /* Expands horizontally */
    max-height: 600px; /* Allows inner content to reveal */
    border-radius: 18px; /* Converts pill to rounded box */
    flex-direction: column;
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* 1. Align icon with the top line of text when title wraps */
.subject-pill.expanded .pill-header {
    align-items: flex-start;
    padding-bottom: 6px;
}

/* 2. Allow text to wrap to next line instead of overflowing */
.subject-pill.expanded .pill-title {
    white-space: normal;
    word-break: break-word;
}

/* 3. Fine-tune icon position to match the top row text baseline */
.subject-pill.expanded .icon-toggle {
    margin-top: 2px;
}


/* Morph Dot to Back Arrow */
.subject-pill.expanded .dot {
    opacity: 0;
    transform: scale(0.1);
}

.subject-pill.expanded .back-arrow {
    opacity: 1;
    display: block;
    transform: scale(1) translateX(0);
}

/* Reveal Pill Content */
.subject-pill.expanded .pill-content {
    opacity: 1;
    visibility: visible;
    display: block;
    transform: translateY(0);
}

/* ============================= PRODUCT DETAILS ============================= */
.pd-gallery-main {
    height: 400px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
}

.pd-gallery-main::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 110%, rgba(255, 255, 255, .18), transparent 60%);
}

@media (max-width: 767px) {
    .pd-gallery-main {
        height: 280px;
    }
}

.pd-thumb-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.pd-thumb-sm {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .15s ease;
    position: relative;
}

.pd-thumb-sm.active {
    border-color: var(--green);
}

.pd-badge-row {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.pd-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 14px 0;
}

.pd-price-new {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.pd-price-old {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--muted);
    text-decoration: line-through;
}

.pd-discount-chip {
    background: #FDEAEA;
    color: #D14343;
    font-weight: 700;
    font-size: .72rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.pd-meta-list {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
    margin: 20px 0;
}

.pd-meta-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: .87rem;
}

.pd-meta-row span:first-child {
    color: var(--muted);
}

.pd-meta-row span:last-child {
    color: var(--navy);
    font-weight: 600;
}

.qty-stepper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    width: fit-content;
}

.qty-stepper button {
    width: 40px;
    height: 44px;
    background: #fff;
    border: none;
    font-size: 1.1rem;
    color: var(--navy);
    font-weight: 700;
}

.qty-stepper button:hover {
    background: var(--paper);
}

.qty-stepper input {
    width: 46px;
    height: 44px;
    border: none;
    border-left: 1.5px solid var(--line);
    border-right: 1.5px solid var(--line);
    text-align: center;
    font-weight: 700;
    color: var(--navy);
}

.qty-stepper input:focus {
    outline: none;
}

.pd-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 22px;
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .82rem;
    color: var(--muted);
}

.pd-trust-item svg {
    width: 17px;
    height: 17px;
    color: var(--green);
    flex-shrink: 0;
}

.pd-tabs {
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    margin: 50px 0 28px;
    flex-wrap: wrap;
}

.pd-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--muted);
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1px;
    transition: .15s ease;
}

.pd-tab-btn.active {
    color: var(--green-dark);
    border-bottom-color: var(--green);
}

.pd-tab-panel {
    display: none;
}

.pd-tab-panel.active {
    display: block;
}

.review-item {
    display: flex;
    gap: 14px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item .rv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
}

.review-item .rv-name {
    font-weight: 700;
    font-size: .9rem;
    color: var(--navy);
}

.review-item .rv-date {
    font-size: .76rem;
    color: var(--muted);
    font-weight: 500;
    margin-left: 8px;
}

.cart-icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .15s ease;
}

.cart-icon-btn:hover {
    border-color: var(--green);
}

.cart-icon-btn svg {
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--green);
    color: #fff;
    font-size: .62rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    font-family: 'JetBrains Mono', monospace;
}

.add-cart-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .18s ease;
}

.add-cart-icon-btn:hover {
    background: var(--green);
    border-color: var(--green);
}

.add-cart-icon-btn:hover svg {
    color: #fff;
}

.add-cart-icon-btn svg {
    width: 17px;
    height: 17px;
    color: var(--navy);
    transition: .15s ease;
}

.cart-toast {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: var(--navy-3);
    color: #fff;
    padding: 14px 22px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 3000;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: .3s ease;
    font-size: .88rem;
    font-weight: 600;
}

.cart-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.cart-toast .ct-ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-toast .ct-ico svg {
    width: 14px;
    height: 14px;
}

.prod-cat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.prod-cat-btn {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: .85rem;
    padding: 9px 18px;
    border-radius: 30px;
    transition: .2s ease;
}

.prod-cat-btn.active, .prod-cat-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.prod-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.prod-sort-select {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 9px 14px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--navy);
    background: #fff;
}

/* Card Container relative positioning for ribbons */
.product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Image Header Container */
.product-thumb-container {
    position: relative;
    display: block;
    width: 100%;
    height: 180px; /* Adjust height as needed */
    overflow: hidden;
}

/* Header Image */
.product-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Hover zoom effect on image */
.product-thumb-container:hover .product-thumb-img {
    transform: scale(1.05);
}

/* Overlay layer for Year Pill & Title */
.product-thumb-overlay {
    position: absolute;
    inset: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Dark gradient at top & bottom so white text stands out over images */
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

/* Ensure overlay elements remain correctly aligned */
.product-thumb-overlay .year-pill {
    align-self: flex-start;
}

.product-thumb-overlay .thumb-title {
    color: #ffffff;
    font-weight: 600;
}

/* Container holding image & badges */
.pd-gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Or specify a fixed height like height: 280px; */
    border-radius: 16px;
    overflow: hidden; /* Clips image edges to match container's rounded corners */
}

/* Image scaling & coverage */
.product-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fills container seamlessly without distortion */
    object-position: center;
    display: block;
    z-index: 1;
}

/* Badges floating on top of the image */
.pd-badge-row {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
    z-index: 2; /* Ensures badges sit above the image */
}

/* Optional styling for discount badge readability */
.pd-badge-row .discount-pill {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px); /* Adds a frosted glass effect over the image */
    color: #ffffff;
}

.pd-thumb-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pd-thumb-sm {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.pd-thumb-sm.active {
    border-color: #0052cc; /* Highlights the selected thumbnail */
}

.pd-thumb-sm .thumb-sm-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================= CART PAGE ============================= */
.cart-table-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.cart-table-head {
    display: grid;
    grid-template-columns:90px 2fr 1fr 1.3fr 1fr 60px;
    align-items: center;
    gap: 10px;
    background: var(--green);
    color: #fff;
    padding: 16px 22px;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.cart-row {
    display: grid;
    grid-template-columns:90px 2fr 1fr 1.3fr 1fr 60px;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}

.cart-row:last-child {
    border-bottom: none;
}

.cart-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cart-thumb svg {
    width: 22px;
    height: 22px;
    position: relative;
    z-index: 1;
}

.cart-thumb-img {
    height: 60px;
    width: auto;
}

.cart-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 110%, rgba(255, 255, 255, .2), transparent 60%);
}

.cart-prod-name {
    font-weight: 700;
    color: var(--navy);
    font-size: .92rem;
    line-height: 1.4;
}

.cart-price {
    font-family: 'JetBrains Mono', monospace;
    color: var(--muted);
    font-weight: 600;
}

.cart-total {
    font-family: 'JetBrains Mono', monospace;
    color: var(--green-dark);
    font-weight: 700;
}

.cart-remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: .15s ease;
    margin-left: auto;
}

.cart-remove-btn:hover {
    background: #FDEAEA;
    border-color: #f3b3b3;
    color: #D14343;
}

.cart-remove-btn svg {
    width: 15px;
    height: 15px;
}

.cart-summary-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 26px;
    position: sticky;
    top: 100px;
}

.cs-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 0;
    font-size: .9rem;
    color: var(--muted);
}

.cs-row.total {
    border-top: 1.5px solid var(--line);
    margin-top: 8px;
    padding-top: 16px;
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
}

.cs-row .cs-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--navy);
}

.cs-row.total .cs-val {
    color: var(--green-dark);
    font-size: 1.15rem;
}

.btn-navy-block {
    width: 100%;
    background: var(--navy-3);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-weight: 700;
    font-size: .94rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: .2s ease;
}

.btn-navy-block:hover {
    background: var(--navy-2);
    color: #fff;
}

.btn-navy-block:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty .ce-ico {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.cart-empty .ce-ico svg {
    width: 34px;
    height: 34px;
}

@media (max-width: 767px) {
    .cart-table-head {
        display: none;
    }

    .cart-row {
        grid-template-columns:64px 1fr;
        grid-template-areas:"img name" "img price" "img qty" "img total" "img remove";
        row-gap: 6px;
    }

    .cart-thumb {
        grid-area: img;
    }

    .cart-prod-name {
        grid-area: name;
    }
}

.checkout-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 8px;
}

.co-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-step .cs-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--muted);
    border: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
}

.co-step.done .cs-num {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.co-step.active .cs-num {
    background: var(--navy-3);
    border-color: var(--navy-3);
    color: #fff;
}

.co-step .cs-label {
    font-weight: 700;
    font-size: .85rem;
    color: var(--muted);
}

.co-step.active .cs-label, .co-step.done .cs-label {
    color: var(--navy);
}

.co-step-line {
    width: 60px;
    height: 2px;
    background: var(--line);
    margin: 0 12px;
}

@media (max-width: 576px) {
    .co-step .cs-label {
        display: none;
    }

    .co-step-line {
        width: 30px;
    }
}

.promo-row {
    display: flex;
    gap: 8px;
}

.promo-row input {
    flex: 1;
}

.secure-note {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .78rem;
    margin-top: 18px;
    justify-content: center;
}

.secure-note svg {
    width: 15px;
    height: 15px;
    color: var(--green);
    flex-shrink: 0;
}

.promo-row .btn-ghost-navy {
    border: 1px solid gray;
}

.checkout-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.checkout-panel h2 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.checkout-panel .cp-sub {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 22px;
}

.form-control-msr.is-invalid {
    border-color: #dc3545 !important;
}

.form-control-msr.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.order-item-row:last-child {
    border-bottom: none;
}

.order-thumb-sm {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-thumb-sm svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.order-thumb-sm::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 110%, rgba(255, 255, 255, .2), transparent 60%);
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-info .oi-name {
    font-weight: 700;
    font-size: .85rem;
    color: var(--navy);
    line-height: 1.35;
}

.order-item-info .oi-qty {
    color: var(--muted);
    font-size: .76rem;
}

.order-item-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--navy);
    font-size: .85rem;
    white-space: nowrap;
}

.checkout-success-alert {
    padding: 12px 8px;
    color: #1F9E59;
    border-radius: 8px;
}


.pl-hero {
    padding: 130px 0 30px;
    background: radial-gradient(ellipse 700px 380px at 88% -10%, rgba(31, 158, 89, .08), transparent 70%), #fff;
}

.breadcrumb-pill-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.breadcrumb-pill-row a {
    color: var(--muted);
    font-weight: 600;
    font-size: .82rem;
    padding: 5px 4px;
    border-radius: 8px;
    transition: .15s ease;
}

.breadcrumb-pill-row a:hover {
    color: var(--green-dark);
    background: var(--green-light);
}

.breadcrumb-pill-row .bc-current {
    color: var(--navy);
    font-weight: 700;
    font-size: .82rem;
    padding: 5px 4px;
}

.breadcrumb-pill-row svg {
    width: 12px;
    height: 12px;
    color: var(--line);
    flex-shrink: 0;
}

.pl-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 8px;
}

.pl-title-row h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.pl-title-row .pl-sub {
    color: var(--muted);
    font-size: .92rem;
}

.pl-board-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--navy-3);
    color: #fff;
    font-weight: 700;
    font-size: .82rem;
    padding: 8px 16px;
    border-radius: 10px;
    letter-spacing: .02em;
}

.pl-board-chip svg {
    width: 15px;
    height: 15px;
    color: var(--green);
}

.pl-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 22px 0 30px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.pl-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pl-stat .ps-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pl-stat .ps-ico svg {
    width: 16px;
    height: 16px;
}

.pl-stat .ps-num {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--navy);
    font-size: 1rem;
    line-height: 1.1;
}

.pl-stat .ps-label {
    color: var(--muted);
    font-size: .76rem;
}

.papers-tab-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 26px;
}

.papers-tab-btn {
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    font-size: .82rem;
    padding: 9px 20px;
    border-radius: 10px;
    transition: .18s ease;
    letter-spacing: .02em;
}

.papers-tab-btn.active {
    background: var(--navy-3);
    border-color: var(--navy-3);
    color: #fff;
}

.papers-tab-btn:hover:not(.active) {
    border-color: var(--green);
}

.expand-all-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px; /* Space between text and arrow icon */
    white-space: nowrap; /* Prevents text from wrapping into 2 lines */

    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-weight: 700;
    font-size: .78rem;
    padding: 9px 16px; /* Reduced side padding to fit nicely */
    border-radius: 10px;
    transition: .15s ease;
    cursor: pointer; /* Ensures pointer cursor on hover */
}

.expand-all-btn:hover {
    border-color: var(--green);
}

.session-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #fff;
    border: none;
    padding: 16px 22px;
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy);
    text-align: left;
    letter-spacing: .02em;
}

.session-header.session-open {
    background: var(--green-light);
    color: var(--green-dark);
}

.session-header .sh-chev {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: .2s ease;
    flex-shrink: 0;
}

.session-header.session-open .sh-chev {
    color: var(--green-dark);
    transform: rotate(180deg);
}

.session-body {
    display: none;
    padding: 6px 22px 18px;
}

.session-body.open {
    display: block;
}

.paper-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.paper-row:last-child {
    border-bottom: none;
}

.paper-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
    font-size: .92rem;
}

.paper-link:hover {
    color: var(--green-dark);
}

.paper-link .pl-ico {
    width: 22px;
    height: 22px;
    color: var(--green-dark);
    flex-shrink: 0;
}

.ms-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: .88rem;
}

.ms-link:hover {
    color: var(--green-dark);
}

.ms-link svg {
    width: 17px;
    height: 17px;
    color: var(--muted);
    flex-shrink: 0;
}

.pp-crumb-title {
    font-size: .72rem;
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--green-light);
    padding: 9px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    display: inline-block;
}

.session-block {
    box-shadow: var(--shadow-sm);
    transition: .2s ease;
    border-radius: 14px;
}

.session-block:hover {
    box-shadow: var(--shadow-md);
}

.session-header {
    padding: 18px 24px;
    border-radius: 14px;
}

.session-header .sh-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.session-header .sh-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--paper);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .2s ease;
}

.session-header.session-open .sh-ico {
    background: #fff;
    color: var(--green-dark);
}

.session-header .sh-ico svg {
    width: 15px;
    height: 15px;
}

.session-header .sh-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: .74rem;
    color: var(--muted);
    background: var(--paper);
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 10px;
}

.session-header.session-open .sh-count {
    background: #fff;
    color: var(--green-dark);
}

.session-header .sh-latest {
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .05em;
    color: #fff;
    background: var(--green);
    padding: 3px 9px;
    border-radius: 20px;
    margin-left: 8px;
    text-transform: uppercase;
}

.session-body {
    padding: 4px 24px 20px 70px;
}

.paper-row {
    padding: 15px 0;
}

.paper-link .pl-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--green-light);
    padding: 4px;
    color: var(--green-dark);
}

.ms-link {
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 7px 13px;
    transition: .15s ease;
}

.ms-link:hover {
    border-color: var(--green);
    background: var(--green-light);
}

.ms-link svg {
    color: var(--muted);
}

.ms-link:hover svg {
    color: var(--green-dark);
}

.pp-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px; /* <-- Keeps search input and dropdown aligned at max-width */
}

/* Floating Dark Dropdown Container */
.search-dropdown-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background-color: #ffffff; /* Dark screenshot background */
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    max-height: 380px;
    overflow-y: auto;
    padding: 8px;
}

/* Individual Search Row */
.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    color: var(--navy);
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    margin-bottom: 2px;
}

.search-result-item:hover {
    background-color: var(--green-light);
    color: var(--green-dark);
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
}

/* Badges for Exam Board & Unit Code */
.search-badges {
    display: flex;
    gap: 6px;
    align-items: center;
}

.badge-board {
    background-color: var(--navy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.badge-code {
    background-color: var(--paper);
    color: var(--muted);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.search-no-results {
    padding: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

/* Container Box */
.custom-accordion {
    width: 100%;
    max-width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.custom-accordion.active {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
}

/* Header / Clickable Area */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    background-color: #f8fafc;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-header:hover {
    background-color: #f1f5f9;
    color: #0f172a;
}

/* Title & Eye SVG Alignment */
.header-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1.3;
}

.eye-icon {
    color: #475569;
    flex-shrink: 0;
}

/* Arrow Rotation */
.accordion-icon {
    transition: transform 0.3s ease;
    color: #64748b;
    flex-shrink: 0;
}

.custom-accordion.active .accordion-icon {
    transform: rotate(180deg);
}

/* Slide Transition Area */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
    color: #475569;
    font-size: 0.925rem;
    line-height: 1.65;
    padding: 0 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}

.custom-accordion.active .accordion-content {
    padding: 1.25rem;
    border-top: 1px solid #f1f5f9;
}

/* Responsive Handling for Injected Content */
.accordion-content img,
.accordion-content iframe,
.accordion-content video,
.accordion-content table {
    max-width: 100%;
    height: auto;
}

.accordion-content table {
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

.accordion-content p {
    margin-bottom: 0.75rem;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content ul,
.accordion-content ol {
    padding-left: 1.25rem;
    margin: 0.5rem 0;
}

.accordion-content li {
    margin-bottom: 0.35rem;
}

/* Mobile Screens (<= 640px) */
@media (max-width: 640px) {
    .accordion-header {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .eye-icon,
    .accordion-icon {
        width: 16px;
        height: 16px;
    }

    .accordion-content {
        padding: 0 1rem;
        font-size: 0.875rem;
    }

    .custom-accordion.active .accordion-content {
        padding: 1rem;
    }
}
