/* ==========================================================================
   AV ViaLex - PREMIUM CSS DESIGN SYSTEM
   ========================================================================== */

/* Custom Variables */
:root {
    --primary-navy: #0B1F3A;
    --primary-navy-light: #162E4E;
    --primary-navy-dark: #061122;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #C89B2A;
    --accent-gold-light: rgba(212, 175, 55, 0.15);
    
    --bg-white: #FFFFFF;
    --bg-gray: #F5F7FA;
    --border-color: #E2E8F0;
    
    --text-dark: #1A1A1A;
    --text-muted: #64748B;
    --text-light: #F8FAFC;
    
    --success-green: #10B981;
    --pending-orange: #F59E0B;
    --error-red: #EF4444;
    
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', Arial, sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-premium: 0 20px 25px -5px rgba(11, 31, 58, 0.1), 0 10px 10px -5px rgba(11, 31, 58, 0.04);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.42s cubic-bezier(0.2, 0.9, 0.24, 1.18);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-size: 17px;
    line-height: 1.68;
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    font-weight: 700;
}

p,
li,
input,
textarea,
select,
table,
.form-group label,
.receipt-detail-card,
.dashboard-table,
.modal-body,
.admin-table,
.chat-message {
    font-size: 1.06rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Container */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 4rem);
}

.max-width-800 {
    max-width: none !important;
}

.text-center {
    text-align: center;
}

/* Icons styling */
.icon-small {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: middle;
    margin-right: 6px;
}

.icon-gold {
    width: 20px;
    height: 20px;
    fill: var(--accent-gold);
    flex-shrink: 0;
}

.icon-dark {
    width: 20px;
    height: 20px;
    fill: var(--primary-navy);
    margin-right: 8px;
}

.icon-large-gavel {
    width: 48px;
    height: 48px;
    fill: var(--accent-gold);
}

/* Helper styles */
.section-white {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.section-gray {
    padding: 5rem 0;
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-tagline {
    display: inline-block;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.section-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
}

.section-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-header-centered {
    margin-bottom: 3.5rem;
}

.section-header-centered h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-header-centered p {
    color: var(--text-muted);
    font-size: 1.22rem;
    max-width: none;
    margin: 0;
}

.desktop-only {
    display: inline;
}

/* Custom Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.btn:hover::after {
    transform: translateX(120%);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-danger-outline {
    border: 1.5px solid rgba(239, 68, 68, 0.35);
    color: var(--error-red);
    background-color: transparent;
}

.btn-danger-outline:hover {
    background-color: var(--error-red);
    color: var(--bg-white);
}

.btn-gold-filled {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark);
}

.btn-gold-filled:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-gold {
    background-color: transparent;
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.btn-gold:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark);
}

.btn-white-filled {
    background-color: var(--bg-white);
    color: var(--primary-navy);
}

.btn-white-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

.btn-white-border {
    background-color: transparent;
    border-color: var(--bg-white);
    color: var(--bg-white);
}

.btn-white-border:hover {
    background-color: var(--bg-white);
    color: var(--primary-navy);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-navy);
    color: var(--primary-navy);
}

.btn-outline:hover {
    background-color: var(--primary-navy);
    color: var(--bg-white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp svg {
    width: 20px;
    height: 20px;
    fill: white;
    margin-right: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

/* Top Info Bar */
.top-bar {
    background-color: var(--primary-navy-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--primary-navy-light);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.top-info span {
    display: inline-flex;
    align-items: center;
}

.btn-lang-toggle {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    transition: var(--transition-smooth);
}

.btn-lang-toggle:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark);
}

/* Header & Navigation */
.main-header {
    background-color: var(--primary-navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    border-bottom: 2px solid var(--accent-gold);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.site-logo-img {
    display: block;
    width: auto;
    height: 64px;
    max-width: 170px;
    object-fit: contain;
}

.footer-logo-img {
    height: 82px;
    max-width: 210px;
}

.logo-lex {
    color: var(--bg-white);
}

.logo-via {
    color: var(--accent-gold);
}

.logo-lex-light {
    color: var(--bg-white);
}

.logo-via-light {
    color: var(--accent-gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-light);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 0.25rem;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-gold);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

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

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

.nav-cta {
    margin-left: 1rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

/* SPA Sections Manager */
.app-page {
    display: none;
}

.app-page.active-page {
    display: block;
    animation: fadeInPage 0.4s ease-out forwards;
}

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

.scroll-animate {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.2, 0.9, 0.24, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

.scroll-animate.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.reveal-left {
    transform: translateX(-32px);
}

.scroll-animate.reveal-right {
    transform: translateX(32px);
}

.scroll-animate.reveal-scale {
    transform: scale(0.96);
}

.scroll-animate.revealed.reveal-left,
.scroll-animate.revealed.reveal-right {
    transform: translateX(0);
}

.scroll-animate.revealed.reveal-scale {
    transform: scale(1);
}

@keyframes softPulseGold {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.28);
    }
    50% {
        box-shadow: 0 0 0 9px rgba(212, 175, 55, 0);
    }
}

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

@keyframes shineLine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

/* ==========================================================================
   PAGE 1: HOME - HERO
   ========================================================================== */
.hero {
    background:
        linear-gradient(90deg, rgba(6, 17, 34, 0.98) 0%, rgba(11, 31, 58, 0.85) 45%, rgba(6, 17, 34, 0.3) 100%),
        url('hero_lawyer.png') right center / cover no-repeat;
    color: var(--text-light);
    padding: 6rem 0;
    min-height: calc(100vh - 104px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 140%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    animation: subtleFloat 8s ease-in-out infinite;
}

.hero-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: none;
    padding-left: clamp(1.5rem, 5vw, 5rem);
    padding-right: clamp(1.5rem, 5vw, 5rem);
}

.hero-badge {
    background-color: var(--primary-navy-light);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: softPulseGold 2.6s ease-in-out infinite;
}

.hero-title {
    font-size: 3.65rem;
    line-height: 1.2;
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    animation: heroTextRise 0.75s ease both;
}

.highlight-gold {
    color: var(--accent-gold);
}

.hero-desc {
    font-size: 1.25rem;
    color: #CBD5E1;
    margin-bottom: 2.5rem;
    max-width: 760px;
    animation: heroTextRise 0.75s ease 0.1s both;
}

.hero-point,
.hero-ctas {
    animation: heroTextRise 0.75s ease both;
}

.hero-point:nth-child(1) { animation-delay: 0.16s; }
.hero-point:nth-child(2) { animation-delay: 0.22s; }
.hero-point:nth-child(3) { animation-delay: 0.28s; }
.hero-point:nth-child(4) { animation-delay: 0.34s; }
.hero-ctas { animation-delay: 0.42s; }

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

.hero-points {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hero-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.08rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.hero-image-pane {
    display: flex;
    justify-content: center;
    position: relative;
}

.gavel-card {
    background: linear-gradient(135deg, var(--primary-navy-light) 0%, var(--primary-navy) 100%);
    border: 1.5px solid var(--accent-gold);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 360px;
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 3;
    overflow: hidden;
    animation: cardSettle 0.8s cubic-bezier(0.2, 0.9, 0.24, 1.18) 0.18s both;
}

.gavel-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--accent-gold-light) 0%, transparent 70%);
    animation: subtleFloat 5s ease-in-out infinite;
}

@keyframes cardSettle {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.gavel-icon-bg {
    width: 80px;
    height: 80px;
    background-color: var(--primary-navy-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent-gold-light);
}

.gavel-card h3 {
    color: var(--bg-white);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.gavel-card p {
    color: #94A3B8;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.gavel-badge-box {
    display: flex;
    gap: 0.5rem;
}

.badge-law {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--bg-white);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.floating-trust-badge {
    background-color: var(--bg-white);
    color: var(--primary-navy);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: absolute;
    bottom: -20px;
    left: -20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    z-index: 4;
    max-width: 250px;
    animation: floatingEffect 4s ease-in-out infinite alternate;
}

.floating-trust-badge h4 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.floating-trust-badge p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

@keyframes floatingEffect {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   HOME PAGE - EXPANDED PROFILE, SERVICES & PLATFORM FEATURES
   ========================================================================== */
.profile-feature-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 2rem;
    align-items: stretch;
}

.profile-story-panel {
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.9) 0%, rgba(6, 17, 34, 0.95) 100%),
        url('about_team.png') center / cover no-repeat;
    color: var(--bg-white);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-premium);
}

.profile-story-panel .section-title {
    color: var(--bg-white);
}

.profile-story-panel p {
    color: #CBD5E1;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.tagline-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tagline-stack span {
    border: 1px solid rgba(212, 175, 55, 0.35);
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--bg-white);
    border-radius: 6px;
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.mini-info-card,
.expanded-service-card,
.journey-step {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-bounce);
}

.mini-info-card h3,
.expanded-service-card h3,
.journey-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
}

.mini-info-card p,
.expanded-service-card p,
.journey-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.expanded-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.expanded-service-card {
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.expanded-service-card::before,
.mini-info-card::before,
.journey-step::before,
.lib-card::before,
.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    transform: translateX(-100%);
    opacity: 0;
}

.expanded-service-card:hover::before,
.mini-info-card:hover::before,
.journey-step:hover::before,
.lib-card:hover::before,
.contact-info-card:hover::before {
    opacity: 1;
    animation: shineLine 0.85s ease forwards;
}

.mini-info-card,
.journey-step,
.contact-info-card {
    position: relative;
    overflow: hidden;
}

.mini-info-card:hover,
.journey-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.expanded-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(212, 175, 55, 0.35);
}

.service-number {
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.journey-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.journey-step {
    position: relative;
}

.journey-step span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--primary-navy);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
}

.platform-depth-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.feature-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.feature-checklist div {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    padding: 1rem;
}

.feature-checklist strong {
    display: block;
    color: var(--primary-navy);
    margin-bottom: 0.35rem;
}

