/* 
   Modern Dashboard Sidebar Design V4.1 (Ultimate Professional Edition + Header Upgrade)
   Designed for Yemen Exam
   Concept: "Structured Elegance"
   Author: Antigravity (Google DeepMind)
*/

:root {
    /* Core Brand Colors */
    --brand-primary: #20a985;
    --brand-glow: rgba(32, 169, 133, 0.5);
    --brand-dark: #0d473c;

    /* Backgrounds */
    --bg-sidebar: #0f172a;
    --bg-section: rgba(255, 255, 255, 0.02);

    /* Glass & Borders */
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-highlight: rgba(255, 255, 255, 0.1);

    /* Text */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-header: #64748b;
}

/* 1. Global Smoothness */
.modern-sidebar * {
    /* Hardware acceleration for everything in sidebar */
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.modern-sidebar {
    background: var(--bg-sidebar) !important;
    border-left: 1px solid var(--glass-border) !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2) !important;
}

/* 2. Professional Section Containers */
.sidebar-section-container {
    background: var(--bg-section);
    margin: 0 12px 16px 12px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.sidebar-section-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    padding: 0 8px 8px 8px;
    margin-bottom: 4px;
}

.section-header-text {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-header);
    letter-spacing: 0.5px;
}

/* 3. Top Area: Brand Header (Redesigned) */
.sidebar-logo-area {
    background: linear-gradient(180deg, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 16px;
    padding: 20px 0;
    /* More breathing room */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    z-index: 20;
    position: relative;
    overflow: hidden;
}

/* Header Background Shine */
.sidebar-logo-area::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(32, 169, 133, 0.05) 0%, transparent 60%);
    animation: rotateShine 15s linear infinite;
    pointer-events: none;
}

@keyframes rotateShine {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logo-container {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    box-shadow:
        0 0 0 4px rgba(32, 169, 133, 0.1),
        0 10px 20px -5px var(--brand-glow);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 14px;
    /* Softer corners */
    position: relative;
    z-index: 10;
}

.logo-container:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 0 0 6px rgba(32, 169, 133, 0.2),
        0 15px 30px -5px var(--brand-glow);
}

/* Brand Text Styling */
.brand-text-container {
    padding-right: 12px;
    z-index: 10;
}

.brand-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    background: linear-gradient(90deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
    /* Technical font for subtitle */
    color: var(--brand-primary) !important;
    letter-spacing: 2px !important;
    font-size: 0.65rem !important;
    opacity: 0.9;
    margin-top: 2px;
    display: block;
}

/* 4. Navigation Items: "Ultra Smooth" */
.modern-nav-item {
    position: relative;
    border-radius: 10px;
    margin-bottom: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-muted);
    border: 1px solid transparent;
}

.modern-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    transform: translateX(-2px);
}

.modern-nav-item.active {
    background: linear-gradient(90deg, rgba(32, 169, 133, 0.15), rgba(32, 169, 133, 0.05));
    border: 1px solid rgba(32, 169, 133, 0.3);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modern-nav-item.active::before {
    content: '';
    position: absolute;
    right: -1px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: var(--brand-primary);
    border-radius: 3px 0 0 3px;
    box-shadow: 0 0 8px var(--brand-glow);
}

/* Icon Styling */
.modern-nav-item i {
    transition: transform 0.3s ease;
    width: 24px;
    text-align: center;
}

.modern-nav-item:hover i {
    transform: scale(1.1);
    color: var(--brand-primary);
}

.modern-nav-item.active i {
    color: var(--brand-primary);
    filter: drop-shadow(0 0 5px var(--brand-glow));
}

/* 5. Bottom Area: User Profile "Command Center" */
.user-profile-section {
    background: #0f172a;
    border-top: 1px solid var(--glass-border);
    padding: 16px 12px;
    z-index: 20;
}

.user-profile-card {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.user-profile-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.user-profile-card img {
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s ease;
}

.user-profile-card:hover img {
    border-color: var(--brand-primary);
}

/* 6. Tooltips */
.sidebar-tooltip {
    background: #1e293b !important;
    color: white !important;
    font-size: 0.75rem !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid var(--glass-border) !important;
    white-space: nowrap;
    z-index: 50;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(5px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scrollbar */
.sidebar-scroll::-webkit-scrollbar {
    width: 4px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.sidebar-scroll:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Courses Preview Section - Professional Design
   ========================================================================== */
.premium-courses-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.courses-header-wrapper {
    margin-bottom: 60px;
}

.courses-subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.courses-main-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.courses-divider {
    width: 80px;
    height: 4px;
    background: var(--brand-primary);
    margin: 0 auto;
    border-radius: 2px;
}

.course-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.course-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(32, 169, 133, 0.15);
    border-color: var(--brand-primary);
}

.card-inner {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: #f1f5f9;
}

.course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.course-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    font-size: 50px;
    color: #94a3b8;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--brand-primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(32, 169, 133, 0.3);
}

/* Logo Text Styling */
.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

header.header-area.background-header .logo-text {
    color: var(--brand-dark);
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
    opacity: 0;
    transition: all 0.4s ease;
    text-align: center;
}

.course-card-premium:hover .card-back {
    opacity: 1;
}

.card-back .content {
    color: #fff;
}

.course-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
}

.course-info {
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0.9;
}

.course-info i {
    color: var(--brand-primary);
    margin-left: 5px;
}

.btn-premium-sm {
    background: var(--brand-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-premium-sm:hover {
    background: #fff;
    color: var(--brand-dark) !important;
    transform: scale(1.05);
}

.course-footer {
    padding-top: 15px;
    text-align: center;
}

.course-footer h5 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    transition: color 0.3s ease;
}

.course-card-premium:hover .course-footer h5 {
    color: var(--brand-primary);
}

.btn-view-all-modern {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #1e293b;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-view-all-modern:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.btn-view-all-modern i {
    transition: transform 0.3s ease;
}

.btn-view-all-modern:hover i {
    transform: translateX(-5px);
}

/* ==========================================================================
   Premium Services Section - Enhanced Design
   ========================================================================== */
.premium-services-section {
    position: relative;
    padding: 120px 0;
    background: #ffffff;
    overflow: hidden;
}

.services-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

.shape-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
}

.shape-2 {
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary), transparent 80%) 0%, transparent 70%);
}

