/* ===================================
   ELMA GROUP PROFESSIONAL THEME
   Primary Color: #101524 (Dark Navy)
   =================================== */

:root {
    /* Primary Brand Colors */
    --c-brain: #101524;
    --c-brain-light: #1a2332;
    --c-brain-lighter: #2a3442;
    --c-brain-accent: #3a4552;
    
    /* Complementary Colors for #101524 */
    --primary-color: #2E5BBA;        /* Rich blue that complements dark navy */
    --secondary-color: #4A7C59;      /* Deep forest green */
    --accent-color: #8B5A3C;         /* Warm bronze */
    --highlight-color: #D4AF37;      /* Golden accent */
    
    /* Neutral Palette */
    --text-color: #2C3E50;           /* Dark blue-gray for readability */
    --text-light: #5D6D7E;          /* Lighter gray for secondary text */
    --text-muted: #85929E;           /* Muted gray for subtle elements */
    
    /* System Colors */
    --success-color: #27AE60;        /* Professional green */
    --danger-color: #E74C3C;         /* Professional red */
    --warning-color: #F39C12;        /* Professional orange */
    --info-color: #3498DB;           /* Professional blue */
    
    /* Background Colors */
    --bg-primary: #FFFFFF;           /* Pure white background */
    --bg-secondary: #F8F9FB;         /* Light gray background */
    --bg-tertiary: #ECF0F1;          /* Slightly darker gray */
    --bg-dark: var(--c-brain);       /* Dark navy background */
    
    /* Border and Shadow Colors */
    --border-color: #D5DBDB;         /* Light border */
    --border-dark: #85929E;          /* Darker border */
    --shadow-light: rgba(16, 21, 36, 0.08);   /* Light shadow */
    --shadow-medium: rgba(16, 21, 36, 0.15);  /* Medium shadow */
    --shadow-dark: rgba(16, 21, 36, 0.25);    /* Dark shadow */
    
    /* Typography */
    --font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing and Sizing */
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    
    /* Transition */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Enhanced Body Styling */
body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-primary);
    font-weight: var(--font-weight-normal);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--c-brain);
    font-weight: var(--font-weight-semibold);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1.2rem;
    color: var(--text-color);
}

/* Enhanced Link Styling */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--c-brain);
    text-decoration: none;
}

/* Enhanced Button Styling */
.btn {
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-normal);
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--c-brain-light));
    border: none;
    color: white;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--c-brain), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border: none;
    color: white;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* Enhanced Card Styling */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-light);
    transition: var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

/* Enhanced Navigation */
.navbar {
    background: linear-gradient(135deg, var(--c-brain), var(--c-brain-light)) !important;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: var(--font-weight-bold);
    color: white !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: var(--font-weight-medium);
    padding: 0.75rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background-color: var(--primary-color);
    color: white !important;
}

/* Professional Form Styling */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition-normal);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(46, 91, 186, 0.25);
    outline: none;
}

.form-label {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Enhanced Alert Styling */
.alert {
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 1.25rem 1.5rem;
    font-weight: var(--font-weight-medium);
}

.alert-success {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1), rgba(39, 174, 96, 0.05));
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.05));
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(243, 156, 18, 0.05));
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(52, 152, 219, 0.05));
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Professional Table Styling */
.table {
    font-size: 0.95rem;
}

.table th {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 2px solid var(--border-color);
    font-weight: var(--font-weight-semibold);
    color: var(--c-brain);
    padding: 1rem;
}

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

.table-hover tbody tr:hover {
    background-color: var(--bg-secondary);
}

/* Enhanced Badge Styling */
.badge {
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--c-brain-light));
}

.badge-success {
    background: linear-gradient(135deg, var(--success-color), #229954);
}

.badge-warning {
    background: linear-gradient(135deg, var(--warning-color), #E67E22);
}

.badge-danger {
    background: linear-gradient(135deg, var(--danger-color), #C0392B);
}

/* Professional Pagination */
.pagination {
    margin: 2rem 0;
}

.pagination .page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    margin: 0 0.125rem;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.pagination .page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--c-brain-light));
    color: white;
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--c-brain), var(--primary-color));
    border-color: var(--c-brain);
    color: white;
}

/* Professional Modal Styling */
.modal-content {
    border: none;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-dark);
}

.modal-header {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.modal-title {
    color: var(--c-brain);
    font-weight: var(--font-weight-semibold);
}

/* Utility Classes */
.shadow-soft {
    box-shadow: var(--shadow-light) !important;
}

.shadow-medium {
    box-shadow: var(--shadow-medium) !important;
}

.shadow-strong {
    box-shadow: var(--shadow-dark) !important;
}

.border-radius-soft {
    border-radius: var(--border-radius) !important;
}

.border-radius-medium {
    border-radius: var(--border-radius-lg) !important;
}

.border-radius-strong {
    border-radius: var(--border-radius-xl) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--c-brain));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-weight-bold);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--c-brain-light)) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color)) !important;
}

.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.1rem; }
    h6 { font-size: 1rem; }
    
    .btn {
        padding: 0.625rem 1.25rem;
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
}

/* Professional Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 91, 186, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 91, 186, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 91, 186, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===================================
   FEATURED BOOKS CAROUSEL STYLES
   =================================== */

/* Enhanced Book Cards */
.book-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow-light);
    height: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

/* Featured Books Carousel */
#featuredBooksCarousel {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
}

#featuredBooksCarousel .carousel-control-prev:hover .bg-dark,
#featuredBooksCarousel .carousel-control-next:hover .bg-dark {
    background: var(--primary-color) !important;
    transform: scale(1.1);
    transition: var(--transition-normal);
}

#featuredBooksCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    margin: 0 6px;
    transition: var(--transition-normal);
}

#featuredBooksCarousel .carousel-indicators .active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Book Cover Image Enhancements */
.book-cover {
    transition: var(--transition-normal);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.book-card:hover .book-cover {
    transform: scale(1.02);
}

/* Featured Badge Animation */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(243, 156, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(243, 156, 18, 0);
    }
}

.animate-pulse {
    animation: pulse-glow 2s infinite;
}

/* Book Category Badges */
.badge-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--c-brain-light));
    border: none;
}

/* Enhanced Admin Styles */
.admin-navigation {
    background: linear-gradient(135deg, var(--c-brain), var(--c-brain-light));
    box-shadow: var(--shadow-medium);
}

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

@media (max-width: 992px) {
    #featuredBooksCarousel .carousel-inner {
        padding: 2rem 1rem;
    }
    
    .book-card .card-body {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    #featuredBooksCarousel .carousel-inner {
        padding: 1.5rem 0.5rem;
    }
    
    .book-cover {
        height: 200px !important;
    }
    
    .text-gradient {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .book-cover {
        height: 180px !important;
    }
    
    .card-title {
        font-size: 0.9rem;
    }
}

/* ===================================
   FLUID LAYOUT & PROFESSIONAL HOME HERO
   =================================== */

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    overflow-x: clip;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

.container,
.container-fluid {
    --bs-gutter-x: clamp(1.25rem, 4vw, 3rem);
}

.home-hero {
    position: relative;
    min-height: auto;
    height: auto;
    margin-bottom: clamp(2.5rem, 6vw, 5rem);
    padding: clamp(1.25rem, 3vw, 2.5rem) 0;
    isolation: isolate;
    background:
        radial-gradient(circle at 8% 15%, rgba(46, 91, 186, 0.22), transparent 32rem),
        linear-gradient(135deg, #0b1020 0%, #101a31 58%, #17284a 100%);
}

.home-hero::before {
    content: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.28;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.7px, transparent 0.7px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to right, black, transparent 58%);
}