.feature-checklist span {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.values-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.values-strip div {
    min-height: 96px;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.values-strip strong {
    color: var(--primary-navy);
}

/* ==========================================================================
   HOME PAGE - LEGAL CATEGORIES
   ========================================================================== */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.category-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.category-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--bg-gray);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.category-icon-wrapper svg {
    width: 26px;
    height: 26px;
    fill: var(--primary-navy);
    transition: var(--transition-smooth);
}

.category-card h3 {
    font-size: 1.38rem;
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.category-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.category-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-navy);
}

/* Hover States for Categories */
.category-card:hover {
    transform: translateY(-7px) scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: rgba(212, 175, 55, 0.3);
}

.category-card:hover::after {
    background-color: var(--accent-gold);
}

.category-card:hover .category-icon-wrapper {
    background-color: var(--primary-navy);
}

.category-card:hover .category-icon-wrapper svg {
    fill: var(--accent-gold);
}

.category-card:hover h3 {
    color: var(--accent-gold-hover);
}

/* ==========================================================================
   HOME PAGE - DIGITAL MEDIA TEASER & PLAYS
   ========================================================================== */
.grid-media-teaser {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
}

.media-video-teaser-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.media-video-teaser-card:hover {
    box-shadow: var(--shadow-md);
}

.video-thumbnail-placeholder {
    height: 280px;
    background: linear-gradient(rgba(11, 31, 58, 0.4), rgba(6, 17, 34, 0.75)), url('video_thumbnail.png') center / cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-circle {
    width: 65px;
    height: 65px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.play-svg {
    width: 28px;
    height: 28px;
    fill: var(--primary-navy-dark);
    margin-left: 4px;
}

.play-btn-circle:hover {
    transform: scale(1.1);
    background-color: var(--accent-gold-hover);
}

.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: rgba(0,0,0,0.7);
    color: var(--bg-white);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.media-teaser-body {
    padding: 1.5rem;
}

.badge-gold {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-hover);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.media-teaser-body h3 {
    font-size: 1.55rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.media-teaser-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.media-audio-teaser-list {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.audio-header-title {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    border-bottom: 1.5px solid var(--bg-gray);
    padding-bottom: 0.75rem;
}

.audio-teaser-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

button.audio-teaser-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
}

.audio-teaser-info {
    display: grid;
    gap: 0.2rem;
}

.audio-teaser-info strong {
    color: var(--primary-navy);
    font-size: 1.02rem;
    line-height: 1.3;
}

.audio-teaser-info small {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.home-media-empty {
    display: grid;
    min-height: 190px;
    place-items: center;
    padding: 2rem;
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--text-muted);
    text-align: center;
}

.grid-media-teaser > .home-media-empty:only-child {
    grid-column: 1 / -1;
}

.audio-teaser-item:hover {
    background-color: var(--bg-gray);
}

.audio-play-mini {
    width: 38px;
    height: 38px;
    background-color: var(--primary-navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-play-mini svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-gold);
    margin-left: 2px;
}

.audio-teaser-info h4 {
    font-size: 1.05rem;
    color: var(--primary-navy);
    font-weight: 600;
    line-height: 1.3;
}

.audio-teaser-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Call Center & Direct Support Banner */
.banner-cta {
    background: linear-gradient(135deg, var(--primary-navy-light) 0%, var(--primary-navy-dark) 100%);
    color: var(--bg-white);
    padding: 4rem 0;
    border-bottom: 2px solid var(--accent-gold);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.banner-grid h2 {
    color: var(--bg-white);
    font-size: 2.3rem;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.banner-grid p {
    color: #94A3B8;
    font-size: 1.2rem;
}

.banner-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-page-intro {
    background:
        linear-gradient(135deg, rgba(11, 31, 58, 0.92) 0%, rgba(6, 17, 34, 0.94) 100%),
        url('about_team.png') center / cover no-repeat;
    color: var(--text-light);
    padding: 5rem 0;
    border-bottom: 2px solid var(--accent-gold);
}

.about-page-intro h1 {
    color: var(--bg-white);
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.about-page-intro p {
    color: #CBD5E1;
    font-size: 1.12rem;
    max-width: 900px;
}

#page-about .about-page-intro {
    padding: 6.5rem 0 5.5rem;
}

#page-about .about-page-intro .container {
    display: grid;
    grid-template-columns: 0.22fr 0.78fr;
    gap: 2rem;
    align-items: end;
}

#page-about .about-page-intro .section-tagline {
    align-self: start;
    border-top: 3px solid var(--accent-gold);
    padding-top: 1rem;
    margin-bottom: 0;
}

#page-about .about-page-intro h1 {
    font-size: clamp(2.5rem, 5vw, 5.5rem);
    max-width: 1050px;
    margin-bottom: 1.5rem;
}

#page-about .about-page-intro p {
    max-width: 1040px;
    font-size: 1.2rem;
}

#aboutDetailMount > section {
    padding: 5.75rem 0;
}

#aboutDetailMount .profile-feature-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 0;
    align-items: stretch;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

#aboutDetailMount .profile-story-panel {
    border-radius: 0;
    box-shadow: none;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 520px;
}

#aboutDetailMount .profile-story-panel p {
    max-width: 760px;
    font-size: 1.14rem;
}

#aboutDetailMount .tagline-stack {
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

#aboutDetailMount .tagline-stack span {
    width: 50%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background-color: transparent;
    padding: 1rem 0;
}

#aboutDetailMount .vision-mission-grid {
    grid-template-columns: 1fr;
    gap: 0;
    background-color: var(--bg-white);
}

#aboutDetailMount .mini-info-card {
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    padding: 2rem 2.25rem;
}

#aboutDetailMount .mini-info-card:last-child {
    border-bottom: 0;
}

#aboutDetailMount .expanded-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

#aboutDetailMount .expanded-service-card {
    border: 0;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    padding: 2rem 2rem 2.25rem;
}

#aboutDetailMount .expanded-service-card:hover {
    transform: none;
    box-shadow: none;
    background-color: #FFFDF5;
}

#aboutDetailMount .service-number {
    margin-bottom: 2rem;
    color: var(--primary-navy);
    opacity: 0.36;
    font-size: 1.5rem;
}

#aboutDetailMount .journey-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    position: relative;
}

#aboutDetailMount .journey-board::before {
    content: '';
    position: absolute;
    top: 19px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--accent-gold);
}

#aboutDetailMount .journey-step {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    padding: 0 2rem 0 0;
}

#aboutDetailMount .journey-step span {
    position: relative;
    z-index: 1;
    border: 1px solid var(--accent-gold);
    background-color: var(--bg-white);
    color: var(--primary-navy);
}

#aboutDetailMount .platform-depth-grid {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 4rem;
}

#aboutDetailMount .feature-checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-color);
}

#aboutDetailMount .feature-checklist div {
    border: 0;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    background-color: transparent;
    padding: 1.25rem 0;
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    gap: 2rem;
}

#aboutDetailMount .values-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    background-color: var(--primary-navy-dark);
    border: 1px solid rgba(212, 175, 55, 0.24);
}

#aboutDetailMount .values-strip div {
    min-height: 150px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    background-color: transparent;
}

#aboutDetailMount .values-strip div:last-child {
    border-right: 0;
}

#aboutDetailMount .values-strip strong {
    color: var(--bg-white);
    font-size: 1rem;
}

/* Refined brand-site treatment for About page */
#page-about {
    background-color: var(--bg-white);
}

#page-about .about-page-intro {
    min-height: 62vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(6, 17, 34, 0.96) 0%, rgba(11, 31, 58, 0.72) 50%, rgba(6, 17, 34, 0.25) 100%),
        url('about_team.png') center / cover no-repeat;
    border-bottom: 0;
}

#page-about .about-page-intro .container {
    grid-template-columns: 1fr;
}

#page-about .about-page-intro .section-tagline {
    width: fit-content;
    border-top: 0;
    border-bottom: 2px solid var(--accent-gold);
    padding: 0 0 0.75rem;
}

#page-about .about-page-intro h1 {
    max-width: 920px;
}

#page-about .about-page-intro p {
    max-width: 760px;
    line-height: 1.75;
}

#aboutDetailMount > section {
    border: 0;
}

#aboutDetailMount > section:nth-child(odd) {
    background-color: var(--bg-white);
}

#aboutDetailMount > section:nth-child(even) {
    background-color: #F8FAFC;
}

#aboutDetailMount .profile-feature-grid {
    border: 0;
    gap: clamp(2rem, 5vw, 5rem);
}

#aboutDetailMount .profile-story-panel {
    min-height: 560px;
    border-radius: 0;
    border: 0;
    background:
        linear-gradient(180deg, rgba(6, 17, 34, 0.2), rgba(6, 17, 34, 0.88)),
        url('about_team.png') center / cover no-repeat;
    padding: clamp(2rem, 5vw, 5rem);
}

#aboutDetailMount .profile-story-panel .section-title {
    font-size: clamp(2rem, 4vw, 4rem);
    max-width: 720px;
}

#aboutDetailMount .vision-mission-grid {
    align-content: center;
    background-color: transparent;
}

#aboutDetailMount .mini-info-card {
    background-color: transparent;
    padding: 1.75rem 0;
    border-bottom: 1px solid rgba(11, 31, 58, 0.14);
}

#aboutDetailMount .mini-info-card h3 {
    font-size: 1.35rem;
}

#aboutDetailMount .expanded-services-grid {
    border: 0;
    gap: 0;
}

#aboutDetailMount .expanded-service-card {
    border-right: 0;
    border-bottom: 1px solid rgba(11, 31, 58, 0.12);
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
}

#aboutDetailMount .expanded-service-card:hover {
    background-color: transparent;
}

#aboutDetailMount .service-number {
    font-size: 1rem;
    opacity: 1;
    color: var(--accent-gold-hover);
    margin: 0.2rem 0 0;
}

#aboutDetailMount .expanded-service-card h3 {
    font-size: 1.35rem;
}

#aboutDetailMount .expanded-service-card p {
    max-width: 760px;
    font-size: 1rem;
}

#aboutDetailMount .about-services-section {
    background:
        linear-gradient(90deg, #F8FAFC 0%, #F8FAFC 44%, var(--bg-white) 44%, var(--bg-white) 100%);
}