.premium-service-card {
    height: 100%;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-service-card .card-inner {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 32px;
    padding: 45px 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

.premium-service-card:hover .card-inner {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(32, 169, 133, 0.12);
    border-color: var(--brand-primary);
}

.service-icon-container {
    width: 90px;
    height: 90px;
    margin-bottom: 35px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--brand-primary);
    border-radius: 24px;
    opacity: 0.08;
    transform: rotate(45deg);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.premium-service-card:hover .icon-bg-glow {
    transform: rotate(135deg);
    opacity: 0.15;
    border-radius: 50%;
}

.icon-wrapper {
    position: relative;
    z-index: 2;
    font-size: 38px;
    color: var(--brand-primary);
    transition: all 0.5s ease;
}

.premium-service-card:hover .icon-wrapper {
    transform: scale(1.15);
}

.service-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.service-divider-sm {
    width: 40px;
    height: 3px;
    background: var(--brand-primary);
    margin-bottom: 20px;
    border-radius: 2px;
    transition: width 0.4s ease;
}

.premium-service-card:hover .service-divider-sm {
    width: 60px;
}

.service-description {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 35px;
    flex-grow: 1;
}

.service-btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    color: #1e293b;
    padding: 12px 12px 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
}

.service-btn-premium .btn-icon {
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--brand-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-btn-premium:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
}

.service-btn-premium:hover .btn-icon {
    transform: translateX(-5px);
    color: var(--brand-primary);
}

/* ==========================================================================
   Premium Website Header - Redesigned for Yemen Exam
   ========================================================================== */

/* Top Bar Styling - High-End Professional Edition */
.premium-top-bar {
    background: #0f172a;
    height: 45px;
    /* Slightly taller for better breathing room */
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-top: 3px solid var(--brand-primary);
    position: relative;
    z-index: 1001;
    box-shadow: inset 0 -10px 20px rgba(0, 0, 0, 0.2);
}

/* Glowing Identity Line Effect */
.premium-top-bar::before {
    content: "";
    position: absolute;
    top: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-primary);
    box-shadow: 0 2px 15px var(--brand-glow);
    z-index: 1;
}

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

.top-info {
    display: flex;
    align-items: center;
    gap: 0;
    /* Using dividers instead of gap */
}

.top-info a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 0 20px;
    position: relative;
}

/* Vertical Divider */
.top-info a:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
}

.top-info a i {
    color: var(--brand-primary);
    margin-left: 10px;
    font-size: 13px;
    opacity: 0.9;
}

.top-info a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.top-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-social a {
    color: #94a3b8;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    /* Circular for more elegance */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
}

.top-social a:hover {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--brand-glow);
}

.top-social a:hover {
    color: #fff;
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    transform: translateY(-3px) rotate(8deg);
    box-shadow: 0 8px 20px rgba(32, 169, 133, 0.4);
}

.top-social a i {
    font-size: 13px;
}

/* Main Header Styling */
.header-area {
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    top: 40px;
    /* Below top bar */
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    height: auto !important;
}

.header-area.background-header {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 10px 0;
}

.header-area .main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0 30px;
    transition: all 0.4s ease;
    min-height: 80px;
}

.header-area.background-header .main-nav {
    background: transparent !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
    min-height: 70px;
}

/* Logo */
.logo-text {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #fff !important;
    letter-spacing: -1px !important;
    text-transform: none !important;
    white-space: nowrap !important;
}

.header-area.background-header .logo-text {
    color: var(--brand-dark) !important;
}

.text-primary {
    color: var(--brand-primary) !important;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

.header-area.background-header .logo-img {
    height: 45px;
}

/* Nav Menu */
.header-area .main-nav .nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    float: none !important;
}