.hero-container {
    max-width: 1380px;
}

.home-hero .hero-box {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    min-height: clamp(550px, 68vh, 720px);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: clamp(1.25rem, 2.5vw, 2rem);
    background: rgba(8, 13, 27, 0.58);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.25rem, 6vw, 5.5rem);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    width: fit-content;
    margin-bottom: 1.5rem;
    color: #e7c968;
    font-size: clamp(0.72rem, 1.3vw, 0.84rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-eyebrow-mark {
    width: 2.25rem;
    height: 2px;
    background: #d4af37;
}

.home-hero .hero-title {
    max-width: 12ch;
    margin: 0 0 1.5rem;
    color: #fff !important;
    font-size: clamp(2.55rem, 5.2vw, 5rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-shadow: none;
}

.home-hero .hero-title span {
    color: #d9bd5b;
}

.home-hero .hero-description {
    max-width: 61ch;
    margin: 0 0 1.6rem;
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: clamp(1rem, 1.35vw, 1.2rem);
    font-weight: 400;
    line-height: 1.75;
    text-shadow: none;
}

.hero-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.4rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
}

.hero-expertise i {
    margin-right: 0.3rem;
    color: #d4af37;
    font-size: 0.72rem;
}

.home-hero .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.85rem;
    margin-top: 0;
}

.home-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.35rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.65rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: none;
    box-shadow: none;
}

.home-hero .hero-btn.btn-primary {
    border: 1px solid #d4af37;
    background: #d4af37;
    color: #111827;
}

.home-hero .hero-btn.btn-primary:hover {
    border-color: #efd673;
    background: #efd673;
    color: #111827;
}

.home-hero .hero-btn.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
    position: relative;
    min-height: 100%;
    background:
        linear-gradient(180deg, rgba(7, 13, 27, 0.06), rgba(7, 13, 27, 0.7)),
        url('/static/images/hero.PNG') center / cover no-repeat;
}

.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 28%;
    background: linear-gradient(to right, rgba(8, 13, 27, 0.78), transparent);
}

.hero-visual-card {
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    left: clamp(1rem, 6vw, 4rem);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 390px;
    margin-left: auto;
    padding: 1rem 1.15rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.9rem;
    background: rgba(9, 15, 30, 0.76);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(14px);
}

.hero-visual-icon {
    display: grid;
    flex: 0 0 2.8rem;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    color: #111827;
    border-radius: 50%;
    background: #d4af37;
}

.hero-visual-card strong,
.hero-visual-card small {
    display: block;
}

.hero-visual-card strong {
    margin-bottom: 0.15rem;
    font-size: 0.95rem;
}

.hero-visual-card small {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Practical responsiveness shared across public and admin pages. */
.table-responsive {
    border-radius: var(--border-radius-lg);
}

.president-message-photo {
    max-width: min(42%, 360px);
    height: auto;
}

@media (max-width: 1199.98px) {
    .navbar {
        padding-inline: 1rem;
    }

    .navbar .container {
        max-width: 100%;
    }

    .navbar-nav .nav-link {
        padding-inline: 0.62rem !important;
    }

    .home-hero .hero-box {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: calc(100vh - 5rem);
        overflow-y: auto;
        padding: 1rem 0 0.35rem;
    }

    .navbar-collapse .d-flex[role='search'],
    .navbar-collapse form.d-flex {
        width: 100%;
        margin: 0.75rem 0 0 !important;
    }

    .home-hero .hero-box {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: clamp(2.5rem, 8vw, 4.5rem);
    }

    .home-hero .hero-title {
        max-width: 14ch;
    }

    .hero-visual {
        min-height: clamp(300px, 52vw, 480px);
    }

    .hero-visual::before {
        inset: 0 0 auto;
        width: 100%;
        height: 25%;
        background: linear-gradient(to bottom, rgba(8, 13, 27, 0.62), transparent);
    }
}

@media (max-width: 767.98px) {
    section.py-5,
    .py-5 {
        padding-top: 2.75rem !important;
        padding-bottom: 2.75rem !important;
    }

    .home-hero {
        padding: 0;
    }

    .home-hero .hero-box {
        border-width: 0;
        border-radius: 0;
    }

    .hero-content {
        padding: 3.25rem var(--bs-gutter-x);
    }

    .home-hero .hero-title {
        font-size: clamp(2.5rem, 11vw, 4rem) !important;
    }

    .home-hero .hero-description {
        font-size: 1rem !important;
    }

    .president-message-photo {
        float: none !important;
        display: block;
        width: min(100%, 360px);
        max-width: 100%;
        margin: 0 auto 1.5rem !important;
    }

    .president-message-box .d-flex.justify-content-between {
        align-items: flex-start !important;
        gap: 1rem;
    }

    .card-body {
        padding: 1.2rem;
    }

    .footer-bottom-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-content {
        padding-block: 2.75rem;
    }

    .hero-eyebrow {
        margin-bottom: 1.15rem;
        letter-spacing: 0.09em;
    }

    .home-hero .hero-buttons,
    .home-hero .hero-btn {
        width: 100%;
        max-width: none;
    }

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

    .hero-visual {
        min-height: 270px;
        background-position: 58% center;
    }

    .hero-visual-card {
        right: 0.85rem;
        bottom: 0.85rem;
        left: 0.85rem;
        padding: 0.85rem;
    }

    .btn-lg {
        width: 100%;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ===================================
   COMPACT RHYTHM & ACCESSIBLE CONTRAST
   =================================== */

.section-spacing {
    padding: clamp(3rem, 5.5vw, 5rem) 0;
}

.section-heading {
    margin-bottom: clamp(1.8rem, 3.5vw, 3rem);
}

.section-heading-split {
    gap: clamp(1.5rem, 5vw, 4rem);
}

.home-hero {
    margin-bottom: 2rem;
    padding: clamp(0.85rem, 2vw, 1.5rem) 0;
}

.home-hero .hero-box {
    min-height: clamp(500px, 61vh, 640px);
}

.hero-content {
    padding: clamp(2.25rem, 4.5vw, 4.25rem);
}

.home-stats {
    padding-bottom: clamp(2.75rem, 4.5vw, 4rem);
}

.stat-item {
    padding: clamp(1.1rem, 2vw, 1.5rem);
}

.president-message-media {
    min-height: 490px;
}

.president-message-copy {
    padding: clamp(2.25rem, 4.5vw, 4rem);
}

.president-message-content-scroll {
    color: #465267;
}

.service-panel {
    min-height: 310px;
    padding: clamp(1.75rem, 3vw, 2.75rem);
}

.service-copy p {
    color: rgba(255, 255, 255, 0.82);
}

.service-link,
.service-link:hover {
    color: #f0d66f;
}

.section-heading-light p {
    color: rgba(255, 255, 255, 0.78);
}

.text-link-light,
.text-link-light:hover,
.text-link-light:focus {
    color: #f0d66f;
}

.collection-info p {
    color: rgba(255, 255, 255, 0.76);
}

.collection-info > span {
    color: #f0d66f;
}

.collection-count {
    color: #fff;
    background: rgba(8, 13, 25, 0.82);
}

.modern-book-carousel .carousel-inner {
    padding-top: 0.25rem;
    padding-bottom: 1rem;
}

.modern-book-carousel .carousel-control-prev,
.modern-book-carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--c-brain);
    box-shadow: 0 8px 24px rgba(16, 21, 36, 0.22);
    opacity: 1;
    transform: translateY(-50%);
}

.modern-book-carousel .carousel-control-prev {
    left: 0.15rem;
}

.modern-book-carousel .carousel-control-next {
    right: 0.15rem;
}

.modern-book-carousel .carousel-control-prev-icon,
.modern-book-carousel .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
}

