/* Global Design Tokens - Inspired by Lovable reference (8080) */
:root {
    --navy: 210 50% 23%;
    --gold: 37 78% 56%;
    --teal: 187 52% 47%;
    --red-accent: 0 72% 58%;
    --background: 210 20% 98%;
    --foreground: 210 50% 23%;
    --card: 0 0% 100%;
    --muted: 210 20% 95%;
    --border: 210 20% 90%;
    --muted-foreground: 210 15% 50%;
    --radius: 0.75rem;
}

/* Dark Mode Tokens */
.dark {
    --navy: 220 18% 10%;
    --background: 220 18% 10%;
    --foreground: 210 20% 93%;
    --card: 220 18% 13%;
    --muted: 220 15% 16%;
    --border: 220 15% 18%;
    --card-foreground: 210 20% 98%;
}

.dark body {
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
}

/* Global Dark Mode Page Wrappers */
.dark .program-detail-page,
.dark .admission-form-area,
.dark .premium-page-wrapper {
    background-color: hsl(var(--background)) !important;
}

.dark section.bg-background,
.dark section.bg-muted\/30,
.dark section.bg-muted\/50 {
    background-color: hsl(var(--background)) !important;
}

/* Cards & Components */
.dark .bg-card,
.dark .premium-card,
.dark .admission-form-card,
.dark .curriculum-card,
.dark .blog-card,
.dark .event-card-wrapper,
.dark .contact-info-card,
.dark .modern-dropdown {
    background-color: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Typography Overrides */
.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark .text-foreground,
.dark .text-slate-800,
.dark .text-slate-900,
.dark .blog-card-title,
.dark .event-card-title,
.dark .section-title {
    color: hsl(var(--foreground)) !important;
}

.dark p,
.dark span,
.dark li,
.dark .text-muted-foreground,
.dark .text-slate-500 {
    color: hsla(var(--foreground), 0.7) !important;
}

/* Form Elements */
.dark .form-control,
.dark .admission-input-premium,
.dark .admission-selection-card {
    background-color: hsl(var(--muted)) !important;
    border-color: hsl(var(--border)) !important;
    color: hsl(var(--foreground)) !important;
}

.dark .form-control::placeholder,
.dark .admission-input-premium::placeholder {
    color: hsla(var(--foreground), 0.4) !important;
}

.dark .admission-selection-card.active {
    border-color: hsl(var(--gold)) !important;
    background-color: hsla(var(--gold), 0.1) !important;
}

.dark .control-label {
    color: hsla(var(--foreground), 0.9) !important;
}

.dark .admission-step-title {
    border-bottom-color: hsl(var(--border)) !important;
    color: hsl(var(--foreground)) !important;
}

/* Premium Top Bar - Liquid Aurora */
@keyframes aurora {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.premium-top-bar {
    background: linear-gradient(-45deg, #0f172a, #1e293b, #1a365d, #0f172a);
    background-size: 400% 400%;
    animation: aurora 15s ease infinite;
    position: relative;
    z-index: 1001;
    /* overflow: hidden; */
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.premium-top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 40%);
    pointer-events: none;
}

.liquid-pod {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.liquid-pod:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.aurora-icon-wrapper {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(var(--gold));
}

.magnetic-token {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9999px;
    color: hsl(var(--gold)) !important;
    font-size: 14px;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    position: relative;
    text-decoration: none !important;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.magnetic-token i {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: inherit;
    line-height: 1;
    margin: 0;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.magnetic-token .social-name {
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 10px;
    font-weight: 800;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.15em; */
    color: inherit;
    pointer-events: none;
    margin-right: 16px;
    margin-left: -2px;
}

html[dir="rtl"] .magnetic-token .social-name {
    margin-right: -2px;
    margin-left: 16px;
    transform: translateX(-10px);
}

.magnetic-token:hover {
    width: auto;
    max-width: 220px;
    background: white !important;
    color: hsl(var(--navy)) !important;
    border-color: white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.magnetic-token:hover .social-name {
    opacity: 1;
    transform: translateX(0);
}

.magnetic-token:hover i {
    transform: scale(1.1);
}

.aurora-portal-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 3px 3px 3px 24px;
    background: white;
    border: none;
    border-radius: 9999px;
    color: hsl(var(--navy)) !important;
    font-size: 11px;
    font-weight: 800;
    /* text-transform: uppercase; */
    /* letter-spacing: 0.15em; */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: portal-pulse 2s infinite;
}

html[dir="rtl"] .aurora-portal-btn {
    padding: 3px 24px 3px 3px;
}

@keyframes portal-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.portal-icon-box {
    width: 38px;
    height: 38px;
    background: linear-gradient(-45deg, #1e293b, #334155, #1e293b);
    background-size: 200% 200%;
    animation: aurora 5s ease infinite;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.aurora-portal-btn:hover {
    transform: translateY(-3px) scale(1.02);
    background: white;
    box-shadow: 0 20px 40px -10px rgba(255, 255, 255, 0.3);
}

.aurora-portal-btn:hover .portal-icon-box {
    transform: rotate(180deg);
    background: hsl(var(--gold));
    color: white;
    box-shadow: 0 0 20px hsl(var(--gold));
}

/* Header & Nav */
.dark header.glass {
    background: rgba(15, 23, 42, 0.9) !important;
    /* slate-900 style */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark .nav-link-modern {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Modern Dropdown Dark Mode Overrides */
.dark .modern-dropdown {
    background: #1e293b !important;
    /* slate-800 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark .modern-dropdown-item {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .modern-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: hsl(var(--gold)) !important;
}

/* Admission Page Specifics for Dark Mode */
.dark .btn-circle.bg-muted {
    background-color: #1e293b !important;
    /* slate-800 */
    color: #64748b !important;
    /* slate-500 */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark .selection-card,
.dark .admission-selection-card {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .admission-selection-card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.dark .admission-selection-card .card-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .admission-select-trigger {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .admission-select-options {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .select-option-item {
    color: rgba(255, 255, 255, 0.7) !important;
}

.dark .select-option-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: white !important;
}

.dark .btn-precedent {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.dark .btn-precedent:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.dark .step-label {
    color: rgba(255, 255, 255, 0.5) !important;
}

.dark .stepwizard-step .step-label.text-slate-700 {
    color: white !important;
}

.dark #admission-success {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .success-message {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Special Case: Program Detail Icon Container */
.dark .icon-container-glass {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Accordion */
.dark .accordion-item {
    background-color: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .accordion-header {
    color: hsl(var(--foreground)) !important;
}

/* Gallery & Overlays */
.dark .cycle-card .overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent) !important;
}

/* Success Messages */
.dark .success-title {
    color: hsl(var(--foreground)) !important;
}

/* Premium Form Wrapper (Contact Page) Dark Mode */
.dark .premium-form-wrapper .control-label {
    color: hsla(var(--foreground), 0.9) !important;
}

.dark .premium-form-wrapper .form-control {
    background-color: hsl(var(--muted)) !important;
    border-color: hsl(var(--border)) !important;
    color: hsl(var(--foreground)) !important;
}

.dark .premium-form-wrapper .form-control:focus {
    background-color: hsl(var(--card)) !important;
    border-color: hsl(var(--gold)) !important;
    box-shadow: 0 0 0 4px hsla(var(--gold), 0.1) !important;
}

/* Premium Focus States Dark Mode */
.dark .admission-input-premium:focus,
.dark .admission-select-trigger:focus {
    background-color: #1e293b !important;
    border-color: #2d9b9b !important;
    box-shadow: 0 0 0 4px rgba(45, 155, 155, 0.1) !important;
}

/* Radio Buttons Dark Mode */
.dark .admission-radio-group input[type="radio"] {
    background-color: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .admission-radio-group input[type="radio"]:checked {
    border-color: #2d9b9b !important;
    background-color: #2d9b9b !important;
}

.dark .admission-radio-group input[type="radio"]:checked::after {
    background-color: #1e293b !important;
}

.dark .admission-radio-group label:hover input[type="radio"] {
    border-color: #2d9b9b !important;
}

/* Datepicker (Bootstrap) Dark Mode */
.dark .datepicker {
    background-color: #1e293b !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.dark .datepicker table tr td.day:hover,
.dark .datepicker table tr td.day.focused {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .datepicker table tr td.active,
.dark .datepicker table tr td.active:hover,
.dark .datepicker table tr td.active.disabled,
.dark .datepicker table tr td.active.disabled:hover {
    background-color: #2d9b9b !important;
    color: white !important;
}

.dark .datepicker .datepicker-switch:hover,
.dark .datepicker .prev:hover,
.dark .datepicker .next:hover,
.dark .datepicker tfoot tr th:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.dark .datepicker table tr td.old,
.dark .datepicker table tr td.new {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* Modern Header Container */
.header-container-modern {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* Base Styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    background-color: hsl(var(--background)) !important;
    color: hsl(var(--foreground)) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-display {
    font-family: 'DM Serif Display', serif !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    /* DM Serif Display is naturally bold, 700 is too heavy */
    color: hsl(var(--foreground)) !important;
}

h1 {
    font-size: clamp(40px, 5vw, 60px) !important;
}

h2 {
    font-size: clamp(28px, 3.5vw, 36px) !important;
}

h3 {
    font-size: clamp(22px, 2.5vw, 24px) !important;
}

h4 {
    font-size: clamp(18px, 2vw, 20px) !important;
}

p,
span,
li,
a,
div,
.text-muted {
    font-size: 16px !important;
    line-height: 1.6 !important;
    /* color: hsl(var(--muted-foreground, 210 15% 50%)) !important; */
}

.cycle-card .description,
.cycle-card .learn-more {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

.cycle-card h3 {
    font-size: clamp(20px, 2.5vw, 24px) !important;
    margin-bottom: 12px !important;
}

/* Mobile/Tablet global text scaling removed in favor of clamp() above */

/* Custom Utilities */
.text-gradient {
    background: linear-gradient(135deg, hsl(var(--gold)), #e9c46a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-navy {
    background: linear-gradient(135deg, hsl(210 50% 23%), hsl(187 52% 47% / 0.8));
}

/* Common Tailwind Utilities */
/* .text-xs {
    font-size: 12px !important;
}

.text-sm {
    font-size: 14px !important;
} */

.text-base {
    font-size: 16px !important;
}

.text-lg {
    font-size: 18px !important;
}

.text-xl {
    font-size: 20px !important;
}

.font-normal {
    font-weight: 400 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-semibold {
    font-weight: 600 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

.bg-background {
    background-color: hsl(var(--background)) !important;
}

.bg-card {
    background-color: hsl(var(--card)) !important;
}

.bg-muted {
    background-color: hsl(var(--muted)) !important;
}

.bg-muted\/30 {
    background-color: hsl(var(--muted) / 0.3) !important;
}

.bg-muted\/50 {
    background-color: hsl(var(--muted) / 0.5) !important;
}

.bg-gold\/10 {
    background-color: hsl(var(--gold) / 0.1) !important;
}

.text-foreground {
    color: hsl(var(--foreground)) !important;
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground, 210 15% 50%)) !important;
}

.text-teal {
    color: hsl(var(--teal)) !important;
}

.bg-navy {
    background-color: hsl(var(--navy)) !important;
}

.bg-gold {
    background-color: hsl(var(--gold)) !important;
    color: hsl(var(--navy)) !important;
}

.text-gold {
    color: hsl(var(--gold)) !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.border {
    border-width: 1px !important;
}

.border-border {
    border-color: hsl(var(--border)) !important;
}

.space-y-3> :not([hidden])~ :not([hidden]) {
    margin-top: 0.75rem !important;
}

.space-y-4> :not([hidden])~ :not([hidden]) {
    margin-top: 1rem !important;
}

.p-4 {
    padding: 1.25rem !important;
}

.p-5 {
    padding: 1.5rem !important;
}

.gap-4 {
    gap: 1.25rem !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-center {
    justify-content: center !important;
}

.px-8 {
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}


.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.hover\:scale-105:hover {
    transform: scale(1.05) !important;
}

.border-white\/30 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.text-white {
    color: #ffffff !important;
}

.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}


.gap-2 {
    gap: 0.5rem !important;
}

.gap-y-2 {
    row-gap: 0.5rem !important;
}

.py-16 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-8 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

.border-t {
    border-top-width: 1px !important;
}

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.inline-flex {
    display: inline-flex !important;
}

.w-4 {
    width: 1rem !important;
}

.w-5 {
    width: 1.25rem !important;
}

.w-6 {
    width: 1.5rem !important;
}

.h-4 {
    height: 1rem !important;
}

.h-5 {
    height: 1.25rem !important;
}

.h-6 {
    height: 1.5rem !important;
}

.transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 250ms !important;
}

.hover\:text-foreground:hover {
    color: hsl(var(--foreground)) !important;
}

@media (min-width: 640px) {
    .sm\:flex-row {
        flex-direction: row !important;
    }
}

/* Global Gallery & Lightbox Reset */
button.reveal-item,
#lightboxModal button {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    box-shadow: none !important;
}

#lightboxModal {
    background-color: rgba(0, 0, 0, 0.9) !important;
    display: none;
}

#lightboxModal.flex {
    display: flex !important;
}

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

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

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (min-width: 768px) {
    .md\:grid-cols-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

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

.col-span-2 {
    grid-column: span 2 / span 2 !important;
}

@media (min-width: 768px) {
    .md\:col-span-2 {
        grid-column: span 2 / span 2 !important;
    }

    .md\:row-span-2 {
        grid-row: span 2 / span 2 !important;
    }
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.object-cover {
    object-fit: cover !important;
}

.min-h-\[300px\] {
    min-height: 300px !important;
}

.h-48 {
    height: 12rem !important;
}

@media (min-width: 768px) {
    .md\:h-56 {
        height: 14rem !important;
    }
}

.bg-muted\/30 {
    background-color: hsla(var(--muted), 0.3) !important;
}

.bg-muted\/50 {
    background-color: hsla(var(--muted), 0.5) !important;
}

.scale-100 {
    transform: scale(1) !important;
}

.scale-110 {
    transform: scale(1.1) !important;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1) !important;
}

.bg-navy\/0 {
    background-color: rgba(19, 38, 57, 0) !important;
}

.bg-navy\/30 {
    background-color: rgba(19, 38, 57, 0.3) !important;
}

/* Simplified Reveal Animation */
.reveal-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out !important;
    border: none !important;
    background: transparent !important;
}

.reveal-item.revealed {
    opacity: 1;
    transform: scale(1);
}

.reveal-item img {
    border: none !important;
    display: block !important;
}



.transition-transform {
    transition-property: transform !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 200ms !important;
}



.group:hover .group-hover\:-translate-x-1 {
    transform: translateX(-0.25rem) !important;
}



.group:hover .group-hover\:translate-x-1 {
    transform: translateX(0.25rem) !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-3xl {
    max-width: 48rem !important;
}

.max-w-4xl {
    max-width: 56rem !important;
}

.max-w-6xl {
    max-width: 72rem !important;
}

.max-w-7xl {
    max-width: 88rem !important;
}

.grid {
    display: grid !important;
}

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

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.mb-12 {
    margin-bottom: 3rem !important;
}

.mb-16 {
    margin-bottom: 4rem !important;
}

.py-20 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.duration-500 {
    transition-duration: 500ms !important;
}

/* Header & Glass Effect */
header.glass {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: fixed !important;
    /* Changed to fixed for better support */
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}

/* Global padding for fixed header */
body {
    padding-top: 120px !important;
}

/* Navigation Links */
.nav-link-modern {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(14px, 1.2vw, 16px) !important;
    font-weight: 500 !important;
    color: #1a365d !important;
    padding: clamp(8px, 1vw, 10px) clamp(12px, 1.5vw, 18px) !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
    display: inline-block !important;
    text-decoration: none !important;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    background: rgba(26, 54, 93, 0.05) !important;
    color: #d4af37 !important;
}

.header-logo-img {
    height: clamp(30px, 3.5vw, 45px);
    transition: height 0.3s ease;
}

.header-admission-btn {
    padding: clamp(6px, 1.2vw, 8px) clamp(16px, 2.5vw, 20px) !important;
    min-width: clamp(100px, 8vw, 120px) !important;
    font-size: clamp(13px, 1.1vw, 15px) !important;
    display: inline-block;
    text-align: center;
    border-radius: 9999px;
}

/* Header Spacing & Layout */
.nav-links-list {
    list-style: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    /* Slightly more gap as per reference */
    margin: 0 !important;
    padding: 0 !important;
}

.header-center {
    display: block;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: #1a365d !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-right: 15px !important;
    position: relative !important;
    overflow: hidden !important;
}

.theme-toggle-btn:hover {
    background: rgba(26, 54, 93, 0.05) !important;
    transform: rotate(15deg);
}

.dark .theme-toggle-btn {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

.sun-icon {
    transition: all 0.5s ease;
}

.moon-icon {
    position: absolute;
    transition: all 0.5s ease;
    transform: rotate(90deg) scale(0);
    opacity: 0;
}

.dark .sun-icon {
    transform: rotate(-90deg) scale(0);
    opacity: 0;
}

.dark .moon-icon {
    transform: rotate(0) scale(1);
    opacity: 1;
}

/* Mobile Toggle */
.navbar-toggle-modern {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.navbar-toggle-modern .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #1a365d;
    border-radius: 1px;
    margin-bottom: 4px;
}

.navbar-toggle-modern .icon-bar:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .header-center {
        display: none !important;
        /* Force hide by default on mobile until toggled */
    }

    .header-center.in,
    .header-center.show {
        display: block !important;
        width: 100% !important;
        background: white !important;
        position: absolute !important;
        top: 100%;
        left: 0;
        z-index: 1000;
        padding: 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }

    .dark .header-center.in,
    .dark .header-center.show {
        background: #1e293b !important;
    }

    .nav-links-list {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }

    .nav-link-modern {
        width: 100% !important;
        display: block !important;
        padding: 10px 15px !important;
    }

    .navbar-toggle-modern {
        display: block !important;
    }

    .header-right {
        display: none !important;
    }

    .header-left {
        display: flex !important;
        width: 100% !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-direction: row-reverse !important;
    }

    .logo img {
        height: 45px !important;
        /* Scale down massive logo */
    }

    /* Reduce Top Bar sizes for mobile */
    .liquid-pod {
        padding: 4px 12px !important;
        gap: 6px !important;
    }

    .liquid-pod span {
        font-size: 10px !important;
    }

    .aurora-icon-wrapper {
        width: 18px !important;
        height: 18px !important;
    }

    .aurora-icon-wrapper svg {
        width: 10px !important;
        height: 10px !important;
    }

    .magnetic-token {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .magnetic-token i {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 11px !important;
    }

    .aurora-portal-btn {
        font-size: 9px !important;
        padding-left: 15px !important;
        gap: 10px !important;
    }

    .portal-icon-box {
        width: 30px !important;
        height: 30px !important;
    }

    .portal-icon-box svg {
        width: 14px !important;
        height: 14px !important;
    }
}

/* Hero Section Enhancements - Dynamic Slider Background */
.hero-modern-slider {
    position: relative;
    height: 85vh;
    /* Responsive height */
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #0f172a;
    /* Fallback */
    color: white;
}

.hero-carousel-bg {
    position: absolute !important;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel-bg .carousel-inner,
.hero-carousel-bg .item {
    height: 100%;
}

.hero-slider-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 10s linear;
    /* Subtle zoom effect */
}

.hero-carousel-bg .item.active .hero-slider-img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.8) 0%,
            rgba(15, 23, 42, 0.4) 50%,
            rgba(15, 23, 42, 0.6) 100%);
    z-index: 2;
}

.hero-content-overlay {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: hsl(var(--background)) !important;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 650px;
}

/* Animations for Hero Content */
.animate__animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translate3d(0, -30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInDown {
    animation-name: fadeInDown;
}

@media (max-width: 768px) {
    .hero-modern-slider {
        height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Modern Card Grid (Cycles/Programmes) */
.cycle-card {
    display: block;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    height: 320px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cycle-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cycle-card:hover img {
    transform: scale(1.1);
}

.cycle-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 54, 93, 0.9) 0%, rgba(26, 54, 93, 0.4) 50%, transparent 100%);
    transition: opacity 0.5s ease;
}

.cycle-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 10;
    color: white;
}

.cycle-card .ages {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--gold));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    display: block;
}

.cycle-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white !important;
}

.cycle-card .description {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 16px;
}

.cycle-card .learn-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--gold));
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

.cycle-card:hover .description,
.cycle-card:hover .learn-more {
    opacity: 1;
    transform: translateY(0);
}

.cycle-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Section Containers */
.section-padding {
    padding: 96px 0;
}

.bg-light {
    background-color: #F9FAFB !important;
}

.mb-60 {
    margin-bottom: 60px !important;
}

.section-tag {
    color: hsl(var(--teal));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    display: block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 36px;
}

/* Buttons */
.btn-gold {
    background-color: hsl(var(--gold)) !important;
    color: hsl(var(--navy)) !important;
    font-weight: 600 !important;
    border-radius: 9999px !important;
    padding: 12px 32px !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-gold:hover {
    background-color: #e9c46a !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 9999px !important;
    padding: 12px 32px !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease !important;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

/* Footer Section */
.footer-modern {
    background: linear-gradient(135deg, #132639, #1d3b58) !important;
    color: white !important;
    padding: 80px 0 0 0 !important;
    margin-top: 0 !important;
}

.footer-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.5rem !important;
    margin-bottom: 24px !important;
    color: white !important;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.3s ease !important;
    display: block !important;
    margin-bottom: 12px !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
}

.footer-link:hover {
    color: #d4af37 !important;
    transform: translateX(5px) !important;
}

.social-circle {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.social-circle:hover {
    background: #d4af37 !important;
    color: #1a365d !important;
    transform: translateY(-3px) !important;
}

/* WhatsApp Floating - FORCED RIGHT */
.whatsapp-float {
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    left: auto !important;
    width: 60px !important;
    height: 60px !important;
    background-color: #25d366 !important;
    color: #FFF !important;
    border-radius: 50px !important;
    text-align: center !important;
    font-size: 30px !important;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.whatsapp-float:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4) !important;
}

.mb-40 {
    margin-bottom: 40px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.text-gold {
    color: #d4af37 !important;
}

/* Dark Mode Section Overrides */
/* Nos Atouts (Features) Section */
.section-features {
    background-color: hsl(var(--background));
    padding: 96px 0;
}

.feature-card {
    text-align: center;
    margin-bottom: 30px;
    padding: 32px 24px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: hsl(var(--teal) / 0.3);
}

/* Premium Age & Level Badges */
.premium-age-badge,
.premium-level-badge {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid hsla(var(--gold), 0.1);
    box-shadow: 0 2px 10px -2px hsla(var(--gold), 0.1);
}

.premium-level-badge {
    border-color: hsla(var(--teal), 0.1);
    box-shadow: 0 2px 10px -2px hsla(var(--teal), 0.1);
}

.group:hover .premium-age-badge,
.premium-level-badge:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 15px -5px hsla(var(--gold), 0.2);
    border-color: hsla(var(--gold), 0.3);
    background: white;
    color: hsl(var(--gold));
}

.premium-level-badge:hover {
    box-shadow: 0 8px 15px -5px hsla(var(--teal), 0.2);
    border-color: hsla(var(--teal), 0.3);
    color: hsl(var(--teal));
}

.dark .premium-age-badge,
.dark .premium-level-badge {
    background: hsla(var(--card), 0.4);
    border-color: hsla(var(--border), 0.2);
}

.dark .premium-age-badge:hover,
.dark .premium-level-badge:hover {
    background: hsla(var(--card), 0.8);
    border-color: hsl(var(--gold));
}

.dark .premium-level-badge:hover {
    border-color: hsl(var(--teal));
}

.feature-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: hsl(var(--teal) / 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background-color: hsl(var(--teal));
    transform: scale(1.1) rotate(5deg);
}

.feature-card:hover .feature-icon-wrapper i,
.feature-card:hover .feature-icon-wrapper svg {
    color: white !important;
}

.feature-icon-wrapper i,
.feature-icon-wrapper svg {
    color: hsl(var(--teal)) !important;
    font-size: 1.75rem;
    transition: color 0.4s ease;
}

.feature-card .feature-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-bottom: 12px !important;
    color: hsl(var(--foreground));
}

.feature-card .feature-desc {
    font-size: 0.95rem !important;
    line-height: 1.6;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0;
}

/* Vertical layout specific override for program detail */
.feature-card-horizontal {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-align: left !important;
    gap: 1.5rem !important;
    padding: 1.5rem !important;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border) / 0.5);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-card-horizontal .feature-icon-wrapper {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.feature-icon-wrapper i {
    color: hsl(var(--teal));
    font-size: 1.75rem;
}

.feature-card .feature-title {
    font-size: clamp(16px, 1.5vw, 18px) !important;
    font-weight: 600;
    margin-bottom: 8px !important;
    color: hsl(var(--foreground));
}

.feature-card .feature-desc {
    font-size: 14px !important;
    line-height: 1.625;
    color: hsl(var(--muted-foreground, 210 15% 50%));
    /* Fallback to a muted gray */
}

/* Mid CTA Section */
.section-cta {
    background-color: hsl(var(--card));
    padding: 64px 0;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
}

.cta-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta-title {
    font-size: clamp(1.75rem, 2vw, 2.875rem) !important;
    /* ~30px */
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 8px !important;
    font-family: 'DM Serif Display', serif;
}

.cta-desc {
    color: hsl(var(--muted-foreground, 210 15% 50%));
    margin-bottom: 0;
    font-size: 16px !important;
}

.cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-gold-rounded {
    background-color: hsl(var(--gold));
    color: hsl(var(--navy)) !important;
    border-radius: 9999px;
    /* Fully rounded */
    padding: 10px 32px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    text-decoration: none !important;
}

.btn-gold-rounded:hover,
.btn-gold-rounded:focus {
    background-color: hsl(var(--gold) / 0.9);
    color: hsl(var(--navy)) !important;
}

.btn-outline-rounded {
    background-color: transparent;
    color: hsl(var(--foreground)) !important;
    border: 1px solid hsl(var(--border));
    border-radius: 9999px;
    padding: 10px 32px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    text-decoration: none !important;
}

.btn-outline-rounded:hover,
.btn-outline-rounded:focus {
    background-color: hsl(var(--muted));
    color: hsl(var(--foreground)) !important;
}

/* Dark mode specific text modifications */
.dark .feature-card .feature-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .section-features {
    background-color: hsl(var(--background));
}

.dark .section-cta {
    background-color: hsl(var(--card));
}

.dark .cta-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .btn-outline-rounded {
    color: hsl(var(--foreground)) !important;
    border-color: rgba(255, 255, 255, 0.1);
}

.dark .btn-outline-rounded:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Activities (Extracurriculars) Section */
.section-activities {
    background-color: hsl(var(--muted) / 0.3);
    padding: 96px 0;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.activity-card {
    text-align: center;
    padding: 24px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    transition: all 0.5s ease;
    cursor: default;
}

.activity-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-color: hsl(var(--gold) / 0.3);
    transform: translateY(-3px);
}

.activity-icon-wrapper {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    background-color: hsl(var(--gold) / 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.activity-card:hover .activity-icon-wrapper {
    background-color: hsl(var(--gold) / 0.2);
}

.activity-icon-wrapper svg {
    color: hsl(var(--gold));
    width: 24px;
    height: 24px;
}

.activity-title {
    font-size: 15px !important;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 4px !important;
}

.activity-desc {
    font-size: 13px !important;
    line-height: 1.6;
    color: hsl(var(--muted-foreground, 210 15% 50%));
    display: none;
    /* hidden by default, shown on md screens */
}

@media (min-width: 768px) {
    .activities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .activity-desc {
        display: block;
    }
}

@media (min-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.dark .activity-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .section-activities {
    background-color: hsl(var(--navy) / 0.5);
}

/* Environment (Cadre de Vie) Section */
.section-environment {
    background-color: hsl(var(--background));
    padding: 96px 0;
}

.env-features-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.env-feature-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background-color: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 16px;
    transition: all 0.3s ease;
}

.env-feature-card:hover {
    transform: translateX(8px);
    border-color: hsl(var(--teal) / 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.env-feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: hsl(var(--teal) / 0.1);
    color: hsl(var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.env-feature-card:hover .env-feature-card-icon {
    background-color: hsl(var(--teal) / 0.2);
}

.env-feature-card h4.env-feature-title,
.env-feature-title {
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    /* 20px */
    font-weight: 600 !important;
    color: hsl(var(--foreground));
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
}

.env-feature-card p.env-feature-desc,
.env-feature-desc {
    font-size: 1.35rem !important;
    /* 16px */
    color: hsl(var(--muted-foreground, 210 15% 50%));
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
}

/* Environment Overlapping Image Composition */
.env-image-composition {
    position: relative;
    padding-right: 15%;
    padding-bottom: 15%;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .env-image-composition {
        margin-top: 0;
        margin-left: 20px;
    }
}

.env-image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.env-image-main img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.env-image-floating {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 55%;
    border-radius: 20px;
    overflow: hidden;
    border: 8px solid hsl(var(--background));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.env-image-floating img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.env-experience-badge {
    position: absolute;
    left: -30px;
    top: 20%;
    background-color: hsl(var(--gold));
    color: hsl(var(--navy));
    padding: 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px hsl(var(--gold) / 0.3);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 140px;
}

.env-experience-badge .badge-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.env-experience-badge.fondation-badge .badge-number {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.env-experience-badge .badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dark mode specific text modifications */
.dark .env-feature-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .env-feature-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark .env-image-floating {
    border-color: hsl(var(--background));
}

.dark .section-environment {
    background-color: hsl(var(--background));
}

.dark .bg-white,

.dark .bg-light {
    background-color: hsl(var(--background)) !important;
}

/* Premium Team Section */
.section-team {
    background-color: hsl(var(--muted)/0.3);
    padding: clamp(60px, 8vw, 100px) 0;
    position: relative;
    overflow: hidden;
}

.team-sticky-header {
    position: sticky;
    top: 120px;
    padding-right: 30px;
}

.team-decoration-line {
    width: 60px;
    height: 4px;
    background: hsl(var(--gold));
    border-radius: 2px;
    margin-top: 30px;
}

.team-premium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 768px) {
    .team-premium-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.team-premium-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 20px;
    padding: 40px 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1;
    overflow: hidden;
    text-align: left;
}

.team-premium-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, hsl(var(--gold) / 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    transition: transform 0.6s ease;
}

.team-premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: hsl(var(--gold) / 0.4);
}

.team-premium-card:hover::before {
    transform: scale(1.5);
}

.team-card-number {
    position: absolute;
    top: 20px;
    right: 25px;
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: hsl(var(--foreground) / 0.04);
    line-height: 1;
    z-index: -1;
    transition: color 0.4s ease;
}

.team-premium-card:hover .team-card-number {
    color: hsl(var(--gold) / 0.15);
}

.team-icon-wrapper {
    width: 64px;
    height: 64px;
    background-color: hsl(var(--gold) / 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: background-color 0.3s ease;
}

.team-icon-wrapper svg {
    color: hsl(var(--gold));
    width: 32px;
    height: 32px;
}

.team-premium-card:hover .team-icon-wrapper {
    background-color: hsl(var(--gold) / 0.2);
}

.team-premium-card .team-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.team-premium-card .team-desc {
    font-size: clamp(1.25rem, 1.5vw, 1.5rem) !important;
    color: hsl(var(--muted-foreground, 210 15% 50%));
    line-height: 1.6;
    margin-bottom: 0 !important;
}

.dark .section-team {
    background-color: hsl(var(--navy) / 0.5);
}

.dark .team-premium-card .team-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .team-premium-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dark .team-card-number {
    color: hsl(var(--foreground) / 0.04);
}

/* Architecture & Infrastructure Section */
.section-infrastructure {
    background-color: hsl(var(--background));
    padding: clamp(60px, 8vw, 100px) 0;
    position: relative;
    overflow: hidden;
}

.infra-premium-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

@media (min-width: 992px) {
    .infra-premium-wrapper {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 20px;
    }
}

.infra-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Increased gap from 30px for better breathing room */
}

.infra-center {
    flex: 1.2;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.infra-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    /* Slightly wider gap between icon and text */
    padding: 30px;
    /* Increased padding */
    background: hsl(var(--card));
    /* White background for all cards */
    border-radius: 20px;
    /* Softer border radius */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smoother transition */
    border: 1px solid rgba(0, 0, 0, 0.03);
    /* subtle border */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    /* base shadow */
    position: relative;
    z-index: 2;
}

.infra-card:hover {
    background: hsl(var(--card));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Stronger shadow */
    transform: translateY(-8px);
    /* More pronounced lift */
    border-color: hsl(var(--gold));
    /* Gold border instead of --border */
}

.infra-title {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    font-weight: 600;
    color: hsl(var(--foreground));
    margin-top: 0 !important;
    margin-bottom: 12px !important;
    line-height: 1.3;
}

.infra-desc {
    font-size: clamp(1.25rem, 1.5vw, 1.25rem) !important;
    color: hsl(var(--muted-foreground, 210 15% 50%));
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

/* Icon Wrappers and Modifiers */
.infra-icon-wrapper {
    width: 64px;
    /* Larger icon wrapper */
    height: 64px;
    border-radius: 18px;
    /* Softer wrapper radius */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.infra-icon-wrapper svg {
    width: 28px;
    /* Larger SVG */
    height: 28px;
}

.infra-card:hover .infra-icon-wrapper {
    transform: scale(1.15) rotate(5deg);
    /* Slight rotation on hover for character */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Inner shadow for depth */
}

.infra-icon-wrapper.color-teal {
    background-color: hsl(var(--teal) / 0.1);
    color: hsl(var(--teal));
}

.infra-icon-wrapper.color-gold {
    background-color: hsl(var(--gold) / 0.1);
    color: hsl(var(--gold));
}

.infra-icon-wrapper.color-navy {
    background-color: hsl(var(--navy) / 0.1);
    color: hsl(var(--navy));
}

/* Alignment Specifics */
@media (min-width: 992px) {
    .infra-column.infra-left {
        transform: translateX(40px);
        /* Overlap image */
        z-index: 10;
        align-items: flex-end;
        /* cards align right container */
    }

    .infra-column.infra-right {
        transform: translateX(-40px);
        /* Overlap image */
        z-index: 10;
        align-items: flex-start;
        /* cards align left container */
    }

    .infra-center {
        z-index: 1;
        /* Center image stays behind cards */
    }

    .infra-card.align-right {
        text-align: right;
        flex-direction: row;
        max-width: 440px;
        /* Keep tight layout */
    }

    .infra-card.align-right .infra-icon-wrapper {
        order: 2;
        /* Move icon to right */
    }

    .infra-card.align-right .infra-content {
        order: 1;
    }

    .infra-card.align-left {
        text-align: left;
        flex-direction: row;
        max-width: 440px;
        /* Keep tight layout */
    }
}

/* Central Image Styling */
.infra-image-container {
    position: relative;
    border-radius: 50%;
    padding: 15px;
    /* Creates the gap for the glowing border */
    background: transparent;
}

.infra-image-container.border-gold-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px dashed hsl(var(--gold) / 0.3);
    animation: rotateDash 20s linear infinite;
    z-index: 0;
}

@keyframes rotateDash {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.infra-main-img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.infra-image-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: hsl(var(--navy));
    color: hsl(var(--background));
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 10px 20px hsl(var(--navy) / 0.3);
    border: 1px solid hsl(var(--navy) / 0.1);
}

/* Dark Mode Overrides */
.dark .infra-desc {
    color: rgba(255, 255, 255, 0.6);
}

.dark .infra-card:hover {
    background: hsl(var(--card));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Stats Section */
.section-stats {
    padding: clamp(50px, 6vw, 80px) 0;
}

.gradient-navy-bg {
    background: linear-gradient(135deg, #1d3b58, rgba(58, 168, 182, 0.8)) !important;
    color: white;
}

.stat-block {
    margin-bottom: 30px;
}

.stat-number {
    font-size: 48px !important;
    font-weight: 700;
    color: #e6a337 !important;
    margin-bottom: 8px;
    line-height: 1.1;
    font-family: 'DM Serif Display', serif;
}

.stat-label {
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Testimonials Section Styles */
.section-testimonials {
    background-color: hsl(var(--muted) / 0.5);
    padding: clamp(60px, 8vw, 100px) 0;
}

/* Location Section */
.section-location {
    padding: clamp(60px, 8vw, 100px) 0;
    overflow: hidden;
}

/* Ensure Bootstrap carousel items are visible and flexible */
.premium-testimonial-carousel .item {
    transition: transform .6s ease-in-out;
    backface-visibility: hidden;
    perspective: 1000px;
}

.premium-testimonial-carousel .item.active,
.premium-testimonial-carousel .item-next.item-left,
.premium-testimonial-carousel .item-prev.item-right {
    display: flex !important;
    justify-content: center;
}

.testimonial-premium-card {
    background: hsl(var(--card));
    border-radius: 24px;
    border: 1px solid hsl(var(--border));
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    min-height: 220px;
    margin: 10px 15px;
    /* Prevent box-shadow cropping in carousel */
}

@media (min-width: 768px) {
    .testimonial-premium-card {
        padding: 48px;
    }
}

.testimonial-quote-icon {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 60px;
    height: 60px;
    color: hsl(var(--gold) / 0.2);
    /* Fixed to gold 20% opacity */
    z-index: 0;
}

.testimonial-content-wrapper {
    position: relative;
    z-index: 10;
    padding-left: 20px;
    /* Added padding to prevent icon overlap with the larger text */
}

.testimonial-text {
    font-size: clamp(1.25rem, 2vw, 1.75rem) !important;
    color: hsl(var(--foreground) / 0.8) !important;
    line-height: 1.8 !important;
    margin-bottom: 30px !important;
    font-style: italic;
}

.testimonial-author-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 50px;
    /* Increased from 64px */
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* Increased from 1.5rem */
    font-weight: bold;
}

.testimonial-avatar.color-teal {
    background-color: hsl(var(--teal) / 0.1);
    color: hsl(var(--teal));
}

.testimonial-avatar.color-navy {
    background-color: hsl(var(--navy) / 0.1);
    color: hsl(var(--navy));
}

.testimonial-avatar.color-gold {
    background-color: hsl(var(--gold) / 0.1);
    color: hsl(var(--gold));
}

.testimonial-avatar.color-purple {
    background-color: hsla(270, 70%, 60%, 0.1);
    color: hsl(270, 70%, 60%);
}

.testimonial-avatar.color-rose {
    background-color: hsla(330, 80%, 60%, 0.1);
    color: hsl(330, 80%, 60%);
}

.testimonial-avatar.color-indigo {
    background-color: hsla(240, 70%, 60%, 0.1);
    color: hsl(240, 70%, 60%);
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
    margin: 0 !important;
}

.author-role {
    font-size: clamp(1.1rem, 1.5vw, 1.25rem) !important;
    /* Increased from 1rem */
    color: hsl(var(--muted-foreground)) !important;
    margin-top: 2px !important;
}

.testimonial-stars {
    margin-left: auto;
    /* Push stars to the right */
    display: flex;
    gap: 4px;
}

/* Override Bootstrap Carousel Indicators for Lovable Pill Style */
.premium-testimonial-carousel.carousel {
    padding-bottom: 50px;
    /* Make room for indicators */
}

.premium-testimonial-carousel .carousel-indicators {
    position: absolute;
    bottom: 0px;
    margin-top: 40px;
    margin-bottom: 0px;
}

.premium-testimonial-carousel .carousel-indicators li {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background-color: hsl(var(--muted-foreground) / 0.3);
    border: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.premium-testimonial-carousel .carousel-indicators li.active {
    width: 32px;
    background-color: hsl(var(--gold));
    border-radius: 12px;
}

.dark .testimonial-quote-icon {
    color: hsl(var(--gold) / 0.1);
}

/* Location & Contact Section */
.section-location {
    background-color: hsl(var(--muted) / 0.3);
    padding: 96px 0;
}

.location-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid hsl(var(--border));
    background: hsl(var(--muted));
    height: 100%;
    min-height: 400px;
}

.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    background: hsl(var(--card));
    border-radius: 20px;
    padding: 24px;
    border: 1px solid hsl(var(--border));
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-icon.color-teal {
    background-color: hsl(var(--teal) / 0.1);
    color: hsl(var(--teal));
}

.contact-icon.color-gold {
    background-color: hsl(var(--gold) / 0.1);
    color: hsl(var(--gold));
}

.contact-icon.color-navy {
    background-color: hsl(var(--navy) / 0.1);
    color: hsl(var(--navy));
}

.contact-label {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.5rem, 2vw, 1.75rem) !important;
    color: hsl(var(--foreground));
    margin-bottom: 4px;
}

.contact-value {
    font-size: 0.75rem;
    color: hsl(var(--muted-foreground));
    margin: 0;
    line-height: 1.5;
    word-break: break-word;
}

.contact-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: hsl(var(--teal));
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.contact-map-link:hover {
    color: hsl(var(--teal) / 0.8);
}

.contact-map-link svg {
    width: 16px;
    height: 16px;
}

/* Dark Mode Overrides for Contact */
.dark .contact-info-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Trilingual Section Styles */
.section-trilingual {
    background-color: hsl(var(--muted) / 0.3);
    padding: 96px 0;
}

.trilingual-card {
    background: hsl(var(--card));
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.trilingual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.trilingual-card .lang-id {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: hsl(var(--navy));
    margin-bottom: 24px;
    display: block;
    letter-spacing: -1px;
    opacity: 0.8;
}

.trilingual-card h3 {
    font-size: clamp(20px, 2.5vw, 24px) !important;
    margin-bottom: 20px !important;
    color: hsl(var(--navy));
}

.progress-container {
    width: 100%;
    height: 12px;
    background: #F3F4F6;
    border-radius: 100px;
    margin-bottom: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar-inner {
    height: 100%;
    border-radius: 100px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-bar-arabe {
    background-color: #3aa8b6;
}

.progress-bar-francais {
    background-color: hsl(var(--navy));
}

.progress-bar-anglais {
    background-color: #e6a337;
}

.trilingual-card .percentage {
    font-size: 14px !important;
    font-weight: 600;
    color: #6B7280;
    margin-bottom: 20px;
}

.trilingual-card .description {
    font-size: 14px !important;
    color: #6B7280;
    line-height: 1.6;
}

.dark .bg-muted\/30,
.dark .bg-muted\/20 {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6,
.dark .section-title {
    color: hsl(var(--card-foreground)) !important;
}

.dark .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.dark .rounded-2xl.bg-white,
.dark .rounded-xl.bg-white {
    background-color: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .cycle-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.dark .cycle-card .overlay {
    background: linear-gradient(to top, rgba(15, 17, 21, 0.95), rgba(15, 17, 21, 0.4), transparent) !important;
}

.dark .hero-badge {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark .hero-modern {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

.dark .footer-modern {
    background: #0a0c10 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.dark .modern-dropdown {
    background: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
}

.dark .modern-dropdown a {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Fix Dropdown Hover Gap Issue */
.dropdown:hover>.modern-dropdown {
    display: block;
}

.dropdown:hover .lucide-chevron-down {
    transform: rotate(180deg);
}

.modern-dropdown {
    margin-top: 0 !important;
    /* Managed by transform to prevent hover gap */
    transform: translateY(15px);
    transition: opacity 0.2s, transform 0.2s;
    padding: 8px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    min-width: 192px !important;
    background-color: white !important;
}

.modern-dropdown li {
    margin-bottom: 0 !important;
}

.modern-dropdown-item {
    display: block !important;
    padding: 10px 16px !important;
    font-size: 1.5rem !important;
    color: rgba(30, 41, 59, 0.8) !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin-bottom: 0px !important;
}

.modern-dropdown-item:last-child {
    margin-bottom: 0 !important;
}

.modern-dropdown-item:hover,
.modern-dropdown-item:focus {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* Invisible bridge to keep hover state active between the nav link and the dropdown */
.modern-dropdown::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* --- Program Detail Modern Styles --- */

.program-detail-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-bottom: 4rem;
    color: white;
}

.program-detail-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.program-detail-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(210 50% 15%) 0%, hsl(210 50% 23% / 0.7) 50%, transparent 100%);
}

.dark .program-detail-hero .hero-overlay {
    background: linear-gradient(to top, hsl(210 45% 8%) 0%, hsl(210 45% 12% / 0.8) 50%, transparent 100%);
}

.program-detail-hero .container {
    position: relative;
    z-index: 10;
}

.cycle-age-badge {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

/* Consolidated into global feature-card */

/* Modern FAQ Accordion */
.modern-accordion .accordion-item {
    background-color: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: 0.75rem !important;
    /* rounded-xl */
    margin-bottom: 0.75rem !important;
    /* space-y-3 gap */
    overflow: hidden;
    transition: all 500ms ease-in-out !important;
    padding-left: 1.25rem !important;
    /* px-5 */
    padding-right: 1.25rem !important;
    /* px-5 */
}

.modern-accordion .accordion-header {
    width: 100%;
    padding: 1.25rem 0 !important;
    /* py-5 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    font-weight: 500 !important;
    /* font-medium */
    font-size: 0.875rem !important;
    /* text-sm */
    color: hsl(var(--foreground)) !important;
    cursor: pointer;
    text-align: left;
}

.modern-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 500ms ease-in-out !important;
    padding: 0;
    color: hsl(var(--muted-foreground, 210 15% 50%)) !important;
    line-height: 1.625 !important;
    /* leading-relaxed */
    font-size: 0.875rem !important;
    /* text-sm */
}

.modern-accordion .accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.25rem !important;
    /* pb-5 */
}

.modern-accordion .accordion-item.active {
    box-shadow: none !important;
}

.modern-accordion .chevron {
    transition: transform 500ms ease-in-out !important;
    color: hsl(var(--muted-foreground)) !important;
}

.modern-accordion .accordion-item.active .chevron {
    transform: rotate(180deg) !important;
}


/* =========================================
   FOOTER MODERN (LIKE LOVABLE 8080)
   ========================================= */
.gradient-navy-dark {
    background: linear-gradient(135deg, rgb(19, 38, 57), rgb(29, 59, 88));
}

.footer-modern-inner {
    padding: 64px 0 32px 0;
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.625;
}

.footer-title-modern {
    font-weight: 600;
    color: rgb(230, 163, 55) !important;
    margin-bottom: 16px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: rgb(230, 163, 55);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-list .icon-wrapper svg {
    color: hsl(var(--teal));
    margin-top: 2px;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    text-decoration: none !important;
}

.footer-contact-list a:hover {
    color: rgb(230, 163, 55);
}

.footer-copyright-row {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 640px) {
    .footer-copyright-row {
        flex-direction: row;
    }
}

.footer-copyright-row p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}

.footer-copyright-row a {
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-copyright-row a:hover {
    color: white;
}

.footer-copyright-row a.legal-link {
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.footer-copyright-row a.legal-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-copyright-row a.dev-credit {
    color: hsl(var(--gold));
    font-weight: 700;
    margin-left: 4px;
}

.footer-copyright-row a.dev-credit:hover {
    color: white;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}


/* Final CTA Section */
.section-final-cta {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.95;
    z-index: 1;
}

.section-final-cta .container {
    position: relative;
    z-index: 10;
}

.cta-shapes {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
}

.cta-shape-1 {
    position: absolute;
    top: 40px;
    left: 40px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.cta-shape-2 {
    position: absolute;
    bottom: 40px;
    right: 80px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.cta-star-icon {
    color: hsl(var(--gold) / 0.4);
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.final-cta-title {
    font-size: clamp(30px, 4vw, 36px) !important;
    font-weight: 700;
    color: white !important;
    margin-bottom: 16px !important;
}

.final-cta-desc {
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 32px !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 16px !important;
}

.final-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .final-cta-actions {
        flex-direction: row;
    }
}

.btn-outline-white-rounded {
    background-color: transparent;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
    padding: 0 32px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    line-height: 44px;
    text-decoration: none !important;
}

.btn-outline-white-rounded:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.final-cta-btn {
    font-size: 16px !important;
    padding: 0 40px !important;
    height: 44px;
    line-height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(230, 163, 55);
    color: rgb(29, 59, 88) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
}

.final-cta-btn:hover {
    background-color: rgba(230, 163, 55, 0.9);
}

.btn-outline-white-rounded.final-cta-btn {
    padding: 0 32px !important;
    height: 44px;
    line-height: 44px;
    background-color: transparent;
}

/* FULL-BLEED HOMEPAGE ADJUSTMENTS */
.main-content-home {
    padding: 0 !important;
}

.main-content-home .container-fluid.p-0 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.main-content-home .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Ensure hero has proper spacing if needed, but not overlaying */
.main-content-home .col-md-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure breadcrumbs in hero are never white-boxed */
.aph-breadcrumb-box {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Breadcrumbs in hero still need to be white because the hero image is dark */
.aph-breadcrumb-box .text-white {
    color: white !important;
}

/* Optional: Add transition for background when scrolling if JS handles it, 
   but for now we just want it transparent on the hero. */

/* Dark mode specific adjustments for full-bleed */
.dark .main-content-home {
    background: var(--bg-main);
}

/* =========================================
   UTility Classes (Tailwind-like)
   ========================================= */
.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}

.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.lg\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.lg\:px-32 {
    padding-left: 8rem;
    padding-right: 8rem;
}

.px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
}

.px-32 {
    padding-left: 8rem;
    padding-right: 8rem;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.items-center {
    align-items: center !important;
}

.row.items-center,
.row.g-4 {
    display: flex !important;
    flex-wrap: wrap;
}

.col-sm-6 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 576px) {
    .col-sm-6 {
        width: calc(50% - 0.5rem);
        /* Account for half of gap-4 (1rem) */
    }
}

.col-lg-6 {
    flex: 0 0 auto;
    width: 100%;
}

@media (min-width: 992px) {
    .col-lg-6 {
        width: calc(50% - 1.5rem);
        /* Account for half of gap-12 (3rem) */
    }
}

/* Modern Grid System for Program Details */
.program-layout-grid {
    display: grid !important;
    gap: 3rem !important;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .program-layout-grid {
        grid-template-columns: 1.25fr 0.75fr;
        align-items: center;
        gap: 5rem !important;
    }
}

.features-layout-grid {
    display: grid !important;
    gap: 1rem !important;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .features-layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-18 {
    margin-top: 4.5rem;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.pb-12 {
    padding-bottom: 3rem;
}

.gap-4 {
    gap: 1rem !important;
}

.pt-32 {
    padding-top: 8rem !important;
}

.py-24 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-32 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

.py-40 {
    padding-top: 10rem !important;
    padding-bottom: 10rem !important;
}

.gap-12 {
    gap: 3rem !important;
}

.gap-16 {
    gap: 4rem !important;
}

.g-4 {
    gap: 1rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-3xl {
    border-radius: 1.5rem !important;
}


.text-xl {
    font-size: 1.25rem;
}

.text-5xl {
    font-size: 3rem !important;
}

.bg-background {
    background-color: #ffffff !important;
}



.text-sm {
    font-size: 1.75rem !important;
}

.font-semibold {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

.text-muted-foreground {
    color: #64748b !important;
}

.text-teal {
    color: #0d9488 !important;
}

.text-lg {
    font-size: 1.75rem !important;
}

.text-xs {
    font-size: 1.25rem !important;
}

.p-4 {
    padding: 1rem !important;
}

.leading-relaxed {
    line-height: 1.625 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.font-medium {
    font-weight: 500;
}

.text-white {
    color: #ffffff !important;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.transition-colors {
    transition: color 0.2s ease;
}

.hover\:text-gold:hover {
    color: #d4af37 !important;
}

.hover\:text-\[\#d4af37\]:hover {
    color: #d4af37 !important;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.max-w-2xl {
    max-width: 42rem;
}


.bg-muted {
    background-color: #f1f5f9 !important;
}

.bg-muted\/50 {
    background-color: rgba(241, 245, 249, 0.5) !important;
}

.hover\:bg-muted:hover {
    background-color: #f1f5f9 !important;
}

.duration-700 {
    transition-duration: 700ms !important;
}

.delay-200 {
    transition-delay: 200ms !important;
}

.opacity-100 {
    opacity: 1 !important;
}

.translate-x-0 {
    transform: translateX(0) !important;
}

.w-7 {
    width: 1.75rem !important;
}

.h-7 {
    height: 1.75rem !important;
}

.w-8 {
    width: 2rem !important;
}

.h-8 {
    height: 2rem !important;
}

.h-80 {
    height: 20rem !important;
}

.mt-0\.5 {
    margin-top: 0.125rem !important;
}

.mt-0 {
    margin-top: 0rem !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem !important;
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 4.5rem !important;
    }
}

/* Program Detail Page - Refined Hero Section */
.program-detail-hero {
    position: relative;
    background-color: #0c1b33;
    min-height: 45vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 80px;
    /* Space for the site header */
}

.program-detail-hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsl(210 50% 15%) 0%, hsl(210 50% 23% / 0.7) 50%, transparent 100%);
    z-index: 2;
}

.dark .hero-overlay {
    background: linear-gradient(to top, hsl(210 45% 8%) 0%, hsl(210 45% 12% / 0.8) 50%, transparent 100%);
}

.program-detail-hero .container {
    padding-bottom: 2.5rem;
    position: relative;
    z-index: 10;
}

.program-detail-hero h1 {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white !important;
    margin-top: 0.5rem;
}

.breadcrumb-wrapper a {
    text-decoration: none !important;
}

.breadcrumb-wrapper span {
    display: inline-block;
}

/* .breadcrumb-wrapper {
    margin-bottom: 2rem;
} */

.cycle-age-badge-container {
    background: rgba(212, 175, 55, 0.2);
    padding: 2px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 12px;
}

.cycle-age-badge {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background-color: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Feature Cards & Other program detail styles */
/* Consolidated into global feature-card */


.subject-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #020817 !important;
    margin-bottom: 0 !important;
}

.dark .subject-title {
    color: #f8fafc !important;
}

.hour-badge {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    background: transparent;
    color: #64748b;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.dark .hour-badge {
    border-color: #334155;
    color: #94a3b8;
}

/* FAQ Accordion */
.modern-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.dark .accordion-item {
    border-color: #334155;
}

.accordion-header {
    width: 100%;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    color: var(--foreground);
    font-size: 1.25rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #64748b;
}

.dark .accordion-content {
    color: #94a3b8;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.accordion-header .chevron {
    transition: transform 0.3s ease;
}

.accordion-item.active .chevron {
    transform: rotate(180deg);
}

/* .gradient-navy {
    background: linear-gradient(135deg, #0c1b33 0%, #1a365d 100%);
} */



/* Refined Hero Utilities */
.icon-container-glass {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

.w-14 {
    width: 3.5rem !important;
}

.h-14 {
    height: 3.5rem !important;
}

.tracking-\[0\.1em\] {
    letter-spacing: 0.1em !important;
}

.gap-1 {
    gap: 0.25rem !important;
}

.op-70 {
    opacity: 0.7 !important;
}



/* Ensure breadcrumbs in hero are never white-boxed */
.aph-breadcrumb-box {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.program-page .nav-link-modern,
body.program-page .header-nav-wrapper .text-white,
body.program-page .aph-breadcrumb-box .text-white {
    color: white !important;
}

/* Premium Curriculum Cards */
.curriculum-card {
    background-color: #ffffff !important;
    border: 1px solid hsl(var(--border) / 0.7) !important;
    border-radius: 1rem !important;
    padding: 1.5rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.curriculum-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: hsl(var(--gold) / 0.5) !important;
}

.dark .curriculum-card {
    background-color: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .curriculum-card:hover {
    background-color: hsl(var(--card) / 0.9) !important;
}

/* Blog & News Specific Styles */
.blog-card {
    background-color: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    text-decoration: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: hsl(var(--teal) / 0.3) !important;
}

.blog-card-image-wrapper {
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    position: relative !important;
}

.blog-card-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05) !important;
}

.blog-card-content {
    padding: 1.5rem !important;
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.blog-badge {
    display: inline-flex !important;
    padding: 0.5rem 1.25rem !important;
    background-color: hsl(var(--teal) / 0.1) !important;
    color: hsl(var(--teal)) !important;
    border-radius: 9999px !important;
    font-size: 1.25rem !important;
    font-weight: 500 !important;
}

.blog-date {
    display: flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    font-size: 1.25rem !important;
    color: #64748b !important;
}

.blog-card-title {
    font-size: 1.875rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 1rem !important;
    margin-top: 1.5rem !important;
    line-height: 1.3 !important;
    transition: color 0.2s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.blog-card:hover .blog-card-title {
    color: hsl(var(--teal)) !important;
}

.blog-card-excerpt {
    font-size: 1.5rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.blog-card-more {
    margin-top: auto !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: hsl(var(--gold)) !important;
}

.blog-card:hover .blog-card-more {
    text-decoration: underline !important;
}

/* Article View Styles */
.article-hero {
    aspect-ratio: 21 / 9 !important;
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
}

@media (max-width: 768px) {
    .article-hero {
        aspect-ratio: 16 / 9 !important;
    }
}

.article-hero-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.article-hero-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 100%) !important;
}

.article-container {
    /* max-width: 75rem !important; */
    margin: -5rem 10rem 6rem !important;
    padding: 0 1.5rem !important;
    position: relative !important;
    z-index: 10 !important;
}

.article-card {
    background-color: hsl(var(--card)) !important;
    border: 1px solid hsl(var(--border)) !important;
    border-radius: 1rem !important;
    padding: 2rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

@media (min-width: 768px) {
    .article-card {
        padding: 3rem !important;
    }
}

.article-content {
    font-size: 1.25rem !important;
    line-height: 1.75 !important;
    color: rgba(15, 23, 42, 0.8) !important;
}

.dark .article-content {
    color: rgba(255, 255, 255, 0.8) !important;
}

.back-to-blog {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.625rem !important;
    font-size: 1.45rem !important;
    /* font-weight: 500 !important; */
    color: #64748b !important;
    margin-bottom: 2rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.back-to-blog:hover {
    color: hsl(var(--foreground)) !important;
}

/* Modern Breadcrumb Utilities */
.text-white\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.text-white\/70 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.text-white\/90 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.hover\:text-white:hover {
    color: #ffffff !important;
}

.hover\:text-teal:hover {
    color: hsl(var(--teal)) !important;
}

.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.gap-1\.5 {
    gap: 0.375rem !important;
}

.text-muted-foreground {
    color: hsl(var(--muted-foreground)) !important;
}

.text-white {
    color: #ffffff !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

.text-2xl {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

.text-3xl {
    font-size: 1.875rem !important;
    line-height: 2.25rem !important;
}

@media (min-width: 768px) {
    .md\:text-3xl {
        font-size: 1.875rem !important;
        line-height: 2.25rem !important;
    }
}

.text-4xl {
    font-size: 2.5rem !important;
    line-height: 2.75rem !important;
    font-weight: 900 !important;
}

/* .text-5xl {
    font-size: 3rem !important;
    line-height: 1 !important;
} */

@media (min-width: 768px) {
    .md\:text-4xl {
        font-size: 2.5rem !important;
        line-height: 2.75rem !important;
    }

    /* .md\:text-5xl {
        font-size: 3.5rem !important;
        line-height: 1 !important;
    } */
}

.text-6xl {
    font-size: 3.75rem !important;
    line-height: 1 !important;
}

.text-7xl {
    font-size: 4.5rem !important;
    line-height: 1 !important;
}

@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem !important;
        line-height: 1 !important;
    }

    .md\:text-7xl {
        font-size: 4.5rem !important;
        line-height: 1.1 !important;
    }
}

/* Events & Gallery Styles */
.event-card {
    background: white;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: hsl(var(--teal) / 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.event-card-image-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.event-card-image {
    width: 100%;
    height: 100%;
    object-cover: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-card-image {
    transform: scale(1.05);
}

.event-date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem 0.8rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 3.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.event-date-badge .day {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.event-date-badge .month {
    font-size: 0.7rem;
    font-weight: 600;
    color: hsl(var(--teal));
    margin-top: 2px;
}

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

.event-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--teal));
    background: hsl(var(--teal) / 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    width: fit-content;
    margin-bottom: 1rem;
}

.event-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.event-card:hover .event-card-title {
    color: hsl(var(--teal));
}

/* ==========================================================================
   ULTRA-PREMIUM ADMISSION FORM - TAILWIND UTILITY BRIDGE
   ========================================================================== */

/* Base resets for admission */
.admission-form-area {
    font-family: var(--sans-font);
    background-color: var(--slate-50);
    min-height: 100vh;
    padding: 4rem 0;
}

/* Layout Utilities */
.flex {
    display: flex !important;
}

.items-center {
    align-items: center !important;
}

.justify-center {
    justify-content: center !important;
}

.justify-between {
    justify-content: space-between !important;
}

.justify-end {
    justify-content: flex-end !important;
}

.flex-col {
    flex-direction: column !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

/* Grid Utilities */
.grid {
    display: grid !important;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Typography Utilities */

/* .text-base {
    font-size: 1rem !important;
}

.text-lg {
    font-size: 1.125rem !important;
}

.text-xl {
    font-size: 1.25rem !important;
}

.text-2xl {
    font-size: 1.5rem !important;
}

.text-3xl {
    font-size: 1.875rem !important;
} */

/* Width Utilities */
.max-w-2xl {
    max-width: 42rem !important;
}

.max-w-4xl {
    max-width: 56rem !important;
}

.max-w-6xl {
    max-width: 72rem !important;
}

.w-full {
    width: 100% !important;
}

.w-12 {
    width: 3rem !important;
}

.h-12 {
    height: 3rem !important;
}

.w-16 {
    width: 4rem !important;
}

.h-16 {
    height: 4rem !important;
}

/* Padding Utilities */
.px-3 {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.pt-0 {
    padding-top: 0 !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.gap-8 {
    gap: 2rem !important;
}

.w-full {
    width: 100% !important;
}

.h-0\.5 {
    height: 2px !important;
}

.mx-4 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-12 {
    margin-bottom: 3rem !important;
}

.mt-12 {
    margin-top: 3rem !important;
}

.p-8 {
    padding: 2rem !important;
}

@media (min-width: 640px) {
    .sm\:p-12 {
        padding: 3rem !important;
    }
}

.px-4 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.block {
    display: block !important;
}

.hidden {
    display: none !important;
}

@media (min-width: 640px) {
    .sm\:inline {
        display: inline !important;
    }

    .sm\:flex {
        display: flex !important;
    }

    .sm\:justify-between {
        justify-content: space-between !important;
    }
}

/* Color & Text Utilities */
.bg-white {
    background-color: white !important;
}

.bg-gold {
    background-color: var(--gold) !important;
    color: hsl(var(--navy)) !important;
}

.bg-teal {
    background-color: var(--teal) !important;
}

.bg-slate-100 {
    background-color: var(--slate-100) !important;
}

.bg-slate-50 {
    background-color: var(--slate-50) !important;
}

.text-white {
    color: white !important;
}

.text-slate-400 {
    color: var(--slate-400) !important;
}

.text-slate-600 {
    color: var(--slate-600) !important;
}

.text-slate-700 {
    color: var(--slate-700) !important;
}

.text-slate-900 {
    color: var(--slate-900) !important;
}

.text-teal-600 {
    color: var(--teal) !important;
}

.text-red-500 {
    color: #ef4444 !important;
}

.text-danger {
    color: #ef4444 !important;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}



.font-semibold {
    font-weight: 600 !important;
}

.font-medium {
    font-weight: 500 !important;
}

.font-bold {
    font-weight: 700 !important;
}

/* Border & Shadow Utilities */
.rounded-3xl {
    border-radius: 1.5rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.border {
    border: 1px solid var(--slate-200) !important;
}

.border-slate-100 {
    border-color: var(--slate-100) !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* Spacing Utilities */
.space-y-6> :not([hidden])~ :not([hidden]) {
    margin-top: 3.5rem !important;
}

/* Stepper Component */
.btn-circle {
    width: 3rem !important;
    height: 3rem !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    transition: all 0.4s ease;
    border: none !important;
    text-decoration: none !important;
}

.stepwizard-step {
    position: relative;
}

.connector {
    background-color: var(--slate-100);
    transition: background-color 0.4s ease;
}

.btn-circle svg {
    display: none;
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
    stroke-width: 3;
}

.btn-circle.completed svg {
    display: block !important;
}

.btn-circle.completed .step-num {
    display: none !important;
}

.bg-gold .step-num {
    color: hsl(var(--navy)) !important;

}


/* Admission Components */
.admission-step-title {
    font-family: var(--serif-font);
    font-size: 1.875rem !important;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 2.5rem;
}

.admission-input-premium {
    background-color: var(--slate-50) !important;
    border: 1px solid var(--slate-200) !important;
    border-radius: 0.75rem !important;
    height: 3.5rem !important;
    padding: 0 1.25rem !important;
    transition: all 0.2s ease;
    width: 100% !important;
    font-size: 1rem !important;
}

.admission-input-premium:focus {
    background-color: white !important;
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 4px rgba(45, 155, 155, 0.1) !important;
    outline: none !important;
}

textarea.admission-input-premium {
    height: auto !important;
    padding: 1rem 1.25rem !important;
}

/* Custom Radio Group */
.admission-radio-group {
    background: var(--slate-50);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-100);
}

.admission-radio-group input[type="radio"] {
    accent-color: var(--teal) !important;
    width: 1.25rem;
    height: 1.25rem;
}

/* Action Buttons */
.btn-suivant,
.btn-submit {
    background-color: var(--gold) !important;
    color: white !important;
    border-radius: 9999px !important;
    height: 3.5rem !important;
    padding: 0 2.5rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    border: none !important;
    cursor: pointer !important;
}

.btn-suivant:hover {
    background-color: var(--gold-hover) !important;
}

.btn-precedent {
    background-color: white !important;
    border: 1px solid var(--slate-200) !important;
    color: var(--slate-600) !important;
    border-radius: 9999px !important;
    height: 3.5rem !important;
    padding: 0 2rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
}

/* Success Screen */
#admission-success {
    text-align: center;
    padding: 4rem 2rem;
}

.success-icon-container {
    width: 6rem;
    height: 6rem;
    background: #e6f4f1 !important;
    /* Soft teal background from capture */
    color: #2d9b9b !important;
    /* Brand teal for icon */
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon-container svg {
    width: 3rem;
    height: 3rem;
    color: var(--teal);
}

.success-title {
    font-family: var(--serif-font);
    font-size: 2.8rem !important;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 1rem;
}

.success-message {
    color: var(--slate-600);
    font-size: 1.25rem;
}

/* Datepicker Fix */
.datepicker {
    border-radius: 1rem !important;
    padding: 1rem !important;
    border: 1px solid var(--slate-100) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Global Admission Page Layout */
.admission-page-wrapper {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-top: 4rem;
    padding-bottom: 6rem;
}

.admission-form-card {
    background: white !important;
    border-radius: 1.5rem !important;
    /* 24px */
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    padding: 3rem !important;
    max-width: 800px;
    margin: 0 auto;
}

/* Typography refinements */
.admission-step-title {
    font-family: var(--serif-font);
    font-size: 1.875rem;
    /* Larger title */
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

/* Field labels */
.admission-field label {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

/* Stepper Connection Logic */
.connector.bg-teal {
    background: var(--teal) !important;
    height: 2px !important;
}

/* .btn-circle.completed {
    background-color: var(--teal) !important;
    border-color: var(--teal) !important;
} */

/* .success-title {
    color: #0f172a !important;
    margin-top: 1rem;
} */

/* Custom Checkbox/Radio Container spacing */
/* .admission-radio-group {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f1f5f9;
} */

/* Button hover effects */
.btn-suivant:active,
.btn-precedent:active {
    transform: scale(0.98);
}

/* Custom Radio Buttons */
.admission-radio-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin: 0;
}

.admission-radio-group input[type="radio"]:checked {
    border-color: var(--teal);
}

.admission-radio-group input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.625rem;
    height: 0.625rem;
    background-color: var(--teal);
    border-radius: 9999px;
}

/* Custom Select Chevron */
select.admission-input-premium {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem !important;
}

/* Date Input Icon */
input.date2.admission-input-premium {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem !important;
}

/* Animations & Shadows */
.admission-form-card {
    transition: box-shadow 0.3s ease;
}

.admission-form-card:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}

.setup-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Required Indicator */
.text-red-500 {
    color: #f43f5e !important;
}

/* Error States */
.has-error input.admission-input-premium,
.has-error select.admission-input-premium,
.has-error textarea.admission-input-premium {
    border-color: #f43f5e !important;
    background-color: #fff1f2 !important;
}

.has-error label {
    color: #e11d48 !important;
}

.text-danger {
    color: #e11d48 !important;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-card-excerpt {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.event-card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--teal));
    margin-top: auto;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-zoom {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    padding: 0.5rem;
    border-radius: 0.75rem;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-zoom {
    transform: scale(1);
    opacity: 1;
}

.text-teal-accent {
    color: #5eead4 !important;
}

/* Horizontal Event Cards Utility & Styles - Final Parity Refinement */
.text-gold {
    color: #f59e0b !important;
}

/* Gold-500 equivalent */
.text-teal {
    color: #0d9488 !important;
}

/* Teal-600 equivalent */
.bg-teal\/10 {
    background-color: rgba(13, 148, 136, 0.1) !important;
}

.bg-card {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
}

.bg-background {
    background-color: #f8fafc !important;
}

/* .text-foreground {
    color: #0f172a !important;
} */

.w-32 {
    width: 8rem !important;
}

.event-card-wrapper {
    background-color: #ffffff !important;
    border-radius: 1rem !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1) !important;
}

.event-card-wrapper:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    border-color: #0d9488 !important;
}

/* .gradient-navy {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
} */

.event-card-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.event-card-excerpt {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.35rem !important;
    color: #64748b !important;
    line-height: 1.6 !important;
}

/* Premium Generic Page Form Styling (Contact Us) */
.premium-form-wrapper .form-group {
    margin-bottom: 24px !important;
}

.premium-form-wrapper label {
    font-weight: 500 !important;
    font-size: 1.5rem !important;
    margin-bottom: 8px !important;
    color: hsl(var(--foreground)) !important;
}

.premium-form-wrapper .form-control {
    height: 40px !important;
    border-radius: 12px !important;
    border: 1px solid hsl(var(--border)) !important;
    background: #f8fafc !important;
    padding: 10px 16px !important;
    font-size: 15px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
}

.premium-form-wrapper .form-control:focus {
    border-color: hsl(var(--teal)) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px hsl(var(--teal) / 0.1) !important;
}

.premium-form-wrapper textarea.form-control {
    height: auto !important;
    min-height: 120px !important;
}

/* .premium-form-wrapper .btn-primary,
.premium-form-wrapper button[type="submit"] {
    background: hsl(var(--navy)) !important;
    color: white !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.15) !important;
} */

/* .premium-form-wrapper .btn-primary:hover,
.premium-form-wrapper button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.25) !important;
    background: hsl(var(--teal)) !important;
} */

.premium-card {
    background: #ffffff !important;
    border-radius: 24px !important;
    border: 1px solid #f1f5f9 !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    display: flow-root !important;
    /* Clears floats */
}

@media (max-width: 768px) {
    .premium-card {
        padding: 24px !important;
    }
}

.event-date-number {
    font-family: 'Inter', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 700 !important;
}

.event-date-month {
    font-family: 'Inter', sans-serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
}

/* Tailwind-style Utilities Refined */
/* .text-xs {
    font-size: 0.75rem !important;
    line-height: 1rem !important;
}

.text-sm {
    font-size: 0.875rem !important;
    line-height: 1.25rem !important;
} */

/* .text-base {
    font-size: 1rem !important;
    line-height: 1.5rem !important;
} */

/* .text-lg {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
} */

.font-semibold {
    font-weight: 600 !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.tracking-wider {
    letter-spacing: 0.05em !important;
}

.inline-block {
    display: inline-block !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.border {
    border: 1px solid #e2e8f0 !important;
}

.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.transition-all {
    transition-property: all !important;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-duration: 150ms !important;
}

.duration-500 {
    transition-duration: 500ms !important;
}

.opacity-100 {
    opacity: 1 !important;
}

.translate-y-0 {
    transform: translateY(0) !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.p-5 {
    padding: 1.25rem !important;
}

.px-2\.5 {
    padding-left: 0.625rem !important;
    padding-right: 0.625rem !important;
}

.py-1 {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

.mb-1 {
    margin-bottom: 0.25rem !important;
}

.mb-2 {
    margin-bottom: 0.5rem !important;
}

.mb-16 {
    margin-bottom: 4rem !important;
}

.mt-2 {
    margin-top: 0.5rem !important;
}

.aspect-\[4\/3\] {
    aspect-ratio: 4 / 3 !important;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Grid Utilities */
.grid {
    display: grid !important;
}

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

.gap-6 {
    gap: 1.5rem !important;
}

.gap-8 {
    gap: 2rem !important;
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

.text-white\/80 {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Gallery Redesign - Final Parity Refinement */
.gallery-filter-btn {
    padding: 0.75rem 1.5rem !important;
    border-radius: 9999px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.gallery-filter-btn:hover {
    border-color: #0d9488 !important;
    color: #0d9488 !important;
}

.gallery-filter-btn.active {
    background: #0d9488 !important;
    color: #ffffff !important;
    border-color: #0d9488 !important;
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.25) !important;
}

.gallery-overlay-refined {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, transparent 60%) !important;
    opacity: 0 !important;
    transition: all 0.5s ease-in-out !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 2rem !important;
    backdrop-filter: blur(0px) !important;
}

.gallery-item:hover .gallery-overlay-refined {
    opacity: 1 !important;
    backdrop-filter: blur(8px) !important;
}

.gallery-content-refined {
    transform: translateY(20px) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-item:hover .gallery-content-refined {
    transform: translateY(0) !important;
}

.gallery-zoom-refined {
    position: absolute !important;
    top: 1.5rem !important;
    right: 1.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    padding: 0.75rem !important;
    border-radius: 1rem !important;
    transform: scale(0.5) rotate(-45deg) !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.gallery-item:hover .gallery-zoom-refined {
    transform: scale(1) rotate(0) !important;
    opacity: 1 !important;
}


/* Premium Gallery Enhancements */
@keyframes kenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.ken-burns {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

.glass-premium {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.glass-card-refined {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

.dark .glass-card-refined {
    background: rgba(30, 41, 59, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.gallery-card-lift {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gallery-card-lift:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25) !important;
}

.inner-glow {
    position: relative;
    overflow: hidden;
}

.inner-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.inner-glow:hover::after {
    opacity: 1;
}

/* Ultra-Premium Design System Extensions */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) skewX(-20deg);
    }

    100% {
        transform: translateX(200%) skewX(-20deg);
    }
}

.shimmer-btn {
    position: relative;
    overflow: hidden;
}

.shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    animation: shimmer 3s infinite;
}

.bg-stamp-text {
    position: absolute;
    font-size: 15rem;
    font-weight: 900;
    color: white;
    opacity: 0.05;
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
    z-index: 0;
    font-family: serif;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

/* Grid Utilities for School Supplies */
.grid {
    display: grid;
}

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

.gap-x-12 {
    column-gap: 3rem;
}

.gap-y-16 {
    row-gap: 4rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.split-overlap {
    margin-left: -80px;
}

@media (max-width: 1024px) {
    .split-overlap {
        margin-left: 0;
    }
}

.decorative-line {
    height: 1px;
    background: linear-gradient(90deg, hsl(var(--gold)), transparent);
    width: 100%;
}

.marker-label {
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: hsl(var(--gold));
    opacity: 0.8;
}

.glass-diamond {
    background: hsla(0, 0%, 100%, 0.05);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid hsla(0, 0%, 100%, 0.1);
    box-shadow:
        0 4px 24px -1px rgba(0, 0, 0, 0.2),
        inset 0 0 0 1px hsla(0, 0%, 100%, 0.1);
}

/* Used Utilities for Ultra-Premium Design */
.min-h-\[75vh\] {
    min-height: 75vh !important;
}

.pt-20 {
    padding-top: 5rem !important;
}

.shadow-3xl {
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.5) !important;
}

.text-gold\/80 {
    color: hsla(var(--gold), 0.8) !important;
}

.text-white\/60 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.font-serif {
    font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !important;
}

.leading-\[1\.1\] {
    line-height: 1.1 !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.px-10 {
    padding-left: 2.5rem !important;
    padding-right: 2.5rem !important;
}

.py-4 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.tracking-widest {
    letter-spacing: 0.1em !important;
}

.uppercase {
    text-transform: uppercase !important;
}

/* .text-sm {
    font-size: 0.875rem !important;
} */

@media (min-width: 1024px) {
    .lg\:flex-row {
        flex-direction: row !important;
    }

    .lg\:w-1\/2 {
        width: 50% !important;
    }

    .lg\:w-7\/12 {
        width: 58.333333% !important;
    }

    .lg\:p-20 {
        padding: 5rem !important;
    }

    .lg\:p-16 {
        padding: 4rem !important;
    }

    .lg\:ml-12 {
        margin-left: 3rem !important;
    }

    .lg\:-ml-32 {
        margin-left: -8rem !important;
    }

    .lg\:my-12 {
        margin-top: 3rem !important;
        margin-bottom: 3rem !important;
    }

    .lg\:rounded-\[3rem\] {
        border-radius: 3rem !important;
    }

    .lg\:pt-0 {
        padding-top: 0 !important;
    }
}

.flex {
    display: flex !important;
}

.flex-col {
    flex-direction: column !important;
}

.relative {
    position: relative !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.z-20 {
    z-index: 20 !important;
}

.z-30 {
    z-index: 30 !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.object-cover {
    object-fit: cover !important;
}

.p-8 {
    padding: 2rem !important;
}

.p-10 {
    padding: 2.5rem !important;
}

.rounded-\[4rem\] {
    border-radius: 4rem !important;
}


/* Specialized Shadow for Ultra-Premium Image */
.shadow-\[0_0_100px_rgba\(0\2c 0\2c 0\2c 0\.5\)\] {
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5) !important;
}

/* Shadow for the Visionner button with gold glow */
.shadow-\[0_20px_40px_rgba\(191\2c 155\2c 48\2c 0\.3\)\] {
    box-shadow: 0 20px 40px rgba(191, 155, 48, 0.3) !important;
}

/* Final Layout & Visual Utilities */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.backdrop-blur-md {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
}

.backdrop-blur-2xl {
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
}

/* Spacing and Visibility Utilities */
.mb-10 {
    margin-bottom: 2.5rem !important;
}

.mb-8 {
    margin-bottom: 2rem !important;
}

.mb-6 {
    margin-bottom: 1.5rem !important;
}

.gap-1\.5 {
    gap: 0.375rem !important;
}

.gap-5 {
    gap: 1.25rem !important;
}

.gap-4 {
    gap: 1rem !important;
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.border-white\/30 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.font-light {
    font-weight: 300 !important;
}

.tracking-wide {
    letter-spacing: 0.025em !important;
}

.tracking-tight {
    letter-spacing: -0.025em !important;
}

.leading-\[1\.1\] {
    line-height: 1.1 !important;
}

.z-30 {
    z-index: 30 !important;
}

/* ==========================================================================
   ADMISSION PAGE STYLES
   ========================================================================== */

/* ===== Admission Hero ===== */
.admission-hero {
    position: relative;
    background: linear-gradient(135deg, #0f2b3c 0%, #1a6b6a 50%, #2a8a89 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.admission-hero::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: #f1f5f9;
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 5;
}

/* ===== Form Area ===== */
.admission-form-area {
    background-color: hsl(var(--background));
    padding: 40px 0 80px;
}

/* ===== Step Wizard ===== */
.stepwizard {
    margin-bottom: 32px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.stepwizard-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    max-width: 500px !important;
    margin: 0 auto !important;
}

.stepwizard-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: calc(50% + 10px);
    width: calc(100% - 130px);
    height: 1px;
    background: #e2e8f0;
    z-index: 0;
}

.stepwizard-step .btn-circle {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    z-index: 1;
    border: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: inherit;
    /* Allow classes like text-white to work */
}

.stepwizard-step .btn-circle.text-white {
    color: #ffffff !important;
}


.stepwizard-step .btn-primary {
    background: #f3a830 !important;
    color: #1e3a5f !important;
    box-shadow: 0 4px 12px rgba(243, 168, 48, 0.25) !important;
}

.stepwizard-step .btn-default {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
}

.bg-teal {
    background-color: #2dd4bf !important;
}

.connector.bg-teal {
    background-color: #2dd4bf !important;
}

.btn-circle.completed svg {
    display: block !important;
    width: 24px;
    height: 24px;
    color: white;
}

.btn-circle:not(.completed) svg {
    display: none !important;
}


.stepwizard-step p {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #1e3a5f;
    opacity: 0.6;
}

.stepwizard-step.active p {
    opacity: 1;
    font-weight: 600;
}

/* ===== Form Card ===== */
.admission-form-card {
    display: block;
}

.admission-step-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.admission-step-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

/* ===== Theme Utilities ===== */
.bg-background {
    background-color: #f8fafc !important;
}

.bg-card {
    background-color: #ffffff !important;
}

.bg-muted {
    background-color: #f1f5f9 !important;
}

.bg-muted\/30 {
    background-color: rgba(241, 245, 249, 0.3) !important;
}

.bg-gold\/10 {
    background-color: rgba(212, 175, 55, 0.1) !important;
}

.text-foreground {
    color: #0f172a !important;
}

.text-muted-foreground {
    color: #64748b !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.rounded-2xl {
    border-radius: 1rem !important;
}

.rounded-xl {
    border-radius: 0.75rem !important;
}

.rounded-md {
    border-radius: 0.375rem !important;
}

.border {
    border: 1px solid #e2e8f0 !important;
}

/* ===== Sizing & Utilities ===== */
.w-10 {
    width: 2.5rem !important;
}

.h-10 {
    height: 2.5rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

.bg-gold {
    background-color: #d4af37 !important;
    color: hsl(var(--navy)) !important;
}

.bg-gold\/90:hover {
    background-color: rgba(212, 175, 55, 0.9) !important;
}

.text-primary {
    color: #1e3a5f !important;
}

.border-input {
    border-color: #e2e8f0 !important;
}

.ring-offset-background {
    --ring-offset-width: 2px;
}

.focus-visible\:outline-none:focus-visible {
    outline: 2px solid transparent;
    outline-offset: 2px;
}



/* ===== Fields Grid ===== */
.admission-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

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

.admission-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 6px;
}

.admission-req {
    color: #ef4444;
    font-weight: 700;
}

.admission-input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.admission-input:focus {
    border-color: #f3a830;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(243, 168, 48, 0.08);
}

.admission-textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===== Radio Group ===== */
.admission-radio-group {
    margin-bottom: 24px;
}

.admission-radio-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 10px;
}

.admission-radio-options {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.admission-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #475569;
}

.admission-radio:has(input:checked) {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    color: #1e293b;
}

.admission-radio input[type="radio"] {
    accent-color: #d4af37;
}

/* ===== Action Buttons ===== */
.admission-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.admission-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 36px;
    background: #f3a830 !important;
    color: #1e3a5f !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(243, 168, 48, 0.2);
}

.admission-btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(243, 168, 48, 0.3);
}

.admission-btn-prev {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent !important;
    color: #1e3a5f !important;
    border: 2px solid #1e3a5f !important;
    border-radius: 50px !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admission-btn-prev:hover {
    background: #1e3a5f !important;
    color: #fff !important;
}

.admission-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #d4af37 !important;
    color: #1e293b !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.admission-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

/* ===== Admission Responsive ===== */
@media (max-width: 768px) {
    .admission-hero {
        padding: 60px 0 40px;
    }

    .admission-fields-grid {
        grid-template-columns: 1fr;
    }

    .admission-fields-2col {
        grid-template-columns: 1fr;
    }

    .admission-step-content {
        padding: 24px;
        border-radius: 16px;
    }

    .admission-actions {
        flex-direction: column;
        gap: 12px;
    }

    .admission-btn-next,
    .admission-btn-prev,
    .admission-btn-submit {
        width: 100%;
        justify-content: center;
    }

    .stepwizard-step {
        padding: 0 12px;
    }
}

/* ===== Premium Admission Form Upgrade Utilities ===== */
.max-w-2xl {
    max-width: 42rem !important;
}

.space-y-5> :not([hidden])~ :not([hidden]) {
    margin-top: 1.25rem !important;
}

.leading-none {
    line-height: 1 !important;
}

.border-input {
    border-color: hsl(var(--border)) !important;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

/* Stepper & Connector */
.stepwizard-step {
    position: relative;
}

.connector {
    position: absolute;
    top: 20px;
    left: 100%;
    width: 100%;
    z-index: -1;
}

/* Input States */
.focus-visible\:ring-ring:focus-visible {
    outline: 2px solid hsl(var(--gold)) !important;
    outline-offset: 2px !important;
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed !important;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5 !important;
}

.placeholder\:text-muted-foreground::placeholder {
    color: hsl(var(--muted-foreground)) !important;
}

/* Custom Admission Field Error State */
.admission-field.has-error input,
.admission-field.has-error select,
.admission-field.has-error textarea {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

.admission-field.has-error label {
    color: #ef4444 !important;
}

/* Radio styling improvements */
input[type="radio"] {
    accent-color: #2d9b9b !important;
}

/* Premium Radio Styling for Admission Form */
.admission-radio-group input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    border: 2px solid #cbd5e1 !important;
    /* border-slate-300 */
    border-radius: 50% !important;
    outline: none !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background-color: white !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.admission-radio-group input[type="radio"]:checked {
    border-color: #2d9b9b !important;
    background-color: white !important;
}

.admission-radio-group input[type="radio"]:checked::after {
    content: '' !important;
    width: 10px !important;
    height: 10px !important;
    background-color: #2d9b9b !important;
    border-radius: 50% !important;
    display: block !important;
}

.admission-radio-group input[type="radio"]:focus-visible {
    box-shadow: 0 0 0 2px white, 0 0 0 4px rgba(45, 155, 155, 0.2) !important;
}

.admission-radio-group label:hover input[type="radio"] {
    border-color: #2d9b9b !important;
}

/* Premium Selection Cards */
.admission-selection-card {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 8px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: #f8fafc !important;
    position: relative !important;
    min-height: 42px !important;
}

.admission-selection-card:hover {
    border-color: #2d9b9b !important;
    background-color: rgba(45, 155, 155, 0.02) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

.admission-selection-card.active {
    border-color: #2d9b9b !important;
    border-width: 2px !important;
    background-color: white !important;
    box-shadow: 0 6px 15px rgba(45, 155, 155, 0.1) !important;
}

.admission-selection-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.admission-selection-card .card-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    transition: color 0.2s ease !important;
}


.admission-selection-card.active .card-label {
    color: #2d9b9b !important;
}


/* ===== Admission Form Modern UI Components ===== */

.admission-input-premium {
    background-color: #f8fafc !important;
    /* bg-slate-50 */
    border: 1px solid #e2e8f0 !important;
    /* border-slate-200 */
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    /* text-slate-800 */
    transition: all 0.2s ease !important;
    line-height: 1.2 !important;
}

.admission-input-premium:not(textarea) {
    height: 40px !important;
}

select.admission-input-premium {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 40px !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-down'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    font-size: 14px !important;
}


/* ===== Custom Premium Select (Shadcn Style) ===== */
.admission-custom-select {
    position: relative !important;
    width: 100% !important;
}

.admission-select-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    height: 40px !important;
    padding: 0 16px !important;
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.admission-select-trigger:focus {
    background-color: white !important;
    border-color: #2d9b9b !important;
    box-shadow: 0 0 0 4px rgba(45, 155, 155, 0.1) !important;
    outline: none !important;
}

.admission-select-options {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    width: 100% !important;
    max-height: 240px !important;
    background-color: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    z-index: 999 !important;
    overflow-y: auto !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 6px !important;
    box-sizing: border-box !important;
}

.admission-custom-select.open .admission-select-options {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.select-option-item {
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #475569 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.select-option-item:hover {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
}

.select-option-item.selected {
    background-color: #2d9b9b !important;
    color: white !important;
    font-weight: 600 !important;
}

/* Scrollbar styling for dropdown */
.admission-select-options::-webkit-scrollbar {
    width: 6px !important;
}

.admission-select-options::-webkit-scrollbar-track {
    background: transparent !important;
}

.admission-select-options::-webkit-scrollbar-thumb {
    background: #e2e8f0 !important;
    border-radius: 10px !important;
}

.admission-select-options::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1 !important;
}


.admission-input-premium:focus {
    background-color: white !important;
    border-color: #2d9b9b !important;
    box-shadow: 0 0 0 4px rgba(45, 155, 155, 0.1) !important;
    outline: none !important;
}

.admission-step-title {
    font-family: "DM Serif Display", serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    ;

    /* text-slate-900 */
    margin-bottom: 32px !important;
    margin-top: 2px !important;
}

.btn-suivant,
.submitBtn,
.premium-form-wrapper .btn-custom {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: hsl(var(--gold)) !important;
    color: hsl(var(--navy)) !important;
    padding: 0 24px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px hsla(var(--gold), 0.2) !important;
}

.btn-suivant:hover,
.submitBtn:hover {
    background-color: hsl(37 78% 50%) !important;
    /* Slightly darker gold */
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px hsla(var(--gold), 0.3) !important;
}

.btn-precedent {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background-color: white !important;
    color: hsl(var(--navy)) !important;
    padding: 0 24px !important;
    height: 40px !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    border: 1px solid hsl(var(--border)) !important;
    cursor: pointer !important;
}

.btn-precedent:hover {
    background-color: hsl(var(--muted)) !important;
    color: hsl(var(--navy)) !important;
    border-color: hsl(var(--border)) !important;
}

/* ===== Success Screen ===== */
#admission-success {
    text-align: center;
    padding: 80px 40px !important;
    background: white !important;
    border-radius: 32px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05) !important;
    max-width: 600px !important;
    margin: 40px auto !important;
}





.success-message {
    font-size: 16px !important;
    color: #64748b !important;
    max-width: 450px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
}

/* ===== Phase 10: 1:1 Admission Parity (Final) ===== */

.premium-form-wrapper form {
    display: grid !important;
    gap: 20px 48px !important;
    /* Increased row-gap for better vertical distribution */
}

@media (min-width: 768px) {
    .premium-form-wrapper form {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Ensure Message & Submit span both columns */
.premium-form-wrapper form .form-group:nth-last-child(2),
.premium-form-wrapper form .form-group:last-child {
    grid-column: 1 / -1 !important;
}

.premium-form-wrapper .control-label {
    display: block !important;
    font-size: 1.5rem !important;
    /* Strict parity with admission text-2xl */
    font-weight: 500 !important;
    color: #1e3a5f !important;
    /* Admission brand navy */
    margin-bottom: 12px !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.premium-form-wrapper .form-control {
    background-color: #f8fafc !important;
    /* bg-slate-50 parity */
    border: 1px solid #e2e8f0 !important;
    /* border-slate-200 parity */
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    color: #1e293b !important;
    height: 40px !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    padding-left: 16px !important;
    /* Remove iconic padding */
    background-image: none !important;
    /* Remove icons for clean parity */
}

.premium-form-wrapper textarea.form-control {
    height: auto !important;
    min-height: 180px !important;
    padding: 16px !important;
}

.premium-form-wrapper .form-control:focus {
    background-color: white !important;
    border-color: #d4af37 !important;
    /* Match admission focus-visible gold ring */
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1) !important;
    outline: none !important;
}

/* Admission-Style Gold Submit Button */
.premium-form-wrapper .btn-custom {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background-color: hsl(var(--gold)) !important;
    color: hsl(var(--navy)) !important;
    padding: 0 24px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
    /* margin-top: 20px !important; */
}

.premium-form-wrapper .btn-custom:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45) !important;
    background: #c5a02e !important;
    /* Slightly deeper gold */
}

.premium-form-wrapper .btn-custom svg {
    width: 18px !important;
    height: 18px !important;
}

/* Staggered Entrance (Optional high-end touch remains) */
.premium-form-wrapper form .form-group {
    animation-duration: 0.6s;
}

.premium-form-wrapper form .form-group:nth-child(1) {
    animation-delay: 0.1s;
}

.premium-form-wrapper form .form-group:nth-child(2) {
    animation-delay: 0.2s;
}

.premium-form-wrapper form .form-group:nth-child(3) {
    animation-delay: 0.3s;
}

.premium-form-wrapper form .form-group:nth-child(4) {
    animation-delay: 0.4s;
}

.premium-form-wrapper form .form-group {
    margin-bottom: 0 !important;
}

/* --- Consistent Premium Admission Design --- */

.admission-tabs-container {
    max-width: 420px;
    margin: 0 auto 3.5rem;
    background: hsla(var(--muted), 0.4);
    padding: 6px;
    border-radius: 999px;
    display: flex;
    position: relative;
    border: 1px solid hsla(var(--border), 0.6);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.05);
}

.admission-tab-indicator {
    position: absolute;
    top: 6px;
    left: 6px;
    height: calc(100% - 12px);
    width: calc(50% - 6px);
    background: hsl(var(--navy));
    border-radius: 999px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}

.dark .admission-tab-indicator {
    background: hsl(var(--gold));
}

.admission-tab-trigger {
    flex: 1;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: hsla(var(--navy), 0.6);
    border-radius: 999px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
    border: none;
    background: transparent;
}

.admission-tab-trigger.active {
    color: white;
}

.dark .admission-tab-trigger.active {
    color: hsl(var(--navy));
}

.admission-tab-content {
    display: none;
}

.admission-tab-content.active {
    display: block;
}

/* Premium Card Consistency: 24px radius, soft shadow, glassmorphism */
.admission-premium-card {
    background: white;
    border: 1px solid hsla(var(--border), 0.6);
    border-radius: 24px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Mesh Gradient Underlay for Premium Cards */
.admission-premium-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, hsla(var(--gold), 0.03) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, hsla(var(--teal), 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.admission-premium-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border-color: hsla(var(--gold), 0.3);
}

.admission-premium-card:hover::before {
    opacity: 1;
}

.dark .admission-premium-card {
    background: hsla(var(--card), 0.7);
    border-color: hsla(var(--border), 0.2);
    backdrop-filter: blur(12px);
}

/* Timeline Polish: Luminous Animated Line */
.admission-timeline {
    position: relative;
    padding-left: 3rem;
    padding-top: 0.5rem;
}

.admission-timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: linear-gradient(to bottom,
            hsl(var(--gold)),
            hsl(var(--teal)),
            hsl(var(--navy)),
            transparent);
    background-size: 100% 200%;
    animation: timeline-glow 6s linear infinite;
    opacity: 0.2;
}

@keyframes timeline-glow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 200%;
    }
}

.timeline-item-premium {
    position: relative;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: white;
    border-radius: 20px;
    border: 1px solid hsla(var(--border), 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.timeline-item-premium:hover {
    transform: translateY(-8px) translateX(16px) scale(1.02);
    border-color: hsl(var(--gold));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
}

.timeline-item-premium:hover .w-10.h-10 {
    background: hsla(var(--gold), 0.1);
    color: hsl(var(--gold));
}

.dark .timeline-item-premium {
    background: hsla(var(--card), 0.4);
    border-color: hsla(var(--border), 0.2);
    backdrop-filter: blur(12px);
}

.dark .timeline-item-premium:hover {
    background: hsla(var(--card), 0.6);
    border-color: hsl(var(--gold));
}

.timeline-item-premium::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid hsl(var(--gold));
    box-shadow: 0 0 0 4px hsla(var(--gold), 0.1);
    z-index: 10;
    transition: all 0.4s ease;
}

.timeline-item-premium:hover::before {
    box-shadow: 0 0 20px hsla(var(--gold), 0.5);
}

/* Doc Cards: Selection Style + Glow */
.admission-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.admission-doc-card {
    background: white;
    border: 1.5px solid #e2e8f0;
    padding: 16px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.admission-doc-card:hover {
    border-color: hsl(var(--teal));
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 30px -10px hsla(var(--teal), 0.15);
}

.admission-doc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(var(--teal), 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.admission-doc-card:hover::after {
    opacity: 1;
}

.doc-icon-premium {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: linear-gradient(135deg, hsl(var(--gold)), #f59e0b);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 16px -4px hsla(var(--gold), 0.3);
    transition: all 0.4s ease;
}

.admission-doc-card:hover .doc-icon-premium {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 20px -5px hsla(var(--gold), 0.5);
}

.dark .admission-doc-card {
    background: hsla(var(--card), 0.4);
    border-color: hsla(var(--border), 0.2);
    backdrop-filter: blur(12px);
    box-shadow: none;
}

.dark .admission-doc-card:hover {
    background: hsla(var(--card), 0.6);
    border-color: hsl(var(--teal));
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

/* Hero Decorative Patterns */
.hero-pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-gradient-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, hsla(var(--gold), 0.15) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* --- School Supplies Modern Premium --- */

.group-item {
    transition: background-color 0.3s ease;
}

.group-item:hover {
    background-color: hsla(var(--gold), 0.03) !important;
}

.group-item .supply-dot {
    background-color: hsla(var(--gold), 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.group-item:hover .supply-dot {
    background-color: hsl(var(--gold)) !important;
    transform: scale(1.4) rotate(15deg);
    box-shadow: 0 0 12px hsla(var(--gold), 0.4);
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

.shadow-inner-sm {
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.03);
}

.group-btn {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.group-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -5px hsla(var(--navy), 0.3);
}

/* Fix for long titles in premium cards */
.admission-premium-card h3 {
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Custom shadow for Modern Premium cards */
.shadow-premium-xl {
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0, 0, 0, 0.02);
}

/* Premium CSS Crossfade Slideshow */
.infra-slideshow-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1;
    margin: 0 auto;
    border-radius: 50%;
    /* Keeps circular layout */
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.infra-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: premiumFade 20s infinite;
    transition: transform 0.8s ease-out;
}

.infra-slide:nth-child(1) {
    animation-delay: 0s;
}

.infra-slide:nth-child(2) {
    animation-delay: 4s;
}

.infra-slide:nth-child(3) {
    animation-delay: 8s;
}

.infra-slide:nth-child(4) {
    animation-delay: 12s;
}

.infra-slide:nth-child(5) {
    animation-delay: 16s;
}

.infra-image-container:hover .infra-slide {
    transform: scale(1.05);
}

@keyframes premiumFade {

    0%,
    20% {
        opacity: 1;
        z-index: 1;
    }

    25%,
    95% {
        opacity: 0;
        z-index: 0;
    }

    100% {
        opacity: 1;
        z-index: 1;
    }
}

/* =========================================================
   ARTICLE ENHANCED STYLES — Modern CMS Content Design
   ========================================================= */

/* Table of Contents */
.table-of-contents {
    background: hsl(var(--muted) / 0.4);
    border-left: 4px solid hsl(var(--teal));
    border-radius: 0 1rem 1rem 0;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.dark .table-of-contents {
    background: hsl(var(--muted) / 0.2);
    border-left-color: hsl(var(--gold));
}

.table-of-contents h3 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
}

.table-of-contents ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.table-of-contents li {
    position: relative;
    padding-left: 1.25rem;
}

.table-of-contents li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: hsl(var(--teal));
    border-radius: 50%;
}

.dark .table-of-contents li::before {
    background: hsl(var(--gold));
}

.table-of-contents a {
    color: hsl(var(--foreground)) !important;
    text-decoration: none !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    display: inline-block;
}

.table-of-contents a:hover {
    color: hsl(var(--teal)) !important;
    transform: translateX(4px);
}

.dark .table-of-contents a:hover {
    color: hsl(var(--gold)) !important;
}

/* Article Headings */
.article-content h2 {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(1.5rem, 2.5vw, 2.2rem) !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin-top: 3rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid hsl(var(--border));
    position: relative;
}

.article-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 80px;
    height: 2px;
    background: hsl(var(--gold));
    border-radius: 2px;
}

.article-content .article-step-cards .step-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 40px;
    height: 2px;
    background: hsl(var(--gold));
    border-radius: 2px;
}

html[dir="rtl"] .article-content .article-step-cards .step-content h2::after {
    left: auto;
    right: 0;
}

html[dir="rtl"] .article-content h2::after {
    left: auto;
    right: 0;
}

.article-content h3 {
    font-family: 'DM Serif Display', serif !important;
    font-size: clamp(1.25rem, 2vw, 1.5rem) !important;
    font-weight: 700 !important;
    color: hsl(var(--teal)) !important;
    margin-top: 2rem !important;
    margin-bottom: 1rem !important;
}

.dark .article-content h3 {
    color: hsl(var(--gold)) !important;
}

/* Article Links */
.article-content a {
    /* color: white !important; */
    /* text-decoration: underline !important; */
    text-decoration-color: hsl(var(--teal) / 0.3) !important;
    text-underline-offset: 3px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
}

.article-content a:hover {
    color: hsl(var(--gold)) !important;
    text-decoration-color: hsl(var(--gold) / 0.6) !important;
}

.dark .article-content a {
    color: hsl(var(--gold)) !important;
    text-decoration-color: hsl(var(--gold) / 0.3) !important;
}

.dark .article-content a:hover {
    color: hsl(var(--teal)) !important;
    text-decoration-color: hsl(var(--teal) / 0.6) !important;
}

/* Article Strong / Bold */
.article-content strong {
    color: hsl(var(--gold)) !important;
    font-weight: 700 !important;
}

.dark .article-content strong {
    color: hsl(var(--gold)) !important;
}

/* Article Lists */
.article-content ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-bottom: 1.5rem !important;
}

.article-content ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.7 !important;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 8px;
    height: 8px;
    background: hsl(var(--teal));
    border-radius: 50%;
}

.dark .article-content ul li::before {
    background: hsl(var(--gold));
}

.article-content ol {
    padding-left: 0 !important;
    list-style: none !important;
    counter-reset: article-ol;
    margin-bottom: 1.5rem !important;
}

.article-content ol li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.7 !important;
}

.article-content ol li::before {
    counter-increment: article-ol;
    content: counter(article-ol);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: hsl(var(--gold));
    color: hsl(var(--navy));
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dark .article-content ol li::before {
    background: hsl(var(--gold));
    color: hsl(var(--navy));
}

/* Article Paragraphs */
.article-content p {
    margin-bottom: 1.25rem !important;
    line-height: 1.75 !important;
}

/* Alert Boxes */
.alert-info,
.alert-warning {
    padding: 1.5rem 1.75rem;
    border-radius: 1rem;
    margin: 2rem 0;
    font-size: 1.3rem !important;
    line-height: 1.7 !important;
    position: relative;
    overflow: hidden;
}

.alert-info {
    background: hsl(var(--teal) / 0.08);
    border: 1px solid hsl(var(--teal) / 0.2);
    color: hsl(var(--foreground)) !important;
}

.dark .alert-info {
    background: hsl(var(--teal) / 0.12);
    border-color: hsl(var(--teal) / 0.25);
}

.alert-warning {
    background: hsl(var(--gold) / 0.08);
    border: 1px solid hsl(var(--gold) / 0.25);
    color: hsl(var(--foreground)) !important;
}

.dark .alert-warning {
    background: hsl(var(--gold) / 0.12);
    border-color: hsl(var(--gold) / 0.3);
}

.alert-info strong,
.alert-warning strong {
    color: hsl(var(--navy)) !important;
}

.dark .alert-info strong,
.dark .alert-warning strong {
    color: hsl(var(--gold)) !important;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, hsl(var(--navy)) 0%, #1e3a5f 100%);
    color: white !important;
    padding: 2.5rem;
    border-radius: 1.25rem;
    margin: 2.5rem 0;
    text-align: center;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, hsl(var(--gold) / 0.15), transparent 60%);
    pointer-events: none;
}

.cta-box h3 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    position: relative;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    position: relative;
}

.cta-box a {
    color: hsl(var(--gold)) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    font-weight: 600 !important;
}

.cta-box a:hover {
    color: #e9c46a !important;
}

/* =========================================================
   ARTICLE MODERN PREMIUM V2 — Glassmorphism, Timeline, Cards
   ========================================================= */

/* Two-column article layout */
.article-modern-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    /* max-width: 75rem !important; */
    margin: -5rem 10rem 6rem !important;
    padding: 0 1.5rem !important;
    position: relative;
    z-index: 10 !important;
}

.article-main-col {
    flex: 1 1 0;
    min-width: 0;
}

.article-sidebar-col {
    width: 280px;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .article-sidebar-col {
        display: none;
    }
}

/* Sticky TOC Sidebar */
.toc-sidebar {
    position: sticky;
    top: 140px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.toc-sidebar h4 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-sidebar h4 svg {
    color: hsl(var(--gold));
    width: 20px;
    height: 20px;
}

.toc-sidebar ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.toc-sidebar li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    border-radius: 0.5rem;
    font-size: 1.35rem !important;
    font-weight: 500;
    color: hsl(var(--muted-foreground)) !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.toc-sidebar li a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: hsl(var(--gold));
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.toc-sidebar li a:hover svg,
.toc-sidebar li a.active svg {
    opacity: 1;
    color: hsl(var(--gold));
}

.toc-sidebar li {
    margin-bottom: 0px;
}

.toc-sidebar li a:hover,
.toc-sidebar li a.active {
    background: hsl(var(--muted));
    color: hsl(var(--foreground)) !important;
    border-left-color: hsl(var(--gold));
}

.dark .toc-sidebar li a:hover,
.dark .toc-sidebar li a.active {
    background: hsl(var(--muted) / 0.3);
    border-left-color: hsl(var(--gold));
}

/* Section badge (numéro) */
.article-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.article-section-badge .badge-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, hsl(var(--gold)), #e9c46a);
    color: hsl(var(--navy));
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-section-badge .badge-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: hsl(var(--gold));
}

/* Lead paragraph with gold left border */
.article-lead {
    font-size: 1.35rem !important;
    line-height: 1.8 !important;
    color: hsl(var(--foreground)) !important;
    padding-left: 1.25rem;
    border-left: 3px solid hsl(var(--gold));
    margin-bottom: 1.5rem !important;
}

html[dir="rtl"] .article-lead {
    padding-left: 0;
    border-left: none;
    padding-right: 1.25rem;
    border-right: 3px solid hsl(var(--gold));
}

/* Link badge chip */
.article-content a[href*="gsaphelie"] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: hsl(var(--teal) / 0.08);
    color: hsl(var(--teal)) !important;
    padding: 0.15rem 0.6rem;
    border-radius: 0.375rem;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid hsl(var(--teal) / 0.15);
    transition: all 0.2s ease;
}

.article-content a[href*="gsaphelie"]:hover {
    background: hsl(var(--teal) / 0.15);
    border-color: hsl(var(--teal) / 0.3);
}

/* Feature mini cards (avantages) */
.article-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .article-feature-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.article-mini-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.article-mini-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, hsl(var(--gold)), hsl(var(--teal)));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-mini-card:hover::before {
    opacity: 1;
}

.article-mini-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
    border-color: hsl(var(--teal) / 0.25);
}

.article-mini-card .mini-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, hsl(var(--teal) / 0.15), hsl(var(--gold) / 0.1));
    color: hsl(var(--teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    position: relative;
}

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

.article-mini-card h4 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 0.35rem !important;
    margin-top: 0 !important;
}

.article-mini-card p {
    font-size: 1.3rem !important;
    line-height: 1.55 !important;
    color: hsl(var(--muted-foreground)) !important;
    margin-bottom: 0 !important;
}

/* Cycle cards (maternelle, primaire, collège) */
.article-cycle-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .article-cycle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cycle-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cycle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.25rem 1.25rem 0 0;
}

.cycle-maternelle::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.cycle-primaire::before {
    background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.cycle-college::before {
    background: linear-gradient(90deg, #1e40af, #3b82f6);
}

.cycle-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.cycle-card .cycle-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.cycle-maternelle .cycle-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
    color: #d97706;
}

.cycle-primaire .cycle-icon {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.08));
    color: #0f766e;
}

.cycle-college .cycle-icon {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.08));
    color: #1e40af;
}

.cycle-card h4 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin: 0 0 0.35rem 0 !important;
}

.cycle-card .cycle-age {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.cycle-maternelle .cycle-age {
    background: rgba(245, 158, 11, 0.1);
    color: #b45309;
}

.cycle-primaire .cycle-age {
    background: rgba(13, 148, 136, 0.1);
    color: #0f766e;
}

.cycle-college .cycle-age {
    background: rgba(30, 64, 175, 0.1);
    color: #1e40af;
}

.cycle-card p {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--muted)) !important;
    margin-bottom: 1.25rem !important;
    flex-grow: 1;
}

.article-cycle-grid .cycle-card p {
    color: hsl(var(--muted-foreground)) !important;
}

.cycle-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
    margin-top: auto;
    width: 100%;
}

.cycle-cta svg {
    transition: transform 0.2s ease;
}

.cycle-cta:hover svg {
    transform: translateX(3px);
}

.cycle-maternelle .cycle-cta {
    color: #d97706 !important;
}

.cycle-primaire .cycle-cta {
    color: #0f766e !important;
}

.cycle-college .cycle-cta {
    color: #1e40af !important;
}

.cycle-maternelle .cycle-cta:hover {
    color: #b45309 !important;
}

.cycle-primaire .cycle-cta:hover {
    color: #115e59 !important;
}

.cycle-college .cycle-cta:hover {
    color: #1e3a8a !important;
}

.cycle-lycee::before {
    background: linear-gradient(90deg, #e11d48, #fda4af);
}

.cycle-lycee .cycle-icon {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.12), rgba(253, 164, 175, 0.08));
    color: #e11d48;
}

.cycle-lycee .cycle-age {
    background: rgba(225, 29, 72, 0.1);
    color: #be123c;
}

.cycle-lycee .cycle-cta {
    color: #e11d48 !important;
}

.cycle-lycee .cycle-cta:hover {
    color: #be123c !important;
}

.cycle-cycle5::before {
    background: linear-gradient(90deg, #7c3aed, #c084fc);
}

.cycle-cycle5 .cycle-icon {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(192, 132, 252, 0.08));
    color: #7c3aed;
}

.cycle-cycle5 .cycle-age {
    background: rgba(124, 58, 237, 0.1);
    color: #6d28d9;
}

.cycle-cycle5 .cycle-cta {
    color: #7c3aed !important;
}

.cycle-cycle5 .cycle-cta:hover {
    color: #6d28d9 !important;
}

/* Timeline phases (calendrier) */
.article-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 1.5rem 0;
}

.article-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, hsl(var(--gold)), hsl(var(--teal)), hsl(var(--navy)));
    opacity: 0.25;
    border-radius: 2px;
}

.timeline-phase {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-phase:last-child {
    padding-bottom: 0;
}

.timeline-phase::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    background: hsl(var(--card));
    border: 3px solid hsl(var(--gold));
    border-radius: 50%;
    box-shadow: 0 0 0 4px hsla(var(--gold), 0.1);
}

.timeline-phase h4 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.6rem !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 0.35rem !important;
    margin-top: 0 !important;
}

.timeline-phase p {
    font-size: 1.35rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--muted-foreground)) !important;
    margin-bottom: 0 !important;
}

/* Calendar Layout Side by Side */
.calendar-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.calendar-content {
    flex: 1;
    min-width: 0;
}

.calendar-image-wrapper {
    flex: 0 0 400px;
    margin: 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 20px hsla(var(--navy), 0.08);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    background: hsl(var(--card));
}

@media (max-width: 768px) {
    .calendar-layout {
        flex-direction: column;
    }

    .calendar-image-wrapper {
        flex: 1;
        margin: 1.5rem 0 0 0;
    }
}

.calendar-image-wrapper:hover {
    box-shadow: 0 8px 30px hsla(var(--navy), 0.12);
    transform: translateY(-2px);
}

.calendar-infographic {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.dark .calendar-image-wrapper {
    border-color: hsl(var(--border));
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.dark .calendar-image-wrapper:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Step cards (les 6 étapes) */
.article-step-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.article-step-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
}

.article-step-card:hover {
    transform: translateX(6px);
    border-color: hsl(var(--gold) / 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

.step-number {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: hsl(var(--gold));
    color: hsl(var(--navy));
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.step-content strong {
    color: hsl(var(--foreground)) !important;
    font-weight: 600 !important;
}

.step-content p {
    margin-bottom: 0 !important;
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--muted-foreground)) !important;
}

/* Document cards grid */
.article-doc-section {
    margin: 1.5rem 0;
}

.doc-category-title {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    color: hsl(var(--teal)) !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-category-title svg {
    width: 18px;
    height: 18px;
}

.doc-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .doc-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.doc-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    padding: 0.875rem 1.125rem;
    transition: all 0.3s ease;
}

.doc-card:hover {
    border-color: hsl(var(--teal) / 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.03);
}

.doc-card-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: hsl(var(--gold) / 0.1);
    color: hsl(var(--gold));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-card-icon svg {
    width: 18px;
    height: 18px;
}

.doc-card span {
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--foreground)) !important;
}

/* Article Step Cards Mobile */
@media (max-width: 768px) {
    .article-step-cards {
        gap: 0.75rem;
    }

    .article-step-card {
        padding: 1rem;
        gap: 1rem;
    }

    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.875rem;
    }

    .step-content p {
        font-size: 1.2rem !important;
    }
}

/* Document Cards Mobile */
@media (max-width: 768px) {
    .doc-cards-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .doc-card {
        padding: 0.75rem 1rem;
    }

    .doc-card-icon {
        width: 32px;
        height: 32px;
    }

    .doc-card span {
        font-size: 1.25rem !important;
    }
}

/* FAQ Mobile */
@media (max-width: 768px) {
    .faq-question {
        font-size: 1.3rem !important;
        padding: 0.875rem 1rem;
    }

    .faq-answer p {
        font-size: 1.2rem !important;
    }
}

/* Contact Cards Mobile */
@media (max-width: 768px) {
    .article-contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .article-contact-card {
        padding: 1rem;
        gap: 0.75rem;
    }

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

    .contact-card-body h4 {
        font-size: 1.3rem !important;
    }

    .contact-card-body p {
        font-size: 1.15rem !important;
    }
}

/* Article Modern Wrapper Mobile */
@media (max-width: 768px) {
    .article-modern-wrapper {
        margin: -3rem 1rem 3rem !important;
        gap: 1.5rem;
    }

    .article-main-col {
        min-width: 100%;
    }
}

/* Article Container Mobile */
@media (max-width: 768px) {
    .article-container {
        margin: -3rem 1rem 3rem !important;
        padding: 0 1rem !important;
    }
}

/* Article Card Mobile */
@media (max-width: 768px) {
    .article-card {
        padding: 1.5rem !important;
        border-radius: 0.75rem !important;
    }
}

/* Article Content Mobile */
@media (max-width: 768px) {
    .article-content {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
}

.article-faq {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.faq-item {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: hsl(var(--teal) / 0.2);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: hsl(var(--foreground)) !important;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.faq-question svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: hsl(var(--muted-foreground));
    transition: transform 0.3s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: hsl(var(--teal));
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding-bottom: 1.25rem;
}

.faq-answer p {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--muted-foreground)) !important;
    margin-bottom: 0 !important;
}

/* Contact cards */
.article-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (min-width: 768px) {
    .article-contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.article-contact-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.35s ease;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.article-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.25rem 1.25rem 0 0;
}

.contact-phone::before {
    background: linear-gradient(90deg, #22c55e, #4ade80);
}

.contact-email::before {
    background: linear-gradient(90deg, hsl(var(--gold)), #fbbf24);
}

.contact-address::before {
    background: linear-gradient(90deg, hsl(var(--teal)), #2dd4bf);
}

.contact-social::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.article-contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.07);
}

.contact-phone:hover {
    border-color: rgba(34, 197, 94, 0.3);
}

.contact-email:hover {
    border-color: hsl(var(--gold) / 0.3);
}

.contact-address:hover {
    border-color: hsl(var(--teal) / 0.3);
}

.contact-social:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-phone .contact-card-icon {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(74, 222, 128, 0.08));
    color: #16a34a;
}

.contact-email .contact-card-icon {
    background: linear-gradient(135deg, hsl(var(--gold) / 0.12), rgba(251, 191, 36, 0.08));
    color: hsl(var(--gold));
}

.contact-address .contact-card-icon {
    background: linear-gradient(135deg, hsl(var(--teal) / 0.12), rgba(45, 212, 191, 0.08));
    color: hsl(var(--teal));
}

.contact-social .contact-card-icon {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12), rgba(167, 139, 250, 0.08));
    color: #7c3aed;
}

.contact-card-body h4 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin-bottom: 0.4rem !important;
    margin-top: 0 !important;
}

.contact-card-body p {
    font-size: 1.3rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--muted-foreground)) !important;
    margin-bottom: 0 !important;
}

.contact-card-body a {
    color: hsl(var(--teal)) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease;
}

.contact-card-body a:hover {
    color: hsl(var(--gold)) !important;
}

.contact-card-body .social-sep {
    color: hsl(var(--muted-foreground));
    margin: 0 0.35rem;
}

/* Resource list (pour aller plus loin) — horizontal rows */
.article-resource-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 2rem 0;
}

.resource-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.resource-row-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-internal .resource-row-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08));
    color: #d97706;
}

.resource-institution .resource-row-icon {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(20, 184, 166, 0.08));
    color: #0f766e;
}

.resource-region .resource-row-icon {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.12), rgba(59, 130, 246, 0.08));
    color: #1e40af;
}

.resource-row-body {
    flex: 1;
    min-width: 0;
}

.resource-row-body h4 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: hsl(var(--foreground)) !important;
    margin: 0 0 0.25rem 0 !important;
}

.resource-row-body p {
    font-size: 1.25rem !important;
    line-height: 1.5 !important;
    color: hsl(var(--muted-foreground)) !important;
    margin: 0 !important;
}

.resource-row-body p a {
    color: hsl(var(--teal)) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease;
}

.resource-row-body p a:hover {
    color: hsl(var(--gold)) !important;
}

.resource-row-arrow {
    width: 18px;
    height: 18px;
    color: hsl(var(--muted-foreground));
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.resource-row:hover {
    transform: translateX(6px);
    border-color: hsl(var(--gold) / 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.resource-row:hover .resource-row-arrow {
    transform: translateX(4px);
    color: hsl(var(--gold));
}

.resource-internal {
    border-left: 3px solid #f59e0b;
}

.resource-institution {
    border-left: 3px solid #0d9488;
}

.resource-region {
    border-left: 3px solid #1e40af;
}

.resource-link-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0.25rem 0 0 0 !important;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.resource-link-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 1.25rem !important;
}

.resource-link-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

.resource-link-list a {
    color: hsl(var(--teal)) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease;
}

.resource-link-list a:hover {
    color: hsl(var(--gold)) !important;
}

/* CTA Final Premium */
.article-cta-final {
    background: linear-gradient(135deg, hsl(var(--navy)) 0%, #1e3a5f 100%);
    border-radius: 1.25rem;
    padding: 2.5rem;
    margin: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.article-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, hsl(var(--gold) / 0.12), transparent 50%),
        radial-gradient(circle at 80% 20%, hsl(var(--teal) / 0.1), transparent 50%);
    pointer-events: none;
}

.article-cta-final h3 {
    font-family: 'DM Serif Display', serif !important;
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: white !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    position: relative;
}

.article-cta-final p {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.15rem !important;
    margin-bottom: 1.5rem !important;
    position: relative;
}

.article-content .article-cta-final strong,
.article-cta-final strong {
    color: hsl(var(--gold)) !important;
}

.article-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    position: relative;
}

.btn-cta-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: hsl(var(--gold));
    color: hsl(var(--navy)) !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-cta-gold:hover {
    background: #e9c46a;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    font-weight: 500 !important;
    font-size: 1.2rem !important;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Dark mode article modern */
.dark .toc-sidebar {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.dark .article-mini-card,
.dark .article-step-card,
.dark .doc-card,
.dark .faq-item,
.dark .article-contact-card,
.dark .resource-row {
    background: hsl(var(--card));
    border-color: hsl(var(--border));
}

.dark .article-mini-card:hover,
.dark .article-step-card:hover,
.dark .doc-card:hover,
.dark .article-contact-card:hover,
.dark .resource-row:hover {
    border-color: hsl(var(--gold) / 0.3);
}

.dark .doc-card span,
.dark .faq-question,
.dark .contact-card-body h4,
.dark .resource-row-body h4 {
    color: hsl(var(--foreground)) !important;
}

/* ==========================================================================
   Teacher / Staff Card Styles
   ========================================================================== */
.teacher-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.teacher-col {
    margin-bottom: 30px;
    display: flex;
}

.teacher-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f1f5f9;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.teacher-card-banner {
    height: 100px;
    background: linear-gradient(135deg, hsl(var(--navy)), hsl(var(--teal)));
    position: relative;
}

.teacher-banner-circle-1 {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.teacher-banner-circle-2 {
    position: absolute;
    bottom: -30px;
    left: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.teacher-avatar-wrapper {
    margin-top: -65px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.teacher-avatar {
    width: 130px;
    height: 130px;
    margin: 0 auto;
    border-radius: 50%;
    padding: 6px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.teacher-info {
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.teacher-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.3;
}

.teacher-role {
    color: hsl(var(--gold));
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.teacher-spacer {
    flex-grow: 1;
    min-height: 20px;
}

.teacher-details {
    background: #f8fafc;
    border-radius: 12px;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    border: 1px solid #f1f5f9;
}

.teacher-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
}

.teacher-badge span {
    line-height: 1.2;
    font-weight: 500;
}

/* Mentions Legales & Confidentialité Page Styles */
.legal-wrapper {
    background: #f8fafc;
    padding: 60px 0 100px 0;
}

.legal-sidebar-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.04);
}

.legal-sidebar {
    position: sticky;
    top: 120px;
    z-index: 100;
}

.legal-tab-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    border: 1px solid transparent;
    background: transparent;
    padding: 16px 20px;
    text-align: left;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: #475569;
    /* Slate 600 */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 8px;
    cursor: pointer;
}

.legal-tab-trigger i {
    font-size: 1.25rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.legal-tab-trigger:hover {
    background: hsl(var(--teal) / 0.05);
    color: hsl(var(--teal));
}

.legal-tab-trigger:hover i {
    background: hsl(var(--teal) / 0.1);
    color: hsl(var(--teal));
}

.legal-tab-trigger.active {
    background: hsl(var(--teal) / 0.06);
    color: hsl(var(--teal)) !important;
}

.legal-tab-trigger.active i {
    background: hsl(var(--teal));
    color: white;
}

.legal-content-card {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 32px;
    padding: 40px;
    box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.05);
}

.legal-tab-content {
    display: none;
}

.legal-tab-content.active {
    display: block;
    animation: legalFadeIn 0.5s ease forwards;
}

@keyframes legalFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.legal-grid-item {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 24px;
    transition: all 0.3s ease;
}

.legal-grid-item:hover {
    background: white;
    border-color: hsl(var(--teal) / 0.2);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.03);
    transform: translateY(-2px);
}

.legal-grid-item:hover .legal-grid-icon {
    background: hsl(var(--teal));
    color: white;
    transform: scale(1.05) rotate(4deg);
}

.legal-grid-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: hsl(var(--teal) / 0.08);
    color: hsl(var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: hsl(var(--teal) / 0.08);
    color: hsl(var(--teal));
    margin-right: 10px;
    font-size: 0.95rem;
    vertical-align: middle;
}

.legal-icon-wrap.gold-icon {
    background: hsl(var(--gold) / 0.08);
    color: hsl(var(--gold));
}

.legal-grid-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.legal-grid-val {
    font-size: 1.05rem;
    font-weight: 600;
    color: hsl(var(--navy));
    line-height: 1.4;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.legal-list-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.legal-list-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: hsl(var(--teal) / 0.1);
    color: hsl(var(--teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-list-text {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
}

.legal-badge-accent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: hsl(var(--gold) / 0.1);
    border: 1px solid hsl(var(--gold) / 0.2);
    color: hsl(var(--gold));
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.cndp-declaration-box {
    background: hsl(var(--teal) / 0.03);
    border: 1px solid hsl(var(--teal) / 0.12);
    border-left: 4px solid hsl(var(--teal));
    border-radius: 20px;
    padding: 24px;
    margin: 24px 0;
}

.contact-card-premium {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 30px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.contact-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, hsla(var(--teal), 0.05) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 991px) {
    .legal-sidebar-card {
        padding: 16px;
        margin-bottom: 30px;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .legal-sidebar {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
        gap: 8px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .legal-tab-trigger {
        margin-bottom: 0;
        padding: 10px 18px;
        font-size: 0.95rem;
        border-radius: 9999px;
        border: 1px solid #e2e8f0;
        background: white;
    }

    .legal-tab-trigger.active {
        background: hsl(var(--teal));
        border-color: hsl(var(--teal));
        color: white !important;
    }

    .legal-tab-trigger.active i {
        background: rgba(255, 255, 255, 0.2);
        color: white;
    }

    .legal-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .legal-content-card {
        padding: 24px;
    }
}

.legal-contact-btn {
    display: flex;
    gap: 16px;
    align-items: start;
    padding: 20px;
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.legal-contact-btn:hover {
    border-color: hsl(var(--teal) / 0.3);
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04);
    transform: translateY(-2px);
}

.legal-contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.legal-contact-icon.mail-icon {
    background: hsl(var(--teal) / 0.08);
    color: hsl(var(--teal));
}

.legal-contact-icon.email-icon {
    background: hsl(var(--gold) / 0.08);
    color: hsl(var(--gold));
}

.legal-contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.legal-contact-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: hsl(var(--navy));
    line-height: 1.5;
    word-break: break-all;
}

.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .legal-contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.hero-gradient-orb.orb-teal {
    background: radial-gradient(circle, hsl(var(--teal) / 0.1) 0%, transparent 70%);
}

.team-decoration-line.line-teal {
    background: hsl(var(--teal)) !important;
}

.legal-tab-content p.text-muted {
    line-height: 1.8;
}

.legal-tab-content h3,
.legal-tab-content h4 {
    font-weight: 700;
}

.cndp-declaration-box p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.contact-card-premium p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-grid-item p {
    font-size: 0.95rem;
    line-height: 1.7;
}

.legal-grid-val.phone-val {
    direction: ltr;
    text-align: left;
}

.legal-grid-val a,
.legal-grid-val a.legal-link-teal {
    color: hsl(var(--teal));
    text-decoration: none;
    transition: color 0.3s;
}

.legal-grid-val a:hover,
.legal-grid-val a.legal-link-teal:hover {
    color: hsl(var(--teal) / 0.8);
    text-decoration: underline;
}

.legal-contact-value.email-link {
    color: hsl(var(--teal));
}

/* Dark Mode Overrides */
.dark .legal-wrapper {
    background: hsl(var(--background)) !important;
}

.dark .legal-sidebar-card,
.dark .legal-content-card {
    background: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4) !important;
}

.dark .legal-tab-trigger {
    color: #94a3b8;
}

.dark .legal-tab-trigger i {
    background: hsl(var(--muted));
    color: #94a3b8;
}

.dark .legal-tab-trigger:hover {
    background: hsl(var(--teal) / 0.1) !important;
    color: hsl(var(--teal)) !important;
}

.dark .legal-tab-trigger:hover i {
    background: hsl(var(--teal) / 0.2);
    color: hsl(var(--teal));
}

.dark .legal-tab-trigger.active {
    background: hsl(var(--teal) / 0.15) !important;
    color: hsl(var(--teal)) !important;
    border-color: hsl(var(--border)) !important;
    border-left: 4px solid hsl(var(--teal)) !important;
}

.dark .legal-tab-trigger.active i {
    background: hsl(var(--teal));
    color: white;
}

.dark .legal-grid-item {
    background: hsl(var(--muted)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .legal-grid-item:hover {
    background: hsl(var(--card)) !important;
    border-color: hsl(var(--teal) / 0.3) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.dark .legal-grid-val {
    color: hsl(var(--foreground)) !important;
}

.dark .legal-contact-btn {
    background: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .legal-contact-btn:hover {
    border-color: hsl(var(--teal) / 0.3) !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
}

.dark .legal-contact-value {
    color: hsl(var(--foreground)) !important;
}

.dark .legal-list-text {
    color: hsla(var(--foreground), 0.8) !important;
}

.dark .text-muted {
    color: hsla(var(--foreground), 0.6) !important;
}

.dark .cndp-declaration-box {
    background: hsl(var(--teal) / 0.04) !important;
    border-color: hsl(var(--teal) / 0.15) !important;
}

.dark .cndp-declaration-box h4 {
    color: hsl(var(--foreground)) !important;
}

.dark .contact-card-premium {
    background: hsl(var(--muted)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .contact-card-premium h4 {
    color: hsl(var(--foreground)) !important;
}

.dark .contact-card-premium div.bg-white {
    background: hsl(var(--card)) !important;
    border-color: hsl(var(--border)) !important;
}

.dark .contact-card-premium div.bg-white strong {
    color: hsl(var(--foreground)) !important;
}

.dark .section-title {
    color: hsl(var(--foreground)) !important;
}

.dark .legal-grid-val a,
.dark .legal-grid-val a.legal-link-teal {
    color: hsl(var(--teal)) !important;
}

.dark .legal-contact-value.email-link {
    color: hsl(var(--teal)) !important;
}

@media (max-width: 991px) {
    .dark .legal-tab-trigger {
        border-color: hsl(var(--border)) !important;
        background: hsl(var(--card)) !important;
    }

    .dark .legal-tab-trigger.active {
        background: hsl(var(--teal)) !important;
        border-color: hsl(var(--teal)) !important;
        color: white !important;
    }
}

/* Custom styles for article content links and headers */
.article-content .article-step-cards .step-content h2 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    font-size: 1.4rem !important;
    line-height: 1.6 !important;
    color: hsl(var(--muted-foreground)) !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: none !important;
    display: inline !important;
    position: static !important;
}

.article-content .article-step-cards .step-content h2::after {
    display: none !important;
    content: none !important;
}

.article-content .article-step-cards .step-content h2 strong {
    color: hsl(var(--foreground)) !important;
    font-weight: 600 !important;
}

.dark .article-content .article-step-cards .step-content h2 strong {
    color: hsl(var(--foreground)) !important;
}

.article-content a {
    /* color: hsl(var(--teal)) !important; */
    text-decoration: underline !important;
    text-decoration-color: hsl(var(--teal) / 0.3) !important;
}

.article-content a:hover {
    color: hsl(var(--gold)) !important;
    text-decoration-color: hsl(var(--gold) / 0.6) !important;
}

.dark .article-content a {
    color: hsl(var(--gold)) !important;
    text-decoration-color: hsl(var(--gold) / 0.3) !important;
}

.dark .article-content a:hover {
    color: hsl(var(--teal)) !important;
    text-decoration-color: hsl(var(--teal) / 0.6) !important;
}


.article-content a[href="/online_admission"],
.article-content a[href="/admission"] {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem !important;
    background: hsl(var(--teal) / 0.08) !important;
    color: hsl(var(--teal)) !important;
    padding: 0.15rem 0.6rem !important;
    border-radius: 0.375rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border: 1px solid hsl(var(--teal) / 0.15) !important;
    transition: all 0.2s ease !important;
}


.article-content a[href="/online_admission"]:hover,
.article-content a[href="/admission"]:hover {
    background: hsl(var(--teal) / 0.15) !important;
    border-color: hsl(var(--teal) / 0.3) !important;
    color: hsl(var(--teal)) !important;
}

/* Premium Language Switcher Dropdown */
.lang-switcher-dropdown {
    position: relative;
    display: inline-block;
    margin-right: 12px;
}

.lang-switcher-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: hsl(var(--foreground));
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.lang-switcher-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: hsla(var(--gold), 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.premium-top-bar .lang-switcher-btn {
    color: white;
}

.lang-switcher-btn .chevron {
    transition: transform 0.2s ease;
}

.lang-switcher-dropdown:hover .lang-switcher-btn .chevron {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 12px;
    padding: 6px;
    min-width: 80px;
    list-style: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.lang-switcher-dropdown:hover .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    margin: 0;
}

.lang-dropdown-menu a {
    display: block;
    padding: 6px 16px;
    color: hsl(var(--foreground));
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.lang-dropdown-menu a:hover,
.lang-dropdown-menu a.active {
    background: hsla(var(--gold), 0.1);
    color: hsl(var(--gold));
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

/* RTL Flip Utility */
html[dir="rtl"] .rtl-flip,
body.rtl .rtl-flip,
[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
    display: inline-block;
}

/* Timeline RTL Overrides */
html[dir="rtl"] .article-timeline {
    padding-left: 0;
    padding-right: 2rem;
}

html[dir="rtl"] .article-timeline::before {
    left: auto;
    right: 7px;
}

html[dir="rtl"] .timeline-phase::before {
    left: auto;
    right: -2rem;
}

/* Resources RTL Overrides */
html[dir="rtl"] .resource-internal {
    border-left: none;
    border-right: 3px solid #f59e0b;
}

html[dir="rtl"] .resource-institution {
    border-left: none;
    border-right: 3px solid #0d9488;
}

html[dir="rtl"] .resource-region {
    border-left: none;
    border-right: 3px solid #1e40af;
}

html[dir="rtl"] .resource-link-list li {
    padding-left: 0;
    padding-right: 1.25rem;
}

html[dir="rtl"] .resource-link-list li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .resource-row-arrow {
    transform: scaleX(-1);
}

html[dir="rtl"] .resource-row:hover {
    transform: translateX(-6px);
}

html[dir="rtl"] .resource-row:hover .resource-row-arrow {
    transform: translateX(-4px) scaleX(-1);
}

/* Article content lists RTL */
html[dir="rtl"] .article-content ul li {
    padding-left: 0;
    padding-right: 1.5rem;
}

html[dir="rtl"] .article-content ul li::before {
    left: auto;
    right: 0;
}

/* Admission tabs RTL */
html[dir="rtl"] .admission-tab-indicator {
    left: auto;
    right: 6px;
}

/* Admission timeline RTL */
html[dir="rtl"] .admission-timeline {
    padding-left: 0;
    padding-right: 3rem;
}

html[dir="rtl"] .admission-timeline::before {
    left: auto;
    right: 5px;
}

html[dir="rtl"] .timeline-item-premium:hover {
    transform: translateY(-8px) translateX(-16px) scale(1.02);
}

html[dir="rtl"] .timeline-item-premium::before {
    left: auto;
    right: -32px;
}

html[dir="rtl"] .nextBtn svg,
html[dir="rtl"] .prevBtn svg,
html[dir="rtl"] .submitBtn svg {
    transform: scaleX(-1);
}

html[dir="rtl"] .stepwizard-step:not(:last-child)::after {
    left: auto;
    right: calc(50% + 10px);
}

html[dir="rtl"] .contact-map-link svg {
    transform: scaleX(-1);
    margin-left: 0;
    margin-right: 0.5rem;
}

html[dir="rtl"] .rtl-flip {
    transform: scaleX(-1);
}

/* Fix RTL form label alignment */
html[dir="rtl"] .control-label,
html[dir="rtl"] form label {
    text-align: right !important;
    float: right !important;
    display: block;
    width: 100%;
}

/* Fix submit button and icon in RTL */
html[dir="rtl"] button[type="submit"] {
    float: left;
}

html[dir="rtl"] button[type="submit"] .rtl-flip {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Force grid container to always use display:grid regardless of RTL */
.admission-radio-group .grid,
.admission-field .grid {
    display: grid !important;
    float: none !important;
    clear: both !important;
}

/* Force selection cards to always use flexbox — never floated */
label.admission-selection-card {
    float: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

/* CSS for centering Bootstrap columns robustly */

/* Admission Custom variables and utility classes */
:root {
    --blue: 221.2 83.2% 53.3%;
    --purple: 262.1 83.3% 57.8%;
}

.bg-blue\/10 {
    background-color: hsl(var(--blue) / 0.1) !important;
}

.text-blue {
    color: hsl(var(--blue)) !important;
}

.border-blue\/20 {
    border-color: hsl(var(--blue) / 0.2) !important;
}

.bg-blue\/5 {
    background-color: hsl(var(--blue) / 0.05) !important;
}

.bg-blue {
    background-color: hsl(var(--blue)) !important;
    color: white !important;
}

.hover\:bg-blue:hover {
    background-color: hsl(var(--blue)) !important;
    color: white !important;
}

.bg-purple\/10 {
    background-color: hsl(var(--purple) / 0.1) !important;
}

.text-purple {
    color: hsl(var(--purple)) !important;
}

.border-purple\/20 {
    border-color: hsl(var(--purple) / 0.2) !important;
}

.bg-purple\/5 {
    background-color: hsl(var(--purple) / 0.05) !important;
}

.bg-purple {
    background-color: hsl(var(--purple)) !important;
    color: white !important;
}

.hover\:bg-purple:hover {
    background-color: hsl(var(--purple)) !important;
    color: white !important;
}

/* ============================================
   SCHOOL SUPPLIES PAGE
   ============================================ */
.team-title {
    margin-top: -15px;
}

.pdf-btn-premium {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid hsl(var(--gold));
    color: hsl(var(--gold));
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-top: -22px;
}

.pdf-btn-premium:hover {
    background: hsl(var(--gold));
    color: white !important;
    box-shadow: 0 15px 30px -10px hsl(var(--gold) / 0.4);
    transform: scale(1.1) translateY(-3px);
}

.supply-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.3s ease;
}

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

.supply-row:hover {
    background: #fbfcfe;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    border-radius: 0.75rem;
}

.badge-quantity {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: hsl(var(--navy));
}

.tracking-widest-lg {
    letter-spacing: 0.2em;
}

/* Expansion Styles */
.supplies-collapsible {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.supplies-collapsible.expanded {
    max-height: 1000px;
    /* Large enough to fit content */
    opacity: 1;
}

.expand-toggle-btn {
    width: 100%;
    cursor: pointer;
    padding-top: 1rem;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.expand-toggle-btn:hover span {
    color: hsl(var(--gold)) !important;
    transform: translateY(2px);
}

.expand-toggle-btn .chevron-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    color: hsla(215, 25%, 27%, 0.4);
}

.expand-toggle-btn.active .chevron-icon {
    transform: rotate(180deg);
}

.expand-toggle-btn span {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Mentions legales RTL overrides */
[dir="rtl"] .cndp-declaration-box {
    border-left: 1px solid hsl(var(--teal) / 0.12) !important;
    border-right: 4px solid hsl(var(--teal)) !important;
}

[dir="rtl"] .legal-icon-wrap {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* Custom Utility Classes for home page layout refactoring */
.delay-100 {
    animation-delay: 0.1s !important;
}

.delay-200 {
    animation-delay: 0.2s !important;
}

.delay-300 {
    animation-delay: 0.3s !important;
}

.delay-400 {
    animation-delay: 0.4s !important;
}

.delay-500 {
    animation-delay: 0.5s !important;
}

.opacity-80 {
    opacity: 0.8 !important;
}

.max-w-600 {
    max-width: 600px !important;
}

.max-w-700 {
    max-width: 700px !important;
}

.row-flex-center {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
}

.hero-badge-alt {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 40px !important;
}

.flex-hero-btns {
    display: flex !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.section-desc-modern {
    max-width: 672px !important;
    margin: 0 auto !important;
    font-size: 1.25rem !important;
    line-height: 1.6 !important;
}

.quote-text-modern {
    font-size: 1.5rem !important;
    margin-bottom: 16px !important;
}

.icon-size-2rem {
    font-size: 2rem !important;
}

.icon-size-1-8rem {
    font-size: 1.8rem !important;
}

.icon-size-1-5rem {
    font-size: 1.5rem !important;
}

.color-teal-dark {
    color: #00796b !important;
}

.team-sticky-header-modern {
    position: sticky !important;
    top: 120px !important;
}

.team-desc-modern {
    line-height: 1.8 !important;
}

.team-decor-line {
    width: 60px !important;
    height: 4px !important;
    background: hsl(var(--gold)) !important;
    border-radius: 2px !important;
    margin-bottom: 30px !important;
}

.team-card-img-modern {
    border-radius: 16px !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
    width: 100% !important;
    object-fit: cover !important;
    border: 4px solid white !important;
}

.infra-overlay-text-modern {
    z-index: 10 !important;
    position: relative !important;
}

.border-0 {
    border: 0 !important;
}

.dir-ltr {
    direction: ltr !important;
}

.bg-orange-gradient {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
}

/* Nouvelles classes utilitaires et sémantiques pour éliminer les styles inline */
.toast-container-fixed {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
}

.alert-rounded {
    border-radius: 12px !important;
    margin-bottom: 24px !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.mb-20px {
    margin-bottom: 20px !important;
}

.lh-relaxed {
    line-height: 1.8 !important;
}

.text-gold {
    color: hsl(var(--gold)) !important;
}

.text-teal {
    color: hsl(var(--teal)) !important;
}

.text-white-imp {
    color: white !important;
}

.opacity-70-imp {
    opacity: 0.7 !important;
}

.text-huge-fade {
    font-size: 3rem !important;
    opacity: 0.2 !important;
}

.article-intro-img {
    width: 100% !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.step-heading-reset {
    font-size: 1rem !important;
    font-weight: normal !important;
    margin: 0 !important;
    line-height: 1.7 !important;
    color: inherit !important;
    font-family: inherit !important;
    display: inline !important;
}

.contact-section-padding {
    padding: 50px 15px !important;
}

.gallery-img {
    outline: none !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.absolute {
    position: absolute !important;
}

.inset-0 {
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
}

.pointer-events-none {
    pointer-events: none !important;
}

.aph-breadcrumb-box {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}