/* 
 * Global CSS Design System for Noori Academy 
 * Theme: Islamic, scholarly, trustworthy, modern, premium
 */

:root {
    /* Color Palette (Islamic theme) */
    --color-primary: #0a4a2f;
    --color-primary-mid: #0d6b42;
    --color-primary-light: #2db370;
    --color-primary-pale: #c8f0dc;
    --color-gold: #c9a227;
    --color-gold-light: #f0c84a;
    --color-ink: #0f1f17;
    --color-muted: #5a7066;
    --color-surface: #f4fbf7;
    --color-border: #c5ddd3;
    --color-white: #ffffff;
    --color-error: #dc3545;
    --color-info: #0dcaf0;

    /* Fonts */
    --font-heading-en: 'Playfair Display', serif;
    --font-body-en: 'Nunito', sans-serif;
    --font-urdu: 'Noto Nastaliq Urdu', serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Layout */
    --container-max-width: 1280px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-pill: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body-en);
    color: var(--color-ink);
    background-color: var(--color-surface);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Magic Erase & Fade Transition */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0) 30%, 
        rgba(255,255,255,0.9) 50%, 
        rgba(255,255,255,0) 70%, 
        transparent 100%
    );
    z-index: 10001;
    transform: translateX(-100%);
    pointer-events: none;
}

body.is-switching-lang::after {
    animation: magic-wipe 0.7s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes magic-wipe {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(50%); }
}

/* Smooth Fade for Translatable Elements */
[data-en], [data-ur], .en-only, .ur-only {
    transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
    will-change: opacity, filter, transform;
}

body.is-switching-lang [data-en], 
body.is-switching-lang [data-ur],
body.is-switching-lang .en-only,
body.is-switching-lang .ur-only {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(5px);
}

/* RTL Specific transitions */
body.rtl {
    font-family: var(--font-urdu);
}