.modern-book-card .card-text,
.modern-post-card .card-text {
    color: #566277 !important;
}

.book-card-link,
.book-card-link:hover,
.text-link,
.text-link:hover,
.text-link:focus {
    color: #17223a;
}

.testimonials-section .section-heading > p {
    color: #536075;
}

.modern-testimonial-card .testimonial-quote {
    color: #29364b;
}

.home-cta-panel {
    min-height: 330px;
    padding: clamp(2.25rem, 4.5vw, 4rem);
}

.home-cta-copy p {
    color: rgba(255, 255, 255, 0.8);
}

.cta-secondary-link,
.cta-secondary-link:hover,
.cta-secondary-link:focus {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.38);
    text-underline-offset: 0.25rem;
}

.footer-professional {
    padding-top: 3rem !important;
    padding-bottom: 2rem !important;
}

.footer-professional p,
.footer-professional .footer-contact-info,
.footer-professional .footer-links a,
.footer-professional small {
    color: rgba(255, 255, 255, 0.76) !important;
}

.footer-professional h5,
.footer-professional h6,
.footer-professional strong {
    color: #fff;
}

@media (max-width: 767.98px) {
    .section-spacing {
        padding: 3rem 0 !important;
    }

    .home-hero {
        margin-bottom: 1.5rem;
    }

    .hero-content {
        padding-block: 2.5rem;
    }

    .president-message-media {
        min-height: 380px;
    }

    .service-panel {
        min-height: 270px;
    }

    .modern-book-carousel .carousel-control-prev,
    .modern-book-carousel .carousel-control-next {
        width: 2.25rem;
        height: 2.25rem;
    }
}

@media (max-width: 575.98px) {
    .section-heading {
        margin-bottom: 1.75rem;
    }

    .home-hero .hero-box {
        min-height: auto;
    }

    .president-message-media {
        min-height: 330px;
    }

    .home-cta-panel {
        min-height: 0;
    }
}

/* ===================================
   MODERN HOMEPAGE SECTIONS
   =================================== */

.section-spacing {
    padding: clamp(4rem, 8vw, 7.5rem) 0;
}

.section-kicker {
    margin-bottom: 0.9rem;
    color: #a98317;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-heading {
    margin-bottom: clamp(2.3rem, 5vw, 4rem);
}

.section-heading h2 {
    max-width: 16ch;
    margin: 0;
    color: var(--c-brain);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-heading > p,
.section-heading-action p {
    max-width: 55ch;
    margin: 0;
    color: #657186;
    font-size: clamp(0.98rem, 1.3vw, 1.08rem);
    line-height: 1.75;
}

.section-heading-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: end;
    gap: clamp(2rem, 7vw, 6rem);
}

.section-heading-action {
    display: grid;
    gap: 1rem;
    justify-items: start;
}

.section-heading-centered {
    display: grid;
    justify-items: center;
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading-centered h2 {
    max-width: 18ch;
}

.section-heading-centered p {
    margin-top: 1rem;
}

.text-link,
.text-link-light {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    width: fit-content;
    font-size: 0.86rem;
    font-weight: 700;
}

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

.text-link-light {
    color: #e5c85d;
}

.text-link i,
.text-link-light i,
.service-link i,
.book-card-link i {
    transition: transform 0.25s ease;
}

.text-link:hover i,
.text-link-light:hover i,
.service-panel:hover .service-link i,
.book-card-link:hover i {
    transform: translateX(4px);
}

/* Statistics */
.home-stats {
    padding-top: 0;
    padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e4e8ef;
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 16px 50px rgba(16, 21, 36, 0.07);
}

.stat-item {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: clamp(1.25rem, 2.6vw, 2rem);
    color: var(--c-brain);
}

.stat-item + .stat-item {
    border-left: 1px solid #e8ebf1;
}

.stat-item:hover {
    color: var(--c-brain);
    background: #f8f9fc;
}

.stat-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    color: #a98317;
    border-radius: 0.75rem;
    background: rgba(212, 175, 55, 0.12);
}

.stat-content strong,
.stat-content small {
    display: block;
}

.stat-content strong {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1;
}

.stat-content small {
    margin-top: 0.35rem;
    overflow: hidden;
    color: #748094;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-arrow {
    color: #b5bdc9;
    font-size: 0.72rem;
}

/* President message */
.president-message-section {
    background: #f5f7fa;
}

.president-message-box {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    overflow: hidden;
    border: 1px solid #e1e5ec;
    border-radius: clamp(1.25rem, 3vw, 2rem);
    background: #fff;
    box-shadow: 0 30px 70px rgba(16, 21, 36, 0.1);
}

.president-message-media {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #dfe4ec;
}

.president-message-media .president-message-photo {
    float: none;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
}

.president-message-media::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(7, 13, 27, 0.9));
}

.president-media-caption {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    z-index: 1;
    color: white;
}

.president-media-caption strong,
.president-media-caption span {
    display: block;
}

.president-media-caption strong {
    font-size: 1.1rem;
}

.president-media-caption span {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
}

.president-message-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2.5rem, 6vw, 5.5rem);
}

.president-quote-mark {
    position: absolute;
    top: 2.5rem;
    right: 4rem;
    color: rgba(212, 175, 55, 0.14);
    font-family: Georgia, serif;
    font-size: 9rem;
    line-height: 1;
}

.president-message-copy h2 {
    position: relative;
    max-width: 17ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    letter-spacing: -0.03em;
}

.president-message-content-scroll {
    max-height: 270px;
    padding-right: 0.75rem;
    overflow-y: auto;
    color: #586478;
    line-height: 1.8;
    scrollbar-color: #d4af37 #edf0f4;
    scrollbar-width: thin;
}

.president-message-content-scroll p:last-child {
    margin-bottom: 0;
}

.president-signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.president-signature span {
    width: 2.75rem;
    height: 2px;
    background: #d4af37;
}

.president-signature p {
    margin: 0;
    color: #7b8698;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Services */
.services-section {
    background: white;
}

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

.service-panel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    min-height: 360px;
    padding: clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background: #10182a;
}

.service-panel::after {
    content: '';
    position: absolute;
    right: -5rem;
    bottom: -7rem;
    width: 18rem;
    height: 18rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 0 0 3rem rgba(255, 255, 255, 0.025), 0 0 0 6rem rgba(255, 255, 255, 0.018);
}

.service-panel-communication {
    background: linear-gradient(145deg, #172849, #10182a);
}

.service-panel:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 25px 55px rgba(16, 21, 36, 0.2);
}

.service-number {
    position: absolute;
    top: 1.5rem;
    right: 1.75rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    color: #151b29;
    border-radius: 1rem;
    background: #d4af37;
    font-size: 1.25rem;
}

.service-copy {
    align-self: end;
    z-index: 1;
}

.service-copy h3 {
    margin-bottom: 1rem;
    color: white;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.service-copy p {
    max-width: 48ch;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.75;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.8rem;
    color: #e0c55e;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Collections */
.collections-showcase {
    background: #0d1425;
}

.section-heading-light h2 {
    color: white;
}

.section-heading-light p {
    color: rgba(255, 255, 255, 0.58);
}

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

.collection-tile {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.045);
}

.collection-tile:hover {
    color: white;
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-5px);
}