.about-services-layout {
    display: grid;
    grid-template-columns: 0.42fr 0.58fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.services-lead {
    position: sticky;
    top: 110px;
    padding: 3rem 0;
}

.services-lead h2 {
    color: var(--primary-navy);
    font-size: clamp(2.2rem, 4vw, 4.25rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.services-lead p {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 520px;
}

#aboutDetailMount .about-services-layout .expanded-services-grid {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(11, 31, 58, 0.12);
}

#aboutDetailMount .about-services-layout .expanded-service-card {
    grid-template-columns: 130px 1fr;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(11, 31, 58, 0.12);
    align-items: start;
}

#aboutDetailMount .about-services-layout .expanded-service-card h3,
#aboutDetailMount .about-services-layout .expanded-service-card p {
    grid-column: 2;
}

#aboutDetailMount .about-services-layout .service-number {
    width: fit-content;
    height: fit-content;
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 999px;
    color: var(--accent-gold-hover);
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    font-weight: 800;
}

#aboutDetailMount .about-services-layout .expanded-service-card h3 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin-bottom: 0.55rem;
}

#aboutDetailMount .about-services-layout .expanded-service-card p {
    max-width: 520px;
    line-height: 1.7;
    margin-top: -0.2rem;
}

#aboutDetailMount .journey-board {
    padding-top: 2rem;
}

#aboutDetailMount .journey-step {
    padding-right: clamp(1.25rem, 3vw, 3rem);
}

#aboutDetailMount .journey-step span {
    width: 46px;
    height: 46px;
}

#aboutDetailMount .platform-depth-grid {
    align-items: center;
}

#aboutDetailMount .feature-checklist div {
    padding: 1.45rem 0;
}

#aboutDetailMount .feature-checklist strong {
    font-size: 1.05rem;
}

#aboutDetailMount .platform-depth-grid {
    align-items: stretch;
}

#aboutDetailMount .feature-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    border-top: 0;
}

#aboutDetailMount .feature-checklist div {
    border: 1px solid rgba(11, 31, 58, 0.1);
    border-radius: 0;
    background-color: var(--bg-white);
    padding: clamp(1.25rem, 2vw, 2rem);
    display: block;
    min-height: 190px;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.06);
}

#aboutDetailMount .feature-checklist strong {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 0.65rem;
}

#aboutDetailMount .feature-checklist span {
    display: block;
    color: var(--text-muted);
    line-height: 1.7;
}

#aboutDetailMount .feature-checklist .benefit-feature-primary {
    grid-row: span 2;
    background:
        linear-gradient(180deg, rgba(11, 31, 58, 0.86), rgba(6, 17, 34, 0.95)),
        url('about_team.png') center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 400px;
}

#aboutDetailMount .feature-checklist .benefit-feature-primary strong {
    color: var(--bg-white);
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    line-height: 1.15;
    max-width: 420px;
}

#aboutDetailMount .feature-checklist .benefit-feature-primary span {
    color: #CBD5E1;
    font-size: 1rem;
    max-width: 430px;
}

#aboutDetailMount .values-strip {
    border: 0;
    background-color: transparent;
    gap: 1px;
}

#aboutDetailMount .values-strip div {
    min-height: 180px;
    background:
        linear-gradient(180deg, rgba(11, 31, 58, 0.94), rgba(6, 17, 34, 0.98));
    border-right: 0;
}

/* Testimonial slider styles */
.testimonial-slider-container {
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    padding: 1rem;
}

.testi-stars {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testi-text {
    font-size: 1.55rem;
    font-style: italic;
    color: var(--primary-navy);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.testi-author {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    border-color: var(--primary-navy);
}

/* ==========================================================================
   PAGE 2: LEGAL LIBRARY
   ========================================================================== */
.library-header {
    background: linear-gradient(135deg, rgba(11, 31, 58, 0.9) 0%, rgba(6, 17, 34, 0.95) 100%), url('library_banner.png') center / cover no-repeat;
    color: var(--text-light);
    padding: 4rem 1.5rem;
    border-radius: 16px;
    margin-top: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.library-header h1 {
    color: var(--bg-white);
    font-size: 2.85rem;
    margin-bottom: 0.75rem;
}

.library-header p {
    color: #CBD5E1;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.library-search-box {
    background-color: var(--bg-white);
    border-radius: 50px;
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0.25rem 1.5rem;
    border: 2.5px solid transparent;
    transition: var(--transition-smooth);
}

.library-search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.search-icon {
    width: 22px;
    height: 22px;
    fill: var(--text-muted);
    margin-right: 0.75rem;
}

.library-search-box input {
    border: none;
    outline: none;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.13rem;
    color: var(--text-dark);
}

.library-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
}

.library-primary-tabs {
    width: min(620px, 100%);
    margin: 0 auto 2.25rem;
    padding: 0.4rem;
    flex-wrap: nowrap;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.library-primary-tabs .lib-tab {
    flex: 1;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    font-size: 1.05rem;
}

.lib-tab {
    background-color: var(--bg-gray);
    color: var(--primary-navy);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.lib-tab:hover, .lib-tab.active {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    border-color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.library-subtitle {
    font-size: 1.7rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.library-section-panel[hidden] {
    display: none;
}

.library-featured {
    margin-bottom: 3rem;
}

.featured-topic-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(11, 31, 58, 0.16);
    border-top: 5px solid var(--accent-gold);
    border-radius: 18px;
    background: var(--bg-white);
    box-shadow: 0 18px 44px rgba(7, 26, 49, 0.13);
    position: relative;
}

.featured-topic-card::after {
    content: '';
    position: absolute;
    inset: 5px 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.45), transparent 70%);
}

.featured-topic-content {
    display: flex;
    flex-direction: column;
    padding: clamp(1.6rem, 4vw, 3rem);
}

.featured-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.7rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

.featured-topic-type {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.featured-topic-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 10px;
    background: var(--primary-navy);
}

.judge-gavel-svg {
    width: 30px;
    height: 30px;
    overflow: visible;
    fill: var(--accent-gold);
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.28));
}

.featured-topic-type > span:last-child {
    display: grid;
    gap: 0.1rem;
}

.featured-topic-type small,
.featured-topic-reading-time small {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-topic-type strong {
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.featured-topic-header time {
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    color: var(--accent-gold-hover);
    background: #f8f3e4;
    font-size: 0.82rem;
    font-weight: 800;
}

.featured-article-copy {
    max-width: 800px;
}

.featured-article-copy h2 {
    max-width: 760px;
    margin-bottom: 1rem;
    color: var(--primary-navy);
    font-size: clamp(1.9rem, 3.4vw, 2.8rem);
    line-height: 1.18;
}

.featured-article-copy > p {
    max-width: 720px;
    margin-bottom: 1.8rem;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.75;
}

.featured-article-actions,
.forum-contact-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.featured-article-actions {
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.featured-topic-reading-time {
    display: grid;
    gap: 0.25rem;
}

.featured-topic-reading-time strong {
    color: var(--primary-navy);
    font-size: 0.92rem;
}

.library-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.library-list-heading .library-subtitle {
    margin: 0.35rem 0 0;
    padding: 0;
    border: 0;
}

.library-sort-control {
    display: grid;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.library-sort-control select {
    min-width: 190px;
    padding: 0.72rem 2.2rem 0.72rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--primary-navy);
    font: inherit;
    cursor: pointer;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.library-load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -1.5rem 0 4rem;
    position: relative;
}

.library-load-more::before,
.library-load-more::after {
    content: '';
    height: 1px;
    flex: 1;
    max-width: 240px;
    background: linear-gradient(90deg, transparent, var(--border-color));
}

.library-load-more::after {
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.library-load-more[hidden] {
    display: none;
}

.library-load-more-button {
    min-width: 180px;
    margin: 0 1.25rem;
    justify-content: center;
    border: 1px solid var(--primary-navy);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--primary-navy);
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.library-load-more-button::after {
    content: '↓';
    margin-left: 0.55rem;
    color: var(--accent-gold-hover);
    font-size: 1.05rem;
}

.library-load-more-button:hover,
.library-load-more-button:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent-gold-hover);
    background: var(--primary-navy);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lib-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    position: relative;
}

/* Legacy category cards are replaced by the dated library renderer on load. */
.lib-card[data-category] {
    display: none;
}

.lib-card-badge {
    background-color: var(--primary-navy-light);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    width: fit-content;
    border-radius: 0 0 8px 0;
}

.lib-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.lib-card-date {
    margin-bottom: 0.8rem;
    color: var(--accent-gold-hover);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.lib-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.lib-card-body p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.lib-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--bg-gray);
    padding-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.lib-action-text {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--primary-navy);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.lib-action-text:hover {
    color: var(--accent-gold-hover);
}

.lib-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-md);
    border-color: rgba(11, 31, 58, 0.15);
}

.forum-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    margin-bottom: 3rem;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    border-radius: 22px;
    background: linear-gradient(145deg, #f6f1df, #fff 58%);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.forum-hero-copy h2 {
    max-width: 700px;
    margin: 0.5rem 0 1rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
}

.forum-hero-copy p,
.forum-question-cta p {
    color: var(--text-muted);
    font-size: 1.04rem;
    line-height: 1.7;
}

.forum-question-cta {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
}

.forum-question-cta strong {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-size: 1.28rem;
}

.forum-question-cta p {
    margin-bottom: 1.25rem;
}

.forum-contact-actions .btn {
    flex: 1 1 190px;
    justify-content: center;
}

.forum-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.forum-list-heading h2 {
    font-size: 1.8rem;
}

.forum-count {
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    color: var(--primary-navy);
    background: #f4ead0;
    font-size: 0.85rem;
    font-weight: 800;
}

.forum-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 4rem;
}

.forum-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.forum-card[open] {
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: var(--shadow-md);
}

.forum-card summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    list-style: none;
    cursor: pointer;
}

.forum-card summary::-webkit-details-marker {
    display: none;
}