/* Custom Selection */
::selection {
    background-color: var(--color-primary-light);
    color: var(--color-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-surface);
}
::-webkit-scrollbar-thumb {
    background: var(--color-primary-mid);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Typography */
h1, h2, h3, h4, h5, h6, .heading-display {
    font-family: var(--font-heading-en);
    color: var(--color-primary);
    font-weight: 700;
}

.heading-display {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    text-align: center;
    /* Prevent jitter when font changes */
    min-height: 1.2em;
    transition: all 0.3s ease;
}

/* Layout Stability */
.container-academy, .section-padding, .course-card, .stat-card {
    transition: padding 0.3s ease, margin 0.3s ease, min-height 0.3s ease;
}

.section-label {
    text-transform: uppercase;
    color: var(--color-gold);
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    display: block;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

/* Utilities */
.container-academy {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-padding {
    padding: 60px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: var(--border-radius-pill);
    transition: all var(--transition-normal);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-mid);
    border-color: var(--color-primary-mid);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 74, 47, 0.2);
}

.btn-gold {
    background-color: var(--color-gold);
    color: var(--color-white);
    border-color: var(--color-gold);
}
.btn-gold:hover {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}
.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-ghost {
    background-color: transparent;
    color: var(--color-primary);
}
.btn-ghost:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* Cards */
.card-academy {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--color-primary-light);
    padding: var(--spacing-lg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, background 0.4s ease;
}

.card-dark {
    background: linear-gradient(135deg, var(--color-primary), #06311f);
    color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.card-dark h1, .card-dark h2, .card-dark h3, .card-dark h4, .card-dark p {
    color: var(--color-white);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(45, 179, 112, 0.2);
}
.card-academy.card-hover:hover {
    background: linear-gradient(135deg, #ffffff, #f0fdf6);
}
.card-hover:hover i {
    transform: scale(1.2) rotate(10deg);
}
.card-academy i, .card-dark i {
    display: inline-block;
    transition: transform 0.4s ease;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}
.badge-open { background-color: var(--color-primary-light); }
.badge-closed { background-color: var(--color-error); }
.badge-limited { background-color: var(--color-gold); color: var(--color-ink); }
.badge-upcoming { background-color: var(--color-info); color: var(--color-ink); }

/* Islamic Decorative Divider */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--spacing-lg) 0;
}
.ornament-divider::before,
.ornament-divider::after {
    content: '';
    height: 1px;
    background-color: var(--color-gold);
    flex-grow: 1;
    max-width: 100px;
}
.ornament-divider i {
    color: var(--color-gold);
    margin: 0 var(--spacing-md);
    font-size: 1.25rem;
}

/* Background Patterns */
.bg-dark-pattern {
    background-color: var(--color-primary);
    background-image: radial-gradient(circle at center, rgba(45, 179, 112, 0.2) 0%, transparent 60%);
    color: var(--color-white);
}
.bg-dark-pattern h1, .bg-dark-pattern h2, .bg-dark-pattern h3, .bg-dark-pattern p {
    color: var(--color-white);
}

.bg-light-pattern {
    background-color: var(--color-primary-pale);
}

/* Scrolled Navbar State */
body.scrolled .navbar {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}
#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#scroll-to-top:hover {
    background-color: var(--color-primary-mid);
    transform: translateY(-3px);
}

/* === NAVBAR & GLASSMORPHISM === */
.glass-nav {
    background: rgba(215, 235, 222, 0.9) !important; /* Classic Islamic Dim Mint/Green */
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-academy {
    padding: 0.5rem 0;
    position: relative;
    z-index: 1050;
}


/* Centering Logic */
.z-index-2 {
    z-index: 2;
}

@media (min-width: 1200px) {
    .navbar-academy {
        min-height: 75px;
    }

    /* CSS Grid 3-col: [logo] [nav] [buttons] — no overlap possible */
    .navbar-academy .container-academy {
        display: grid !important;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        width: 100%;
    }

    /* Col 1: Logo stays far left */
    .navbar-brand {
        grid-column: 1;
        margin-right: 0;
    }

    /* Hide mobile toggle on desktop */
    .navbar-academy .navbar-toggler {
        display: none !important;
    }

    /* Col 2: Nav centered within its grid column */
    .navbar-center-box {
        grid-column: 2;
        display: flex !important;
        justify-content: center;
        align-items: center;
    }

    .navbar-center-box .navbar-nav {
        flex-wrap: nowrap;
        gap: 0;
    }

    /* Col 3: Buttons pinned to the right */
    .navbar-right-box {
        grid-column: 3;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: flex-end;
        white-space: nowrap;
    }
}


.navbar-academy .nav-link {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 0.5rem 0.7rem !important;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.navbar-logo {
    transition: all 0.3s ease;
    filter: none;
}

.navbar-academy .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--color-gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-academy .nav-link:hover::after,
.navbar-academy .nav-link.active::after {
    width: 80%;
}

.navbar-academy .nav-link:hover,
.navbar-academy .nav-link:focus,
.navbar-academy .nav-link.active {
    color: var(--color-primary-dark);
}

body.scrolled .glass-nav {
    padding: 0.25rem 0;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1200px) {
    body.scrolled .navbar-academy {
        min-height: 65px;
    }
}

/* Glassmorphism Dropdowns with Smooth 3D Animation */
.glass-dropdown {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-left: 3px solid var(--color-gold);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(10, 74, 47, 0.15);
    padding: 0.5rem 0;
    margin-top: 5px;
    z-index: 2000;

    
    /* 3D Origin Animation */
    opacity: 0;
    transform: perspective(400px) rotateX(-10deg) translateY(-10px);
    transform-origin: top center;
    display: block;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                visibility 0.4s;
}

.glass-dropdown.show {
    opacity: 1;
    transform: perspective(400px) rotateX(0deg) translateY(0);
    visibility: visible;
}

/* Hover Support for Desktop */
@media (min-width: 1200px) {
    .nav-item.dropdown:hover > .glass-dropdown {
        opacity: 1;
        transform: perspective(400px) rotateX(0deg) translateY(0);
        visibility: visible;
    }
}


/* Nested Submenu Logic */
.dropdown-submenu-academy {
    position: relative;
}

.dropdown-submenu-academy > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: 0;
    border-radius: 12px;
}

.dropdown-submenu-academy:hover > .dropdown-menu {
    display: block; /* Native hover for nested menus */
    opacity: 1;
    transform: perspective(400px) rotateX(0deg) translateY(0);
    visibility: visible;
}

/* Smooth Language Switching */
.lang-anim span {
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

/* Hide default bootstrap dropdown arrow */
.navbar-academy .dropdown-toggle::after {
    display: none;
}

.icon-dropdown {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 0.75em;
    vertical-align: middle;
}

/* Rotate icon on open */
.dropdown.show > .dropdown-toggle .icon-dropdown {
    transform: rotate(180deg);
}

.dropdown-item-academy {
    color: var(--color-ink);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 200ms ease;
    border-left: 0px solid var(--color-gold);
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.dropdown-item-academy:hover,
.dropdown-item-academy:focus {
    background-color: #e8f8f0;
    color: var(--color-primary);
    border-left: 3px solid var(--color-gold);
    padding-left: calc(1.5rem - 3px);
}

/* Navbar Buttons */
.btn-lang {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    border-radius: var(--border-radius-pill);
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.btn-lang:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-nav-login {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background-color: transparent;
    border-radius: var(--border-radius-pill);
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.btn-nav-login:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-nav-register {
    background-color: var(--color-gold);
    color: var(--color-ink);
    border-radius: var(--border-radius-pill);
    padding: 0.4rem 1.25rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-gold);
    transition: all var(--transition-normal);
}

.btn-nav-register:hover {
    background-color: var(--color-gold-light);
    color: var(--color-ink);
    box-shadow: 0 4px 10px rgba(201, 162, 39, 0.4);
    transform: translateY(-1px);
}

/* Mobile Hamburger Animation */
.hamburger-animated {
    border: none;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.hamburger-animated:focus {
    box-shadow: none;
    outline: none;
}

.hamburger-box {
    width: 24px;
    height: 20px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 2px;
    position: absolute;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

.hamburger-animated[aria-expanded="true"] .hamburger-inner {
    background-color: transparent;
}

.hamburger-animated[aria-expanded="true"] .hamburger-inner::before {
    transform: translate3d(0, 8px, 0) rotate(45deg);
}

.hamburger-animated[aria-expanded="true"] .hamburger-inner::after {
    transform: translate3d(0, -8px, 0) rotate(-45deg);
}

/* Mobile Responsive */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background-color: var(--color-surface);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: var(--border-radius-md);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border: 1px solid var(--color-border);
    }
    
    .navbar-academy .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid var(--color-border);
    }
    
    .navbar-academy .nav-link.active {
        border-bottom: 1px solid var(--color-gold);
    }
    
    .dropdown-menu-academy {
        background-color: rgba(255, 255, 255, 0.05);
        border-left: none;
        border-radius: 0;
        box-shadow: none;
        padding-left: 1rem;
        /* Disable slide-down for accordion behavior */
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none;
    }
    
    .dropdown-menu-academy.show {
        display: block;
    }

    .dropdown-item-academy {
        color: var(--color-white);
    }

    .dropdown-item-academy:hover,
    .dropdown-item-academy:focus {
        background-color: transparent;
        color: var(--color-gold);
        border-left: none;
        padding-left: 1.5rem;
    }
    
    .navbar-right-controls {
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        align-items: stretch !important;
    }
    
    .btn-nav-login, .btn-nav-register, .btn-lang {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* Touch-friendly tap targets */
.navbar-academy .nav-link, 
.dropdown-item-academy, 
.btn-nav-login, 
.btn-nav-register, 
.btn-lang {
    min-height: 44px;
    display: flex;
    align-items: center;
}
@media (max-width: 991.98px) {
    .btn-nav-login, .btn-nav-register, .btn-lang {
        justify-content: center;
    }
}

/* Urdu RTL Overrides */
html[lang="ur"] .navbar-academy {
    direction: rtl;
}

html[lang="ur"] .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

html[lang="ur"] .ms-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

html[lang="ur"] .ms-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

html[lang="ur"] .navbar-nav {
    padding-right: 0;
}

html[lang="ur"] .dropdown-menu-academy {
    text-align: right;
    border-left: none;
    border-right: 3px solid var(--color-gold);
}

html[lang="ur"] .dropdown-item-academy {
    border-left: none;
    border-right: 0px solid var(--color-gold);
}

html[lang="ur"] .dropdown-item-academy:hover,
html[lang="ur"] .dropdown-item-academy:focus {
    border-left: none;
    border-right: 3px solid var(--color-gold);
    padding-left: 1.5rem;
    padding-right: calc(1.5rem - 3px);
}

@media (max-width: 991.98px) {
    html[lang="ur"] .dropdown-menu-academy {
        border-right: none;
        padding-right: 1rem;
        padding-left: 0;
    }
    html[lang="ur"] .dropdown-item-academy:hover,
    html[lang="ur"] .dropdown-item-academy:focus {
        border-right: none;
        padding-right: 1.5rem;
    }
}

/* === NOTIFICATION BAR === */
.notif-bar {
    height: 42px;
    width: 100%;
    background: linear-gradient(90deg, #0d6b42, #0a4a2f);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1040;
    border-bottom: 2px solid var(--color-gold);

    color: var(--color-white);
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.4s ease;
}

.notif-bar__label {
    min-width: 110px;
    padding: 0 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.notif-badge--blink {
    background-color: var(--color-gold);
    color: var(--color-primary);
    padding: 3px 10px;
    border-radius: var(--border-radius-pill);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: blink-badge 1.2s infinite alternate;
}

@keyframes blink-badge {
    0% { opacity: 1; }
    100% { opacity: 0.6; }
}

.notif-bar__ticker-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.notif-bar__ticker-wrap::before,
.notif-bar__ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    z-index: 2;
}

.notif-bar__ticker-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #0d6b42, transparent);
}

.notif-bar__ticker-wrap::after {
    right: 0;
    background: linear-gradient(270deg, #0a4a2f, transparent);
}

.notif-bar__ticker {
    display: flex;
    align-items: center;
    gap: 60px;
    white-space: nowrap;
    animation: ticker-scroll 40s linear infinite;
    width: max-content;
}

.notif-bar__ticker.paused,
.notif-bar__ticker-wrap:hover .notif-bar__ticker {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.notif-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notif-item::before {
    content: '◆';
    color: var(--color-gold);
    margin-right: 8px;
    font-size: 0.7em;
}

.notif-icon-notice { color: #e0f7fa; }
.notif-icon-news { color: #ffffff; }
.notif-icon-result { color: var(--color-gold); }
.notif-icon-admission { color: var(--color-primary-light); }
.notif-icon-exam { color: #ffffff; }
.notif-icon-urgent { 
    color: #ff6b6b; 
    animation: blink-badge 1s infinite alternate;
}

.notif-item a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.notif-item a:hover {
    color: var(--color-gold-light);
    text-decoration: underline;
}

.notif-bar__controls {
    min-width: 70px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    height: 100%;
    justify-content: flex-end;
}

.notif-ctrl-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.notif-ctrl-btn:hover {
    background-color: rgba(201, 162, 39, 0.3);
    color: var(--color-gold);
}

.notif-bar.closed {
    height: 0;
    opacity: 0;
    border-bottom: none;
}

/* Fix Mobile Dropdown and Submenu merging & clipping */
@keyframes slideDownMobile {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199.98px) {
    .glass-dropdown {
        position: static !important;
        background-color: rgba(10, 74, 47, 0.05) !important; /* Visible soft background contrast */
        box-shadow: none !important;
        border: none !important;
        border-radius: 8px !important;
        padding-left: 0 !important;
        
        /* Smooth Accordion Animation */
        display: block !important; /* Force block to allow transition */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                    opacity 0.3s ease, 
                    margin 0.4s ease, 
                    padding 0.4s ease !important;
    }
    .glass-dropdown.show {
        max-height: 600px; /* Adjust to allow all items */
        opacity: 1 !important;
        margin-top: 5px !important;
        margin-bottom: 5px !important;
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        animation: none !important;
    }
    .dropdown-submenu-academy > .dropdown-menu {
        position: static !important;
        margin-left: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: rgba(10, 74, 47, 0.08) !important; /* Darker visible background for nested */
        
        /* Smooth Accordion Animation */
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.3s ease !important;
    }
    .dropdown-submenu-academy:hover > .dropdown-menu,
    .dropdown-submenu-academy.show > .dropdown-menu {
        max-height: 400px;
        opacity: 1 !important;
        animation: none !important;
    }
    .dropdown-item-academy {
        color: var(--color-primary) !important; /* Ensure text is bold and dark */
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }
}

/* === HERO SECTION === */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 80vh;
    min-height: 400px;
    max-height: 850px;
    background: #0a4a2f;
}

@media (max-width: 991px) {
    .hero-section {
        height: 70vh;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 60vh;
    }
    .hero-dots {
        bottom: 30px !important;
    }
    .hero-arrow {
        width: 40px !important;
        height: 40px !important;
    }
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    clip-path: inset(0 50% 0 50%);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 0;
}
.hero-slide.active {
    clip-path: inset(0 0 0 0);
    z-index: 2;
}
.hero-slide.prev {
    clip-path: inset(0 0 0 0);
    z-index: 1;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--color-white);
    transition: 250ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-arrow:hover {
    background: #c9a227;
    border-color: #c9a227;
    color: #0a4a2f;
    transform: translateY(-50%) scale(1.1);
}
.hero-arrow--prev {
    left: 20px;
}
.hero-arrow--next {
    right: 20px;
}
.hero-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 300ms ease;
    padding: 0;
}
.hero-dot.active {
    background: #c9a227;
    border-color: #c9a227;
    width: 28px;
    border-radius: 5px;
}
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 10;
}
.hero-progress__bar {
    height: 100%;
    background: #c9a227;
    width: 0%;
    transition: width linear;
}
.hero-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a4a2f;
    z-index: 20;
}
.hero-loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === STATS BAR === */
.stats-bar {
    background: var(--color-white);
    border-bottom: 3px solid #c9a227;
    padding: 24px 0;
    box-shadow: 0 4px 20px rgba(10,74,47,0.08);
    position: relative;
    z-index: 5;
}

.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}



.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    justify-content: center;
    border-right: 1px solid #c5ddd3;
    transition: transform 0.3s ease, background 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(45, 179, 112, 0.05) 0%, transparent 100%);
}
.stat-item:last-child {
    border-right: none;
}
.stat-icon {
    font-size: 2rem;
    color: #0d6b42;
    transition: transform 0.3s ease, color 0.3s ease;
}
.stat-item:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    color: #c9a227;
}
.stat-number-wrapper {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(45deg, #0a4a2f, #2db370);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-plus {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2db370;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #5a7066;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 4px;
    white-space: nowrap;
}

/* === QUICK LINKS BAR === */
.quick-links-bar {
    background: #0a4a2f;
    padding: 20px 0;
}
.quick-links-bar__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
}
.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    color: rgba(255,255,255,0.75);
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: 200ms ease;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}
.quick-link-item:last-child {
    border-right: none;
}
.quick-link-item:hover {
    background: rgba(201,162,39,0.15);
    color: #f0c84a;
    transform: translateY(-3px);
}
.quick-link-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #c9a227;
    transition: 200ms ease;
}
.quick-link-item:hover .quick-link-icon {
    background: rgba(201,162,39,0.25);
    transform: scale(1.1);
}

/* ─── RESPONSIVE OVERRIDES ─── */

/* Tablet landscape (≤1024px): stats go 3-col, quick-links 3-col */
@media (max-width: 1024px) {
    .stats-bar__grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 0;
    }
    .stat-item:nth-child(3n) { border-right: none; }
    .stat-item { border-bottom: 1px solid #c5ddd3; }
    .stat-item:nth-child(4),
    .stat-item:nth-child(5) { border-bottom: none; }

    .quick-links-bar__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .quick-link-item:nth-child(3) { border-right: none; }
}

/* Tablet portrait (≤768px): stats 2-col, hero arrows hidden */
@media (max-width: 768px) {
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        row-gap: 0 !important;
    }
    .stat-item {
        padding: 16px 12px !important;
        border-right: 1px solid #c5ddd3 !important;
        border-bottom: 1px solid #c5ddd3 !important;
    }
    /* Even items (right column) — no right border */
    .stat-item:nth-child(2n) { border-right: none !important; }
    /* Last row — no bottom border */
    .stat-item:nth-child(4),
    .stat-item:nth-child(5) { border-bottom: none !important; }
    /* 5th item spans both columns */
    .stat-item:last-child {
        grid-column: span 2;
        border-right: none !important;
    }

    .hero-arrow { display: none !important; }
    .quick-link-item { padding: 12px 4px; }
}