.header-area .main-nav .nav li {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.header-area .main-nav .nav li a {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 18px !important;
    border-radius: 14px !important;
    transition: all 0.3s ease !important;
    position: relative;
    text-transform: none !important;
    height: auto !important;
    line-height: normal !important;
    white-space: nowrap !important;
}

.header-area.background-header .main-nav .nav li a {
    color: #1e293b !important;
}

.header-area .main-nav .nav li a:hover,
.header-area .main-nav .nav li a.active {
    background: var(--brand-primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(32, 169, 133, 0.2) !important;
}

/* Sub Menu */
.has-sub i {
    font-size: 10px;
    margin-right: 5px;
    opacity: 0.7;
}

/* Fix: Hide the default theme arrow to prevent double arrows */
.header-area .main-nav .nav li.has-sub:after {
    display: none !important;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu {
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    min-width: 240px !important;
    top: 80px !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-area.background-header .main-nav .nav li.has-sub ul.sub-menu {
    top: 70px !important;
}

.header-area .main-nav .nav li.has-sub:hover ul.sub-menu {
    opacity: 1;
    visibility: visible;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li {
    margin-bottom: 5px;
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a {
    color: #475569 !important;
    padding: 12px 15px !important;
    font-size: 14px !important;
    border-radius: 12px !important;
    background: transparent !important;
    display: block !important;
    box-shadow: none !important;
    text-align: right !important;
    /* Ensure RTL alignment */
}

.header-area .main-nav .nav li.has-sub ul.sub-menu li a:hover {
    background: rgba(32, 169, 133, 0.08) !important;
    color: var(--brand-primary) !important;
    padding-right: 25px !important;
}

/* Action Button */
.header-action {
    margin-right: 15px;
}

.btn-portal {
    background: var(--brand-primary);
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 20px rgba(32, 169, 133, 0.3);
    transition: all 0.3s ease;
}

.btn-portal:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(32, 169, 133, 0.4);
    background: var(--brand-dark);
    color: #fff !important;
}

/* Mobile Menu Trigger */
.header-area .main-nav .menu-trigger {
    display: none !important;
}

@media (max-width: 991px) {
    .header-area .main-nav .menu-trigger {
        display: flex !important;
    }
}

/* Remove scroll-based position overrides for mobile trigger */
.header-area.background-header .main-nav .menu-trigger {
    top: 0 !important;
}

/* Responsive Adjustments */
@media (max-width: 1400px) {
    .header-area .main-nav .nav li a {
        padding: 10px 14px !important;
        font-size: 14px !important;
    }

    .header-area .main-nav {
        padding: 0 20px;
    }

    .btn-portal {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 1300px) {
    .header-area .main-nav .nav li a {
        padding: 10px 10px !important;
        font-size: 13.5px !important;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text {
        font-size: 24px !important;
    }
}

@media (max-width: 1200px) {
    .header-area .main-nav .nav li a {
        padding: 8px 8px !important;
        font-size: 13px !important;
    }

    .header-area .main-nav {
        padding: 0 10px;
    }

    .logo-img {
        height: 42px;
    }

    .logo-text {
        font-size: 22px !important;
    }

    .btn-portal {
        padding: 8px 15px;
        font-size: 12px;
        gap: 5px;
    }
}

@media (max-width: 1100px) {
    .header-area .main-nav .nav li a {
        padding: 8px 6px !important;
        font-size: 12.5px !important;
    }

    .header-area .main-nav {
        gap: 5px;
    }
}

@media (max-width: 1050px) {
    .header-area .main-nav .nav li a {
        padding: 6px 5px !important;
        font-size: 12px !important;
    }

    .logo-img {
        height: 38px;
    }

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

    .btn-portal span {
        display: none;
        /* Hide text, keep icon only if very tight */
    }

    .btn-portal {
        padding: 10px;
        width: 40px;
        height: 40px;
        justify-content: center;
    }
}

/* Force no wrap for main nav on desktop */
@media (min-width: 992px) {
    .header-area .main-nav {
        flex-wrap: nowrap !important;
    }

    .header-area .main-nav .nav {
        flex-wrap: nowrap !important;
    }
}

/* Hide sidebar elements on desktop */
.mobile-sidebar,
.sidebar-overlay {
    display: none;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 991px) {

    .mobile-sidebar,
    .sidebar-overlay {
        display: flex;
    }

    .sidebar-overlay {
        display: block;
    }

    .premium-top-bar {
        display: none;
    }

    /* Header Area - Refined Mobile Design (Always White & Fixed) */
    .header-area {
        top: 0;
        padding: 0;
        height: 70px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        position: fixed !important;
        /* Always fixed on mobile */
        z-index: 1000;
    }

    .header-area .container {
        width: 100%;
        padding: 0 20px;
    }

    .header-area .main-nav {
        min-height: 70px;
        height: 70px;
        background: transparent !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        /* RTL: Logo Right, Menu Left */
        padding: 0 !important;
        width: 100%;
    }

    .header-area .main-nav .logo {
        float: none !important;
        line-height: normal !important;
        margin: 0 !important;
        order: 1;
        display: flex;
        align-items: center;
        height: 100%;
    }

    .header-area .main-nav .logo img {
        height: 38px !important;
        /* Slightly smaller for better proportions */
        width: auto;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    }

    /* Menu Trigger - Creative Left Side Button */
    .header-area .main-nav .menu-trigger {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        left: 0 !important;
        margin: 0 !important;
        width: 42px;
        height: 42px;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border: 1px solid rgba(32, 169, 133, 0.15);
        border-radius: 12px;
        order: 2;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .header-area .main-nav .menu-trigger span,
    .header-area .main-nav .menu-trigger span:before,
    .header-area .main-nav .menu-trigger span:after {
        background-color: var(--brand-primary) !important;
    }

    .header-area .logo-text {
        color: var(--brand-dark) !important;
    }

    .header-area .main-nav .menu-trigger:active {
        transform: scale(0.92);
        background: #fff;
        border-color: var(--brand-primary);
    }

    .header-area .main-nav .menu-trigger span {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 20px !important;
        height: 2px !important;
        background-color: var(--brand-primary) !important;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .header-area .main-nav .menu-trigger span:before,
    .header-area .main-nav .menu-trigger span:after {
        content: "";
        position: absolute;
        left: 0;
        height: 2px;
        background-color: var(--brand-primary) !important;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .header-area .main-nav .menu-trigger span:before {
        top: -7px !important;
        width: 100% !important;
    }

    .header-area .main-nav .menu-trigger span:after {
        top: 7px !important;
        width: 65% !important;
        left: auto;
        right: 0;
    }

    .desktop-menu,
    .header-action {
        display: none !important;
    }

    /* Sidebar Styles - Professional Drawer */
    .mobile-sidebar {
        position: fixed;
        top: 0;
        right: -320px;
        width: 320px;
        height: 100vh;
        background: #fff;
        z-index: 2000;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -15px 0 50px rgba(0, 0, 0, 0.15);
        display: flex;
        flex-direction: column;
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
    }

    .mobile-sidebar.active {
        right: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 1999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
    }

    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-header {
        padding: 30px 25px;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        /* Logo Right, Close Left */
    }

    .sidebar-logo img {
        height: 45px;
        width: auto;
    }

    .close-sidebar {
        background: #f1f5f9;
        border: none;
        width: 45px;
        height: 45px;
        border-radius: 14px;
        color: var(--brand-dark);
        font-size: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .close-sidebar:hover {
        background: var(--brand-primary);
        color: #fff;
    }

    .sidebar-content {
        flex: 1;
        overflow-y: auto;
        padding: 25px 0;
    }

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

    .sidebar-link {
        display: flex;
        align-items: center;
        padding: 16px 25px;
        color: #334155;
        font-weight: 700;
        font-size: 16px;
        transition: all 0.3s ease;
        border-right: 4px solid transparent;
        flex-direction: row-reverse;
        /* RTL */
        justify-content: flex-start;
        gap: 18px;
    }

    .sidebar-link i:first-child {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-primary);
        background: rgba(32, 169, 133, 0.08);
        border-radius: 8px;
        font-size: 14px;
    }

    /* Fix: Hide double arrows in sidebar */
    .sidebar-link .arrow {
        margin-right: auto;
        margin-left: 0;
        font-size: 11px;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        color: #94a3b8;
    }

    /* Ensure no theme-generated arrows appear */
    .sidebar-nav li:after,
    .sidebar-link:after {
        display: none !important;
    }

    .sidebar-link:hover,
    .sidebar-link.active {
        background: rgba(32, 169, 133, 0.04);
        color: var(--brand-primary);
        border-right-color: var(--brand-primary);
    }

    .sidebar-submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        background: #f8fafc;
        display: none;
        border-right: 4px solid #f1f5f9;
    }

    .sidebar-submenu li a {
        display: block;
        padding: 14px 65px 14px 25px;
        color: #64748b;
        font-size: 14px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-align: right;
        position: relative;
    }

    .sidebar-submenu li a:before {
        content: "";
        position: absolute;
        right: 45px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        background: #cbd5e1;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .sidebar-submenu li a:hover {
        color: var(--brand-primary);
        padding-right: 75px;
    }

    .sidebar-submenu li a:hover:before {
        background: var(--brand-primary);
    }

    .has-sub-sidebar.open .arrow {
        transform: rotate(-90deg);
        color: var(--brand-primary);
    }

    .has-sub-sidebar.open .sidebar-submenu {
        display: block;
    }

    .sidebar-footer {
        padding: 30px 25px;
        border-top: 1px solid #f1f5f9;
        background: #f8fafc;
        text-align: center;
    }

    .sidebar-social {
        display: flex;
        gap: 15px;
        margin-bottom: 20px;
        justify-content: center;
    }

    .sidebar-social a {
        width: 40px;
        height: 40px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--brand-dark);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
    }

    .sidebar-social a:hover {
        background: var(--brand-primary);
        color: #fff;
        border-color: var(--brand-primary);
        transform: translateY(-5px);
    }

    .copyright {
        font-size: 12px;
        color: #94a3b8;
        font-weight: 600;
        margin: 0;
    }
}

/* ==========================================================================
   Premium Hero Section - Redesigned
   ========================================================================== */
.premium-hero-section {
    position: relative;
    overflow: hidden;
    background: #0f172a;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: clamp(140px, 20vh, 200px) 0 100px;
}

@media (max-width: 991px) {
    .premium-hero-section {
        min-height: 100svh;
        padding: 120px 0 80px;
    }
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pulse-icon {
    width: 8px;
    height: 8px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(32, 169, 133, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(32, 169, 133, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(32, 169, 133, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(32, 169, 133, 0);
    }
}

.hero-title {
    font-size: clamp(2.2rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

.btn-hero-primary {
    background: var(--brand-primary);
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(32, 169, 133, 0.3);
    transition: all 0.3s ease;
}

.btn-hero-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(32, 169, 133, 0.4);
    background: #fff;
    color: var(--brand-dark);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    color: #fff;
}

@media (max-width: 991px) {
    .hero-content {
        text-align: center;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions {
        justify-content: center;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 700;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: #fff;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* ==========================================================================
   Premium Stats Section - Redesigned
   ========================================================================== */
.premium-stats-section {
    padding: 120px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.stats-subtitle {
    display: block;
    color: var(--brand-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.stats-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 20px;
}

.stats-divider {
    width: 60px;
    height: 4px;
    background: var(--brand-primary);
    border-radius: 2px;
    margin-bottom: 30px;
}

.stats-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
}

.stat-card-modern {
    background: #fff;
    padding: 30px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.stat-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(32, 169, 133, 0.1);
    border-color: var(--brand-primary);
}

.stat-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(32, 169, 133, 0.1);
    color: var(--brand-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin: 0;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    margin: 0;
}

.stats-media-wrapper {
    position: relative;
}

.video-preview-container {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.play-btn-premium {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.play-btn-premium i {
    width: 80px;
    height: 80px;
    background: #fff;
    color: var(--brand-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.play-btn-premium:hover i {
    transform: scale(1.1);
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 0 0 20px rgba(32, 169, 133, 0.3);
}

.play-text {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.media-decoration {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    background: var(--brand-primary);
    opacity: 0.1;
    border-radius: 50%;
    z-index: 1;
}

@media (max-width: 1400px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

    .premium-stats-section,
    .premium-services-section,
    .premium-courses-section {
        padding: 80px 0;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .stats-title {
        font-size: 2.2rem;
    }

    .stat-card-modern {
        padding: 20px;
        gap: 15px;
    }

    .stat-number {
        font-size: 1.7rem;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 15px 30px;
        width: 100%;
        justify-content: center;
    }

    .stats-title {
        font-size: 2rem;
        text-align: center;
    }

    .stats-subtitle,
    .stats-divider {
        margin-left: auto;
        margin-right: auto;
    }

    .stats-description {
        text-align: center;
        font-size: 1rem;
    }

    .stat-card-modern {
        padding: 20px;
    }

    .premium-stats-section,
    .premium-services-section,
    .premium-courses-section {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-badge {
        padding: 6px 15px;
        font-size: 12px;
        margin-bottom: 20px;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .premium-card {
        padding: 30px 20px;
        border-radius: 30px;
    }

    .premium-card-header h2 {
        font-size: 1.8rem;
    }

    .premium-card-header .icon-box {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .stats-title {
        font-size: 1.5rem;
    }

    .stat-card-modern {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
    }

    .stat-icon-wrapper {
        margin-bottom: 10px;
    }
}

/* ==========================================================================
   Ultra-Premium Search & Result Pages (Expert Edition)
   ========================================================================== */
:root {
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    --accent-gradient: linear-gradient(135deg, var(--brand-primary) 0%, #10b981 100%);
    --dark-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.premium-search-section {
    padding: 120px 0;
    background: radial-gradient(circle at top right, rgba(32, 169, 133, 0.05), transparent),
        radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.02), transparent),
        #f8fafc;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Animated Background Elements */
.premium-search-section::before,
.premium-search-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: float-bg 20s infinite alternate;
}

.premium-search-section::before {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: rgba(32, 169, 133, 0.08);
}

.premium-search-section::after {
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(15, 23, 42, 0.05);
    animation-delay: -10s;
}

@keyframes float-bg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Ultra Card Design */
.premium-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 60px;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 991px) {
    .premium-card {
        padding: 40px;
        border-radius: 30px;
    }
}

@media (max-width: 768px) {
    .premium-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .premium-card-header {
        margin-bottom: 30px;
    }

    .premium-card-header .icon-box {
        width: 80px;
        height: 80px;
        font-size: 32px;
        border-radius: 24px;
        margin-bottom: 20px;
    }

    .premium-card-header h2 {
        font-size: 1.8rem;
    }

    .premium-card-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .premium-card {
        padding: 25px 15px;
    }

    .premium-card-header h2 {
        font-size: 1.5rem;
    }
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px -15px rgba(0, 0, 0, 0.12);
}

.premium-card-header {
    text-align: center;
    margin-bottom: 50px;
}

.premium-card-header .icon-box {
    width: 100px;
    height: 100px;
    background: var(--accent-gradient);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fff;
    font-size: 42px;
    box-shadow: 0 20px 40px rgba(32, 169, 133, 0.3);
    position: relative;
}

.premium-card-header .icon-box::after {
    content: "";
    position: absolute;
    inset: -5px;
    border: 2px solid var(--brand-primary);
    border-radius: 35px;
    opacity: 0.3;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

.premium-card-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.premium-card-header p {
    color: #64748b;
    font-size: 1.15rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Advanced Form Elements */
.premium-form-group {
    margin-bottom: 30px;
}

.premium-form-group label {
    display: block;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 12px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-right: 5px;
}

.premium-input-wrapper {
    position: relative;
}

.premium-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.premium-input {
    width: 100%;
    padding: 18px 55px 18px 25px;
    border-radius: 20px;
    border: 2px solid #f1f5f9;
    background: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--brand-dark);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.premium-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 5px rgba(32, 169, 133, 0.1);
    outline: none;
    transform: scale(1.01);
}

.premium-input:focus+i {
    color: var(--brand-primary);
}

/* Ultra Button */
.premium-btn-search {
    width: 100%;
    padding: 22px;
    border-radius: 20px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(32, 169, 133, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.premium-btn-search::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.premium-btn-search:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px rgba(32, 169, 133, 0.35);
}

.premium-btn-search:hover::before {
    left: 100%;
}

/* Result Page - Ultra Edition */
.premium-result-card {
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.result-header-premium {
    background: var(--dark-gradient);
    padding: 60px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.result-header-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.result-seat-number-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 30px 60px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.result-seat-number-box .label {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--brand-primary);
}

.result-seat-number-box .number {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.result-content-premium {
    padding: 60px;
}

.student-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-box-premium {
    background: #f8fafc;
    padding: 25px 30px;
    border-radius: 25px;
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-box-premium:hover {
    background: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.info-box-premium .label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-box-premium .value {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--brand-dark);
}

/* Ultra Table */
.premium-table-container {
    margin-top: 50px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

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

.premium-table th {
    background: #f8fafc;
    padding: 20px 30px;
    text-align: right;
    font-weight: 900;
    color: var(--brand-dark);
    border-bottom: 2px solid #f1f5f9;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.premium-table td {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 700;
    color: #475569;
    font-size: 1.05rem;
}

.premium-table tr:hover td {
    background: rgba(32, 169, 133, 0.03);
    color: var(--brand-primary);
}

/* Action Bar Ultra */
.premium-action-bar {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-premium-action {
    padding: 18px 40px;
    border-radius: 20px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}

.btn-premium-print {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 15px 30px rgba(32, 169, 133, 0.2);
}

.btn-premium-back {
    background: #fff;
    color: var(--brand-dark);
    border: 2px solid #f1f5f9;
}

.btn-premium-action:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.btn-premium-print:hover {
    box-shadow: 0 20px 40px rgba(32, 169, 133, 0.3);
}

@media (max-width: 991px) {
    .premium-card {
        padding: 40px 30px;
    }

    .premium-card-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .student-info-grid {
        grid-template-columns: 1fr;
    }

    .result-seat-number-box {
        padding: 20px 30px;
    }

    .result-seat-number-box .number {
        font-size: 3rem;
        letter-spacing: 4px;
    }

    .premium-action-bar {
        flex-direction: column;
    }

    .btn-premium-action {
        width: 100%;
        justify-content: center;
    }
}



/* ==========================================================================
   Ultra-Premium News System (Expert Edition) - Enhanced
   ========================================================================== */
.ultra-news-section {
    padding: 80px 0;
    background: #f8fafc;
}

/* News Filter Bar */
.ultra-news-filters {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    padding: 10px;
    margin-bottom: 50px;
    box-shadow: var(--card-shadow);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ultra-filter-btn {
    padding: 12px 25px;
    border-radius: 18px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.ultra-filter-btn:hover {
    color: var(--brand-primary);
    background: rgba(32, 169, 133, 0.05);
}

.ultra-filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(32, 169, 133, 0.2);
}

/* Premium News Card */
.ultra-news-card {
    background: #fff;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
}

.ultra-news-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.ultra-news-card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.ultra-news-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ultra-news-card:hover .ultra-news-card-img-wrapper img {
    transform: scale(1.1) rotate(1deg);
}

.ultra-news-card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-dark);
    z-index: 2;
    border: 1px solid var(--glass-border);
}

.ultra-news-card-date-box {
    position: absolute;
    bottom: 0;
    left: 20px;
    background: #fff;
    padding: 10px 15px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}

.ultra-news-card-date-box .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-primary);
    line-height: 1;
}

.ultra-news-card-date-box .month {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
}

.ultra-news-card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ultra-news-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.ultra-news-card-title a {
    color: inherit;
    text-decoration: none;
}

.ultra-news-card-title:hover {
    color: var(--brand-primary);
}

.ultra-news-card-text {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.ultra-news-card-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ultra-news-more-btn {
    color: var(--brand-primary);
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.ultra-news-more-btn:hover {
    gap: 12px;
}

/* News Detail Ultra - Expert Edition */
.ultra-news-detail-hero {
    position: relative;
    height: 600px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.ultra-news-detail-hero img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transform: scale(1.1);
    /* Base scale for parallax room */
    transition: transform 0.5s ease-out;
    /* Smoother transition for JS updates */
}

.ultra-news-detail-hero:hover img {
    transform: scale(1.1);
}

.ultra-news-detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, transparent 100%);
    z-index: 2;
}

.ultra-news-detail-header-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 100px;
    color: #fff;
}

.ultra-news-detail-category {
    background: var(--accent-gradient);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 900;
    margin-bottom: 25px;
    display: inline-block;
    box-shadow: 0 10px 20px rgba(32, 169, 133, 0.3);
}

.ultra-news-detail-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 900px;
}

.ultra-news-detail-meta {
    display: flex;
    gap: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
}

.ultra-news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ultra-news-detail-meta i {
    color: var(--brand-primary);
    font-size: 1.2rem;
}

.ultra-content-row {
    margin-top: -100px;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .ultra-content-row {
        margin-top: -60px;
        /* Less overlap on mobile */
    }
}

/* Detail Card & Content */
.ultra-news-detail-card {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 2;
}

.ultra-news-detail-body {
    padding: 80px;
    font-size: 1.3rem;
    line-height: 2.2;
    color: #334155;
    text-align: justify;
}

.ultra-news-detail-body p {
    margin-bottom: 35px;
}

.ultra-news-detail-body blockquote {
    margin: 50px 0;
    padding: 40px;
    background: #f8fafc;
    border-right: 8px solid var(--brand-primary);
    border-radius: 20px;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--brand-dark);
    position: relative;
}

.ultra-news-detail-body blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 8rem;
    color: var(--brand-primary);
    opacity: 0.1;
    font-family: serif;
}

/* Sidebar in Detail */
.ultra-detail-sidebar {
    padding: 40px;
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.ultra-sidebar-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ultra-sidebar-title::after {
    content: '';
    flex-grow: 1;
    height: 2px;
    background: #f1f5f9;
}

.ultra-related-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ultra-related-item:hover {
    transform: translateX(-5px);
}

.ultra-related-img {
    width: 90px;
    height: 90px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

.ultra-related-content h6 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ultra-related-content span {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 700;
}

/* Footer & Share */
.ultra-news-detail-footer {
    padding: 50px 80px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ultra-share-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ultra-share-box span {
    font-weight: 900;
    color: var(--brand-dark);
    font-size: 1.1rem;
}

.ultra-share-btn {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    font-size: 1.2rem;
}

.ultra-share-btn:hover {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(32, 169, 133, 0.2);
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 5px;
    background: var(--accent-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

@media (max-width: 1199px) {
    .ultra-news-detail-title {
        font-size: 2.8rem;
    }

    .ultra-news-detail-body {
        padding: 50px;
    }

    .ultra-news-detail-footer {
        padding: 40px 50px;
    }
}

@media (max-width: 991px) {
    .ultra-news-detail-hero {
        height: 500px;
    }

    .ultra-news-detail-title {
        font-size: 2.2rem;
    }

    .ultra-news-detail-meta {
        gap: 20px;
        font-size: 1rem;
    }

    .ultra-news-detail-body {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .ultra-news-detail-hero {
        height: auto;
        min-height: 500px;
        padding-top: 140px !important;
        padding-bottom: 40px;
        display: flex;
        align-items: flex-start;
        z-index: 10;
    }

    .ultra-news-detail-header-content {
        padding: 20px;
        padding-bottom: 20px;
        z-index: 15;
    }

    .ultra-news-detail-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .ultra-news-detail-body {
        padding: 25px;
        font-size: 1.1rem;
        line-height: 1.8;
    }

    .ultra-news-detail-footer {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 30px 20px;
    }

    .ultra-share-box {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .ultra-news-detail-card {
        border-radius: 30px;
        z-index: 5;
    }

    .ultra-news-detail-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .ultra-meta-glass-box {
        padding: 15px 20px;
        width: 100%;
        border-radius: 20px;
        position: relative;
        z-index: 20;
    }

    .ultra-news-detail-category {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .ultra-content-row {
        margin-top: 0;
        /* Remove overlap on mobile to prevent z-index issues */
        padding-top: 30px;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .ultra-news-detail-hero {
        height: 350px;
    }

    .ultra-news-detail-title {
        font-size: 1.5rem;
    }

    .ultra-news-detail-body {
        padding: 20px;
    }

    .ultra-share-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Ultra-Premium Courses System (Expert Edition)
   ========================================================================== */

.ultra-courses-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

/* Courses Hero */
.ultra-courses-hero {
    padding: 160px 0 120px;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ultra-courses-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M54.627 0l.83.83L1.457 55.457l-.83-.83L54.627 0zm-52.77 0l.83.83L1.457 1.23l-.83-.83L1.857 0z" fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"/%3E%3C/svg%3E');
}

/* Courses Filters */
.ultra-courses-filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 30px;
    margin-top: -60px;
    margin-bottom: 60px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
}

.ultra-filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ultra-filter-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-right: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ultra-filter-label i {
    color: var(--brand-primary);
}

.ultra-select-custom,
.ultra-input-custom {
    width: 100%;
    padding: 12px 20px;
    border-radius: 15px;
    border: 2px solid #f1f5f9;
    background: #fff;
    font-weight: 700;
    color: #334155;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 18px;
}

.ultra-input-custom {
    background-image: none;
}

.ultra-select-custom:focus,
.ultra-input-custom:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(32, 169, 133, 0.1);
    outline: none;
}

/* Course Card */
.ultra-course-card {
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    position: relative;
}

.ultra-course-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    border-color: rgba(32, 169, 133, 0.2);
}

.ultra-course-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.ultra-course-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.ultra-course-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.ultra-course-card:hover .ultra-course-overlay {
    opacity: 1;
}

.ultra-course-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--brand-dark);
    z-index: 2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.ultra-course-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ultra-course-title {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ultra-course-card:hover .ultra-course-title {
    color: var(--brand-primary);
}

.ultra-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.ultra-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    padding: 6px 12px;
    border-radius: 10px;
}

.ultra-meta-item i {
    color: var(--brand-primary);
}

.ultra-course-footer {
    padding: 0 30px 30px;
}

.ultra-download-btn {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    background: var(--brand-primary);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-shadow: 0 10px 20px rgba(32, 169, 133, 0.2);
}

.ultra-download-btn:hover {
    background: var(--brand-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.2);
    color: #fff;
}

.ultra-download-btn.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .ultra-courses-hero {
        padding: 120px 0 80px;
    }

    .ultra-courses-filters {
        padding: 20px;
        margin-top: -40px;
        border-radius: 20px;
    }

    .ultra-course-card {
        border-radius: 25px;
    }

    .ultra-course-img-wrapper {
        height: 220px;
    }

    .ultra-course-body {
        padding: 20px;
    }

    .ultra-course-title {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Ultra-Premium 3D Book Styles
   ========================================================================== */

:root {
    --book-w: 200px;
    --book-h: 280px;
}

.ultra-book-container {
    margin-bottom: 40px;
    transition: all 0.4s ease;
}

.book-card {
    perspective: 1500px;
    margin-bottom: 0;
}

.book-3d {
    position: relative;
    width: var(--book-w);
    height: var(--book-h);
    transform-style: preserve-3d;
    margin-inline: auto;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ultra-book-container:hover .book-3d {
    transform: translateY(-10px);
}

.book-pages {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to left, #fafafa 0 2px, #f2f2f2 2px 4px);
    border: 1px solid #e2e8f0;
    border-radius: 5px 15px 15px 5px;
    box-shadow:
        inset -10px 0 20px rgba(0, 0, 0, 0.05),
        10px 10px 30px rgba(0, 0, 0, 0.1);
}

.book-cover {
    position: absolute;
    inset: 0;
    border-radius: 5px 15px 15px 5px;
    transform-origin: left center;
    transform: rotateY(0deg) translateZ(2px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: 5;
}

.book-card:hover .book-cover {
    transform: rotateY(-35deg) translateZ(2px);
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.3);
}

.book-spine {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 15px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), rgba(255, 255, 255, 0.1), rgba(0, 0, 0, 0.1));
    z-index: 10;
}

.book-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    text-align: center;
}

.book-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.book-year {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    font-weight: 700;
}

.book-cover.ultra-teal {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.ultra-book-main-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ultra-book-meta-small {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

.ultra-download-btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ultra-download-btn-sm:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(32, 169, 133, 0.2);
}

.ultra-download-btn-sm.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
}

/* Sheen effect for book cover */
.book-cover::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: none;
}

.book-card:hover .book-cover::after {
    animation: bookSheen 1.5s infinite;
}

@keyframes bookSheen {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

/* ==========================================================================
   Ultra-Premium Deleted Curriculum Styles
   ========================================================================== */

.ultra-deleted-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
}

.ultra-deleted-hero {
    padding: 160px 0 120px;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ultra-deleted-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M54.627 0l.83.83L1.457 55.457l-.83-.83L54.627 0zm-52.77 0l.83.83L1.457 1.23l-.83-.83L1.857 0z" fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"/%3E%3C/svg%3E');
}

.ultra-deleted-filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 30px;
    margin-top: -60px;
    margin-bottom: 60px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
}

/* Deleted Item Card (Detail View) */
.ultra-deleted-card {
    background: #fff;
    border-radius: 25px;
    padding: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    position: relative;
}

.ultra-deleted-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
    border-color: rgba(225, 29, 72, 0.2);
}

.ultra-deleted-card-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0.8;
}

.ultra-deleted-card-body {
    padding: 30px;
    flex-grow: 1;
}

.ultra-deleted-type-badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(225, 29, 72, 0.08);
    color: #e11d48;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.ultra-deleted-item-title {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.ultra-deleted-item-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
}

.ultra-deleted-meta-box {
    background: #f8fafc;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ultra-deleted-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.ultra-deleted-meta-item i {
    color: #e11d48;
    font-size: 1rem;
}

.ultra-deleted-card-footer {
    padding: 20px 30px;
    background: #fcfdfe;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ultra-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #fff;
    border: 2px solid #ffe4e6;
    border-radius: 15px;
    color: #e11d48;
    font-weight: 800;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ultra-print-btn:hover {
    background: #e11d48;
    color: #fff;
    border-color: #e11d48;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

/* ==========================================================================
   Ultra-Premium Deleted Curriculum - Subject Cards & Detail Header
   ========================================================================== */

.ultra-subject-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.ultra-subject-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ultra-subject-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
    border-color: rgba(225, 29, 72, 0.1);
}

.ultra-subject-card:hover::before {
    opacity: 1;
}

.ultra-subject-icon-box {
    width: 90px;
    height: 90px;
    background: #fff5f6;
    color: #e11d48;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.05);
}

.ultra-subject-card:hover .ultra-subject-icon-box {
    background: #e11d48;
    color: #fff;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.2);
}

.ultra-subject-name {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 15px;
}

.ultra-subject-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.ultra-subject-badge-item {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 15px;
    background: #f8fafc;
    color: #64748b;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.ultra-subject-footer {
    margin-top: auto;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ultra-subject-count {
    font-size: 0.85rem;
    font-weight: 800;
    color: #e11d48;
    background: rgba(225, 29, 72, 0.05);
    padding: 5px 12px;
    border-radius: 10px;
}

.ultra-subject-link-text {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Detail Header Premium */
.ultra-detail-header-premium {
    background: #fff;
    border-radius: 35px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.02);
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
}

.ultra-detail-header-premium::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--accent-gradient);
}

.ultra-detail-header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.ultra-detail-subject-info {
    display: flex;
    align-items: center;
    gap: 25px;
}

.ultra-detail-subject-icon {
    width: 70px;
    height: 70px;
    background: #fff5f6;
    color: #e11d48;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.05);
}

.ultra-detail-subject-text h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 5px;
}

.ultra-detail-subject-text p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    margin: 0;
}

.ultra-detail-actions {
    display: flex;
    gap: 15px;
}

.ultra-btn-back {
    padding: 14px 28px;
    background: #f8fafc;
    color: #475569;
    border-radius: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.ultra-btn-back:hover {
    background: #fff;
    color: var(--brand-dark);
    border-color: var(--brand-dark);
    transform: translateX(5px);
}

.ultra-btn-print {
    padding: 14px 28px;
    background: #e11d48;
    color: #fff;
    border-radius: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.2);
}

.ultra-btn-print:hover {
    background: #be123c;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(225, 29, 72, 0.3);
}

@media (max-width: 991px) {
    .ultra-detail-header-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .ultra-detail-actions {
        width: 100%;
    }

    .ultra-btn-back,
    .ultra-btn-print {
        flex: 1;
        justify-content: center;
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Ultra-Premium Exam Schedule Styles
   ========================================================================== */

.ultra-schedule-hero {
    padding: 160px 0 120px;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ultra-schedule-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"%3E%3Ccircle cx="3" cy="3" r="3"/%3E%3Ccircle cx="13" cy="13" r="3"/%3E%3C/g%3E%3C/svg%3E');
}

.ultra-schedule-section {
    padding: 100px 0;
    background: #f8fafc;
}

/* Grade Cards */
.ultra-grade-card {
    background: #fff;
    border-radius: 35px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    position: relative;
    overflow: hidden;
}

.ultra-grade-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.ultra-grade-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.12);
}

.ultra-grade-card:hover::after {
    transform: scaleX(1);
}

.ultra-grade-icon {
    width: 100px;
    height: 100px;
    background: #f0fdf4;
    color: var(--brand-primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    margin-bottom: 30px;
    transition: all 0.5s ease;
}

.ultra-grade-card:hover .ultra-grade-icon {
    background: var(--brand-primary);
    color: #fff;
    transform: rotate(10deg) scale(1.1);
}

.ultra-grade-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.ultra-grade-desc {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
}

/* Schedule Table Premium */
.ultra-schedule-container {
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

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

.ultra-table th {
    background: #fcfdfe;
    padding: 25px 30px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid #f1f5f9;
    text-align: right;
}

.ultra-table td {
    padding: 30px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

.ultra-subject-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.ultra-subject-icon-sm {
    width: 50px;
    height: 50px;
    background: #f0fdf4;
    color: var(--brand-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.ultra-subject-title {
    font-weight: 900;
    color: var(--brand-dark);
    font-size: 1.2rem;
}

.ultra-date-box {
    display: flex;
    flex-direction: column;
}

.ultra-date-day {
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1.1rem;
}

.ultra-date-full {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
}

.ultra-time-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #f8fafc;
    border-radius: 15px;
    font-weight: 800;
    color: var(--brand-dark);
    border: 1px solid #f1f5f9;
}

.ultra-time-tag i {
    color: #3b82f6;
}

.ultra-duration-text {
    font-size: 0.8rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 5px;
    display: block;
}

/* Mobile Schedule Cards */
@media (max-width: 991px) {
    .ultra-table thead {
        display: none;
    }

    .ultra-table,
    .ultra-table tbody,
    .ultra-table tr,
    .ultra-table td {
        display: block;
    }

    .ultra-table tr {
        margin-bottom: 25px;
        background: #fff;
        border-radius: 30px;
        padding: 20px;
        border: 1px solid #f1f5f9;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03);
    }

    .ultra-table td {
        padding: 15px 0;
        border-bottom: 1px dashed #f1f5f9;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

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

    .ultra-table td::before {
        content: attr(data-label);
        font-weight: 800;
        color: #94a3b8;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Ultra-Premium Academic Calendar Styles
   ========================================================================== */

.ultra-calendar-hero {
    padding: 160px 0 120px;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.ultra-calendar-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M15 0v30M0 15h30" stroke="%23ffffff" stroke-opacity="0.03" fill="none"/%3E%3C/svg%3E');
}

.ultra-calendar-section {
    padding: 100px 0;
    background: #f8fafc;
}

.ultra-calendar-filters {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 30px;
    /* margin-top: -60px; */
    margin-bottom: 60px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
    position: relative;
    z-index: 10;
}

/* Event Card Premium - Refined */
/* Event Card Premium - New Design */
/* ==========================================================================
   Ultra-Premium Academic Timeline Styles - Artistic Edition
   ========================================================================== */

.ultra-calendar-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Background Decoration */
.ultra-calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
    pointer-events: none;
}

/* Timeline Container */
.ultra-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0;
}

/* The Vertical Line */
.ultra-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #cbd5e1;
    transform: translateX(-50%);
    opacity: 0.5;
    background: linear-gradient(to bottom,
            transparent 0%,
            #cbd5e1 10%,
            #cbd5e1 90%,
            transparent 100%);
}

/* Timeline Item */
.ultra-timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ultra-timeline-item:last-child {
    margin-bottom: 0;
}

/* Content Box - Artistic Touch */
.ultra-timeline-content {
    position: relative;
    width: 42%;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.02),
        0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy effect */
    z-index: 1;
    overflow: hidden;
}

/* Glassy Shine Effect */
.ultra-timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ultra-timeline-content:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        0 20px 40px -5px rgba(15, 23, 42, 0.08),
        0 10px 15px -5px rgba(15, 23, 42, 0.04);
}

.ultra-timeline-content:hover::after {
    opacity: 1;
}

/* Decorative Corner Blob */
.ultra-timeline-deco {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
    opacity: 0.04;
    border-radius: 50%;
    transition: all 0.6s ease;
    pointer-events: none;
}

.ultra-timeline-content:hover .ultra-timeline-deco {
    transform: scale(1.5);
    opacity: 0.08;
}

/* Positioning Alternation */
.ultra-timeline-item:nth-child(odd) .ultra-timeline-content {
    margin-right: auto;
    text-align: right;
}

.ultra-timeline-item:nth-child(even) .ultra-timeline-content {
    margin-left: auto;
    text-align: left;
}

/* Refined Arrow */
.ultra-timeline-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
}

.ultra-timeline-item:nth-child(odd) .ultra-timeline-content::before {
    right: -6px;
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-right: 1px solid rgba(255, 255, 255, 0.8);
}

.ultra-timeline-item:nth-child(even) .ultra-timeline-content::before {
    left: -6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.8);
}

/* Central Node/Marker - Artistic */
.ultra-timeline-marker {
    position: absolute;
    left: 50%;
    top: 40px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border: 3px solid var(--brand-primary);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 4px #f8fafc;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ultra-timeline-item:hover .ultra-timeline-marker {
    transform: translateX(-50%) scale(1.5);
    background: var(--brand-primary);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.15);
    border-color: #fff;
}

/* Date Label */
.ultra-timeline-date-label {
    position: absolute;
    top: 35px;
    width: 42%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ultra-timeline-item:nth-child(odd) .ultra-timeline-date-label {
    left: 50%;
    padding-left: 60px;
    text-align: left;
    align-items: flex-start;
}

.ultra-timeline-item:nth-child(even) .ultra-timeline-date-label {
    right: 50%;
    padding-right: 60px;
    text-align: right;
    align-items: flex-end;
}

.ultra-date-day {
    font-size: 3rem;
    font-weight: 900;
    line-height: 0.9;
    background: linear-gradient(45deg, var(--brand-dark), #64748b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: -2px;
    font-family: 'Outfit', sans-serif;
    /* Ensure premium font */
}

.ultra-date-month {
    font-size: 0.9rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Content Typography */
.ultra-timeline-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    position: relative;
    padding-bottom: 15px;
}

.ultra-timeline-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: #f1f5f9;
    border-radius: 2px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.ultra-timeline-item:nth-child(even) .ultra-timeline-title::after {
    right: auto;
    left: 0;
}

.ultra-timeline-content:hover .ultra-timeline-title::after {
    width: 60px;
    background: var(--brand-primary);
}

.ultra-timeline-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 25px;
    font-weight: 400;
}

.ultra-timeline-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.ultra-timeline-content:hover .ultra-timeline-meta {
    background: #fff;
    border-color: #f1f5f9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .ultra-timeline::before {
        left: 30px;
    }

    .ultra-timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 70px;
        margin-bottom: 60px;
    }

    .ultra-timeline-item:nth-child(odd) .ultra-timeline-content,
    .ultra-timeline-item:nth-child(even) .ultra-timeline-content {
        width: 100%;
        margin: 0;
        text-align: right;
    }

    .ultra-timeline-content::before {
        display: none;
    }

    .ultra-timeline-marker {
        left: 30px;
        top: 30px;
    }

    .ultra-timeline-date-label {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        width: 100%;
        padding: 0 0 20px 0 !important;
        text-align: right !important;
        align-items: flex-start !important;
        flex-direction: row;
        gap: 15px;
        align-items: baseline !important;
    }

    .ultra-date-day {
        font-size: 2.2rem;
    }

    .ultra-timeline-title::after {
        right: 0 !important;
        left: auto !important;
    }
}

/* ==========================================================================
   Ultra-Premium Statistics Section
   ========================================================================== */

.ultra-stats-section {
    padding: 120px 0;
    background: var(--dark-gradient);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.ultra-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
}

.ultra-stats-header {
    margin-bottom: 40px;
}

.ultra-stats-subtitle {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--brand-primary-light, #6ee7b7);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ultra-stats-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ultra-stats-desc {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.8;
    max-width: 500px;
}

/* Ultra Stat Card */
.ultra-stat-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.4s ease;
}

.ultra-stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.ultra-stat-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--brand-primary-light, #6ee7b7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.ultra-stat-info {
    flex-grow: 1;
}

.ultra-stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

.ultra-stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Media Side */
.ultra-stats-media {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ultra-stats-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.ultra-stats-media:hover .ultra-stats-img {
    transform: scale(1.05);
}

.ultra-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.ultra-play-btn:hover {
    background: #fff;
    color: var(--brand-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

.ultra-play-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }

    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
    }
}

/* ==========================================================================
   Ultra-Premium Academic Timeline Styles - Masterclass Edition (Overrides)
   ========================================================================== */

.ultra-calendar-section {
    padding: 120px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

/* Subtle Grid Background */
.ultra-calendar-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(226, 232, 240, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(226, 232, 240, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

/* Timeline Container */
.ultra-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* The Vertical Line - Dashed & Elegant */
.ultra-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: none;
    /* Reset */
    background-image: linear-gradient(to bottom, #cbd5e1 60%, rgba(255, 255, 255, 0) 0%);
    background-position: right;
    background-size: 2px 12px;
    background-repeat: repeat-y;
    transform: translateX(-50%);
    opacity: 0.6;
}

/* Timeline Item */
.ultra-timeline-item {
    position: relative;
    margin-bottom: 100px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Content Box - The Masterpiece */
/* Content Box - Modern Minimalist Luxury */
.ultra-timeline-content {
    position: relative;
    width: 44%;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    /* Perfect modern curve */
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.02),
        0 2px 4px -1px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(0, 0, 0, 0.03);
    /* Subtle border via shadow */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden;
}

.ultra-timeline-content:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.05),
        0 10px 10px -5px rgba(0, 0, 0, 0.02),
        0 0 0 1px rgba(79, 70, 229, 0.1);
    /* Colored border hint */
}

/* Elegant Top Gradient Bar */
.ultra-timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-primary, #4f46e5), #818cf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ultra-timeline-content:hover::after {
    opacity: 1;
}

/* Remove old deco */
.ultra-timeline-deco {
    display: none !important;
}

/* Typography Refinements */
.ultra-timeline-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.ultra-timeline-desc {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #64748b;
    font-weight: 500;
}

/* Connector Line (Horizontal) */
.ultra-timeline-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: -1;
    transition: width 0.3s ease;
    border: none;
    /* Reset old border styles */
    transform: none;
    /* Reset rotation */
    box-shadow: none;
}

.ultra-timeline-item:nth-child(odd) .ultra-timeline-content::before {
    right: -40px;
    left: auto;
    border: none;
}

.ultra-timeline-item:nth-child(even) .ultra-timeline-content::before {
    left: -40px;
    right: auto;
    border: none;
}

.ultra-timeline-item:hover .ultra-timeline-content::before {
    background: var(--brand-primary, #4f46e5);
    opacity: 0.5;
}

/* Central Node/Marker - Minimalist Ring */
.ultra-timeline-marker {
    position: absolute;
    left: 50%;
    top: 31px;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    z-index: 20;
    transition: all 0.4s ease;
    box-shadow: none;
    /* Reset */
}

/* Inner Dot */
.ultra-timeline-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 8px;
    height: 8px;
    background: var(--brand-primary, #4f46e5);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ultra-timeline-item:hover .ultra-timeline-marker {
    border-color: var(--brand-primary, #4f46e5);
    box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.05);
    transform: translateX(-50%);
    /* Reset scale */
    background: #f8fafc;
}

.ultra-timeline-item:hover .ultra-timeline-marker::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Date Label - Typography Focus */
.ultra-timeline-date-label {
    position: absolute;
    top: 30px;
    width: 44%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ultra-date-day {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.8;
    color: #e2e8f0;
    margin-bottom: 0;
    font-family: 'Outfit', sans-serif;
    background: none;
    /* Reset gradient */
    -webkit-text-fill-color: initial;
    transition: color 0.3s ease, transform 0.3s ease;
}

.ultra-timeline-item:hover .ultra-date-day {
    color: var(--brand-dark, #1e293b);
    transform: scale(1.05);
}

.ultra-date-month {
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 10px;
}

/* Content Typography */
.ultra-timeline-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    padding-bottom: 0;
}

.ultra-timeline-title::after {
    display: none;
    /* Remove old underline */
}

.ultra-timeline-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 400;
}

/* Meta Tags - Pill Style */
.ultra-timeline-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    border: none;
    transition: all 0.2s ease;
}

.ultra-timeline-content:hover .ultra-timeline-meta {
    background: #e2e8f0;
    color: #334155;
    box-shadow: none;
}

/* Mobile Responsive Overrides */
@media (max-width: 991px) {
    .ultra-timeline {
        padding: 40px 20px;
    }

    .ultra-timeline::before {
        left: 20px;
        background-image: linear-gradient(to bottom, #cbd5e1 60%, rgba(255, 255, 255, 0) 0%);
    }

    .ultra-timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 60px;
        margin-bottom: 40px;
    }

    .ultra-timeline-content {
        width: 100%;
        margin: 0 !important;
        text-align: right !important;
        padding: 30px;
        /* Slightly less padding on mobile */
    }

    .ultra-timeline-item:nth-child(odd) .ultra-timeline-content,
    .ultra-timeline-item:nth-child(even) .ultra-timeline-content {
        margin-right: 0;
        margin-left: 0;
    }

    /* Connector for mobile */
    .ultra-timeline-content::before {
        width: 30px;
        /* Longer connector for better spacing */
        left: -30px !important;
        right: auto !important;
        top: 40px;
        /* Match desktop alignment */
    }

    .ultra-timeline-marker {
        left: 20px;
        top: 31px;
        /* Match desktop alignment logic */
    }

    .ultra-timeline-date-label {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        width: 100%;
        padding: 0 0 15px 0 !important;
        text-align: right !important;
        align-items: center !important;
        flex-direction: row;
        gap: 12px;
        margin-bottom: 5px;
    }

    .ultra-date-day {
        font-size: 2rem;
        color: var(--brand-primary, #4f46e5);
        line-height: 1;
    }

    .ultra-date-month {
        margin-top: 0;
        font-size: 0.9rem;
        color: #64748b;
    }
}

/* Extra Small Screens */
@media (max-width: 576px) {
    .ultra-timeline-content {
        padding: 24px;
    }

    .ultra-timeline-title {
        font-size: 1.1rem;
    }

    .ultra-timeline-content::before {
        top: 34px;
        /* Adjust for smaller padding */
    }

    .ultra-timeline-marker {
        top: 25px;
        /* Adjust for smaller padding */
    }
}