.forum-question-number {
    color: var(--accent-gold-hover);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.forum-question-copy {
    display: grid;
    gap: 0.3rem;
}

.forum-question-copy time {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.forum-question-copy strong {
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-size: 1.18rem;
    line-height: 1.4;
}

.forum-toggle-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--bg-gray);
    color: var(--primary-navy);
    font-size: 1.35rem;
    transition: transform 0.25s ease;
}

.forum-card[open] .forum-toggle-icon {
    transform: rotate(45deg);
    background: var(--accent-gold);
}

.forum-answer {
    margin: 0 1.5rem 1.5rem 4.75rem;
    padding: 1.25rem 1.4rem;
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 12px 12px 0;
    background: #f8fafc;
}

.forum-answer-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-gold-hover);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.forum-answer p {
    color: var(--text-dark);
    line-height: 1.75;
}

.forum-answer-content {
    color: var(--text-dark);
    line-height: 1.75;
}

.forum-answer .forum-answer-note {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.admin-forum-manager {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.admin-forum-list-heading {
    margin-top: 2.25rem;
}

.library-review-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: start;
    margin: 0 0 4rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.library-review-panel::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold), rgba(212, 175, 55, 0));
    animation: subtleFloat 4.2s ease-in-out infinite;
}

.library-review-copy h2 {
    font-size: 2rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.library-review-copy p {
    color: var(--text-muted);
    max-width: 620px;
}

.library-review-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.library-review-form textarea {
    resize: vertical;
    min-height: 140px;
}

.star-rating-control {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 48px;
    padding: 0.35rem 0.55rem;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.star-rating-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background-color: transparent;
    color: #CBD5E1;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease, text-shadow 0.18s ease;
}

.star-rating-btn:hover,
.star-rating-btn:focus-visible,
.star-rating-btn.active {
    color: var(--accent-gold);
    text-shadow: 0 4px 12px rgba(212, 175, 55, 0.32);
}

.star-rating-btn:hover,
.star-rating-btn:focus-visible {
    transform: translateY(-1px) scale(1.08);
    outline: none;
}

.star-rating-btn.active {
    animation: starPop 0.24s ease;
}

@keyframes starPop {
    0% {
        transform: scale(0.92);
    }
    55% {
        transform: scale(1.16);
    }
    100% {
        transform: scale(1);
    }
}

.library-review-form .contact-form-actions {
    margin-top: 0;
}

.testimonial-empty {
    color: var(--text-muted);
    font-size: 1.08rem;
    padding: 2rem 1rem;
}

/* ==========================================================================
   PAGE 3: MULTIMEDIA HUB
   ========================================================================== */
.multimedia-header-bar {
    position: relative;
}

.media-search-box {
    position: absolute;
    top: 0.2rem;
    right: 0;
    width: min(230px, 100%);
    height: 38px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background-color: var(--bg-white);
    padding: 0 0.8rem;
    box-shadow: var(--shadow-sm);
}

.media-search-box svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-gold-hover);
    flex-shrink: 0;
}

.media-search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
}

.media-search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 600;
}

.media-empty-state {
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    background-color: var(--bg-gray);
}

.audio-playlist-mini .media-empty-state {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    color: #CBD5E1;
}

.multimedia-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.sub-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.video-main-player-mock {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.video-mock-screen {
    height: 380px;
    background-color: var(--primary-navy-dark);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
}

.video-mock-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 17, 34, 0.2), rgba(6, 17, 34, 0.74));
    z-index: 1;
    pointer-events: none;
}

.video-mock-overlay {
    text-align: center;
    padding: 2rem;
    z-index: 2;
}

.play-btn-circle-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
}

.play-btn-circle-large svg {
    width: 32px;
    height: 32px;
    fill: var(--primary-navy-dark);
    margin-left: 6px;
}

.play-btn-circle-large:hover {
    transform: scale(1.1);
    background-color: var(--accent-gold-hover);
}

.video-mock-overlay span {
    display: block;
    font-size: 1rem;
    color: #CBD5E1;
    font-family: var(--font-heading);
}

.video-playing-state {
    position: relative;
    z-index: 3;
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
}

.youtube-player {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-playing-state.is-playing-video {
    padding: 0;
    display: block;
}

.video-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.stop-video-btn {
    margin-top: 1rem;
}

.video-mock-details {
    padding: 1.5rem;
}

.video-mock-details h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.video-mock-details p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.video-playlist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.playlist-item {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.playlist-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.playlist-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.playlist-item.active, .playlist-item:hover {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

.media-pagination {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
    margin-top: 0.8rem;
    padding: 0.38rem 0.45rem 0.38rem 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--accent-gold);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
    max-width: 100%;
}

.media-pagination-info {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    color: var(--primary-navy);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0;
}

.media-pagination-info strong {
    color: var(--accent-gold-hover);
    font-size: 0.82rem;
}

.media-pagination-info span {
    color: var(--text-muted);
}

.media-pagination-size {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    white-space: nowrap;
}

.media-pagination-size select {
    height: 27px;
    min-width: 48px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background-color: var(--bg-white);
    color: var(--primary-navy);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0 0.45rem;
    outline: none;
    cursor: pointer;
}

.media-pagination-size select:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.media-pagination-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.22rem;
    flex-wrap: wrap;
    min-width: 0;
}

.media-pagination-buttons button {
    min-width: 27px;
    height: 27px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background-color: var(--bg-white);
    color: var(--primary-navy);
    font-weight: 800;
    font-size: 0.7rem;
    cursor: pointer;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.media-pagination-buttons button:hover:not(:disabled),
.media-pagination-buttons button.active {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark);
    box-shadow: 0 6px 14px rgba(212, 175, 55, 0.18);
    transform: translateY(-1px);
}

.media-pagination-buttons .media-page-arrow {
    font-size: 1rem;
    line-height: 1;
}

.media-pagination-buttons button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

.media-pagination-dots {
    color: var(--text-muted);
    font-weight: 900;
    padding: 0 0.15rem;
}

/* Audio Podcast Panel */
.audio-hub-panel {
    background-color: var(--bg-white);
    margin-bottom: 3rem;
}

.audio-player-card {
    background-color: var(--primary-navy);
    color: var(--text-light);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-gold-light);
}

.audio-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.audio-wave-icon {
    width: 44px;
    height: 44px;
    fill: var(--accent-gold);
}

.audio-info h4 {
    color: var(--bg-white);
    font-size: 1rem;
    margin: 0;
}

.audio-info span {
    color: #94A3B8;
    font-size: 0.8rem;
}

.audio-controls-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.audio-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.audio-btn svg {
    width: 22px;
    height: 22px;
    fill: var(--primary-navy-dark);
}

.audio-progress-bar-container {
    background-color: rgba(255, 255, 255, 0.15);
    height: 12px;
    border-radius: 999px;
    flex-grow: 1;
    min-width: 180px;
    position: relative;
    overflow: visible;
    cursor: pointer;
    touch-action: none;
}

.audio-progress-bar {
    background-color: var(--accent-gold);
    height: 100%;
    border-radius: 999px;
    position: relative;
}

.audio-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: var(--bg-white);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.audio-seek-range {
    position: absolute;
    inset: -10px 0;
    width: 100%;
    height: 32px;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
    touch-action: none;
}

.audio-time {
    font-size: 0.8rem;
    color: #94A3B8;
    font-family: monospace;
    white-space: nowrap;
}

.audio-speed-control {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 30px;
    color: var(--accent-gold);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.32);
    border-radius: 999px;
    padding: 0 0.25rem 0 0.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    white-space: nowrap;
}

.audio-speed-control svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.audio-speed-control select {
    height: 24px;
    min-width: 54px;
    background-color: transparent;
    color: var(--bg-white);
    border: 0;
    border-radius: 999px;
    padding: 0 0.35rem;
    font-size: 0.76rem;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.audio-speed-control option {
    color: var(--primary-navy);
}

.audio-speed-control:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.14);
}

.audio-playlist-mini {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.mini-audio-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mini-audio-item:hover, .mini-audio-item.active {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent-gold);
}

.media-pagination-dark {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.76));
    border-color: rgba(212, 175, 55, 0.34);
    border-left-color: var(--accent-gold);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.media-pagination-dark .media-pagination-info {
    color: #CBD5E1;
}

.media-pagination-dark .media-pagination-info strong {
    color: var(--accent-gold);
}

.media-pagination-dark .media-pagination-info span {
    color: #94A3B8;
}

.media-pagination-dark .media-pagination-size {
    color: #CBD5E1;
}

.media-pagination-dark .media-pagination-size select {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--bg-white);
}

.media-pagination-dark .media-pagination-size option {
    color: var(--primary-navy);
}

.media-pagination-dark .media-pagination-buttons button {
    background-color: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--bg-white);
    box-shadow: none;
}

.media-pagination-dark .media-pagination-buttons button:hover:not(:disabled),
.media-pagination-dark .media-pagination-buttons button.active {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--primary-navy-dark);
}

.media-pagination-dark .media-pagination-dots {
    color: #94A3B8;
}

@media (max-width: 1180px) {
    .media-pagination {
        border-radius: 14px;
        flex-wrap: wrap;
    }

    .media-pagination-buttons {
        justify-content: flex-start;
    }
}

/* PDF List Panel */
.pdf-hub-panel {
    background-color: var(--bg-white);
}

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pdf-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.pdf-icon-box {
    width: 44px;
    height: 44px;
    background-color: #FEE2E2;
    color: #EF4444;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.pdf-details {
    flex-grow: 1;
}

.pdf-details h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.pdf-details span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pdf-item:hover {
    border-color: var(--primary-navy-light);
    background-color: var(--bg-gray);
}

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-hero {
    min-height: 46vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(6, 17, 34, 0.98) 0%, rgba(11, 31, 58, 0.85) 45%, rgba(6, 17, 34, 0.3) 100%),
        url('contact_hero.png') center / cover no-repeat;
    color: var(--text-light);
}