/* Small mobile (≤480px): stats stay 2-col but compact, quick-links 2-col */
@media (max-width: 480px) {
    .stats-bar { padding: 0; }
    .stats-bar__grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .stat-item {
        padding: 14px 10px !important;
        gap: 10px !important;
    }
    .stat-icon { font-size: 1.4rem !important; }
    .stat-number { font-size: 1.3rem !important; }
    .stat-label { font-size: 0.72rem !important; }

    .quick-links-bar__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .quick-link-item:nth-child(2),
    .quick-link-item:nth-child(4) { border-right: none; }
    .quick-link-item:nth-child(3) {
        border-right: 1px solid rgba(255,255,255,0.1);
    }
    .hero-title { font-size: 1.8rem; }
}


/* === COURSES SECTION === */

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.courses-full-section .courses-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* Course Card */
.course-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 350ms cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    height: 100%;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-emerald-pale);
}

/* Card Badges */
.course-card__badges {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    z-index: 2;
}
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-open { background: #e6f6ee; color: #10b981; }
.badge-closed { background: #fee2e2; color: #ef4444; }
.badge-limited { background: #fef08a; color: #854d0e; animation: pulse 2s infinite; }
.badge-upcoming { background: #e0f2fe; color: #0284c7; }

.badge-mode-live { background: rgba(255,255,255,0.9); color: #ef4444; }
.badge-mode-live::before { content: '●'; margin-right: 4px; }
.badge-mode-recorded { background: rgba(255,255,255,0.9); color: #0284c7; }
.badge-mode-hybrid { background: rgba(255,255,255,0.9); color: #8b5cf6; }

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Card Header */
.course-card__header {
    background: linear-gradient(135deg, #0a4a2f, #1a8a56);
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 100px;
}
.course-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #ffffff;
}
.course-card__category {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

/* Card Body */
.course-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.course-card__title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-ink);
    margin-bottom: 10px;
    line-height: 1.3;
}
.course-card__desc {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.course-card__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
    padding: 12px;
    background: var(--color-emerald-tint);
    border-radius: 8px;
}
.course-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--color-ink-soft);
}
.course-meta-item i {
    color: var(--color-emerald-main);
    width: 16px;
    text-align: center;
}
.course-card__fee {
    font-size: 0.85rem;
    color: var(--color-muted);
    padding-bottom: 4px;
    margin-top: auto;
}
.fee-value {
    font-weight: 700;
    color: var(--color-emerald-main);
    margin-left: 4px;
}

/* Card Footer */
.course-card__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    gap: 10px;
    align-items: center;
    background: var(--color-surface);
}
.course-card.closed {
    opacity: 0.85;
}
.course-card.closed .course-card__header {
    filter: grayscale(80%);
}

/* Skeleton Loader */
.course-card-skeleton {
    height: 400px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    position: relative;
}
.course-card-skeleton::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Filter Bar */
.courses-filter-bar {
    background: #ffffff;
    border-bottom: 2px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 112px;
    z-index: 80;
    box-shadow: var(--shadow-sm);
}
.courses-filter-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}
.filter-search {
    position: relative;
    width: 250px;
}
.filter-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
}
.filter-search__input {
    padding-left: 35px;
    border-radius: 20px;
}
.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-ink-soft);
}
.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-pill {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-ink-soft);
    transition: 200ms;
    cursor: pointer;
}
.filter-pill.active {
    background: var(--color-emerald-main);
    color: #ffffff;
    border-color: var(--color-emerald-main);
}
.filter-pill:hover:not(.active) {
    border-color: var(--color-emerald-main);
    color: var(--color-emerald-main);
}
.filter-results-count {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* Page Banner */
.page-banner {
    min-height: 180px;
    display: flex;
    align-items: center;
    padding: 40px 0;
    background: var(--color-primary);
    /* No pattern image required per simple layout, using solid primary background */
    color: #ffffff;
}
.page-banner__title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ffffff;
}