.collection-visual {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.collection-visual img,
.collection-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collection-tile:hover .collection-visual img {
    transform: scale(1.045);
}

.collection-visual::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(13, 20, 37, 0.68));
}

.collection-placeholder {
    display: grid;
    place-items: center;
    color: #d4af37;
    background: linear-gradient(145deg, #263656, #162039);
    font-size: 2.3rem;
}

.collection-count {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    padding: 0.4rem 0.65rem;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    background: rgba(8, 13, 25, 0.62);
    backdrop-filter: blur(10px);
    font-size: 0.67rem;
}

.collection-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.5rem;
}

.collection-info h3 {
    margin-bottom: 0.65rem;
    color: white;
    font-size: 1.25rem;
}

.collection-info p {
    flex: 1;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.86rem;
    line-height: 1.65;
}

.collection-info > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #d9bd5b;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Books and posts */
.featured-books-section,
.testimonials-section {
    background: #f5f7fa;
}

.modern-book-carousel {
    overflow: hidden;
    border: 0 !important;
    border-radius: 1.5rem;
    background: transparent !important;
}

.modern-book-carousel .carousel-inner {
    padding: 0.75rem 3rem 2rem;
}

.modern-book-card {
    border: 1px solid #e2e6ed;
    border-radius: 1rem;
    background: white;
    box-shadow: 0 12px 35px rgba(16, 21, 36, 0.07);
}

.modern-book-card:hover {
    transform: translateY(-6px);
}

.modern-book-card .book-cover {
    height: 280px;
    border-radius: 0;
    object-fit: cover;
}

.book-card-kicker {
    margin-bottom: 0.6rem;
    color: #a98317;
    font-size: 0.63rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modern-book-card .card-title {
    color: var(--c-brain);
    font-size: 1rem;
    line-height: 1.4;
}

.book-card-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--c-brain);
    font-size: 0.76rem;
    font-weight: 700;
}

.featured-posts-section {
    background: white;
}

.modern-post-card {
    overflow: hidden;
    border: 1px solid #e2e6ed;
    border-radius: 1.2rem;
    box-shadow: none;
}

.post-image-wrap {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dfe5ee;
}

.post-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.modern-post-card:hover .post-image-wrap img {
    transform: scale(1.04);
}