.contact-hero h1 {
    max-width: 880px;
    color: var(--bg-white);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.contact-hero p {
    max-width: 760px;
    color: #CBD5E1;
    font-size: 1.2rem;
}

.contact-main-section {
    padding-top: 4.5rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-white);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-info-card-primary {
    background-color: var(--primary-navy);
    border-color: rgba(212, 175, 55, 0.38);
    color: var(--bg-white);
}

.contact-info-label {
    display: block;
    color: var(--accent-gold-hover);
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.contact-info-card strong {
    display: block;
    color: var(--primary-navy);
    font-size: 1.12rem;
    line-height: 1.35;
    margin-bottom: 0.55rem;
}

.contact-info-card-primary strong {
    color: var(--bg-white);
    font-size: 1.65rem;
}

.contact-info-card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin: 0;
}

.contact-info-card-primary p {
    color: #CBD5E1;
}

.contact-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.contact-form-panel {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-premium);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.contact-form-panel h2 {
    font-size: 2rem;
    margin-bottom: 0.65rem;
}

.contact-form-panel > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    margin-top: 0.5rem;
}

.contact-form-status {
    color: var(--success-green);
    font-weight: 700;
    font-size: 0.95rem;
}

.legal-consent-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-muted);
    line-height: 1.45;
}

.legal-consent-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--accent-gold);
    flex-shrink: 0;
}

.inline-link-button {
    display: inline;
    border: 0;
    background: transparent;
    color: var(--primary-navy);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
}

.inline-link-button:hover,
.inline-link-button:focus-visible {
    color: var(--accent-gold-hover);
    outline: none;
}

.social-icon-row,
.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.footer-social-icons {
    margin-top: 1rem;
}

.social-icon-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-navy-light);
    border: 1px solid rgba(212, 175, 55, 0.32);
    color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.social-icon-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon-link:hover {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark);
    transform: translateY(-2px);
}

.contact-social-block {
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
    margin-top: 0.5rem;
}

.contact-social-block > span {
    display: block;
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.contact-social-block .social-icon-link {
    background-color: var(--bg-white);
    color: var(--primary-navy);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-social-block .social-icon-link:hover {
    background-color: var(--primary-navy);
    color: var(--accent-gold);
}

.contact-map-section {
    margin-top: 4rem;
}

.contact-map-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-map-header h2 {
    font-size: 2rem;
    margin: 0;
}

.contact-map-frame {
    width: 100%;
    min-height: 390px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    background-color: var(--bg-gray);
}

.contact-map-frame iframe {
    width: 100%;
    height: 390px;
    border: 0;
    display: block;
}

.contact-whatsapp-float {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--bg-white);
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.34);
    border: 3px solid var(--bg-white);
    animation: contactWhatsappHang 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

body.contact-page-active .contact-whatsapp-float {
    display: flex;
}

.contact-whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

.contact-whatsapp-float:hover {
    transform: translateY(-4px) scale(1.04);
    background-color: #128C7E;
}

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

/* ==========================================================================
   PAGE 4: APPOINTMENT BOOKING WIZARD
   ========================================================================== */
.booking-wizard-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-premium);
    padding: 3rem 2.5rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.wizard-steps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-gray);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid var(--border-color);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-indicator.active {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    border-color: var(--primary-navy);
}

.step-indicator.completed {
    background-color: var(--success-green);
    color: var(--bg-white);
    border-color: var(--success-green);
}

.step-line {
    height: 4px;
    background-color: var(--border-color);
    flex-grow: 1;
    position: relative;
    z-index: 1;
    margin: 0 -5px;
    transition: var(--transition-smooth);
}

.step-line.completed {
    background-color: var(--success-green);
}

.wizard-steps-labels {
    display: flex;
    justify-content: space-between;
    max-width: 580px;
    margin: 0 auto 3rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-steps-labels span.active-label {
    color: var(--primary-navy);
    font-weight: 700;
}

.booking-step {
    display: none;
}

.booking-step.active-step {
    display: block;
    animation: slideInStep 0.4s ease-out forwards;
}

@keyframes slideInStep {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* Radio issue grid */
.booking-issue-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.issue-option {
    cursor: pointer;
}

.issue-option input[type="radio"] {
    display: none;
}

.issue-custom-box {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.25rem;
    transition: var(--transition-smooth);
}

.issue-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.issue-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.issue-option input[type="radio"]:checked + .issue-custom-box {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold-light);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
}

.booking-other-topic {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin: -1rem 0 2rem;
    padding: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.48);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.96));
    box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
}

.booking-other-topic[hidden] {
    display: none;
}

.booking-other-topic-icon {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 50%;
    color: var(--primary-navy);
    background: var(--accent-gold);
    font-size: 1.25rem;
    font-weight: 800;
}

.booking-other-topic .form-group {
    margin: 0;
}

.booking-other-topic small {
    color: var(--text-muted);
    line-height: 1.5;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    margin-top: 2rem;
}

/* Form controls */
.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
}

.form-group input, .form-group select, .form-group textarea {
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-navy);
    box-shadow: 0 0 8px rgba(11, 31, 58, 0.08);
}