/* Pagination */
.courses-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 3rem;
}
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--color-border);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--color-ink);
    transition: 200ms;
}
.page-btn.active {
    background: var(--color-emerald-main);
    color: #ffffff;
    border-color: var(--color-emerald-main);
}
.page-btn:hover:not(.active):not(:disabled) {
    border-color: var(--color-emerald-main);
    color: var(--color-emerald-main);
}
.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enroll Modal */
.enroll-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.enroll-modal-content {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}
.enroll-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #ffffff;
    z-index: 10;
    cursor: pointer;
}
.enroll-modal-header {
    background: var(--color-primary);
    padding: 24px;
    color: #ffffff;
    text-align: center;
}
.enroll-modal-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
}
.enroll-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}
.progress-step.active {
    background: var(--color-gold);
    color: var(--color-primary);
}
.progress-line {
    width: 30px;
    height: 2px;
    background: rgba(255,255,255,0.2);
}
.enroll-modal-body {
    padding: 24px;
}
.course-summary-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}
.course-summary-icon {
    font-size: 2.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}

/* Responsive Courses */
@media (max-width: 1200px) {
    .courses-grid, .courses-full-section .courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 992px) {
    .courses-filter-bar__inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-search {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .courses-grid, .courses-full-section .courses-grid {
        grid-template-columns: 1fr;
    }
    .filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    .filter-pills::-webkit-scrollbar {
        height: 4px;
    }
    .filter-pills::-webkit-scrollbar-thumb {
        background: var(--color-border);
        border-radius: 4px;
    }
}
/* === COURSE UI MODULE === */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

.course-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--color-gold-soft);
}

.course-card .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-open { background: #e6f7ef; color: #008a4e; }
.badge-closed { background: #fee2e2; color: #dc2626; }
.badge-limited { background: #fef3c7; color: #d97706; }
.badge-upcoming { background: #e0f2fe; color: #0284c7; }

.course-card h3 {
    font-size: 1.2rem;
    margin: 25px 0 12px;
    line-height: 1.4;
    color: var(--color-primary);
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card p {
    font-size: 0.9rem;
    color: var(--color-ink-soft);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.85rem;
    color: var(--color-muted);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.enrolled-count {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-light);
}

.enroll-btn {
    padding: 10px 24px;
    font-weight: 700;
    border-radius: 10px;
    transition: 0.3s;
}

.enroll-btn:disabled {
    background: #f3f4f6;
    border-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .courses-grid { grid-template-columns: 1fr; }
}

/* === ENROLLMENT MODAL (5C) === */
.enroll-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Controlled by .active */
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.enroll-modal.active {
    display: flex;
}

.enroll-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.enroll-modal__box {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 2001;
    animation: modalScale 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.enroll-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-muted);
    cursor: pointer;
    transition: 0.2s;
}

.enroll-close:hover {
    color: var(--color-ink);
}

.enroll-step {
    display: none;
}

.enroll-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.enroll-step h3 {
    margin-bottom: 10px;
    color: var(--color-primary);
    font-weight: 700;
}

.enroll-step p {
    color: var(--color-ink-soft);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.enroll-step input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: 0.3s;
}

.enroll-step input:focus {
    border-color: var(--color-primary-light);
    outline: none;
    box-shadow: 0 0 0 4px rgba(10, 74, 47, 0.1);
}

.enroll-step .btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
}

#whatsappBtn {
    background: #25d366 !important;
    border-color: #25d366 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


#whatsappBtn:hover {
    background: #128c7e !important;
}

/* === BLOG SYSTEM (Module 6) === */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(10, 74, 47, 0.1);
    border-color: var(--color-primary-light);
}

.blog-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.1);
}

.blog-card__badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--color-gold);
    color: var(--color-white);
    padding: 5px 15px;
    border-radius: var(--border-radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.blog-card__content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card__meta {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 12px;
    display: flex;
    gap: 15px;
}

.blog-card__title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.blog-card__title a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s;
}

.blog-card__title a:hover {
    color: var(--color-gold);
}

.blog-card__excerpt {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__link {
    margin-top: auto;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.blog-card__link:hover {
    gap: 12px;
    color: var(--color-gold);
}

/* Blog Filters */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-muted);
}

.blog-filters .form-control, .blog-filters .form-select {
    border-radius: 12px;
    padding: 12px 20px;
    border: 2px solid var(--color-border);
}

.blog-filters .form-control:focus, .blog-filters .form-select:focus {
    border-color: var(--color-primary-light);
    box-shadow: none;
}