.post-image-placeholder {
    display: grid;
    place-items: center;
    color: #d4af37;
    background: linear-gradient(145deg, #1e2d4c, #101827);
    font-size: 2.2rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #8490a2;
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.post-meta span {
    color: #a98317;
}

.modern-post-card .card-title {
    font-size: 1.3rem;
    line-height: 1.35;
}

.modern-post-card .card-text {
    color: #687488;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Testimonials */
.modern-testimonial-card {
    border: 1px solid #e1e6ee;
    border-radius: 1.2rem;
    box-shadow: none;
}

.modern-testimonial-card .card-body {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.testimonial-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.testimonial-topline > i {
    color: #d4af37;
    font-size: 1.55rem;
}

.testimonial-rating {
    color: #d4af37;
    font-size: 0.67rem;
    letter-spacing: 0.1rem;
}

.modern-testimonial-card .testimonial-quote {
    flex: 1;
    margin-bottom: 2rem;
    color: #354155;
    font-size: 1rem;
    font-style: normal;
    line-height: 1.8;
}

.modern-testimonial-card .testimonial-quote::before {
    content: none;
}

.testimonial-person {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e8ebf0;
}

.testimonial-person img,
.testimonial-avatar-placeholder {
    display: grid;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-placeholder {
    color: white;
    background: var(--c-brain);
    font-weight: 700;
}

.testimonial-person strong,
.testimonial-person span {
    display: block;
}

.testimonial-person strong {
    color: var(--c-brain);
    font-size: 0.84rem;
}

.testimonial-person span {
    margin-top: 0.15rem;
    color: #7b8799;
    font-size: 0.7rem;
}

.section-footer-link {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Final CTA */
.home-cta {
    overflow: hidden;
    background: white;
}

.home-cta-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) auto;
    align-items: center;
    gap: 3rem;
    min-height: 390px;
    padding: clamp(2.5rem, 6vw, 5.5rem);
    overflow: hidden;
    border-radius: clamp(1.5rem, 3vw, 2rem);
    background: linear-gradient(135deg, #0c1324, #17294c);
    box-shadow: 0 30px 70px rgba(16, 21, 36, 0.2);
}

.home-cta-copy,
.home-cta-actions {
    position: relative;
    z-index: 1;
}

.home-cta-copy h2 {
    max-width: 18ch;
    margin-bottom: 1.25rem;
    color: white;
    font-size: clamp(2rem, 4.3vw, 3.8rem);
    letter-spacing: -0.04em;
}

.home-cta-copy p {
    max-width: 55ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
}

.home-cta-actions {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.35rem;
    color: #111827;
    background: #d4af37;
    font-size: 0.85rem;
    font-weight: 750;
}

.cta-primary-btn:hover {
    color: #111827;
    background: #efd673;
}

.cta-secondary-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.76rem;
    font-weight: 650;
}

.cta-secondary-link:hover {
    color: white;
}

.home-cta-orbit {
    position: absolute;
    right: -8rem;
    width: 30rem;
    height: 30rem;
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 50%;
    box-shadow: 0 0 0 5rem rgba(212, 175, 55, 0.025), 0 0 0 10rem rgba(212, 175, 55, 0.018);
}

@media (max-width: 991.98px) {
    .section-heading-split,
    .home-cta-panel {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 1.5rem;
    }

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

    .stat-item:nth-child(3) {
        border-left: 0;
    }

    .stat-item:nth-child(n + 3) {
        border-top: 1px solid #e8ebf1;
    }

    .president-message-box {
        grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1.25fr);
    }

    .president-message-media {
        min-height: 500px;
    }

    .service-panel {
        grid-template-columns: 1fr;
    }

    .modern-book-carousel .carousel-inner {
        padding-inline: 2rem;
    }
}

@media (max-width: 767.98px) {
    .section-spacing {
        padding: 4rem 0 !important;
    }

    .section-heading h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .president-message-box {
        grid-template-columns: 1fr;
    }

    .president-message-media {
        min-height: 430px;
    }

    .president-message-media .president-message-photo {
        width: 100%;
        max-width: none;
        margin: 0 !important;
    }

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

    .service-panel {
        min-height: 310px;
    }

    .home-cta-panel {
        min-height: 0;
    }

    .home-cta-actions {
        justify-items: start;
    }
}

@media (max-width: 575.98px) {
    .stats-grid,
    .collection-grid {
        grid-template-columns: 1fr;
    }

    .stat-item + .stat-item,
    .stat-item:nth-child(3) {
        border-top: 1px solid #e8ebf1;
        border-left: 0;
    }

    .stat-content small {
        white-space: normal;
    }

    .president-message-media {
        min-height: 360px;
    }

    .president-media-caption {
        right: 1.25rem;
        bottom: 1.25rem;
        left: 1.25rem;
    }

    .president-quote-mark {
        right: 1rem;
        font-size: 6rem;
    }

    .service-panel {
        padding: 1.5rem;
    }

    .collection-info {
        padding: 1.25rem;
    }

    .modern-book-carousel .carousel-inner {
        padding-inline: 1.25rem;
    }

    .home-cta-panel {
        padding: 2rem 1.4rem;
        border-radius: 1.25rem;
    }

    .home-cta-actions,
    .cta-primary-btn {
        width: 100%;
    }

    .cta-primary-btn {
        justify-content: center;
    }
}

/* ===================================
   MODERN PUBLIC NAVIGATION
   =================================== */

.public-header {
    z-index: 1030;
    padding: 0.65rem 0;
    background: rgba(7, 12, 25, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 34px rgba(4, 8, 18, 0.18);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.public-navbar {
    min-height: 68px;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.public-navbar .nav-shell {
    max-width: 1440px;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: max-content;
    margin-right: 1rem;
    padding: 0;
}

.brand-logo-wrap {
    display: grid;
    width: 46px;
    height: 46px;
    overflow: hidden;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.015em;
}

.brand-copy small {
    margin-top: 0.25rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.public-navbar .nav-menu {
    align-items: center;
    gap: 0.1rem;
}

.public-navbar .nav-menu > .nav-item > .nav-link {
    position: relative;
    padding: 0.68rem 0.82rem !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border-radius: 0.65rem;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.public-navbar .nav-menu > .nav-item > .nav-link:hover,
.public-navbar .nav-menu > .nav-item > .nav-link:focus,
.public-navbar .nav-menu > .nav-item > .nav-link.show {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.07);
    transform: none;
}

.public-navbar .nav-menu > .nav-item > .nav-link.active {
    color: #fff !important;
    background: rgba(212, 175, 55, 0.12);
}

.public-navbar .nav-menu > .nav-item > .nav-link.active::after {
    border-top-color: currentColor;
}

.public-navbar .nav-menu > .nav-item:not(.dropdown) > .nav-link.active::before {
    content: '';
    position: absolute;
    right: 0.8rem;
    bottom: 0.32rem;
    left: 0.8rem;
    height: 2px;
    border-radius: 10px;
    background: #d4af37;
}

.modern-dropdown {
    min-width: 290px;
    margin-top: 0.75rem !important;
    padding: 0.55rem;
    border: 1px solid rgba(16, 21, 36, 0.09);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 22px 60px rgba(5, 10, 24, 0.2);
    backdrop-filter: blur(18px);
}

.modern-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem;
    color: var(--c-brain);
    border-radius: 0.72rem;
    white-space: normal;
}

.modern-dropdown .dropdown-item:hover,
.modern-dropdown .dropdown-item:focus {
    color: var(--c-brain);
    background: #f1f4fa;
}

.modern-dropdown .dropdown-item > i {
    display: grid;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    color: #b08d1e;
    border-radius: 0.65rem;
    background: rgba(212, 175, 55, 0.12);
}

.modern-dropdown .dropdown-item span,
.modern-dropdown .dropdown-item strong,
.modern-dropdown .dropdown-item small {
    display: block;
}

.modern-dropdown .dropdown-item strong {
    margin-bottom: 0.1rem;
    font-size: 0.86rem;
    font-weight: 700;
}

.modern-dropdown .dropdown-item small {
    color: #718096;
    font-size: 0.72rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nav-search {
    display: flex;
    align-items: center;
    width: 138px;
    height: 42px;
    padding: 0 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 0.72rem;
    background: rgba(255, 255, 255, 0.055);
    transition: width 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.nav-search:focus-within {
    width: 180px;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(255, 255, 255, 0.09);
}

.nav-search i {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.82rem;
}

.nav-search input {
    min-width: 0;
    width: 100%;
    padding: 0 0 0 0.52rem;
    color: white;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 0.78rem;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.nav-search input::-webkit-search-cancel-button {
    filter: invert(1);
    opacity: 0.55;
}

.nav-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 42px;
    padding: 0.68rem 0.95rem;
    color: #121827;
    border-radius: 0.72rem;
    background: #d4af37;
    font-size: 0.78rem;
    font-weight: 750;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.16);
}

.nav-contact-btn:hover,
.nav-contact-btn:focus {
    color: #121827;
    background: #edd16a;
    transform: translateY(-1px);
}

.nav-contact-btn i {
    font-size: 0.68rem;
}

.public-navbar .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.72rem;
    box-shadow: none;
}

@media (min-width: 1200px) {
    .public-navbar .dropdown:hover > .modern-dropdown {
        display: block;
    }

    .public-navbar .dropdown:hover > .nav-link {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.07);
    }
}

@media (max-width: 1399.98px) and (min-width: 1200px) {
    .brand-copy small {
        display: none;
    }

    .public-navbar .nav-menu > .nav-item > .nav-link {
        padding-inline: 0.58rem !important;
    }

    .nav-search {
        width: 42px;
    }

    .nav-search input {
        width: 0;
        padding-left: 0;
        opacity: 0;
    }

    .nav-search:focus-within {
        width: 155px;
    }

    .nav-search:focus-within input {
        width: 100%;
        padding-left: 0.5rem;
        opacity: 1;
    }
}

@media (max-width: 1199.98px) {
    .public-header {
        padding: 0.45rem 0;
    }

    .public-navbar .navbar-toggler {
        border-color: #fff;
    }

    .public-navbar .navbar-toggler-icon {
        width: 1.5rem;
        height: 1.125rem;
        background-image:
            linear-gradient(#fff, #fff),
            linear-gradient(#fff, #fff),
            linear-gradient(#fff, #fff);
        background-repeat: no-repeat;
        background-position: center top, center, center bottom;
        background-size: 100% 2px;
    }

    .public-navbar .navbar-toggler:hover,
    .public-navbar .navbar-toggler:focus-visible {
        border-color: #fff;
        background: rgba(255, 255, 255, 0.1);
    }

    .public-navbar .navbar-toggler:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
        box-shadow: none;
    }

    .public-navbar .navbar-collapse {
        max-height: calc(100vh - 82px);
        margin-top: 0.55rem;
        padding: 0.75rem;
        overflow-y: auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        background: rgba(12, 19, 36, 0.98);
        box-shadow: 0 24px 50px rgba(0, 0, 0, 0.24);
    }

    .public-navbar .nav-menu {
        align-items: stretch;
        gap: 0.15rem;
    }

    .public-navbar .nav-menu > .nav-item > .nav-link {
        padding: 0.78rem 0.85rem !important;
    }

    .public-navbar .nav-menu > .nav-item:not(.dropdown) > .nav-link.active::before {
        top: 50%;
        right: auto;
        bottom: auto;
        left: 0.2rem;
        width: 2px;
        height: 1.25rem;
        transform: translateY(-50%);
    }

    .modern-dropdown {
        min-width: 0;
        margin: 0.2rem 0 0.4rem !important;
        border: 0;
        background: rgba(255, 255, 255, 0.04);
        box-shadow: none;
    }

    .modern-dropdown .dropdown-item,
    .modern-dropdown .dropdown-item:hover,
    .modern-dropdown .dropdown-item:focus {
        color: white;
        background: transparent;
    }

    .modern-dropdown .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .modern-dropdown .dropdown-item small {
        color: rgba(255, 255, 255, 0.5);
    }

    .nav-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }

    .nav-search,
    .nav-search:focus-within {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-wrap {
        width: 42px;
        height: 42px;
    }

    .brand-copy small {
        display: none;
    }

    .nav-actions {
        grid-template-columns: 1fr;
    }

    .nav-contact-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-header *,
    .public-header *::before,
    .public-header *::after {
        transition: none !important;
    }

    .home-stats *,
    .president-message-section *,
    .services-section *,
    .collections-showcase *,
    .featured-books-section *,
    .featured-posts-section *,
    .testimonials-section *,
    .home-cta * {
        transition: none !important;
        animation: none !important;
    }
}

/* Final cascade: spacing and contrast corrections must follow component rules. */
.section-spacing { padding: clamp(3rem, 5.5vw, 5rem) 0; }
.section-heading { margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.section-heading-split { gap: clamp(1.5rem, 5vw, 4rem); }
.home-hero { margin-bottom: 2rem; padding: clamp(0.85rem, 2vw, 1.5rem) 0; }
.home-hero .hero-box { min-height: clamp(500px, 61vh, 640px); }
.hero-content { padding: clamp(2.25rem, 4.5vw, 4.25rem); }
.home-stats { padding-bottom: clamp(2.75rem, 4.5vw, 4rem); }
.stat-item { padding: clamp(1.1rem, 2vw, 1.5rem); }
.president-message-media { min-height: 490px; }
.president-message-copy { padding: clamp(2.25rem, 4.5vw, 4rem); }
.president-message-content-scroll { color: #465267; }
.service-panel { min-height: 310px; padding: clamp(1.75rem, 3vw, 2.75rem); }
.service-copy p { color: rgba(255, 255, 255, 0.82); }
.service-link,
.service-link:hover,
.text-link-light,
.text-link-light:hover,
.text-link-light:focus,
.collection-info > span { color: #f0d66f; }
.section-heading-light p { color: rgba(255, 255, 255, 0.78); }
.collection-info p { color: rgba(255, 255, 255, 0.76); }
.collection-count { color: #fff; background: rgba(8, 13, 25, 0.82); }
.modern-book-carousel .carousel-inner { padding-top: 0.25rem; padding-bottom: 1rem; }
.modern-book-carousel .carousel-control-prev,
.modern-book-carousel .carousel-control-next {
    top: 50%;
    bottom: auto;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--c-brain);
    box-shadow: 0 8px 24px rgba(16, 21, 36, 0.22);
    opacity: 1;
    transform: translateY(-50%);
}
.modern-book-carousel .carousel-control-prev { left: 0.15rem; }
.modern-book-carousel .carousel-control-next { right: 0.15rem; }
.modern-book-carousel .carousel-control-prev-icon,
.modern-book-carousel .carousel-control-next-icon { width: 1rem; height: 1rem; }
.modern-book-card .card-text,
.modern-post-card .card-text { color: #566277 !important; }
.book-card-link,
.book-card-link:hover,
.text-link,
.text-link:hover,
.text-link:focus { color: #17223a; }
.testimonials-section .section-heading > p { color: #536075; }
.modern-testimonial-card .testimonial-quote { color: #29364b; }
.home-cta-panel { min-height: 330px; padding: clamp(2.25rem, 4.5vw, 4rem); }
.home-cta-copy p { color: rgba(255, 255, 255, 0.8); }
.cta-secondary-link,
.cta-secondary-link:hover,
.cta-secondary-link:focus { color: #fff; }
.footer-professional { padding-top: 3rem !important; padding-bottom: 2rem !important; }
.footer-professional p,
.footer-professional .footer-contact-info,
.footer-professional .footer-links a,
.footer-professional small { color: rgba(255, 255, 255, 0.76) !important; }
.footer-professional h5,
.footer-professional h6,
.footer-professional strong { color: #fff; }

@media (max-width: 767.98px) {
    .section-spacing { padding: 3rem 0 !important; }
    .home-hero { margin-bottom: 1.5rem; }
    .hero-content { padding-block: 2.5rem; }
    .president-message-media { min-height: 380px; }
    .service-panel { min-height: 270px; }
}

@media (max-width: 575.98px) {
    .section-heading { margin-bottom: 1.75rem; }
    .home-hero .hero-box { min-height: auto; }
    .president-message-media { min-height: 330px; }
    .home-cta-panel { min-height: 0; }
}

/* ===================================
   ELMA EDITORIAL HERO
   =================================== */
.home-hero {
    --hero-navy: #071a2d;
    --hero-teal: #087f7a;
    --hero-aqua: #43e0d0;
    --hero-gold: #e7bf59;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    padding: clamp(1rem, 2.4vw, 2rem) 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(51, 220, 204, 0.18), transparent 28rem),
        radial-gradient(circle at 8% 86%, rgba(231, 191, 89, 0.12), transparent 25rem),
        linear-gradient(125deg, #061526 0%, #082b3a 54%, #086b68 100%);
    isolation: isolate;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: -45%;
    z-index: -1;
    display: block;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px);
    background-size: 56px 56px;
    transform: perspective(600px) rotateX(58deg) translateY(-10%);
    animation: hero-grid-drift 18s linear infinite;
}

.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.65;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(5, 19, 35, 0.25), transparent 46%, rgba(3, 60, 63, 0.12));
    mask-image: none;
}

.hero-atmosphere,
.hero-glow {
    position: absolute;
    pointer-events: none;
}

.hero-atmosphere { inset: 0; z-index: -1; }

.hero-glow {
    border-radius: 50%;
    filter: blur(4px);
    animation: hero-glow-float 9s ease-in-out infinite alternate;
}

.hero-glow-one {
    top: 8%; left: 5%; width: 18rem; height: 18rem;
    background: rgba(33, 207, 193, 0.14);
    box-shadow: 0 0 100px rgba(33, 207, 193, 0.3);
}

.hero-glow-two {
    right: 4%; bottom: -10%; width: 25rem; height: 25rem;
    background: rgba(235, 188, 74, 0.1);
    box-shadow: 0 0 110px rgba(235, 188, 74, 0.18);
    animation-delay: -4s;
}

.hero-glow-three {
    top: 28%; right: 35%; width: 9rem; height: 9rem;
    background: rgba(58, 226, 210, 0.14);
    box-shadow: 0 0 80px rgba(58, 226, 210, 0.3);
    animation-delay: -7s;
}

.home-hero .hero-container { position: relative; max-width: 1380px; }

.home-hero .hero-box {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    min-height: clamp(570px, 68vh, 710px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: clamp(1.35rem, 3vw, 2.25rem);
    background: linear-gradient(135deg, rgba(8, 25, 43, 0.78), rgba(7, 72, 72, 0.38));
    box-shadow: 0 32px 90px rgba(0, 10, 21, 0.38), inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
}

.home-hero .hero-content {
    position: relative;
    z-index: 3;
    padding: clamp(3rem, 5.4vw, 5.5rem);
    animation: hero-enter-left 0.9s cubic-bezier(.2, .75, .25, 1) both;
}

.home-hero .hero-eyebrow {
    gap: 0.65rem;
    margin-bottom: 1.4rem;
    padding: 0.58rem 0.9rem;
    color: #baf7ef;
    border: 1px solid rgba(126, 239, 227, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.home-hero .hero-eyebrow-mark {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--hero-aqua);
    box-shadow: 0 0 0 5px rgba(67, 224, 208, 0.11), 0 0 18px var(--hero-aqua);
}

.home-hero .hero-title {
    max-width: 11ch;
    margin-bottom: 1.45rem;
    color: #f7fffe !important;
    font-size: clamp(3rem, 5.55vw, 5.75rem);
    font-weight: 750;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.home-hero .hero-title span {
    display: inline;
    color: transparent;
    background: linear-gradient(105deg, #58ead9 5%, #8cf0df 38%, #f1ce6a 68%, #55dfd2 96%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: hero-title-shimmer 7s ease-in-out infinite;
}

.home-hero .hero-description {
    max-width: 59ch;
    margin-bottom: 1.7rem;
    color: rgba(236, 251, 250, 0.78) !important;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
    line-height: 1.75;
}

.home-hero .hero-expertise { gap: 0.65rem; margin-bottom: 2rem; }

.home-hero .hero-expertise span {
    display: inline-flex;
    align-items: center;
    padding: 0.62rem 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.home-hero .hero-expertise i { color: var(--hero-gold); }

.home-hero .hero-btn {
    position: relative;
    min-height: 3.55rem;
    overflow: hidden;
    padding: 0.9rem 1.4rem;
    border-radius: 0.85rem;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-hero .hero-btn:hover { transform: translateY(-3px); }

.home-hero .hero-btn.btn-primary {
    color: #062729;
    border-color: rgba(115, 245, 229, 0.7);
    background: linear-gradient(115deg, #55e3d2, #d7c367);
    box-shadow: 0 12px 34px rgba(30, 210, 194, 0.2);
}

.home-hero .hero-btn.btn-primary:hover {
    color: #041f21;
    border-color: #f1d575;
    background: linear-gradient(115deg, #72eddf, #efd370);
    box-shadow: 0 16px 38px rgba(30, 210, 194, 0.28);
}

.home-hero .hero-btn.btn-outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}

.home-hero .hero-btn.btn-outline-light:hover {
    color: #fff;
    border-color: rgba(113, 237, 222, 0.55);
    background: rgba(255, 255, 255, 0.12);
}

.home-hero .hero-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 48%, rgba(65, 225, 210, 0.13), transparent 43%);
    animation: hero-enter-right 1s 0.15s cubic-bezier(.2, .75, .25, 1) both;
}

.home-hero .hero-visual::before {
    content: '';
    position: absolute;
    inset: 8% 4%;
    width: auto;
    border: 1px solid rgba(126, 239, 227, 0.11);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(62, 224, 208, 0.09), transparent 65%);
}

.hero-editorial-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    width: clamp(230px, 25vw, 330px);
    aspect-ratio: 0.82;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 48% 48% 1.75rem 1.75rem;
    color: white;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.14), rgba(18, 131, 123, 0.1));
    box-shadow: 0 30px 70px rgba(0, 14, 26, 0.34), inset 0 1px rgba(255, 255, 255, 0.2), 0 0 60px rgba(52, 220, 205, 0.12);
    backdrop-filter: blur(18px);
    transform: translate(-50%, -50%) rotate(-3deg);
    animation: hero-mark-float 6s ease-in-out infinite;
}

.hero-mark-kicker { color: #9ef5eb; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.hero-editorial-mark > strong { font-size: clamp(3.8rem, 6.5vw, 6.4rem); line-height: 1; letter-spacing: -0.075em; text-shadow: 0 0 28px rgba(81, 230, 214, 0.28); }
.hero-editorial-mark > small { margin-top: 1.2rem; color: rgba(255, 255, 255, 0.58); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; }

.hero-book-mark {
    display: grid;
    width: 3.4rem;
    height: 3.4rem;
    margin-top: 1.15rem;
    place-items: center;
    color: #092d32;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hero-aqua), var(--hero-gold));
    box-shadow: 0 0 30px rgba(64, 225, 209, 0.35);
}

.hero-orbit { position: absolute; top: 50%; left: 50%; border: 1px solid rgba(122, 239, 226, 0.24); border-radius: 50%; }
.hero-orbit::after { content: ''; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--hero-gold); box-shadow: 0 0 18px var(--hero-gold); }
.hero-orbit-outer { width: min(38vw, 480px); aspect-ratio: 1; animation: hero-orbit-spin 24s linear infinite; }
.hero-orbit-inner { width: min(30vw, 370px); aspect-ratio: 1; border-style: dashed; animation: hero-orbit-spin-reverse 18s linear infinite; }
.hero-orbit-inner::after { background: var(--hero-aqua); box-shadow: 0 0 18px var(--hero-aqua); }

.hero-dot { position: absolute; z-index: 3; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #8af3e6; box-shadow: 0 0 8px #61eadb, 0 0 24px #43e0d0; animation: hero-dot-pulse 2.8s ease-in-out infinite; }
.hero-dot-one { top: 16%; right: 16%; }
.hero-dot-two { right: 9%; bottom: 28%; width: 0.42rem; height: 0.42rem; animation-delay: -1s; }
.hero-dot-three { bottom: 14%; left: 14%; background: var(--hero-gold); box-shadow: 0 0 8px var(--hero-gold), 0 0 24px var(--hero-gold); animation-delay: -2s; }

.hero-float-card {
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 190px;
    padding: 0.8rem 0.95rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.9rem;
    background: rgba(7, 31, 46, 0.62);
    box-shadow: 0 18px 38px rgba(0, 11, 23, 0.3), inset 0 1px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    animation: hero-card-float 5s ease-in-out infinite;
}

.hero-float-card-top { top: 16%; left: 2%; }
.hero-float-card-bottom { right: 2%; bottom: 14%; animation-delay: -2.5s; }
.hero-float-card small, .hero-float-card strong { display: block; }
.hero-float-card small { margin-bottom: 0.1rem; color: rgba(255, 255, 255, 0.55); font-size: 0.65rem; letter-spacing: 0.07em; text-transform: uppercase; }
.hero-float-card strong { font-size: 0.85rem; }
.hero-float-icon { display: grid; flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; place-items: center; color: #062c31; border-radius: 0.7rem; background: linear-gradient(135deg, #62eada, #dcc160); }

@keyframes hero-grid-drift { to { transform: perspective(600px) rotateX(58deg) translate3d(56px, 56px, 0); } }
@keyframes hero-title-shimmer { 0%, 100% { background-position: 0% center; } 50% { background-position: 100% center; } }
@keyframes hero-glow-float { to { transform: translate3d(2rem, -1.5rem, 0) scale(1.12); } }
@keyframes hero-enter-left { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-enter-right { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: translateX(0); } }
@keyframes hero-mark-float { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, calc(-50% - 12px)) rotate(1deg); } }
@keyframes hero-orbit-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes hero-orbit-spin-reverse { from { transform: translate(-50%, -50%) rotate(360deg); } to { transform: translate(-50%, -50%) rotate(0); } }
@keyframes hero-card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hero-dot-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.75); } 50% { opacity: 1; transform: scale(1.25); } }

@media (max-width: 991.98px) {
    .home-hero .hero-box { grid-template-columns: 1fr; }
    .home-hero .hero-content { padding: clamp(3rem, 8vw, 5rem); }
    .home-hero .hero-title { max-width: 13ch; }
    .home-hero .hero-visual { min-height: 490px; }
    .hero-orbit-outer { width: min(72vw, 470px); }
    .hero-orbit-inner { width: min(56vw, 360px); }
}

@media (max-width: 767.98px) {
    .home-hero { padding: 0; }
    .home-hero .hero-box { border-inline: 0; border-radius: 0; }
    .home-hero .hero-content { padding: 3.5rem var(--bs-gutter-x) 3rem; }
    .home-hero .hero-title { font-size: clamp(2.75rem, 12vw, 4.4rem) !important; }
    .home-hero .hero-visual { min-height: 430px; }
    .hero-editorial-mark { width: min(64vw, 275px); }
}

@media (max-width: 575.98px) {
    .home-hero .hero-content { padding-top: 3rem; }
    .home-hero .hero-eyebrow { font-size: 0.66rem; letter-spacing: 0.08em; }
    .home-hero .hero-expertise { display: flex; }
    .home-hero .hero-expertise span { flex: 1 1 calc(50% - 0.5rem); justify-content: center; }
    .home-hero .hero-buttons, .home-hero .hero-btn { width: 100%; }
    .home-hero .hero-visual { min-height: 390px; }
    .hero-editorial-mark { width: min(65vw, 250px); }
    .hero-editorial-mark > strong { font-size: 4.25rem; }
    .hero-orbit-outer { width: 88vw; }
    .hero-orbit-inner { width: 70vw; }
    .hero-float-card { min-width: 0; padding: 0.7rem; }
    .hero-float-card-top { top: 8%; left: 0.75rem; }
    .hero-float-card-bottom { right: 0.75rem; bottom: 8%; }
    .hero-float-card small { display: none; }
    .hero-float-card strong { max-width: 8.5rem; font-size: 0.76rem; }
    .hero-float-icon { flex-basis: 2rem; width: 2rem; height: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero *,
    .home-hero *::before,
    .home-hero *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ===================================
   MODERN PUBLIC NAVIGATION DROPDOWNS
   =================================== */
.public-navbar .nav-menu > .dropdown > .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.public-navbar .nav-menu > .dropdown > .dropdown-toggle::after {
    width: 0.42rem;
    height: 0.42rem;
    margin: -0.2rem 0 0 0.1rem;
    border: 0;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 220ms cubic-bezier(.2, .8, .2, 1), margin 220ms ease;
}

.public-navbar .nav-menu > .dropdown > .dropdown-toggle.show::after {
    margin-top: 0.2rem;
    transform: rotate(225deg);
}

.public-navbar .modern-dropdown {
    --dropdown-accent: #37d8c6;
    min-width: 310px;
    padding: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(125, 235, 223, 0.2);
    border-radius: 1.15rem;
    background:
        radial-gradient(circle at 100% 0, rgba(55, 216, 198, 0.16), transparent 42%),
        linear-gradient(145deg, rgba(9, 30, 45, 0.98), rgba(8, 47, 55, 0.97));
    box-shadow: 0 26px 70px rgba(0, 10, 24, 0.36), inset 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(22px) saturate(145%);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
}

.public-navbar .modern-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    right: 1.1rem;
    left: 1.1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dropdown-accent), #e4c65c, transparent);
    box-shadow: 0 0 18px rgba(55, 216, 198, 0.5);
}

.public-navbar .modern-dropdown .dropdown-item {
    position: relative;
    gap: 0.85rem;
    min-height: 4.15rem;
    padding: 0.72rem 2.35rem 0.72rem 0.72rem;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.94);
    border: 1px solid transparent;
    border-radius: 0.85rem;
    background: transparent;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.public-navbar .modern-dropdown .dropdown-item::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(100deg, rgba(55, 216, 198, 0.13), rgba(255, 255, 255, 0.04));
    transition: opacity 180ms ease;
}

.public-navbar .modern-dropdown .dropdown-item::after {
    content: '\2192';
    position: absolute;
    top: 50%;
    right: 0.9rem;
    color: #72eadc;
    font-size: 1rem;
    opacity: 0;
    transform: translate(-8px, -50%);
    transition: opacity 180ms ease, transform 180ms ease;
}

.public-navbar .modern-dropdown .dropdown-item:hover,
.public-navbar .modern-dropdown .dropdown-item:focus,
.public-navbar .modern-dropdown .dropdown-item:focus-visible {
    color: #fff;
    border-color: rgba(94, 230, 214, 0.18);
    background: rgba(255, 255, 255, 0.035);
    outline: none;
    transform: translateX(3px);
}

.public-navbar .modern-dropdown .dropdown-item:hover::before,
.public-navbar .modern-dropdown .dropdown-item:focus::before,
.public-navbar .modern-dropdown .dropdown-item:hover::after,
.public-navbar .modern-dropdown .dropdown-item:focus::after {
    opacity: 1;
}

.public-navbar .modern-dropdown .dropdown-item:hover::after,
.public-navbar .modern-dropdown .dropdown-item:focus::after {
    transform: translate(0, -50%);
}

.public-navbar .modern-dropdown .dropdown-item > i {
    position: relative;
    z-index: 1;
    flex-basis: 2.55rem;
    width: 2.55rem;
    height: 2.55rem;
    color: #65e3d4;
    border: 1px solid rgba(100, 229, 214, 0.16);
    border-radius: 0.78rem;
    background: linear-gradient(145deg, rgba(76, 222, 205, 0.16), rgba(227, 194, 84, 0.08));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
    transition: color 180ms ease, background 180ms ease, transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.public-navbar .modern-dropdown .dropdown-item:hover > i,
.public-navbar .modern-dropdown .dropdown-item:focus > i {
    color: #082d32;
    background: linear-gradient(135deg, #58e5d4, #e7c65d);
    transform: scale(1.06) rotate(-3deg);
}

.public-navbar .modern-dropdown .dropdown-item span {
    position: relative;
    z-index: 1;
}

.public-navbar .modern-dropdown .dropdown-item strong {
    margin-bottom: 0.18rem;
    color: inherit;
    font-size: 0.88rem;
    letter-spacing: 0.005em;
}

.public-navbar .modern-dropdown .dropdown-item small {
    color: rgba(220, 240, 239, 0.58);
    font-size: 0.7rem;
    line-height: 1.35;
    transition: color 180ms ease;
}

.public-navbar .modern-dropdown .dropdown-item:hover small,
.public-navbar .modern-dropdown .dropdown-item:focus small {
    color: rgba(235, 250, 248, 0.75);
}

@media (min-width: 1200px) {
    .public-navbar .nav-menu > .dropdown { position: relative; }

    .public-navbar .modern-dropdown {
        display: block;
        margin-top: 0.7rem !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(12px) scale(0.97);
        transform-origin: top center;
        transition: opacity 180ms ease, visibility 180ms ease, transform 240ms cubic-bezier(.2, .8, .2, 1);
    }

    .public-navbar .dropdown:hover > .modern-dropdown,
    .public-navbar .modern-dropdown.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .public-navbar .dropdown:hover > .dropdown-toggle::after {
        margin-top: 0.2rem;
        transform: rotate(225deg);
    }

    .public-navbar .modern-dropdown li {
        opacity: 0;
        transform: translateY(5px);
        transition: opacity 180ms ease, transform 220ms ease;
    }

    .public-navbar .dropdown:hover > .modern-dropdown li,
    .public-navbar .modern-dropdown.show li {
        opacity: 1;
        transform: translateY(0);
    }

    .public-navbar .modern-dropdown li:nth-child(2) { transition-delay: 35ms; }
    .public-navbar .modern-dropdown li:nth-child(3) { transition-delay: 70ms; }
}

@media (max-width: 1199.98px) {
    .public-navbar .modern-dropdown {
        margin: 0.3rem 0 0.55rem !important;
        padding: 0.45rem;
        border: 1px solid rgba(102, 225, 211, 0.12);
        border-radius: 0.9rem;
        background: rgba(255, 255, 255, 0.045);
        box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
        animation: nav-dropdown-mobile 220ms cubic-bezier(.2, .8, .2, 1) both;
    }

    .public-navbar .modern-dropdown::before { right: 0.8rem; left: 0.8rem; opacity: 0.65; }
    .public-navbar .modern-dropdown .dropdown-item { min-height: 3.85rem; color: rgba(255, 255, 255, 0.92); }
    .public-navbar .modern-dropdown .dropdown-item:hover,
    .public-navbar .modern-dropdown .dropdown-item:focus { background: rgba(65, 213, 197, 0.08); }
}

@keyframes nav-dropdown-mobile {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .public-navbar .modern-dropdown,
    .public-navbar .modern-dropdown *,
    .public-navbar .dropdown-toggle::after {
        animation: none !important;
        transition: none !important;
    }
}