.rich-text-field {
    overflow: hidden;
    background: var(--bg-white);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rich-text-field:focus-within {
    border-color: var(--primary-navy);
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.rich-text-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}

.rich-text-toolbar button {
    min-width: 2.15rem;
    min-height: 2rem;
    padding: 0.25rem 0.48rem;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    color: var(--primary-navy);
    font: inherit;
    font-size: 0.78rem;
    line-height: 1.1;
    cursor: pointer;
}

.rich-text-toolbar button:hover,
.rich-text-toolbar button:focus-visible {
    border-color: var(--accent-gold);
    background: #fffaf0;
    outline: none;
}

.rich-text-toolbar .rich-text-align-left {
    text-align: left;
}

.rich-text-toolbar .rich-text-align-center {
    text-align: center;
}

.rich-text-toolbar .rich-text-align-right {
    text-align: right;
}

.rich-text-toolbar-divider {
    width: 1px;
    height: 1.5rem;
    margin: 0 0.15rem;
    background: #cbd5e1;
}

.rich-text-editor {
    min-height: 20rem;
    max-height: 45rem;
    overflow: auto;
    padding: 1.3rem 1.45rem;
    background: #fff;
    color: #1e293b;
    outline: none;
    cursor: text;
}

.rich-text-editor-compact {
    min-height: 14rem;
    max-height: 32rem;
}

.rich-text-editor.is-empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.rich-text-help {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

/* Word-compatible legal document rendering shared by Maktaba and Jukwaa Huru. */
.legal-rich-text {
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    tab-size: 4;
}

.legal-rich-text p,
.legal-rich-text div,
.legal-rich-text blockquote,
.legal-rich-text h1,
.legal-rich-text h2,
.legal-rich-text h3,
.legal-rich-text h4,
.legal-rich-text h5,
.legal-rich-text h6 {
    max-width: 100%;
}

.legal-rich-text h1,
.legal-rich-text h2,
.legal-rich-text h3,
.legal-rich-text h4,
.legal-rich-text h5,
.legal-rich-text h6 {
    color: var(--primary-navy);
    line-height: 1.3;
}

.legal-rich-text ul,
.legal-rich-text ol {
    padding-left: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.legal-rich-text li {
    margin-bottom: 0.3rem;
}

.legal-rich-text blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--accent-gold);
    background: #fffbeb;
}

.legal-rich-text table {
    width: auto;
    max-width: 100%;
    margin: 1rem 0;
    border-collapse: collapse;
}

.legal-rich-text th,
.legal-rich-text td {
    min-width: 2rem;
    padding: 0.45rem 0.6rem;
    border: 1px solid #94a3b8;
    vertical-align: top;
}

.legal-rich-text a {
    color: #075985;
    text-decoration: underline;
}

.legal-rich-text pre {
    max-width: 100%;
    overflow: auto;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .rich-text-editor {
        min-height: 16rem;
        padding: 1rem;
    }

    .rich-text-editor-compact {
        min-height: 12rem;
    }

    .rich-text-toolbar-divider {
        display: none;
    }
}

/* Channel grids */
.booking-channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.channel-option {
    cursor: pointer;
}

.channel-option input[type="radio"] {
    display: none;
}

.channel-custom-box {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.channel-custom-box strong {
    font-family: var(--font-heading);
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.channel-custom-box span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.channel-option input[type="radio"]:checked + .channel-custom-box {
    border-color: var(--primary-navy);
    background-color: rgba(11, 31, 58, 0.05);
}

/* Payment step styles */
.payment-cost-display {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.payment-cost-display span {
    font-weight: 600;
    color: var(--primary-navy);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800 !important;
    color: var(--accent-gold-hover) !important;
}

.payment-method-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.pay-method-option {
    cursor: pointer;
}

.pay-method-option input[type="radio"] {
    display: none;
}

.pay-method-box {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    font-weight: 600;
}

.pay-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}

.pay-logo.red { color: #E11D48; }
.pay-logo.blue { color: #2563EB; }
.pay-logo.red-dark { color: #B91C1C; }
.pay-logo.orange { color: #EA580C; }
.pay-logo.gold { color: var(--accent-gold-hover); }

.pay-method-option input[type="radio"]:checked + .pay-method-box {
    border-color: var(--accent-gold);
    background-color: var(--accent-gold-light);
}

.payment-instructions-box {
    background-color: #FFFDF5;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1.25rem;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.payment-instructions-box ol {
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}

.payment-merchant-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.15rem 1rem;
    margin: 0.75rem 0 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.38);
    border-radius: 8px;
    background: rgba(212, 175, 55, 0.08);
}

.payment-merchant-summary span,
.payment-merchant-summary small {
    color: var(--text-muted);
}

.payment-merchant-summary strong {
    grid-row: span 2;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--primary-navy);
}

.payment-safety-note {
    margin-top: 0.85rem;
    padding: 0.7rem 0.8rem;
    border-left: 3px solid #B45309;
    border-radius: 4px;
    background: #FFF7ED;
    color: #7C2D12;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Success alert state */
.success-alert-pane {
    text-align: center;
    padding: 1.5rem 0;
}

.success-check-circle {
    width: 70px;
    height: 70px;
    background-color: var(--success-green);
    color: var(--bg-white);
    font-size: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.success-alert-pane h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--success-green);
}

.success-alert-pane p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.receipt-detail-card {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    max-width: 450px;
    margin: 0 auto 2.5rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.receipt-detail-card div {
    display: flex;
    justify-content: space-between;
    border-bottom: 1.5px solid rgba(0,0,0,0.03);
    padding-bottom: 0.5rem;
    font-size: 0.95rem;
}

.receipt-detail-card div:last-child {
    border: none;
    padding: 0;
}

.receipt-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: -1rem auto 1.5rem;
}

/* ==========================================================================
   PAGE 5: USER MEMBERSHIP DASHBOARD
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 5rem;
}

.member-auth-panel {
    display: block;
    margin: 3rem 0 5rem;
}

.member-auth-panel.is-hidden,
#memberDashboardGrid.is-hidden {
    display: none;
}

.member-auth-header {
    max-width: 780px;
    margin-bottom: 1.5rem;
}

.member-auth-header h1 {
    margin: 0.35rem 0 0.65rem;
    font-size: 2rem;
}

.member-auth-header p,
.membership-plan-option small,
.membership-plan-option em,
.member-auth-status {
    color: var(--text-muted);
}

.member-auth-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 1rem;
}

.password-field-wrap {
    position: relative;
    width: 100%;
}

.password-field-wrap input {
    width: 100%;
    padding-right: 5.4rem !important;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    min-width: 4.35rem;
    min-height: 2.05rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 7px;
    background: #fff;
    color: var(--primary-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.76rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
    background: var(--accent-gold-light);
    border-color: var(--accent-gold);
    outline: none;
}

.password-toggle-btn svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    flex: 0 0 auto;
}

.forgot-password-trigger {
    align-self: flex-start;
    margin: -0.2rem 0 0.45rem;
}

.forgot-password-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: rgba(255, 251, 235, 0.55);
}

.forgot-password-panel h3,
.forgot-password-panel h4 {
    color: var(--primary-navy);
    margin-bottom: 0.45rem;
}

.forgot-password-panel h3 {
    font-size: 1.15rem;
}

.forgot-password-panel h4 {
    font-size: 0.98rem;
    margin-top: 0.85rem;
}

.forgot-password-panel p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0.9rem;
}

.forgot-password-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.forgot-password-actions .btn {
    width: 100%;
    justify-content: center;
}

.forgot-password-back {
    margin-top: 0.7rem;
    padding: 0;
    font-size: 0.85rem;
}

.forgot-expiry-note {
    padding: 0.65rem 0.75rem;
    border-radius: 7px;
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.22);
    color: #92400e !important;
    font-weight: 700;
}

.member-auth-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.membership-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 1rem;
}

.membership-plan-option input {
    display: none;
}

.membership-plan-option span {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem;
    cursor: pointer;
}

.membership-plan-option input:checked + span {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.18);
}

.member-payment-panel {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.member-payment-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.member-payment-summary span {
    color: var(--text-muted);
    font-weight: 700;
}

.member-payment-summary strong {
    color: var(--primary-navy);
    font-size: 1.4rem;
}

.member-payment-methods {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.member-pay-option {
    cursor: pointer;
}

.member-pay-option input {
    display: none;
}

.member-pay-option span {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--primary-navy);
    font-size: 0.86rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.member-pay-option input:checked + span {
    border-color: var(--accent-gold);
    background-color: var(--primary-navy);
    color: var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.member-payment-instructions {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: var(--text-muted);
}

.member-payment-instructions strong {
    display: block;
    color: var(--primary-navy);
    margin-bottom: 0.45rem;
}

.member-payment-instructions .payment-merchant-summary strong {
    display: initial;
    margin-bottom: 0;
}

.member-payment-instructions ol {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.member-payment-instructions li,
.member-payment-instructions p {
    font-size: 0.92rem;
}

.password-change-form {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.password-change-form h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.password-change-form p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.admin-security-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.admin-security-grid .password-change-form {
    margin-top: 0;
}

.dashboard-sidebar {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: fit-content;
}

.user-profile-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1.5px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.user-avatar-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--primary-navy);
    color: var(--bg-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 2px solid var(--accent-gold);
}

.user-profile-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.membership-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gold-membership {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-hover);
}

.free-membership {
    background-color: #E2E8F0;
    color: #475569;
}

.pending-membership {
    background-color: rgba(217, 119, 6, 0.12);
    color: #b45309;
}

.user-subtext {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-tab {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.sidebar-tab:hover, .sidebar-tab.active {
    background-color: var(--bg-gray);
    color: var(--primary-navy);
}

.sidebar-tab.active {
    border-left: 3px solid var(--primary-navy);
    border-radius: 0 8px 8px 0;
}

/* Dashboard main panels */
.dashboard-main-panel {
    background-color: var(--bg-white);
}

.dash-content-pane {
    display: none;
}

.dash-content-pane.active-pane {
    display: block;
    animation: fadeInPane 0.4s ease-out forwards;
}

@keyframes fadeInPane {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dash-content-pane h2 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.dash-content-pane .dash-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.member-pending-panel {
    background: #fff;
    border: 1px solid rgba(217, 119, 6, 0.35);
    border-left: 4px solid #d97706;
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    padding: 1.35rem;
    margin: 1.4rem 0 2rem;
}

.member-pending-panel h3 {
    color: var(--primary-navy);
    font-size: 1.35rem;
    margin: 0.85rem 0 0.45rem;
}

.member-pending-panel p {
    color: var(--text-dark);
    line-height: 1.65;
    margin-bottom: 0.6rem;
}

.member-pending-panel small {
    color: var(--text-muted);
    font-weight: 600;
}

.grid-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-box {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.stat-box h3 {
    font-size: 1.8rem;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.stat-box span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Table designs */
.dashboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.dashboard-table th {
    background-color: var(--bg-gray);
    color: var(--primary-navy);
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 1rem;
    border-bottom: 1.5px solid var(--border-color);
}

.dashboard-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

.status-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background-color: rgba(245, 158, 11, 0.12);
    color: var(--pending-orange);
}

.status-completed {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--success-green);
}

.status-cancelled {
    background-color: rgba(239, 68, 68, 0.12);
    color: var(--error-red);
}

/* Legal Updates styling */
.legal-updates-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
}

.update-item {
    border-bottom: 1.5px solid var(--bg-gray);
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
}

.update-item:last-child {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.update-date {
    display: inline-block;
    background-color: var(--bg-gray);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.update-item h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.update-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   PAGE 6: ADMIN CONTROL DASHBOARD
   ========================================================================== */
.admin-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.admin-header-row h1 {
    font-size: 2.25rem;
    color: var(--primary-navy);
}

.admin-header-row p {
    color: var(--text-muted);
}

.admin-role-badge {
    background-color: #EFF6FF;
    color: #2563EB;
    border: 1px solid #BFDBFE;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.executive-finance-tab {
    margin-left: auto;
    color: var(--accent-gold-hover);
}

.executive-finance-tab::before {
    content: 'LOCK';
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    margin-right: 0.45rem;
    color: var(--error-red);
}

.admin-stats-grid .admin-stat-box {
    background-color: var(--primary-navy);
    color: var(--text-light);
    border: 1px solid var(--primary-navy-light);
}

.admin-stats-grid .admin-stat-box h3 {
    color: var(--accent-gold);
}

.admin-stats-grid .admin-stat-box span {
    color: #94A3B8;
}

.admin-nav-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.admin-tab {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
}

.admin-tab.active, .admin-tab:hover {
    color: var(--primary-navy);
}

.admin-tab.active::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
}

.admin-content-pane {
    display: none;
}

.admin-content-pane.active-pane {
    display: block;
}

.admin-section-header {
    margin-bottom: 1.5rem;
}

.admin-section-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
}

.admin-section-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
}

.admin-help-text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-bilingual-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 10px;
    background: #fbf7eb;
    color: var(--primary-navy);
}

.admin-bilingual-heading span {
    color: var(--accent-gold-hover);
    font-size: 0.82rem;
    font-weight: 800;
}

.language-field-badge {
    display: inline-grid;
    min-width: 28px;
    min-height: 22px;
    place-items: center;
    margin-right: 0.25rem;
    border-radius: 5px;
    background: var(--primary-navy);
    color: var(--accent-gold);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.field-helper {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.member-admin-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.finance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.finance-summary-grid div {
    background: linear-gradient(135deg, var(--primary-navy), var(--primary-navy-dark));
    color: var(--bg-white);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    padding: 1.4rem;
}

.finance-summary-grid span {
    display: block;
    color: #CBD5E1;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.finance-summary-grid strong {
    display: block;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 1.65rem;
    line-height: 1.1;
}

.finance-entry-form {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.finance-controls {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.finance-controls input,
.finance-controls select {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    outline: none;
}

.finance-date-filter {
    grid-column: 1 / -1;
    display: flex;
    align-items: end;
    gap: 1rem;
    flex-wrap: wrap;
}

.finance-date-filter label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    color: var(--text-muted);
    font-weight: 700;
}

.finance-date-filter input {
    min-width: 190px;
}

.finance-type {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.finance-income {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--success-green);
}

.finance-expense {
    background-color: rgba(239, 68, 68, 0.12);
    color: var(--error-red);
}

.member-admin-summary div {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
}

.member-admin-summary strong {
    display: block;
    color: var(--primary-navy);
    font-size: 1.8rem;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0.35rem;
}

.member-admin-summary span {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-member-toolbar {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.admin-member-toolbar input,
.admin-member-toolbar select {
    width: 100%;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background-color: var(--bg-white);
    color: var(--text-dark);
    outline: none;
}

.member-id,
.dashboard-table td small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.member-plan {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.member-plan.premium {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-hover);
}

.member-plan.free {
    background-color: #EFF6FF;
    color: #2563EB;
}

.admin-undo-toast {
    position: fixed;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 2500;
    min-width: min(92vw, 520px);
    background-color: var(--primary-navy-dark);
    color: var(--bg-white);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: var(--shadow-premium);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-undo-toast strong,
.admin-undo-toast span {
    display: block;
}

.admin-undo-toast span {
    color: #CBD5E1;
    font-size: 0.95rem;
}

.admin-undo-toast button {
    background-color: var(--accent-gold);
    color: var(--primary-navy-dark);
    border: none;
    border-radius: 6px;
    padding: 0.65rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.site-toast-stack {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(560px, calc(100vw - 2rem));
    pointer-events: none;
}

.site-toast {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
    border-radius: 8px;
    box-shadow: var(--shadow-premium);
    padding: 1.25rem 1.4rem;
    display: grid;
    gap: 0.45rem;
    animation: toastSlideIn 0.42s cubic-bezier(0.2, 0.9, 0.24, 1.18);
    pointer-events: auto;
}

.site-toast.success {
    border-left-color: var(--success-green);
}

.site-toast.error {
    border-left-color: var(--error-red);
    background-color: var(--bg-white);
    border-color: rgba(185, 28, 28, 0.42);
    border-left-width: 8px;
    box-shadow: 0 24px 52px rgba(127, 29, 29, 0.2), 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.site-toast.error::before {
    content: '!';
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #FEE2E2;
    color: var(--error-red);
    border: 1px solid rgba(185, 28, 28, 0.24);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    grid-row: 1 / span 2;
    grid-column: 1;
    margin-top: 0.05rem;
}

.site-toast.error {
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
}

.site-toast.error strong,
.site-toast.error span {
    grid-column: 2;
}

.site-toast.error strong {
    color: var(--error-red);
}

.site-toast.error span {
    color: #7F1D1D;
}

.site-toast strong {
    color: var(--text-dark);
    font-size: 1.08rem;
}

.site-toast span {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.site-prompt-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-gray);
    color: var(--text-dark);
    outline: none;
}

.site-prompt-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        filter: blur(6px);
        transform: translateY(18px) scale(0.94);
    }
    65% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1.015);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.85rem 0;
}

.admin-pagination-info {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}

.admin-pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-pagination-controls span {
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 0.95rem;
}

.admin-pagination-controls label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-right: 0.5rem;
}

.admin-pagination-controls select {
    border: 1.5px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--bg-white);
    color: var(--primary-navy);
    padding: 0.35rem 0.55rem;
    font-weight: 700;
}

.admin-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Compact, consistent actions for every admin data row. */
.table-action-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 180px;
}

.table-action,
.table-action-group > .btn {
    min-height: 32px;
    margin: 0;
    padding: 0.42rem 0.7rem;
    border: 1px solid #CBD5E1;
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--primary-navy);
    box-shadow: none;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.table-action:hover,
.table-action-group > .btn:hover {
    border-color: #94A3B8;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.table-action-primary,
.table-action-group > .btn-gold,
.table-action-group > .btn-gold-filled {
    border-color: var(--primary-navy);
    background: var(--primary-navy);
    color: #FFFFFF;
}

.table-action-primary:hover,
.table-action-group > .btn-gold:hover,
.table-action-group > .btn-gold-filled:hover {
    border-color: var(--primary-navy-light);
    background: var(--primary-navy-light);
    color: #FFFFFF;
}

.table-action-danger,
.table-action-group > .btn-danger-outline {
    border-color: #FECACA;
    background: #FFF7F7;
    color: #B91C1C;
}

.table-action-danger:hover,
.table-action-group > .btn-danger-outline:hover {
    border-color: #EF4444;
    background: #FEE2E2;
    color: #991B1B;
}

.table-action-group .status-tag {
    margin: 0 0.15rem 0 0;
}

.dashboard-table td:last-child {
    min-width: 210px;
}

.table-empty-cell {
    padding: 2rem !important;
    text-align: center;
    color: var(--text-muted);
}

.developer-archive-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
    border: 1px dashed #94A3B8;
    border-radius: 10px;
    background: #F8FAFC;
}

.developer-archive-access strong,
.developer-archive-access span {
    display: block;
}

.developer-archive-access span {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.developer-archive-modal-content {
    width: min(1100px, calc(100vw - 2rem));
    max-height: 88vh;
    overflow: auto;
}

.developer-archive-login {
    display: grid;
    gap: 0.75rem;
    max-width: 460px;
    margin: 1.5rem auto 0;
}

.developer-archive-login input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
}

.developer-archive-table {
    margin-top: 1rem;
}

.archive-entity-badge {
    display: inline-flex;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: #E2E8F0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.media-player-empty .video-mock-screen,
.media-player-empty.audio-player-card {
    background-image: none !important;
    background-color: #E2E8F0;
}

.media-player-empty button:disabled,
.media-player-empty input:disabled,
.media-player-empty select:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

@media (max-width: 720px) {
    .developer-archive-access {
        align-items: stretch;
        flex-direction: column;
    }

    .table-action-group {
        min-width: 150px;
    }
}

/* Admin forms and lists */
.admin-form {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.admin-form-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.admin-edit-list {
    margin-top: 2rem;
}

.admin-legal-documents-panel {
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.legal-documents-form {
    margin: 0;
}

.legal-documents-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.legal-documents-status div {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.legal-documents-status strong,
.legal-documents-status span {
    display: block;
    font-size: 0.9rem;
}

.legal-documents-status span {
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.testimonial-entry-form {
    margin-bottom: 1.5rem;
}

.admin-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.admin-testi-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
}

.admin-testi-card .status-tag {
    display: inline-flex;
    margin-bottom: 0.75rem;
    margin-right: 2.5rem;
}

.testimonial-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.admin-testi-delete {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #FEE2E2;
    color: #EF4444;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.admin-testi-delete:hover {
    background-color: #EF4444;
    color: white;
}

.inline-error-screen,
.error-screen {
    max-width: 720px;
    margin: 3rem auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-soft);
}

.inline-error-screen {
    position: sticky;
    top: 0;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.error-screen {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   FLOATING AI LEGAL ASSISTANT WIDGET
   ========================================================================== */
.chatbot-wrapper {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-navy);
    border: 2px solid var(--accent-gold);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(11, 31, 58, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.chatbot-trigger:hover {
    transform: scale(1.08);
}

.chat-icon-svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-gold);
}

.chat-unread-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--error-red);
    color: var(--bg-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 480px;
    background-color: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: chatSlideIn 0.3s ease-out forwards;
}

@keyframes chatSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.chatbot-header {
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.5px solid var(--accent-gold);
}

.chatbot-avatar-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-status-indicator {
    width: 10px;
    height: 10px;
    background-color: var(--success-green);
    border-radius: 50%;
    border: 1.5px solid var(--primary-navy);
}

.chatbot-header h4 {
    color: var(--bg-white);
    font-size: 0.95rem;
    margin: 0;
}

.chatbot-header span {
    font-size: 0.75rem;
    color: #94A3B8;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.chatbot-close-btn:hover {
    color: var(--bg-white);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-gray);
}

.chat-message {
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    max-width: 85%;
    font-size: 0.9rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.chat-agent {
    background-color: var(--bg-white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border-left: 3px solid var(--accent-gold);
}

.chat-user {
    background-color: var(--primary-navy-light);
    color: var(--bg-white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-msg-time {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    text-align: right;
}

.chat-user .chat-msg-time {
    color: #94A3B8;
}

.chatbot-quick-tags {
    padding: 0.5rem 1rem;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    white-space: nowrap;
}

.chatbot-quick-tags button {
    background-color: var(--bg-gray);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--primary-navy);
    transition: var(--transition-smooth);
}

.chatbot-quick-tags button:hover {
    background-color: var(--primary-navy);
    color: var(--bg-white);
}

.chatbot-input-area {
    display: flex;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-white);
    padding: 0.5rem;
}

.chatbot-input-area input {
    flex-grow: 1;
    border: none;
    padding: 0.75rem 1rem;
    outline: none;
    font-size: 0.9rem;
    font-family: inherit;
}

.chatbot-send-btn {
    background-color: var(--primary-navy);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-send-btn svg {
    width: 20px;
    height: 20px;
    fill: var(--accent-gold);
    margin-left: 2px;
}

.chatbot-send-btn:hover {
    background-color: var(--primary-navy-light);
}

/* ==========================================================================
   ARTICLE READER MODAL
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(11, 31, 58, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.3s ease-out;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-card {
    background-color: var(--bg-white);
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    border: 1.5px solid var(--accent-gold);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
    animation: popModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popModal {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 1.5rem 2rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-badge {
    background-color: var(--accent-gold-light);
    color: var(--accent-gold-hover);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--primary-navy);
}

.modal-body-content {
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
}

.modal-body-content h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.modal-article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-full-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #334155;
}

.modal-full-text p {
    margin-bottom: 1rem;
}

.modal-full-text strong {
    color: var(--primary-navy);
}

.modal-footer {
    padding: 1.5rem 2rem;
    background-color: var(--bg-gray);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* ==========================================================================
   MAIN FOOTER
   ========================================================================== */
.main-footer {
    background-color: var(--primary-navy-dark);
    color: #94A3B8;
    padding: 5rem 0 0;
    border-top: 3px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-tagline {
    font-size: 0.95rem;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.national-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--bg-white);
}

.national-flag {
    font-size: 1.2rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.footer-contact strong {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid var(--primary-navy-light);
    padding: 2rem 0;
    font-size: 0.85rem;
    text-align: left;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.footer-bottom-right {
    flex-shrink: 0;
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #94A3B8;
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    background-color: var(--primary-navy-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.footer-admin-link:hover {
    color: var(--accent-gold);
    background-color: var(--primary-navy);
    border-color: var(--accent-gold-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.footer-admin-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.disclaimer {
    color: #64748B;
    font-size: 0.75rem;
}

.cookie-notice {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 2400;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.cookie-notice[hidden] {
    display: none;
}

.cookie-notice strong {
    display: block;
    color: var(--primary-navy);
    margin-bottom: 0.25rem;
}

.cookie-notice p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .footer-bottom {
        text-align: center;
    }
    .footer-bottom-content {
        flex-direction: column;
        gap: 1.25rem;
    }
}


/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST OVERRIDES)
   ========================================================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .profile-feature-grid,
    .platform-depth-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    #page-about .about-page-intro .container,
    #aboutDetailMount .profile-feature-grid,
    #aboutDetailMount .platform-depth-grid {
        grid-template-columns: 1fr;
    }

    #aboutDetailMount .profile-story-panel {
        min-height: auto;
    }

    #aboutDetailMount .expanded-services-grid {
        grid-template-columns: 1fr;
    }

    .about-services-layout {
        grid-template-columns: 1fr;
    }

    .services-lead {
        position: static;
        padding: 0;
    }

    #aboutDetailMount .values-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    #aboutDetailMount .journey-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 0;
    }

    #aboutDetailMount .journey-board::before {
        display: none;
    }

    .values-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-image-pane {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .multimedia-main-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-member-toolbar,
    .member-admin-summary,
    .finance-summary-grid,
    .finance-controls,
    .legal-documents-status {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: min(100% - 1.25rem, var(--container-width));
    }

    .hero-title {
        font-size: clamp(2.15rem, 10vw, 3.15rem);
        line-height: 1.08;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .hero-ctas,
    .banner-buttons,
    .contact-action-row {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn,
    .banner-buttons .btn,
    .contact-action-row .btn {
        width: 100%;
        justify-content: center;
    }

    .audio-controls-row {
        flex-wrap: wrap;
    }

    .audio-progress-bar-container {
        min-width: 140px;
    }

    .about-page-intro {
        background-size: 100% 100%, 100% auto;
        background-position: center, center top;
    }

    .about-page-intro h1 {
        font-size: 2rem;
    }

    .contact-hero {
        min-height: auto;
        padding: 4.5rem 0;
        background:
            linear-gradient(180deg, rgba(6, 17, 34, 0.95), rgba(6, 17, 34, 0.85)),
            url('contact_hero.png') center / cover no-repeat;
    }

    .contact-hero h1 {
        font-size: 2.3rem;
    }

    .contact-action-row .btn,
    .contact-form-actions .btn {
        width: 100%;
    }

    .contact-map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-map-header .btn {
        width: 100%;
    }

    .contact-map-frame,
    .contact-map-frame iframe {
        min-height: 320px;
        height: 320px;
    }

    .contact-whatsapp-float {
        width: 54px;
        height: 54px;
    }

    .library-review-panel {
        grid-template-columns: 1fr;
    }

    .library-review-copy h2 {
        font-size: 1.55rem;
    }

    .multimedia-header-bar {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .media-search-box {
        position: static;
        align-self: flex-end;
        width: min(230px, 100%);
    }

    .media-pagination {
        align-items: center;
        border-radius: 14px;
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
    }

    .media-pagination-buttons {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.15rem;
    }

    .media-pagination-size {
        width: 100%;
        justify-content: space-between;
    }

    .media-pagination-size select {
        min-width: 92px;
    }

    .vision-mission-grid,
    .feature-checklist,
    .journey-board,
    .values-strip {
        grid-template-columns: 1fr;
    }

    #aboutDetailMount > section {
        padding: 4rem 0;
    }

    #aboutDetailMount .tagline-stack span {
        width: 100%;
    }

    #page-about .about-page-intro {
        min-height: auto;
        background:
            linear-gradient(180deg, rgba(6, 17, 34, 0.92), rgba(6, 17, 34, 0.86)),
            url('about_team.png') center / cover no-repeat;
    }

    #aboutDetailMount .profile-story-panel {
        min-height: 420px;
    }

    #aboutDetailMount .expanded-service-card {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    #aboutDetailMount .about-services-layout .expanded-service-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    #aboutDetailMount .about-services-layout .expanded-service-card h3,
    #aboutDetailMount .about-services-layout .expanded-service-card p {
        grid-column: auto;
    }

    #aboutDetailMount .feature-checklist div,
    #aboutDetailMount .journey-board,
    #aboutDetailMount .values-strip {
        grid-template-columns: 1fr;
    }

    #aboutDetailMount .feature-checklist {
        grid-template-columns: 1fr;
    }

    #aboutDetailMount .feature-checklist .benefit-feature-primary {
        min-height: 320px;
    }

    #aboutDetailMount .journey-step {
        padding-right: 0;
    }

    #aboutDetailMount .values-strip div {
        min-height: 96px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    #aboutDetailMount .values-strip div:last-child {
        border-bottom: 0;
    }

    .profile-story-panel {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .admin-section-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-member-toolbar,
    .member-admin-summary,
    .finance-summary-grid,
    .finance-controls,
    .legal-documents-status,
    .admin-security-grid {
        grid-template-columns: 1fr;
    }

    .member-auth-grid,
    .footer-grid,
    .admin-stats-grid,
    .grid-stats {
        grid-template-columns: 1fr;
    }

    .member-auth-card,
    .booking-wizard-card,
    .contact-form-panel,
    .contact-info-panel,
    .dashboard-sidebar,
    .dashboard-main-panel {
        min-width: 0;
    }

    .member-auth-card,
    .booking-wizard-card {
        padding: 1.2rem;
    }

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

    .payment-methods-grid,
    .booking-channel-grid {
        grid-template-columns: 1fr;
    }

    .wizard-steps-header {
        max-width: 100%;
    }

    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .wizard-steps-labels {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
        font-size: 0.62rem;
        letter-spacing: 0;
        text-align: center;
        margin-bottom: 1.75rem;
    }

    .admin-nav-tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.45rem;
        scroll-snap-type: x proximity;
    }

    .admin-tab {
        flex: 0 0 auto;
        min-height: 42px;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dashboard-table-wrapper {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-table {
        min-width: 720px;
    }

    .admin-pagination-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .admin-pagination-controls label {
        width: 100%;
        justify-content: space-between;
    }

    .admin-pagination-controls select {
        min-width: 92px;
    }

    .password-field-wrap input {
        padding-right: 5rem !important;
    }

    .password-toggle-btn {
        min-width: 3.85rem;
    }
    
    .admin-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .grid-media-teaser {
        grid-template-columns: 1fr;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .form-group-row, .booking-issue-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Mobile Navigation Drawer */
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--primary-navy-dark);
        flex-direction: column;
        align-items: center;
        padding-top: 3rem;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-cta {
        margin-left: 0;
        width: 80%;
    }
    
    .chatbot-window {
        width: calc(100vw - 1rem);
        right: -0.5rem;
        bottom: 75px;
        max-height: min(620px, calc(100vh - 110px));
    }
    
    .chatbot-wrapper {
        bottom: 1rem;
        right: 1rem;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .top-info {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .modal-card {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        border: none;
    }
    
    .modal-footer {
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .top-info {
        font-size: 0.72rem;
        gap: 0.45rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-container {
        min-height: 64px;
    }

    .nav-menu {
        top: 64px;
        height: calc(100vh - 64px);
    }

    .hero {
        padding-top: 4.2rem;
    }

    .hero-points,
    .category-grid,
    .media-card-grid,
    .library-grid,
    .receipt-actions,
    .contact-form-actions {
        grid-template-columns: 1fr;
    }

    .library-tabs {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.35rem;
    }

    .library-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .media-search-box {
        width: 100%;
        align-self: stretch;
    }

    .audio-controls-row {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .audio-speed-select,
    .audio-time-display {
        grid-column: 1 / -1;
        width: 100%;
    }

    .member-payment-methods {
        grid-template-columns: 1fr;
    }

    .admin-tab {
        font-size: 0.85rem;
        padding-inline: 0.85rem;
    }

    .site-toast-stack {
        width: calc(100vw - 1rem);
    }

    .site-toast {
        padding: 1rem;
    }

    .cookie-notice {
        left: 0.5rem;
        right: 0.5rem;
        bottom: 0.5rem;
    }

    .contact-whatsapp-float {
        width: 48px;
        height: 48px;
    }

    .contact-whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }

    .scroll-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   CUSTOM VISUAL ENHANCEMENTS AND NEW IMAGE STYLES
   ========================================================================== */

/* Hero Image Container */
.hero-img-container {
    border: 2px solid var(--accent-gold);
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    height: 480px;
    box-shadow: var(--shadow-premium);
    position: relative;
    z-index: 3;
    overflow: hidden;
    animation: cardSettle 0.8s cubic-bezier(0.2, 0.9, 0.24, 1.18) 0.18s both;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.hero-img-container:hover .hero-main-img {
    transform: scale(1.04);
}

/* Call Center Banner Split Layout */
.banner-grid {
    display: grid;
    grid-template-columns: 1.2fr auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

.banner-operator-pane {
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-operator-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-navy-light);
    transition: var(--transition-smooth);
}

.banner-operator-img:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Testimonial Avatars */
.testi-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.testi-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
    box-shadow: var(--shadow-sm);
}

.testi-author {
    margin-bottom: 0;
}

/* Responsive adjustment for visual elements */
@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .banner-operator-pane {
        margin: 1rem 0;
    }
}

@media (max-width: 768px) {
    .library-primary-tabs {
        overflow: visible;
        padding-bottom: 0.4rem;
    }

    .library-primary-tabs .lib-tab {
        white-space: normal;
    }

    .featured-topic-card {
        grid-template-columns: 1fr;
    }

    .featured-topic-card::after {
        display: none;
    }

    .featured-topic-header,
    .library-list-heading,
    .forum-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .featured-article-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .featured-article-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .library-sort-control,
    .library-sort-control select {
        width: 100%;
    }

    .forum-hero {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .forum-card summary {
        gap: 0.7rem;
        padding: 1.1rem;
    }

    .forum-question-number {
        display: none;
    }

    .forum-answer {
        margin: 0 1rem 1rem;
    }

    .hero-img-container {
        max-width: 320px;
        height: 360px;
        margin: 0 auto;
    }
    
    .testi-profile {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Glassmorphism for floating hero cards */
.glassmorphic-card {
    background: rgba(11, 31, 58, 0.45) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1.5px solid rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glassmorphic-badge {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(11, 31, 58, 0.15) !important;
}