/* Responsive Blog */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Article Submission Form */
.submission-card textarea {
    border-radius: 12px;
    padding: 15px;
    border: 2px solid var(--color-border);
}
.submission-card textarea:focus {
    border-color: var(--color-primary-light);
    box-shadow: none;
}

/* RTL Blog Fixes */
html[lang="ur"] .blog-card__badge {
    left: auto;
    right: 15px;
}
html[lang="ur"] .search-icon {
    left: auto;
    right: 20px;
}
html[lang="ur"] .blog-filters .form-control {
    padding-left: 20px;
    padding-right: 50px;
}
html[lang="ur"] .blog-card__link i {
    transform: rotate(180deg);
}

/* ==========================================================================
   MODULE 7: NOTES SYSTEM
   ========================================================================== */

.notes-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .notes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .notes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.note-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

/* RTL overrides for Note Search */
html[lang="ur"] #notesSearch {
    padding-left: 20px !important;
    padding-right: 50px !important;
}

/* ==========================================================================
   MODULE 8: ONLINE EXAM SYSTEM
   ========================================================================== */

.exam-option {
    border: 2px solid;
    transition: all 0.2s ease-in-out;
}

.exam-option:hover {
    border-color: var(--color-primary) !important;
    background-color: rgba(26, 35, 126, 0.05); /* very light primary */
    transform: translateX(5px);
}

html[lang="ur"] .exam-option:hover {
    transform: translateX(-5px);
}

.exam-state-section {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MODULE 9: MOCK TEST SYSTEM & ANALYTICS
   ========================================================================== */

.mock-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--color-primary) !important;
}

.mock-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.q-nav-btn {
    transition: all 0.2s;
}

.q-nav-btn:hover {
    transform: scale(1.1);
}

.result-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(0,0,0,0.05) !important;
}

#historyList .list-group-item {
    transition: background-color 0.2s;
}
#historyList .list-group-item:hover {
    background-color: rgba(0,0,0,0.02);
}

/* ==========================================================================
   MODULE 10: USER DASHBOARD
   ========================================================================== */

.dashboard-layout {
    min-height: calc(100vh - 80px); /* Adjust for header */
}

.sidebar {
    background-color: var(--color-dark) !important;
}

.sidebar .nav-link {
    transition: all 0.2s;
}

.hover-bg-secondary:hover {
    background-color: rgba(255,255,255,0.1);
}

.dash-tab {
    animation: fadeIn 0.3s ease-in-out;
}

@media (max-width: 768px) {
    .dashboard-layout {
        flex-direction: column;
    }
    .sidebar {
        min-width: 100% !important;
        padding: 15px !important;
    }
    .sidebar .nav {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        gap: 10px !important;
        padding-bottom: 5px;
    }
    .sidebar .nav-item {
        white-space: nowrap;
    }
    .sidebar h4 {
        display: none; /* Hide large header on mobile to save space */
    }
}

/* === PREMIUM DEVELOPMENT MODE & ERROR PAGES === */
.dev-mode-notice, .error-glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 134, 11, 0.1);
    border-radius: 24px;
    padding: 3rem;
    max-width: 700px;
    margin: 2rem auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dev-mode-notice:hover, .error-glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    border-color: rgba(184, 134, 11, 0.3);
}

.visual-icon-wrapper {
    width: 100px;
    height: 100px;
    background: #fffbeb;
    color: #b8860b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    box-shadow: inset 0 0 0 2px rgba(184, 134, 11, 0.1);
    animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.premium-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #1a237e;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.premium-lead {
    font-size: 1.15rem;
    color: #4b5563;
    line-height: 1.8;
}

.btn-stitch-gold {
    background: #b8860b;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(184, 134, 11, 0.2);
}

.btn-stitch-gold:hover {
    background: #966d09;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(184, 134, 11, 0.4);
    color: white;
}

.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0;
}
.ornament-divider::before,
.ornament-divider::after {
    content: '';
    height: 1px;
    background: linear-gradient(to right, transparent, #b8860b, transparent);
    width: 60px;
}

/* === 404 PAGE === */
.error-page {
    min-height: 100vh;
    background: radial-gradient(circle at center, #0a4a2f 0%, #06281a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.error-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 8s infinite ease-in-out;
    z-index: 1;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.error-title {
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(to bottom, #ffffff, #c9a227);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: float404 6s infinite ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes float404 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.error-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #c9a227;
    margin-bottom: 1.5rem;
}

.error-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-error-primary {
    background: #c9a227;
    color: #06281a;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #c9a227;
}

.btn-error-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
    color: #06281a;
}

.btn-error-outline {
    background: transparent;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-error-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
    color: #ffffff;
}

@media (max-width: 576px) {
    .error-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-error-primary, .btn-error-outline {
        width: 100%;
    }
    .error-subtitle { font-size: 1.8rem; }
}


/* ==========================================================================
   ISLAMIC SECTION DIVIDERS & COLOR SYSTEM
   ========================================================================== */

/* Color Blending Utility Classes */
.section-dark {
    background-color: #0a4a2f; /* Forest Green */
    color: #ffffff;
}
.section-light {
    background-color: #f4fbf7; /* Very Light Green */
}
.section-white {
    background-color: #ffffff;
}
.section-gold {
    background-color: #c9a227; /* Premium Gold */
}

/* Spacing Rules */
.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Sections that end with a wave divider — remove their bottom padding */
.with-divider {
    padding-bottom: 0 !important;
    position: relative;
    overflow: hidden;
}

/* Pull the NEXT section UP to sit flush under the wave SVG */
.with-divider + section {
    margin-top: 0 !important;
    padding-top: 40px;
}

/* ─── 1. WAVE BLEND DIVIDER ─── */
.divider-wave {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    display: block;
    /* push wave down by 1px to cover sub-pixel antialiasing gap */
    margin-bottom: -1px;
}

.divider-wave svg {
    display: block;
    width: 100%;
    height: 70px;
}

@media (max-width: 768px) {
    .divider-wave svg {
        height: 40px;
    }
    /* On mobile, section after wave needs less top padding */
    .with-divider + section {
        padding-top: 30px;
    }
}

/* Wave Fill Colors based on next section */
.wave-fill-white path { fill: #ffffff; }
.wave-fill-light path { fill: #f4fbf7; }
.wave-fill-dark path { fill: #0a4a2f; }
.wave-fill-gold path { fill: #c9a227; }

/* ─── 2. GEOMETRIC PATTERN DIVIDER ─── */
.divider-pattern {
    height: 24px;
    width: 100%;
    background:
        radial-gradient(circle at 10px 10px, rgba(201,162,39,0.25) 2px, transparent 2px),
        radial-gradient(circle at 30px 30px, rgba(201,162,39,0.25) 2px, transparent 2px);
    background-size: 40px 40px;
    opacity: 0.6;
    margin: 16px 0 0;
}

@keyframes fadeInScroll {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

/* ─── 3. CRESCENT ACCENT DIVIDER ─── */
.divider-crescent {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.divider-crescent:hover {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(201,162,39,0.6));
}

.divider-crescent::before,
.divider-crescent::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a227);
    max-width: 300px;
}

.divider-crescent::after {
    background: linear-gradient(to left, transparent, #c9a227);
}

.divider-crescent span {
    margin: 0 20px;
    color: #c9a227;
    font-size: 24px;
    line-height: 1;
    animation: pulseCrescent 3s infinite ease-in-out;
}

@keyframes pulseCrescent {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}


/* ==========================================================================
   FINAL MOBILE RESPONSIVENESS & SPACING
   ========================================================================== */

@media (max-width: 768px) {
    /* More compact sections on mobile */
    .section-padding {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    
    /* Ensure dividers look good on small screens */
    .divider-wave svg {
        height: 50px !important;
    }
    
    .divider-pattern, .divider-crescent {
        margin: 20px 0 !important;
    }

    /* Adjust page banners for mobile */
    .page-banner {
        padding: 40px 0 !important;
    }
    
    .page-banner h1 {
        font-size: 2.2rem !important;
    }

    /* Compact Achievers Cards on Mobile */
    .result-card {
        padding: 1.5rem 1rem !important;
    }
    
    .result-photo {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .section-padding {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}


/* ==========================================================================
   MODULE 14 — PREMIUM UI OVERHAUL
   Gap-free sections · Golden Marquee · Responsive Stats · Achiever Cards
   ========================================================================== */

/* ──────────────────────────────────────────────────────
   SECTION FLOW — eliminate ALL white gaps
   ────────────────────────────────────────────────────── */
main#main-content > section {
    /* sections sit flush — no accidental margin collapse */
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Every section that carries a wave at its foot */
.with-divider {
    padding-bottom: 0 !important;
    position: relative;
    overflow: visible;           /* allow wave to overlap next section */
}

/* Wave sits flush at the bottom of its parent */
.divider-wave {
    position: relative;
    width: 100%;
    line-height: 0;
    display: block;
    margin-top: -2px;           /* eat the 1-2 px antialiasing seam */
    margin-bottom: 0;
    z-index: 2;
}
.divider-wave svg {
    display: block;
    width: 100%;
    height: 70px;
    vertical-align: bottom;
}

/* The section that immediately follows a wave section */
.with-divider + section {
    margin-top: -1px !important;  /* hide any sub-pixel gap */
    padding-top: 50px;
}

/* Wave colours */
.wave-fill-white  path { fill: #ffffff; }
.wave-fill-light  path { fill: #f4fbf7; }
.wave-fill-bg     path { fill: #f8fdf9; }
.wave-fill-dark   path { fill: #0a4a2f; }
.wave-fill-gold   path { fill: #c9a227; }

/* bg-light-pattern used by courses section */
.bg-light-pattern { background-color: #f4fbf7; }

/* ──────────────────────────────────────────────────────
   GOLDEN MARQUEE STRIP
   ────────────────────────────────────────────────────── */
.marquee-strip {
    background: linear-gradient(135deg, #b8860b 0%, #d4af37 45%, #c9a227 75%, #a07018 100%);
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 4;
    border-top: 1px solid rgba(255,255,255,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.marquee-strip::before,
.marquee-strip::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}
.marquee-strip::before {
    left: 0;
    background: linear-gradient(to right, #b8860b, transparent);
}
.marquee-strip::after {
    right: 0;
    background: linear-gradient(to left, #b8860b, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 30s linear infinite;
    padding: 14px 0;
}
.marquee-track:hover {
    animation-play-state: paused;
}
@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 40px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0a3a20;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}
.marquee-item i {
    color: #0a4a2f;
    font-size: 1rem;
    opacity: 0.8;
}
.marquee-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(10,58,32,0.4);
    flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────
   STATS BAR — unified responsive grid
   ────────────────────────────────────────────────────── */
.stats-bar {
    background: #ffffff;
    border-bottom: 3px solid #c9a227;
    padding: 0;
    box-shadow: 0 6px 24px rgba(10,74,47,0.08);
    position: relative;
    z-index: 5;
}
.stats-bar__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 16px;
    justify-content: center;
    border-right: 1px solid #e2f0e8;
    transition: background 0.3s ease, transform 0.25s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover {
    background: linear-gradient(180deg, rgba(201,162,39,0.06) 0%, transparent 100%);
    transform: translateY(-3px);
}
.stat-icon {
    font-size: 1.8rem;
    color: #0d6b42;
    flex-shrink: 0;
    transition: color 0.3s, transform 0.3s;
}
.stat-item:hover .stat-icon {
    color: #c9a227;
    transform: scale(1.15) rotate(5deg);
}
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 900;
    background: linear-gradient(45deg, #0a4a2f, #2db370);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-plus { font-size: 1.1rem; font-weight: 700; color: #2db370; }
.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #5a7066;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-top: 3px;
    white-space: nowrap;
}

/* Stats responsive cascade */
@media (max-width: 1024px) {
    .stats-bar__grid { grid-template-columns: repeat(3, 1fr); }
    .stat-item { border-bottom: 1px solid #e2f0e8; padding: 18px 12px; }
    .stat-item:nth-child(3n) { border-right: none; }
    .stat-item:nth-child(4), .stat-item:nth-child(5) { border-bottom: none; }
}
@media (max-width: 768px) {
    .stats-bar__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stat-item { padding: 16px 10px !important; border-right: 1px solid #e2f0e8 !important; border-bottom: 1px solid #e2f0e8 !important; }
    .stat-item:nth-child(2n) { border-right: none !important; }
    .stat-item:nth-child(4), .stat-item:nth-child(5) { border-bottom: none !important; }
    .stat-item:last-child { grid-column: span 2; border-right: none !important; }
    .stat-icon { font-size: 1.5rem !important; }
    .stat-number { font-size: 1.4rem !important; }
}
@media (max-width: 480px) {
    .stats-bar__grid { grid-template-columns: repeat(2, 1fr) !important; }
    .stat-item { padding: 13px 8px !important; gap: 8px !important; }
    .stat-icon { font-size: 1.3rem !important; }
    .stat-number { font-size: 1.25rem !important; }
    .stat-label { font-size: 0.65rem !important; }
}

/* ──────────────────────────────────────────────────────
   ACHIEVERS PROFILE CARDS — premium upgrade
   ────────────────────────────────────────────────────── */
.result-card,
.result-card-home {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem 1.5rem 1.75rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(10,74,47,0.07);
    border: 1px solid rgba(201,162,39,0.12);
    transition: transform 0.32s cubic-bezier(.22,.68,0,.97), box-shadow 0.32s ease, border-color 0.3s;
    position: relative;
    overflow: hidden;
}
.result-card::after,
.result-card-home::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0a4a2f, #c9a227, #0a4a2f);
    opacity: 0;
    transition: opacity 0.3s;
}
.result-card:hover::after,
.result-card-home:hover::after { opacity: 1; }
.result-card:hover,
.result-card-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(10,74,47,0.13);
    border-color: rgba(201,162,39,0.35);
}

/* Profile photo — circle with gold ring */
.result-photo,
.result-photo-home {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin: 0 auto 1.25rem;
    display: block;
    border: 3px solid #ffffff;
    outline: 3px solid #c9a227;
    outline-offset: 2px;
    box-shadow: 0 6px 18px rgba(10,74,47,0.15);
    background: #f4fbf7;
    transition: outline-color 0.3s, box-shadow 0.3s;
}
.result-card:hover .result-photo,
.result-card-home:hover .result-photo-home {
    outline-color: #0a4a2f;
    box-shadow: 0 8px 24px rgba(10,74,47,0.25);
}

/* Featured cards: slightly larger photo */
.featured-grid .result-photo { width: 110px; height: 110px; }

.result-name,
.result-name-home {
    font-family: 'Playfair Display', serif;
    color: #0a4a2f;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}
.result-exam,
.result-exam-home {
    color: #6b7f7a;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.result-achievement,
.result-achievement-home {
    display: inline-block;
    background: linear-gradient(135deg, rgba(25,135,84,0.1), rgba(25,135,84,0.06));
    color: #198754;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 16px;
    border-radius: 50px;
    border: 1px solid rgba(25,135,84,0.15);
}
.result-year,
.result-year-home {
    position: absolute;
    top: 14px; left: 14px;
    background: #f4fbf7;
    color: #0a4a2f;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.featured-badge {
    position: absolute;
    top: 14px; right: 14px;
    background: linear-gradient(135deg, #b8860b, #d4af37);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Results grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
.home-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (max-width: 1024px) {
    .results-grid, .home-results-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .results-grid, .home-results-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .result-photo, .result-photo-home { width: 85px; height: 85px; }
}

/* ──────────────────────────────────────────────────────
   SECTION SPACING — consistent across the page
   ────────────────────────────────────────────────────── */
.section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
}
@media (max-width: 768px) {
    .section-padding { padding-top: 44px !important; padding-bottom: 44px !important; }
    .with-divider + section { padding-top: 32px; }
    .divider-wave svg { height: 42px; }
    .divider-crescent { margin: 16px 0 8px !important; }
    .divider-pattern { margin: 12px 0 0 !important; height: 20px !important; }
}
@media (max-width: 480px) {
    .section-padding { padding-top: 36px !important; padding-bottom: 36px !important; }
    .divider-wave svg { height: 30px; }
}


/* ==========================================================================
   NAVBAR — MOBILE LOGO + GLASS SHINE BEAM ANIMATION
   ========================================================================== */

/* ── Glass wrapper: contains the logo/hamburger + the sheen overlay ── */
.nav-logo-glass,
.hamburger-glass-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hamburger-glass-wrap {
    border-radius: 10px;
    padding: 2px;
}

/* ── The actual shine beam ── */
.glass-shine-beam {
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.0) 30%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0.0) 70%,
        transparent 100%
    );
    /* Slow, smooth, infinite sweep — 4s per pass, 2s delay between passes */
    animation: glassShineSlide 5s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
    z-index: 10;
    mix-blend-mode: overlay;
}

@keyframes glassShineSlide {
    0%   { left: -120%; opacity: 0; }
    10%  { opacity: 1; }
    50%  { left: 130%; opacity: 1; }
    60%  { opacity: 0; }
    100% { left: 130%; opacity: 0; }
}

/* Stagger the hamburger beam slightly so they don't sync */
.hamburger-glass-wrap .glass-shine-beam {
    animation-delay: 1.8s;
}

/* ── Mobile logo sizing ── */
.navbar-logo-mobile {
    height: 52px !important;
    width: auto !important;
}

/* Keep the brand link flex-aligned */
.nav-logo-link {
    text-decoration: none !important;
    outline: none;
    gap: 0;
}

/* Hamburger glass wrap: match height to button */
.hamburger-glass-wrap .navbar-toggler {
    border: none;
    background: transparent;
    padding: 6px 8px;
}

/* On very small screens, shrink mobile logo */
@media (max-width: 360px) {
    .navbar-logo-mobile {
        height: 42px !important;
    }
}


/* ==========================================================================
   PREMIUM FOOTER SYSTEM — Module 15
   Deep Green + Gold · Islamic Aesthetic · Fully Responsive
   ========================================================================== */

/* ─── Wave transition into footer ─── */
.footer-wave-top {
    display: block;
    line-height: 0;
    margin-bottom: -2px;
    background: transparent; /* last section's bg shows through */
}
.footer-wave-top svg {
    display: block;
    width: 100%;
    height: 70px;
}

/* ─── Footer shell ─── */
.footer-academy {
    background: #0a4a2f;
    color: rgba(255, 255, 255, 0.80);
    font-family: 'Inter', 'Roboto', sans-serif;
    position: relative;
}

/* ─── Footer body ─── */
.footer-body {
    padding: 56px 0 40px;
}

/* ─── 4-col grid ─── */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px 40px;
}

/* ─── Tablet: 2-col ─── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 32px;
    }
}

/* ─── Mobile: 1-col ─── */
@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px 0;
    }
    .footer-body { padding: 40px 0 28px; }
    .footer-wave-top svg { height: 45px; }
}

/* ─── Brand column ─── */
.footer-col--brand { }

/* ─── Logo in footer ─── */
.footer-logo-link {
    display: inline-block;
    text-decoration: none;
}
.footer-logo-glass {
    position: relative;
    overflow: hidden;
    display: inline-block;
    border-radius: 12px;
}
.footer-logo-img {
    display: block;
    height: 60px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
}
.footer-logo-glass .glass-shine-beam {
    animation-delay: 2.5s;
}

.footer-academy-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #c9a227;
    margin: 0;
    letter-spacing: 0.02em;
}

.footer-desc {
    font-size: 0.88rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 10px;
    margin-bottom: 0;
    max-width: 280px;
}

/* ─── Social Icons ─── */
.footer-socials {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.25);
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease,
                box-shadow 0.3s ease, border-color 0.3s ease;
}
.footer-social-icon:hover {
    background: #c9a227;
    color: #0a4a2f;
    border-color: #c9a227;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}

/* ─── Column Headings ─── */
.footer-col-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c9a227;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
    position: relative;
}
.footer-col-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 30px;
    height: 2px;
    background: #c9a227;
    border-radius: 2px;
}

/* ─── Footer links ─── */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-links li a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease, gap 0.25s ease;
}
.footer-links li a::before {
    content: '›';
    color: #c9a227;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.25s, transform 0.25s;
}
.footer-links li a:hover {
    color: #c9a227;
    gap: 10px;
}
.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(2px);
}

/* ─── Contact list ─── */
.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
}
.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(201, 162, 39, 0.12);
    color: #c9a227;
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.footer-contact-link {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s;
}
.footer-contact-link:hover {
    color: #c9a227;
}

/* ─── WhatsApp CTA Button ─── */
.footer-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}
.footer-whatsapp-btn i {
    font-size: 1.1rem;
}
.footer-whatsapp-btn:hover {
    background: #1fba5a;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    color: #ffffff !important;
}

/* ─── Ornament Divider ─── */
.footer-divider-line {
    padding: 0;
}
.footer-divider-inner {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-divider-inner::before,
.footer-divider-inner::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 162, 39, 0.3), transparent);
}
.footer-divider-ornament {
    color: rgba(201, 162, 39, 0.5);
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* ─── Bottom Bar ─── */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copyright {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin: 0;
}
.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
}
.footer-bottom-links a:hover {
    color: #c9a227;
}
.footer-bottom-sep {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .footer-desc { max-width: 100%; }
}


/* Footer wave — taller to show the deeper curve */
#latest-articles .divider-wave svg {
    height: 100px;
}
@media (max-width: 768px) {
    #latest-articles .divider-wave svg {
        height: 60px;
    }
}
@media (max-width: 480px) {
    #latest-articles .divider-wave svg {
        height: 44px;
    }
}


/* ==========================================================================
   FOOTER — LOGO REMOVAL + WATERMARK TEXT
   ========================================================================== */

/* Tighten brand column since logo is gone */
.footer-col--brand .footer-academy-name {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Watermark container — sits between footer-body and the divider */
.footer-watermark {
    position: relative;
    width: 100%;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    /* Negative margin pulls it up so it overlaps the bottom of footer-body */
    margin-top: -30px;
    height: 110px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* The large watermark word */
.footer-watermark-text {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 10vw, 8.5rem);
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
    line-height: 1;
    /* Gold color, heavily subdued */
    color: #c9a227;
    opacity: 0.07;
    /* Multiply blends the gold into the dark green background — keeps it subtle */
    mix-blend-mode: screen;
    /* Prevent it from overflowing on small screens */
    max-width: 100%;
    text-align: center;
    padding-bottom: 8px;
    transition: opacity 0.4s ease;
}

/* Slightly reveal on footer hover — very subtle interaction */
.footer-academy:hover .footer-watermark-text {
    opacity: 0.11;
}

@media (max-width: 768px) {
    .footer-watermark {
        height: 70px;
        margin-top: -18px;
    }
    .footer-watermark-text {
        font-size: clamp(2.5rem, 14vw, 5rem);
    }
}

@media (max-width: 480px) {
    .footer-watermark {
        height: 52px;
        margin-top: -10px;
    }
}


/* ==========================================================================
   FOOTER — WATERMARK BEHIND CONTENT + EQUAL HEIGHT COLS (Final)
   ========================================================================== */

/* footer-body becomes the stacking context */
.footer-body {
    position: relative;
    overflow: hidden;
}

/* Container sits above the watermark */
.footer-container-relative {
    position: relative;
    z-index: 2;
}

/* Watermark: stretched absolutely across the entire footer-body */
.footer-watermark {
    position: absolute;
    inset: 0;                  /* top:0 right:0 bottom:0 left:0 */
    z-index: 1;                /* behind z-index:2 container */
    display: flex;
    align-items: flex-end;     /* pin text to bottom */
    justify-content: center;
    pointer-events: none;
    user-select: none;
    overflow: hidden;
    margin: 0;
    height: 100%;
}

/* The Urdu text itself */
.footer-watermark-text {
    display: block;
    font-family: 'Gulzar', 'Noto Nastaliq Urdu', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 400;          /* Gulzar looks best at regular weight */
    line-height: 1;
    white-space: nowrap;
    color: #c9a227;
    opacity: 0.08;
    mix-blend-mode: screen;
    text-align: center;
    direction: rtl;
    padding-bottom: 10px;
    letter-spacing: 0.02em;
    transition: opacity 0.5s ease;
}
.footer-academy:hover .footer-watermark-text {
    opacity: 0.13;
}

/* ── Equal-height grid columns ──
   CSS Grid already stretches children to equal height by default.
   We just need to make sure each col's content fills from top.        */
.footer-grid {
    align-items: start;        /* columns start at top, not stretched */
}

/* Each column: same min-height so short columns match tallest */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Brand col: push socials to bottom for visual balance */
.footer-col--brand {
    justify-content: space-between;
}

/* Remove the old standalone watermark styles that used margin-top */
/* (superseded by the absolute positioning above) */


/* ==========================================================================
   FOOTER — WATERMARK POSITION TWEAK + BRAND COLUMN SPACING
   ========================================================================== */

/* Push watermark down 50px so it sits behind links/texts, not the top */
.footer-watermark {
    align-items: flex-end;
    padding-bottom: 0;
    transform: translateY(50px);
}

/* Brand column — breathable spacing between name, desc, and socials */
.footer-col--brand .footer-academy-name {
    margin-bottom: 12px;
}

.footer-col--brand .footer-desc {
    margin-bottom: 28px;   /* gap between description and social icons */
    margin-top: 8px;
}

.footer-col--brand .footer-socials {
    margin-top: 0;         /* already handled by margin-bottom on desc */
}


/* Watermark — move 50px upward */
.footer-watermark {
    transform: translateY(-50px);
}


/* ==========================================================================
   FOOTER BOTTOM BAR — DEVELOPER CREDIT (CENTER)
   ========================================================================== */

/* Make the bottom-inner a 3-part row: left | center | right */
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Centered credit text */
.footer-dev-credit {
    font-size: 0.80rem;
    color: #b8860b;           /* deep gold */
    margin: 0;
    text-align: center;
    flex: 1;                  /* takes available space → stays centered */
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.footer-dev-credit strong {
    color: #c9a227;           /* slightly brighter gold for the name */
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Animated heart icon */
.footer-heart-icon {
    color: #e05252;           /* red heart */
    font-size: 0.78rem;
    display: inline-block;
    animation: heartbeat 1.6s ease-in-out infinite;
    margin: 0 2px;
    vertical-align: middle;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1);    }
    14%       { transform: scale(1.25); }
    28%       { transform: scale(1);    }
    42%       { transform: scale(1.18); }
    56%       { transform: scale(1);    }
}

/* Responsive: stack on very small screens */
@media (max-width: 600px) {
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .footer-dev-credit {
        white-space: normal;
        flex: none;
    }
}


/* ==========================================================================
   FIX: White gap between articles wave and footer on mobile/tablet
   ========================================================================== */

/* The articles section: strip all bottom spacing after the wave */
#latest-articles.with-divider {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* The wave wrapper itself: no gap below it */
#latest-articles .divider-wave {
    display: block;
    margin-bottom: -2px;   /* close the antialiasing seam */
    line-height: 0;
    font-size: 0;
}

#latest-articles .divider-wave svg {
    display: block;
    width: 100%;
}

/* Footer must sit flush against the wave */
.footer-academy {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Mobile & tablet: tighten even more */
@media (max-width: 1024px) {
    #latest-articles .divider-wave svg {
        height: 80px;
    }
    #latest-articles.with-divider {
        padding-bottom: 0 !important;
    }
    .footer-academy {
        margin-top: -3px !important;
    }
}

@media (max-width: 600px) {
    #latest-articles .divider-wave svg {
        height: 55px;
    }
    .footer-academy {
        margin-top: -3px !important;
    }
}


/* ==========================================================================
   FOOTER — CENTER ALL CONTENT ON MOBILE & TABLET (≤1024px)
   ========================================================================== */

@media (max-width: 1024px) {

    /* Center every column */
    .footer-col {
        align-items: center;
        text-align: center;
    }

    /* Academy name */
    .footer-academy-name {
        text-align: center;
    }

    /* Description */
    .footer-desc {
        text-align: center;
        max-width: 100%;
    }

    /* Social icons row */
    .footer-socials {
        justify-content: center;
    }

    /* Column headings — center the underline accent too */
    .footer-col-heading {
        text-align: center;
    }
    .footer-col-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Links list — center items */
    .footer-links {
        align-items: center;
    }
    .footer-links li a {
        justify-content: center;
    }

    /* Contact list — center each row */
    .footer-contact-list li {
        justify-content: center;
        text-align: center;
    }

    /* WhatsApp button */
    .footer-whatsapp-btn {
        align-self: center;
    }

    /* Bottom bar — stack and center */
    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .footer-copyright,
    .footer-dev-credit,
    .footer-bottom-links {
        text-align: center;
        justify-content: center;
    }

    .footer-bottom-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}
