/* Redesigned Premium CSS for "افهمها" Homepage */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --primary-blue: #0D6EFD;
    --primary-hover: #0b5ed7;
    --dark-blue: #1E3A8A;
    --gold-accent: #F4B400;
    --light-bg: #F8FAFC;
    --white: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    --font-cairo: 'Cairo', sans-serif;
    --shadow-soft: 0 10px 30px -5px rgba(13, 110, 253, 0.05), 0 20px 40px -15px rgba(30, 58, 138, 0.05);
    --shadow-hover: 0 20px 40px -5px rgba(13, 110, 253, 0.1), 0 30px 60px -15px rgba(30, 58, 138, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-cairo) !important;
    background-color: var(--light-bg);
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* Glassmorphism utility */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

/* Gradients */
.bg-gradient-blue {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2FE 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, var(--dark-blue) 0%, #0F172A 100%);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 120px 0;
    position: relative;
    overflow: hidden;
}

/* Background elements and floating shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

.hero-bg-shapes .shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, rgba(13, 110, 253, 0) 70%);
    top: -150px;
    right: -100px;
}

.hero-bg-shapes .shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(244, 180, 0, 0.15) 0%, rgba(244, 180, 0, 0) 70%);
    bottom: 50px;
    left: -100px;
}

/* Educational book/star decorative items */
.hero-bg-shapes .deco-star {
    position: absolute;
    color: var(--gold-accent);
    opacity: 0.3;
    font-size: 24px;
    animation: spinFloat 8s linear infinite;
}

.hero-bg-shapes .star-1 { top: 15%; left: 10%; animation-delay: 0s; }
.hero-bg-shapes .star-2 { bottom: 20%; right: 15%; animation-delay: 2.5s; }
.hero-bg-shapes .star-3 { top: 40%; right: 45%; animation-delay: 4.5s; }

.hero-bg-shapes .deco-book {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(13, 110, 253, 0.15);
    border-radius: 12px;
    opacity: 0.2;
    transform: rotate(15deg);
    animation: floatSlow 12s ease-in-out infinite alternate;
}

.hero-bg-shapes .book-1 { top: 25%; right: 8%; }
.hero-bg-shapes .book-2 { bottom: 15%; left: 8%; animation-delay: 2s; }

/* Columns grid & spacing adjustments */
.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 20px; /* Better breathing room between text & image */
    animation: slideInRight 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.badge-egypt {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-blue);
    border: 1px solid rgba(13, 110, 253, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.05);
}

.hero-title {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.35;
    color: var(--dark-blue);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-title span {
    background: linear-gradient(120deg, var(--primary-blue), var(--dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-dark);
    opacity: 0.85;
    line-height: 1.9;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Trust Indicators inside Hero section */
.hero-trust-indicators {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 40px;
    animation: staggeredFade 1s ease-out 0.4s both;
}

.trust-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.trust-stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.trust-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, 0.1);
    border-color: rgba(13, 110, 253, 0.25);
    background: #ffffff;
}

.trust-stat-card:hover::before {
    opacity: 1;
}

.trust-stat-card .stat-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.trust-stat-card:hover .stat-icon-box {
    transform: scale(1.1) rotate(8deg);
}

/* Accent Colors for Icon Containers */
.stat-icon-box.blue {
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-blue);
}
.stat-icon-box.gold {
    background: rgba(244, 180, 0, 0.08);
    color: var(--gold-accent);
}
.stat-icon-box.green {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}
.stat-icon-box.red {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}

.trust-stat-card .stat-info {
    display: flex;
    flex-direction: column;
    text-align: right;
    flex-grow: 1;
    min-width: 0;
}

.trust-stat-card .stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    white-space: nowrap;
}

.trust-stat-card .stat-lbl {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsiveness for Trust Cards */
@media (max-width: 1200px) {
    .hero-trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .hero-trust-indicators {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .trust-stat-card {
        padding: 10px 12px;
        border-radius: 16px;
    }
    .trust-stat-card .stat-val {
        font-size: 16px;
    }
    .trust-stat-card .stat-lbl {
        font-size: 11px;
    }
    .trust-stat-card .stat-icon-box {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 15px;
    }
}

/* CTA Buttons area styling */
.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    animation: staggeredFade 1s ease-out 0.6s both;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white) !important;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    box-shadow: 0 10px 24px -5px rgba(13, 110, 253, 0.35);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

/* Gentle shine effect on primary CTA button */
.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 4s ease-in-out infinite;
}

.btn-primary-custom:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(13, 110, 253, 0.45);
}

.btn-secondary-custom {
    background: var(--white);
    color: var(--text-dark) !important;
    border: 1px solid var(--border-color);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 17px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-secondary-custom:hover {
    background: var(--light-bg);
    border-color: var(--primary-blue);
    color: var(--primary-blue) !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.08);
}

/* Teacher image area styling (reduced by 10-15%) */
.hero-image-wrapper {
    position: relative;
    z-index: 2;
    max-width: 90%; /* Sized down from 100% */
    margin: 0 auto;
    animation: slideInLeft 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-image-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 35px 70px -15px rgba(15, 23, 42, 0.18);
    border: 5px solid var(--white);
    transition: var(--transition);
    position: relative;
}

.hero-image-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 25px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.hero-image-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 45px 85px -15px rgba(15, 23, 42, 0.22);
}

/* Glass cards around teacher image */
.hero-floating-card {
    position: absolute;
    padding: 16px 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    animation: floatSlow 6s ease-in-out infinite;
    z-index: 10;
}

.hero-floating-card.card-1 {
    top: 15%;
    right: -30px;
    animation-delay: 0s;
}

.hero-floating-card.card-2 {
    bottom: 15%;
    left: -30px;
    animation-delay: 3s;
}

/* Keyframes animations definitions */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes shine {
    0% { left: -60%; }
    15%, 100% { left: 130%; }
}

@keyframes pulseGlow {
    from { transform: scale(1) translate(0, 0); opacity: 0.5; }
    to { transform: scale(1.1) translate(20px, -20px); opacity: 0.7; }
}

@keyframes spinFloat {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.floating-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.floating-icon.icon-blue {
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-blue);
}

.floating-icon.icon-gold {
    background: rgba(244, 180, 0, 0.1);
    color: var(--gold-accent);
}

/* Trust Section legacy removal */
.trust-section {
    display: none !important;
}

/* Subjects Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark-blue);
}

.subject-card {
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
    height: 100%;
}

.subject-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.subject-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px auto;
    transition: var(--transition);
}

.subject-card:hover .subject-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.subject-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.subject-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Teachers Section */
.teacher-card {
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.teacher-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

.teacher-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-image-wrapper img {
    transform: scale(1.08);
}

.teacher-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(13, 110, 253, 0.9);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
}

.teacher-info {
    padding: 24px;
}

.teacher-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.teacher-subject {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 16px;
}

.teacher-stats {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.teacher-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.teacher-stat i {
    color: var(--gold-accent);
}

/* Why Choose Us */
.feature-box {
    padding: 30px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Student Reviews Carousel */
.review-card {
    padding: 32px;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid var(--border-color);
    margin: 15px;
    box-shadow: var(--shadow-soft);
}

.review-stars {
    color: var(--gold-accent);
    margin-bottom: 20px;
    font-size: 16px;
}

.review-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-style: italic;
}

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

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.author-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 4px;
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* App Section */
.app-section {
    padding: 80px 0;
    border-radius: 40px;
    margin-bottom: 100px;
}

.app-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.app-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--white);
}

.app-features li i {
    color: var(--gold-accent);
    font-size: 18px;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-app {
    background: var(--white);
    color: var(--text-dark) !important;
    border-radius: 12px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-app:hover {
    background: transparent;
    border-color: var(--white);
    color: var(--white) !important;
    transform: translateY(-3px);
}

.btn-app i {
    font-size: 24px;
}

.app-mockup-wrapper {
    position: relative;
    text-align: center;
}

.app-mockup-wrapper img {
    max-width: 85%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.3));
    animation: float-app 5s ease-in-out infinite;
}

@keyframes float-app {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(1deg); }
}

/* Footer styling */
.redesigned-footer {
    padding: 80px 0 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-brand img {
    height: 45px;
    margin-bottom: 24px;
}

.footer-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.06);
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-blue);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-right: 5px;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    font-size: 14px;
}

.newsletter-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.newsletter-form button {
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 700;
}

.footer-bottom {
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Premium Splash Screen Container */
.splash-container {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: bgFadeDarkToLight 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, splashFadeOutPureCSS 0.5s cubic-bezier(0.83, 0, 0.17, 1) 3s forwards;
    background: #0F172A;
}

/* Floating background light particles */
.splash-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(13, 110, 253, 0.2);
    border-radius: 50%;
    pointer-events: none;
}
.splash-particle:nth-child(1) { top: 20%; left: 15%; animation: floatSlow 8s infinite alternate; }
.splash-particle:nth-child(2) { top: 70%; left: 80%; animation: floatSlow 12s infinite alternate-reverse; }
.splash-particle:nth-child(3) { top: 40%; left: 75%; animation: floatSlow 10s infinite alternate; }
.splash-particle:nth-child(4) { top: 80%; left: 20%; animation: floatSlow 9s infinite alternate-reverse; }

/* Logo Content Wrapper */
.splash-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transform: scale(0.95);
    animation: splashLogoScaleUp 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Open Book SVG stroke drawing animation */
.splash-svg {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
}

.splash-svg .book-path {
    fill: none;
    stroke: #0D6EFD; /* Hardcoded fallback for reliability */
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawBookPath 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Inner pages flip/open effect */
.splash-svg .book-page {
    animation: openPages 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

/* Sparkle Golden Stars delay fade */
.splash-svg .star {
    fill: #F4B400; /* Hardcoded fallback for reliability */
    opacity: 0;
    transform: scale(0);
    transform-box: fill-box;
    transform-origin: center;
}

.splash-svg .star-center {
    animation: starSparkle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1s forwards, starPulse 2s ease-in-out infinite 1.8s;
}

.splash-svg .star-left {
    animation: starSparkle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards, starPulse 2s ease-in-out infinite 2.2s;
}

.splash-svg .star-right {
    animation: starSparkle 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s forwards, starPulse 2s ease-in-out infinite 2s;
}

/* Brand logo title fade in */
.splash-title {
    font-family: var(--font-cairo);
    font-weight: 800;
    font-size: 28px;
    color: var(--dark-blue);
    opacity: 0;
    transform: translateY(10px);
    animation: textFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.splash-title span {
    color: var(--primary-blue);
}

/* Premium Loading progress bar */
.splash-progress-bar {
    width: 180px;
    height: 4px;
    background: rgba(13, 110, 253, 0.15);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: elementFadeIn 0.8s ease forwards 1.4s;
}

.splash-progress-fill {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-blue), var(--dark-blue));
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* Fade out splash container state */
.splash-container.splash-fade-out {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.83, 0, 0.17, 1), visibility 0.6s cubic-bezier(0.83, 0, 0.17, 1);
    pointer-events: none;
}

/* Keyframes definitions */
@keyframes splashFadeOutPureCSS {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes bgFadeDarkToLight {
    0% {
        background-color: #0F172A;
    }
    40% {
        background-color: #0F172A;
    }
    100% {
        background-color: #FFFFFF;
    }
}

@keyframes drawBookPath {
    to {
        stroke-dashoffset: 0;
    }
}

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

@keyframes starSparkle {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-30deg);
    }
    70% {
        transform: scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(244, 180, 0, 0.4));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 6px rgba(244, 180, 0, 0.8));
    }
}

@keyframes textFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes elementFadeIn {
    to {
        opacity: 1;
    }
}

@keyframes splashLogoScaleUp {
    0% {
        transform: scale(0.95);
    }
    85% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* Scroll lock when splash screen is active */
body.splash-active {
    overflow: hidden !important;
    animation: bodyScrollUnlock 0s forwards 3s;
}

@keyframes bodyScrollUnlock {
    to {
        overflow: auto !important;
    }
}

/* ==========================================
   New Dark Premium Hero Section & Collage CSS
   ========================================== */

/* Aurora Animated Mesh Gradient Background */
.hero-section-premium-dark {
    background: #020b18 !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(13, 110, 253, 0.15) 0, transparent 50%),
        radial-gradient(at 50% 0%, rgba(6, 182, 212, 0.12) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.1) 0, transparent 50%),
        linear-gradient(180deg, #020b18 0%, #03142e 100%) !important;
    padding: 160px 0 100px 0 !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Background Aurora Glowing Lights */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-bg-shapes .aurora-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: auroraDrift 15s ease-in-out infinite alternate;
}

.hero-bg-shapes .glow-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.3) 0%, rgba(0, 200, 255, 0) 70%);
    top: -10%;
    left: 15%;
    animation-delay: 0s;
}

.hero-bg-shapes .glow-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 211, 53, 0.2) 0%, rgba(255, 211, 53, 0) 70%);
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

.hero-bg-shapes .glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, rgba(139, 92, 246, 0) 70%);
    top: 30%;
    right: 5%;
    animation-delay: 6s;
}

@keyframes auroraDrift {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    50% { transform: translateY(-30px) scale(1.1) rotate(60deg); }
    100% { transform: translateY(10px) scale(0.9) rotate(120deg); }
}

/* Star Glow & Pulse Animation */
.deco-star {
    position: absolute;
    color: #FFD335 !important;
    filter: drop-shadow(0 0 8px rgba(255, 211, 53, 0.8)) !important;
    opacity: 0.7;
    font-size: 16px;
    animation: starPulse 3s ease-in-out infinite alternate;
}
.star-1 { top: 20%; left: 8%; animation-delay: 0s; }
.star-2 { bottom: 30%; right: 10%; animation-delay: 1s; }
.star-3 { top: 45%; left: 45%; animation-delay: 2s; }

@keyframes starPulse {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.25); }
}

/* Staggered Text Reveal Animation */
.reveal-word {
    display: inline-block;
    opacity: 1;
    animation: revealTextEffect 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

/* Premium Headline */
.hero-title-dark {
    font-size: 54px !important;
    font-weight: 900 !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    margin-bottom: 24px !important;
    font-family: var(--font-cairo) !important;
    letter-spacing: -0.5px;
}

.highlight-pill-yellow {
    display: inline-block;
    background: linear-gradient(135deg, #FFD335 0%, #E2B200 100%) !important;
    color: #02142D !important;
    padding: 2px 26px !important;
    border-radius: 100px !important;
    font-weight: 900 !important;
    transform: rotate(-1.5deg) !important;
    margin: 0 4px !important;
    box-shadow: 0 8px 25px rgba(255, 211, 53, 0.35) !important;
    text-shadow: none !important;
}

.highlight-pill-cyan {
    display: inline-block;
    background: linear-gradient(135deg, #00C8FF 0%, #0099CC 100%) !important;
    color: #02142D !important;
    padding: 2px 26px !important;
    border-radius: 100px !important;
    font-weight: 900 !important;
    transform: rotate(1.5deg) !important;
    margin: 0 4px !important;
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.35) !important;
    text-shadow: none !important;
}

.hero-desc-dark {
    font-size: 17px !important;
    color: rgba(255, 255, 255, 0.8) !important;
    line-height: 1.9 !important;
    margin-bottom: 30px !important;
    max-width: 580px !important;
    font-family: var(--font-cairo) !important;
}

/* Glassmorphism Search Bar */
.hero-search-wrapper {
    position: relative;
    max-width: 540px;
    margin-bottom: 24px;
    z-index: 20;
}

.hero-search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(0, 200, 255, 0.15);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-search-container:focus-within {
    border-color: #00C8FF;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 35px rgba(0, 200, 255, 0.25);
}

.hero-search-icon {
    color: #00C8FF;
    font-size: 18px;
    margin-left: 12px;
}

.hero-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-cairo);
    font-size: 15px;
    width: 100%;
    direction: rtl;
    text-align: right;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.3s ease;
}

.hero-search-btn {
    background: linear-gradient(135deg, #00C8FF 0%, #0D6EFD 100%);
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-cairo);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.2);
}

.hero-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 255, 0.35);
}

/* Autocomplete suggestions box */
.search-suggestions-box {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(3, 15, 36, 0.95);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 999;
    padding: 10px;
    backdrop-filter: blur(20px);
    display: none;
}

.search-suggestions-box.active {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-cairo);
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s ease;
    text-align: right;
}

.suggestion-item:hover {
    background: rgba(0, 200, 255, 0.1);
    color: #00C8FF;
    padding-right: 20px;
}

.suggestion-item i {
    color: #00C8FF;
    font-size: 14px;
}

/* Trending search terms tags */
.trending-search-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-family: var(--font-cairo);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.trending-search-tags a {
    color: #00C8FF;
    text-decoration: none;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.15);
    padding: 3px 12px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.trending-search-tags a:hover {
    color: #ffffff;
    background: #00C8FF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.25);
}

/* CTA Buttons styling */
.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, #00C8FF 0%, #0D6EFD 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 14px 34px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    box-shadow: 0 8px 25px rgba(0, 200, 255, 0.35) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-primary-custom::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 25%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% { left: -60%; }
    20%, 100% { left: 130%; }
}

.btn-primary-custom:hover {
    transform: translateY(-4px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(0, 200, 255, 0.5) !important;
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    padding: 14px 34px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #00C8FF !important;
    color: #00C8FF !important;
    transform: translateY(-4px) !important;
}

/* Quote/Testimonial Box */
.hero-quote-box-dark {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 520px;
}

.hero-quote-box-dark .quote-icon {
    font-size: 24px;
    color: #FFD335;
    opacity: 0.8;
}

.hero-quote-box-dark .quote-content {
    font-size: 14px !important;
    line-height: 1.7 !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-family: var(--font-cairo) !important;
    text-align: right !important;
}

.hero-quote-box-dark .quote-author {
    display: block !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-top: 4px !important;
}

/* Student Cards Collage layout */
.student-collage-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 540px;
    margin: 0 auto;
    will-change: transform;
}

.student-collage-card {
    position: absolute;
    border-radius: 24px;
    overflow: hidden;
    border: 3.5px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, top, left;
}

.student-collage-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay gradient behind collage cards */
.student-collage-container::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.15) 0%, rgba(0, 200, 255, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* Precise Overlapping Cards Placement */
.student-card-center {
    width: 215px;
    height: 300px;
    z-index: 10;
    top: 50%;
    left: 50%;
    animation: floatCenter 7s ease-in-out infinite;
}

.student-card-top {
    width: 160px;
    height: 190px;
    z-index: 8;
    top: 18%;
    left: 75%;
    animation: floatTop 8s ease-in-out infinite 1s;
}

.student-card-bottom {
    width: 190px;
    height: 200px;
    z-index: 11;
    top: 76%;
    left: 72%;
    animation: floatBottom 9s ease-in-out infinite 0.5s;
}

.student-card-left {
    width: 175px;
    height: 250px;
    z-index: 9;
    top: 48%;
    left: 22%;
    animation: floatLeft 10s ease-in-out infinite 1.5s;
}

/* Independent Floating keyframes for layered depth */
@keyframes floatCenter {
    0%, 100% { transform: translate(-50%, -50%) rotate(-1.5deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(-1.5deg) translateY(-8px); }
}
@keyframes floatTop {
    0%, 100% { transform: translate(-50%, -50%) rotate(4deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(4deg) translateY(-12px); }
}
@keyframes floatBottom {
    0%, 100% { transform: translate(-50%, -50%) rotate(-3deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(-3deg) translateY(-10px); }
}
@keyframes floatLeft {
    0%, 100% { transform: translate(-50%, -50%) rotate(3deg) translateY(0); }
    50% { transform: translate(-50%, -50%) rotate(3deg) translateY(-14px); }
}

.student-collage-card:hover {
    transform: translate(-50%, -50%) scale(1.06) rotate(0deg) !important;
    z-index: 20;
    border-color: #00C8FF;
    box-shadow: 0 35px 80px rgba(0, 200, 255, 0.25);
}

/* Floating Course Cards around the collage */
.floating-course-card {
    position: absolute;
    z-index: 15;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    color: #ffffff;
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
    will-change: transform;
}

.floating-course-card i {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* Card 1: Math */
.floating-card-math {
    top: 15%;
    left: 18%;
    animation: floatLeft 8s ease-in-out infinite 0.3s;
}
.floating-card-math i {
    background: rgba(255, 211, 53, 0.1);
    color: #FFD335;
    border: 1px solid rgba(255, 211, 53, 0.25);
}

/* Card 2: Physics */
.floating-card-physics {
    top: 50%;
    left: 80%;
    animation: floatBottom 10s ease-in-out infinite 0.7s;
}
.floating-card-physics i {
    background: rgba(0, 200, 255, 0.1);
    color: #00C8FF;
    border: 1px solid rgba(0, 200, 255, 0.25);
}

/* Card 3: Arabic */
.floating-card-arabic {
    bottom: 12%;
    left: 20%;
    animation: floatTop 9s ease-in-out infinite 1.2s;
}
.floating-card-arabic i {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.floating-course-card:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: #00C8FF;
    box-shadow: 0 20px 40px rgba(0, 200, 255, 0.2);
}

/* Starburst badge overlay */
.starburst-overlay-badge {
    position: absolute;
    z-index: 12;
    top: 58%;
    left: 36%;
    width: 50px;
    height: 50px;
    background: #FFD335;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #020813;
    box-shadow: 0 10px 25px rgba(255, 211, 53, 0.4);
    transform: translate(-50%, -50%) rotate(12deg);
    animation: pulseStarburst 2.5s infinite ease-in-out;
}

@keyframes pulseStarburst {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(12deg); }
    50% { transform: translate(-50%, -50%) scale(1.08) rotate(18deg); }
}

/* Adjustments for responsive viewports */
@media (max-width: 991px) {
    .hero-section-premium-dark {
        padding: 130px 0 70px 0 !important;
        text-align: center;
    }
    
    .hero-title-dark {
        font-size: 38px !important;
        line-height: 1.35 !important;
    }
    
    .hero-desc-dark {
        font-size: 15px !important;
        margin: 0 auto 25px auto !important;
    }

    .hero-search-wrapper {
        margin: 0 auto 24px auto !important;
    }
    
    .student-collage-container {
        height: 420px;
        max-width: 400px;
        margin: 30px auto 0 auto;
    }

    .floating-course-card {
        padding: 8px 12px;
        font-size: 11px;
    }
    .floating-card-math { top: 12%; left: 10%; }
    .floating-card-physics { top: 50%; left: 75%; }
    .floating-card-arabic { bottom: 8%; left: 15%; }
    
    .student-card-center { width: 165px !important; height: 230px !important; }
    .student-card-top { width: 120px !important; height: 140px !important; top: 22%; left: 74%; }
    .student-card-bottom { width: 140px !important; height: 150px !important; top: 76%; left: 71%; }
    .student-card-left { width: 130px !important; height: 180px !important; top: 48%; left: 24%; }
    .starburst-overlay-badge { width: 40px; height: 40px; font-size: 16px; }
}

@media (max-width: 575px) {
    .hero-title-dark {
        font-size: 28px !important;
    }
    .highlight-pill-yellow, .highlight-pill-cyan {
        padding: 2px 14px !important;
        margin: 0 2px !important;
    }
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary-custom, .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }
    .floating-course-card {
        display: none !important; /* Hide floating widgets on micro displays */
    }
    .student-collage-container {
        height: 340px;
        max-width: 320px;
        margin: 30px auto 0 auto;
    }
    .student-card-center { width: 130px !important; height: 180px !important; }
    .student-card-top { width: 95px !important; height: 110px !important; top: 22%; left: 75%; }
    .student-card-bottom { width: 110px !important; height: 120px !important; top: 76%; left: 72%; }
    .student-card-left { width: 100px !important; height: 140px !important; top: 48%; left: 24%; }
}



/* ==========================================
   Premium Discovery Sections Refinements
   ========================================== */

/* Glass Category Grid Cards */
.subject-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 20px !important;
}

.subject-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 0 15px 35px rgba(0, 200, 255, 0.12) !important;
    transform: translateY(-8px) !important;
}

.subject-name {
    color: #ffffff !important;
}

.subject-count {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Glass Teacher Slider Cards */
.teachers-slider-container {
    padding: 20px 0;
}

.teacher-card {
    position: relative;
    background: rgba(2, 20, 45, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 15px 35px -15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden;
}

/* Border Glow on Hover */
.teacher-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.3) 0%, rgba(255, 211, 53, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.teacher-card:hover {
    background: rgba(2, 20, 45, 0.75) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 200, 255, 0.25),
        0 0 20px rgba(0, 200, 255, 0.1) !important;
    transform: translateY(-10px) scale(1.02) !important;
}

.teacher-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #00C8FF 0%, #FFD335 100%);
}

.teacher-name {
    color: #ffffff !important;
    font-family: var(--font-cairo);
    font-size: 19px !important;
    font-weight: 800 !important;
    transition: color 0.3s ease;
}

.teacher-card:hover .teacher-name {
    color: #00C8FF !important;
}

.teacher-subject {
    color: #00C8FF !important;
    font-family: var(--font-cairo);
    font-size: 13px !important;
    font-weight: 700 !important;
    opacity: 0.9;
}

.teacher-stats {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    margin-top: 15px;
    padding-top: 15px;
}

.teacher-stat {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 12px !important;
    font-weight: 700;
}

.teacher-stat i {
    color: #00C8FF;
    font-size: 12px;
}

.teacher-stat i.fa-star {
    color: #FFD335;
}

.teacher-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(2, 20, 45, 0.75) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 200, 255, 0.35) !important;
    color: #00C8FF !important;
    padding: 5px 14px !important;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.15);
    font-family: var(--font-cairo);
}

/* Styled premium placeholder avatar */
.teacher-avatar-placeholder-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 50%, #03234d 0%, #020b18 100%);
    position: relative;
    aspect-ratio: 1;
}

.teacher-avatar-placeholder-icon {
    font-size: 80px;
    color: rgba(0, 200, 255, 0.06);
    filter: drop-shadow(0 0 15px rgba(0, 200, 255, 0.05));
    position: absolute;
    z-index: 1;
}

.teacher-avatar-placeholder-initials {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(0, 200, 255, 0.08);
    border: 1.5px solid rgba(0, 200, 255, 0.3);
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 
        0 10px 25px rgba(0, 200, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    z-index: 2;
    font-family: var(--font-cairo);
    text-shadow: 0 0 10px rgba(0, 200, 255, 0.3);
    animation: placeholderPulse 3s infinite alternate ease-in-out;
}

@keyframes placeholderPulse {
    0% { transform: scale(1); box-shadow: 0 10px 25px rgba(0, 200, 255, 0.2); }
    100% { transform: scale(1.03); box-shadow: 0 12px 30px rgba(0, 200, 255, 0.35), 0 0 15px rgba(0, 200, 255, 0.25); }
}

/* Trending Courses Carousel Styles */
.trending-courses-section {
    background: #020b18;
    background-image: radial-gradient(at 0% 100%, rgba(6, 182, 212, 0.05) 0, transparent 40%);
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-course-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    height: 100%;
}

.modern-course-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 0 15px 35px rgba(0, 200, 255, 0.12) !important;
    transform: translateY(-8px) !important;
}

.course-title-modern a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s;
}

.course-title-modern a:hover {
    color: #00C8FF !important;
}

.instructor-name-label {
    color: rgba(255, 255, 255, 0.6) !important;
}

.price-container-modern .price-val {
    color: #00C8FF !important;
}

.price-container-modern .price-unit {
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Skeleton Loading styles */
.skeleton-box {
    display: inline-block;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Premium Footer SVG Wave transition */
.footer-divider-svg {
    display: block;
    width: 100%;
    height: 60px;
    background: #020b18 !important; /* Matches #reviews background color */
    margin-bottom: -1.5px !important; /* Avoid gap */
    margin-top: -1.5px !important; /* Avoid gap */
    position: relative;
    z-index: 10;
}

.footer-divider-svg path {
    fill: #02142D !important; /* Matches premium footer background */
}

.premium-footer {
    background: #02142D !important; /* Brand Dark Navy */
    border-top: none !important;
}

.footer-widget-title {
    color: #ffffff !important;
}

}

/* ==========================================================================
   Premium Redesigned "Most Popular Courses" Section Styling
   ========================================================================== */

.trending-courses-section {
    background: #02142D !important;
    background-image: 
        radial-gradient(at 0% 100%, rgba(0, 200, 255, 0.06) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(255, 211, 53, 0.04) 0, transparent 50%),
        linear-gradient(180deg, #02142D 0%, #02142D 100%) !important;
    position: relative;
    overflow: hidden;
    padding: 40px 0 120px 0 !important;
}

.trending-courses-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.05) 0%, rgba(0, 200, 255, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.trending-courses-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 211, 53, 0.03) 0%, rgba(255, 211, 53, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

/* Animated Title Counter */
.section-title-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 200, 255, 0.08);
    border: 1px solid rgba(0, 200, 255, 0.25);
    color: #00C8FF;
    font-size: 13px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 50px;
    margin-right: 12px;
    vertical-align: middle;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.1);
    font-family: var(--font-cairo);
}

.section-trending-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 211, 53, 0.1);
    border: 1px solid rgba(255, 211, 53, 0.25);
    color: #FFD335;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    margin-right: 12px;
    vertical-align: middle;
    animation: badgePulse 2s infinite alternate ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(255, 211, 53, 0); }
    100% { transform: scale(1.04); box-shadow: 0 0 10px rgba(255, 211, 53, 0.2); }
}

/* Grid Layout */
.premium-courses-grid-wrapper {
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.premium-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

@media (max-width: 1200px) {
    .premium-courses-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .premium-courses-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 10px 10px 30px 10px;
        margin: 0 -15px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .premium-courses-grid::-webkit-scrollbar {
        display: none; /* Safari & Chrome */
    }
    
    .premium-course-card, .premium-skeleton-card {
        flex: 0 0 290px;
        scroll-snap-align: center;
        max-width: 290px;
    }
}

/* Glassmorphism Course Card */
.premium-course-card {
    position: relative;
    background: rgba(2, 20, 45, 0.5) !important;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 15px 40px -15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: 
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    direction: rtl;
    text-align: right;
    z-index: 1;
}

/* Border Gradient */
.premium-course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.35) 0%, rgba(255, 211, 53, 0.15) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Card Mouse spotlight effect */
.card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(0, 200, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

/* Hover States for Card */
.premium-course-card:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(0, 200, 255, 0.25);
    box-shadow: 
        0 30px 60px -15px rgba(0, 200, 255, 0.2),
        0 0 25px rgba(0, 200, 255, 0.1),
        inset 0 0 0 1px rgba(0, 200, 255, 0.2);
}

.premium-course-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #00C8FF 0%, #FFD335 100%);
}

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

/* Cover Image 16:9 ratio style */
.premium-card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.premium-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2, 20, 45, 0.8) 0%, rgba(2, 20, 45, 0.2) 60%, transparent 100%);
    z-index: 1;
    transition: opacity 0.4s ease;
}

.premium-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 50px;
    height: 50px;
    background: rgba(0, 200, 255, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    opacity: 0;
    box-shadow: 0 0 20px rgba(0, 200, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

/* Image Hover Animation */
.premium-course-card:hover .premium-card-image-wrap img {
    transform: scale(1.1) rotate(1.5deg);
}

.premium-course-card:hover .premium-play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.premium-play-badge:hover {
    background: #00C8FF;
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Category Badge */
.premium-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(2, 20, 45, 0.7);
    border: 1px solid rgba(0, 200, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #00C8FF;
    font-family: var(--font-cairo);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Floating Wishlist Button */
.premium-wishlist-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 32px;
    height: 32px;
    background: rgba(2, 20, 45, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.premium-wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.1);
}

.premium-wishlist-btn.inList {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
    background: rgba(239, 68, 68, 0.1) !important;
}

/* Card Body Content */
.premium-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    z-index: 5;
}

/* Title */
.premium-course-title {
    font-family: var(--font-cairo);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 50px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.premium-course-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.premium-course-title a:hover {
    color: #00C8FF !important;
}

/* Description */
.premium-course-desc {
    font-family: var(--font-cairo);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 18px;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Instructor row */
.premium-instructor-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.premium-instructor-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid rgba(0, 200, 255, 0.3);
    background: #02142D;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-course-card:hover .premium-instructor-avatar {
    transform: scale(1.1) rotate(5deg);
}

.premium-instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-instructor-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.premium-instructor-name {
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

.premium-instructor-role {
    font-family: var(--font-cairo);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

/* Stats Row */
.premium-card-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.stat-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-cairo);
    transition: all 0.3s ease;
}

.stat-pill-item i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.premium-course-card:hover .stat-pill-item i {
    transform: scale(1.2) translateY(-1px);
}

/* Rating style */
.stat-pill-item.rating-pill {
    background: rgba(255, 211, 53, 0.08);
    border-color: rgba(255, 211, 53, 0.15);
    color: #FFD335;
}

.stat-pill-item.rating-pill i {
    color: #FFD335;
}

/* Separator divider */
.premium-card-divider {
    height: 1px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0));
    margin: 18px 0;
}

/* Card Footer (Pricing + Actions) */
.premium-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* Pricing block */
.premium-price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 42px;
}

.premium-price-discounted {
    font-family: var(--font-cairo);
    font-size: 24px;
    font-weight: 800;
    color: #00C8FF;
    line-height: 1;
    display: flex;
    align-items: baseline;
}

.premium-price-discounted small {
    font-size: 12px;
    font-weight: 700;
    margin-right: 3px;
}

.premium-price-discount-flex {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.premium-price-original {
    font-family: var(--font-cairo);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

.premium-discount-percent-pill {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--font-cairo);
}

.premium-price-free-text {
    font-family: var(--font-cairo);
    font-size: 20px;
    font-weight: 800;
    color: #10B981;
}

/* CTA buttons styling */
.premium-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 50px;
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.premium-cta-btn.btn-glass-cyan {
    background: rgba(0, 200, 255, 0.12) !important;
    border: 1px solid rgba(0, 200, 255, 0.3) !important;
    color: #00C8FF !important;
    padding: 10px 24px;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.08);
}

/* Shine animation overlay */
.premium-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 25%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
}

.premium-course-card:hover .premium-cta-btn::after {
    animation: buttonShine 1.5s infinite ease-in-out;
}

@keyframes buttonShine {
    0% { left: -60%; }
    100% { left: 130%; }
}

/* CTA hover status */
.premium-course-card:hover .premium-cta-btn {
    background: #00C8FF !important;
    color: #02142D !important;
    border-color: transparent !important;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 200, 255, 0.4);
}

.premium-cta-btn i {
    transition: transform 0.3s ease;
}

.premium-course-card:hover .premium-cta-btn i {
    transform: translateX(-4px);
}

/* Floating Particles Container */
.floating-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00C8FF;
    border-radius: 50%;
    opacity: 0;
    transition: transform 1s ease, opacity 1s ease;
}

/* ==========================================================================
   Skeleton Loading State Styling
   ========================================================================== */
.premium-skeleton-card {
    position: relative;
    background: rgba(2, 20, 45, 0.5) !important;
    backdrop-filter: blur(25px);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16/9;
}

.skeleton-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skeleton-title {
    height: 22px;
    width: 80%;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
}

.skeleton-text-short {
    height: 14px;
    width: 60%;
    border-radius: 4px;
    margin-bottom: 20px;
}

.skeleton-teacher {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.skeleton-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.skeleton-teacher-name {
    height: 14px;
    width: 100px;
    border-radius: 4px;
}

.skeleton-pills {
    display: flex;
    gap: 8px;
}

.skeleton-pill {
    height: 22px;
    width: 65px;
    border-radius: 50px;
}

.skeleton-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

.skeleton-price {
    height: 28px;
    width: 80px;
    border-radius: 4px;
}

.skeleton-button {
    height: 38px;
    width: 100px;
    border-radius: 50px;
}

/* Skeleton Shine Animation */
.skeleton-pulse {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: skeletonShine 1.5s infinite;
}

@keyframes skeletonShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Entrance Animations classes */
.fade-up-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==========================================================================
   Premium Transition Section Styling (Hero-to-Courses)
   ========================================================================== */

.premium-hero-courses-transition {
    position: relative;
    height: 240px;
    background: linear-gradient(180deg, #03142e 0%, #020a17 50%, #02142D 100%) !important;
    overflow: visible; /* Allow floating icons to drift outside */
    z-index: 5;
    margin-top: -100px; /* Pull it slightly under Herocollage */
    margin-bottom: 0px;
}

/* Aurora glow behind divider */
.aurora-glow-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.12) 0%, rgba(0, 200, 255, 0) 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
}

/* SVG Wavy curves style */
.waves-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 240px;
    z-index: 2;
    overflow: hidden;
}

.layered-wave {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 240px;
    pointer-events: none;
    transform-origin: bottom center;
}

/* Layered animations */
.wave-back {
    animation: waveSwayBack 20s ease-in-out infinite alternate;
    z-index: 1;
    opacity: 0.8;
}

.wave-mid {
    animation: waveSwayMid 16s ease-in-out infinite alternate;
    z-index: 2;
    opacity: 0.9;
}

.wave-front {
    animation: waveSwayFront 12s ease-in-out infinite alternate;
    z-index: 3;
}

@keyframes waveSwayBack {
    0% { transform: scaleY(0.95) skewX(-1.5deg); }
    100% { transform: scaleY(1.05) skewX(1.5deg); }
}

@keyframes waveSwayMid {
    0% { transform: scaleY(1.03) skewX(0.8deg) translateX(-15px); }
    100% { transform: scaleY(0.97) skewX(-0.8deg) translateX(15px); }
}

@keyframes waveSwayFront {
    0% { transform: scaleY(0.99) skewX(-0.4deg); }
    100% { transform: scaleY(1.01) skewX(0.4deg); }
}

/* Moving Light Beam */
.light-beam-glow {
    position: absolute;
    top: 15%;
    left: -50%;
    width: 60%;
    height: 120px;
    background: radial-gradient(ellipse at center, rgba(0, 200, 255, 0.12) 0%, rgba(0, 200, 255, 0.03) 40%, transparent 75%);
    filter: blur(25px);
    mix-blend-mode: screen;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.premium-hero-courses-transition.reveal-active .light-beam-glow {
    opacity: 1;
    animation: lightBeamMove 15s linear infinite;
}

@keyframes lightBeamMove {
    0% { left: -60%; }
    100% { left: 120%; }
}

/* Floating outline icons container */
.floating-icons-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.floating-icon-wrapper {
    position: absolute;
    color: rgba(0, 200, 255, 0.25);
    text-shadow: 0 0 12px rgba(0, 200, 255, 0.3);
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.2));
    animation: driftUp var(--speed) ease-in-out infinite alternate var(--delay);
    transform: scale(var(--scale));
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-icon-wrapper:hover {
    color: rgba(255, 211, 53, 0.6) !important;
    text-shadow: 0 0 15px rgba(255, 211, 53, 0.6);
    filter: drop-shadow(0 0 12px rgba(255, 211, 53, 0.4));
    transform: scale(calc(var(--scale) * 1.25)) rotate(15deg);
}

@keyframes driftUp {
    0% { transform: scale(var(--scale)) translateY(0px) rotate(0deg); }
    50% { transform: scale(var(--scale)) translateY(-20px) rotate(6deg); }
    100% { transform: scale(var(--scale)) translateY(0px) rotate(-6deg); }
}

/* Discovery Connector Badge Container */
.course-discovery-connector {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spotlight Glow behind the button */
.badge-spotlight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 280px;
    height: 90px;
    background: radial-gradient(circle, rgba(0, 200, 255, 0.25) 0%, rgba(0, 200, 255, 0) 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-hero-courses-transition.reveal-active .badge-spotlight-glow {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    animation: spotlightPulse 3s infinite alternate ease-in-out;
}

@keyframes spotlightPulse {
    0% { opacity: 0.6; filter: blur(20px) scale(0.9); }
    100% { opacity: 0.95; filter: blur(28px) scale(1.1); }
}

/* Glassmorphic Badge Pill */
.discovery-badge-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(2, 20, 45, 0.45) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(0, 200, 255, 0.3) !important;
    color: #ffffff !important;
    font-family: var(--font-cairo);
    font-size: 15px;
    font-weight: 800;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none !important;
    z-index: 2;
    box-shadow: 
        0 10px 30px rgba(0, 200, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Shimmer / border animation */
.discovery-badge-pill::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 50px;
    padding: 1.5px;
    background: linear-gradient(90deg, rgba(0,200,255,0.4) 0%, rgba(255,211,53,0.3) 50%, rgba(0,200,255,0.4) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s ease;
    opacity: 0.8;
}

.discovery-badge-pill.reveal-active {
    transform: scale(1);
    opacity: 1;
}

.discovery-badge-pill:hover {
    background: rgba(0, 200, 255, 0.1) !important;
    border-color: rgba(0, 200, 255, 0.6) !important;
    box-shadow: 
        0 20px 45px rgba(0, 200, 255, 0.35),
        0 0 20px rgba(0, 200, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(1.05) translateY(-3px);
    color: #ffffff !important;
}

.discovery-badge-pill:hover::before {
    opacity: 1;
    background: linear-gradient(90deg, #00C8FF 0%, #FFD335 50%, #00C8FF 100%);
}

.discovery-badge-pill i {
    font-size: 13px;
    color: #00C8FF;
    animation: arrowBounce 1.5s infinite alternate ease-in-out;
}

@keyframes arrowBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); }
}

@media (max-width: 768px) {
    .premium-hero-courses-transition {
        height: 180px;
        margin-top: -60px;
    }
    .waves-container, .layered-wave {
        height: 180px;
    }
    .discovery-badge-pill {
        padding: 10px 22px;
        font-size: 13px;
    }
    .floating-icon-wrapper {
        font-size: 16px;
    }
}

/* ==========================================
   Hero Search & Stats Layout Fixes
   ========================================== */
.hero-search-stats-container {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 35px;
    margin-bottom: 35px;
    width: 100%;
    direction: rtl;
}

.hero-search-stats-container .hero-search-wrapper {
    flex: 1.3;
    width: 100%;
    max-width: 600px;
}

.hero-search-stats-container .hero-trust-indicators {
    flex: 0.7;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 320px;
    margin-bottom: 0 !important;
}

/* Redefine search container for flex gap and spacing fixes */
.hero-search-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 6px 16px 6px 6px !important; /* Proper RTL spacing */
}

.hero-search-input {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 10px !important;
}

/* Redefine stats cards to dark-glass styling */
.trust-stat-card.dark-glass {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px 20px !important;
    border-radius: 20px !important;
    min-height: 80px !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.trust-stat-card.dark-glass:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 0 15px 35px rgba(0, 200, 255, 0.15) !important;
    transform: translateY(-4px) !important;
}

.trust-stat-card.dark-glass .stat-val {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

.trust-stat-card.dark-glass .stat-lbl {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.trust-stat-card.dark-glass .stat-icon-box {
    width: 48px !important;
    height: 48px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}

.trust-stat-card.dark-glass .stat-icon-box.gold {
    background: rgba(255, 211, 53, 0.1) !important;
    color: #FFD335 !important;
    border: 1px solid rgba(255, 211, 53, 0.25) !important;
}

.trust-stat-card.dark-glass .stat-icon-box.blue {
    background: rgba(0, 200, 255, 0.1) !important;
    color: #00C8FF !important;
    border: 1px solid rgba(0, 200, 255, 0.25) !important;
}

@media (max-width: 991px) {
    .hero-search-stats-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    .hero-search-stats-container .hero-search-wrapper,
    .hero-search-stats-container .hero-trust-indicators {
        max-width: 100%;
    }
    .hero-search-stats-container .hero-trust-indicators {
        flex-direction: row;
        gap: 16px;
    }
    .trust-stat-card.dark-glass {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 575px) {
    .hero-search-stats-container .hero-trust-indicators {
        flex-direction: column;
        width: 100%;
    }
}


/* ==========================================================================
   Bookstore, Features, and Reviews Sections Redesign
   ========================================================================== */

/* Bookstore Redesign styles */
#bookstore-section {
    background: #020b18 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 !important;
}

#bookstore-section .section-title {
    color: #ffffff !important;
    font-family: var(--font-cairo);
}

#bookstore-section .modern-course-card {
    background: rgba(2, 20, 45, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 15px 35px -15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#bookstore-section .modern-course-card:hover {
    background: rgba(2, 20, 45, 0.75) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 200, 255, 0.25),
        0 0 20px rgba(0, 200, 255, 0.1) !important;
    transform: translateY(-8px) scale(1.01) !important;
}

#bookstore-section .modern-card-body {
    background: transparent !important;
    padding: 20px !important;
}

#bookstore-section .course-title-modern a {
    color: #ffffff !important;
    font-family: var(--font-cairo);
    font-weight: 700;
}

#bookstore-section .course-title-modern a:hover {
    color: #00C8FF !important;
}

#bookstore-section .instructor-name-label {
    color: rgba(255, 255, 255, 0.6) !important;
}

#bookstore-section .price-container-modern .price-val {
    color: #00C8FF !important;
    font-size: 20px;
}

#bookstore-section .price-container-modern .price-unit {
    color: rgba(255, 255, 255, 0.4) !important;
}

#bookstore-section .price-container-modern .price-free {
    color: #10B981 !important;
    font-size: 18px;
}

#bookstore-section .btn-outline-primary {
    border-color: rgba(0, 200, 255, 0.4) !important;
    color: #00C8FF !important;
    transition: all 0.3s ease;
}

#bookstore-section .btn-outline-primary:hover {
    background: #00C8FF !important;
    color: #02142D !important;
    border-color: transparent !important;
}

/* Why Choose Us Dark Redesign */
#why-choose-us {
    background: #02142D !important;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 200, 255, 0.05) 0, transparent 40%),
        radial-gradient(at 100% 100%, rgba(255, 211, 53, 0.03) 0, transparent 40%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 !important;
}

#why-choose-us .section-title {
    color: #ffffff !important;
    font-family: var(--font-cairo);
}

#why-choose-us .feature-box {
    background: rgba(2, 20, 45, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 15px 35px -15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative;
    overflow: hidden;
}

#why-choose-us .feature-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0, 200, 255, 0.25) 0%, rgba(255, 211, 53, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
    z-index: 2;
}

#why-choose-us .feature-box:hover {
    background: rgba(2, 20, 45, 0.75) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 200, 255, 0.25),
        0 0 20px rgba(0, 200, 255, 0.1) !important;
    transform: translateY(-10px) scale(1.02) !important;
}

#why-choose-us .feature-box:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, #00C8FF 0%, #FFD335 100%);
}

#why-choose-us .feature-icon {
    background: rgba(0, 200, 255, 0.08) !important;
    color: #00C8FF !important;
    border: 1px solid rgba(0, 200, 255, 0.2) !important;
    box-shadow: 0 4px 15px rgba(0, 200, 255, 0.1);
}

#why-choose-us .feature-title {
    color: #ffffff !important;
    font-family: var(--font-cairo);
    font-weight: 700;
}

#why-choose-us .feature-desc {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: var(--font-cairo);
}

/* Reviews Dark Redesign */
#reviews {
    background: #020b18 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 !important;
}

#reviews .section-title {
    color: #ffffff !important;
    font-family: var(--font-cairo);
}

#reviews .review-card {
    background: rgba(2, 20, 45, 0.5) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 15px 35px -15px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.02) !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: #ffffff !important;
}

#reviews .review-card:hover {
    background: rgba(2, 20, 45, 0.75) !important;
    border-color: rgba(0, 200, 255, 0.25) !important;
    box-shadow: 
        0 25px 50px -12px rgba(0, 200, 255, 0.25),
        0 0 20px rgba(0, 200, 255, 0.1) !important;
    transform: translateY(-8px) scale(1.01) !important;
}

#reviews .review-stars {
    color: #FFD335 !important;
}

#reviews .review-text {
    color: rgba(255, 255, 255, 0.8) !important;
    font-family: var(--font-cairo);
    font-size: 15px !important;
}

#reviews .author-img {
    border-color: #00C8FF !important;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}

#reviews .author-name {
    color: #ffffff !important;
    font-family: var(--font-cairo);
    font-weight: 700;
}

#reviews .author-role {
    color: rgba(255, 255, 255, 0.5) !important;
    font-family: var(--font-cairo);
}

/* ==========================================================================
   Bookstore Card Premium Elements
   ========================================================================== */

#bookstore-section .card-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

#bookstore-section .card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#bookstore-section .modern-course-card:hover .card-image-wrap img {
    transform: scale(1.08) rotate(1deg);
}

#bookstore-section .floating-category-tag {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    background: rgba(2, 20, 45, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(0, 200, 255, 0.3) !important;
    color: #00C8FF !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    z-index: 10 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    font-family: var(--font-cairo);
    pointer-events: none;
    letter-spacing: 0.5px;
}

#bookstore-section .book-teacher-initials-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 200, 255, 0.1);
    border: 1.5px solid rgba(0, 200, 255, 0.3);
    color: #00C8FF;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cairo);
    transition: all 0.3s ease;
}

#bookstore-section .modern-course-card:hover .book-teacher-initials-avatar {
    transform: scale(1.1) rotate(5deg);
    border-color: #00C8FF;
    box-shadow: 0 0 10px rgba(0, 200, 255, 0.2);
}

#bookstore-section .book-card-price-label {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 13px;
    font-family: var(--font-cairo);
    font-weight: 600;
}

#bookstore-section .btn-buy-now-premium {
    background: #00C8FF !important;
    color: #02142D !important;
    border: none !important;
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 800;
    padding: 10px 18px !important;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 200, 255, 0.15);
}

#bookstore-section .btn-buy-now-premium:hover {
    background: #ffffff !important;
    color: #02142D !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 200, 255, 0.4);
}

#bookstore-section .btn-add-to-cart-premium {
    background: rgba(0, 200, 255, 0.05) !important;
    border: 1.5px solid rgba(0, 200, 255, 0.25) !important;
    color: #00C8FF !important;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

#bookstore-section .btn-add-to-cart-premium:hover {
    background: #00C8FF !important;
    color: #02142D !important;
    border-color: transparent !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 200, 255, 0.25);
}

/* ==========================================================================
   Premium Bookstore Section — Full Redesign (bs-* prefix)
   ========================================================================== */

/* ---- Section Shell ---- */
.bs-section {
    position: relative;
    background: #02142D;
    background-image:
        radial-gradient(ellipse at 0% 0%,   rgba(0,200,255,0.07) 0, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(255,211,53,0.04) 0, transparent 50%);
    padding: 90px 0 100px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ---- Aurora Orbs ---- */
.bs-aurora { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.bs-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.18;
    animation: bsOrbPulse 18s ease-in-out infinite alternate;
}
.bs-orb-1 { width: 550px; height: 550px; background: #00C8FF; top: -200px; left: -150px; animation-delay: 0s; }
.bs-orb-2 { width: 450px; height: 450px; background: #FFD335; bottom: -200px; right: -100px; opacity: 0.1; animation-delay: 6s; }
.bs-orb-3 { width: 350px; height: 350px; background: #00C8FF; top: 40%; left: 50%; transform: translateX(-50%); opacity: 0.08; animation-delay: 12s; }

@keyframes bsOrbPulse {
    0%   { transform: scale(1) translate(0,0); }
    100% { transform: scale(1.15) translate(30px,-30px); }
}

/* ---- Floating Particles ---- */
.bs-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.bs-particle {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--sz);
    height: var(--sz);
    background: #00C8FF;
    border-radius: 50%;
    opacity: 0.25;
    box-shadow: 0 0 6px #00C8FF;
    animation: bsFloat var(--d) ease-in-out infinite alternate;
    animation-delay: var(--delay);
}
.bs-deco-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 22px;
    opacity: 0.06;
    animation: bsFloat var(--d) ease-in-out infinite alternate;
    animation-delay: var(--delay);
    filter: drop-shadow(0 0 8px rgba(0,200,255,0.3));
}

@keyframes bsFloat {
    0%   { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-22px) rotate(8deg); }
}

/* ---- Section Header ---- */
.bs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 55px;
    position: relative;
    z-index: 10;
}

.bs-header-text { flex: 1; }

.bs-section-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #00C8FF;
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    gap: 6px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.7s cubic-bezier(0.16,1,0.3,1);
}
.bs-header.bs-animate .bs-section-eyebrow { opacity:1; transform:translateY(0); }

.bs-section-title {
    font-family: var(--font-cairo);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.25;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.bs-section-title span {
    background: linear-gradient(120deg, #00C8FF, #FFD335);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bs-header.bs-animate .bs-section-title { opacity:1; transform:translateY(0); }

.bs-section-subtitle {
    font-family: var(--font-cairo);
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.2s;
}
.bs-header.bs-animate .bs-section-subtitle { opacity:1; transform:translateY(0); }

/* ---- Premium Glassmorphism Tab Pills ---- */
.bs-tabs-wrapper {
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s cubic-bezier(0.16,1,0.3,1) 0.3s;
}
.bs-header.bs-animate .bs-tabs-wrapper { opacity:1; transform:translateY(0); }

.bs-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    padding: 5px;
    position: relative;
}

.bs-tab {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.55);
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s ease;
    white-space: nowrap;
    outline: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.bs-tab:hover { color: rgba(255,255,255,0.85); }
.bs-tab.active {
    color: #02142D;
    background: linear-gradient(120deg, #00C8FF, #0099cc);
    box-shadow: 0 6px 20px rgba(0,200,255,0.35), 0 0 12px rgba(0,200,255,0.2);
}

/* ---- Tab Content ---- */
.bs-tab-content { position: relative; z-index: 10; }

/* ---- Cards Grid ---- */
.bs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}

@media (max-width: 1199px) { .bs-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
@media (max-width: 991px)  { .bs-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 575px)  { .bs-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---- Card Entrance Animation ---- */
.bs-card-wrap {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.bs-card-wrap.bs-visible { opacity: 1; transform: translateY(0); }

/* ---- Card Shell ---- */
.bs-card {
    position: relative;
    background: rgba(2, 20, 45, 0.55);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    direction: rtl;
    text-align: right;
    transition:
        transform 0.32s cubic-bezier(0.16,1,0.3,1),
        box-shadow 0.32s cubic-bezier(0.16,1,0.3,1),
        border-color 0.32s ease;
    cursor: default;
}

/* Gradient border via pseudo */
.bs-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(0,200,255,0.3) 0%, rgba(255,211,53,0.12) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s, background 0.3s;
    z-index: 2;
}

/* Mouse spotlight */
.bs-card-spotlight {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(380px circle at var(--mx,50%) var(--my,50%), rgba(0,200,255,0.09), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 3;
}

/* Hover state */
.bs-card:hover {
    transform: translateY(-12px) scale(1.025);
    border-color: rgba(0,200,255,0.28);
    box-shadow:
        0 30px 60px -12px rgba(0,200,255,0.22),
        0 0 30px rgba(0,200,255,0.1),
        inset 0 0 0 1px rgba(0,200,255,0.15);
}
.bs-card:hover::before { opacity: 1; background: linear-gradient(135deg, #00C8FF 0%, #FFD335 100%); }
.bs-card:hover .bs-card-spotlight { opacity: 1; }

/* ---- Product Image ---- */
.bs-img-wrap {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    flex-shrink: 0;
    text-decoration: none;
}
.bs-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.16,1,0.3,1);
    display: block;
}
.bs-card:hover .bs-img { transform: scale(1.10) rotate(0.8deg); }

.bs-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(2,20,45,0.75) 0%, rgba(2,20,45,0.15) 50%, transparent 100%);
    z-index: 1;
    transition: opacity 0.35s ease;
}
.bs-card:hover .bs-img-overlay { opacity: 0.9; }

/* Quick preview icon */
.bs-img-preview-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: 48px;
    height: 48px;
    background: rgba(0,200,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
    z-index: 2;
    box-shadow: 0 0 25px rgba(0,200,255,0.5);
}
.bs-card:hover .bs-img-preview-icon { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* Shine reflection */
.bs-img-shine {
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
    transform: skewX(-15deg);
    z-index: 2;
    opacity: 0;
    transition: none;
}
.bs-card:hover .bs-img-shine {
    animation: bsShine 0.7s ease forwards;
}
@keyframes bsShine {
    0%   { left: -80%; opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* ---- Category Badge ---- */
.bs-cat-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(2,20,45,0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(0,200,255,0.35);
    color: #00C8FF;
    font-family: var(--font-cairo);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 13px;
    border-radius: 50px;
    letter-spacing: 0.4px;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
.bs-cat-badge.featured-badge { border-color: rgba(255,211,53,0.4); color: #FFD335; }
.bs-cat-badge.popular-badge  { border-color: rgba(255,100,60,0.4);  color: #ff6e40; }

/* ---- Card Body ---- */
.bs-card-body {
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0;
    position: relative;
    z-index: 5;
}

/* Title */
.bs-card-title {
    font-family: var(--font-cairo);
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bs-card-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.25s;
}
.bs-card:hover .bs-card-title a { color: #00C8FF !important; }

/* Teacher row */
.bs-teacher-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
}
.bs-teacher-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,200,255,0.3);
    overflow: hidden;
    background: rgba(0,200,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s;
}
.bs-card:hover .bs-teacher-avatar { transform: scale(1.1) rotate(5deg); border-color: #00C8FF; }
.bs-teacher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bs-teacher-avatar span { font-size: 10px; font-weight: 800; color: #00C8FF; font-family: var(--font-cairo); }
.bs-teacher-name {
    font-family: var(--font-cairo);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Short description */
.bs-card-desc {
    font-family: var(--font-cairo);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.65;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Price Area ---- */
.bs-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
    transition: filter 0.3s;
}
.bs-card:hover .bs-price-row { filter: drop-shadow(0 0 6px rgba(0,200,255,0.2)); }

.bs-price-wrap { display: flex; align-items: baseline; gap: 4px; }
.bs-price-current {
    font-family: var(--font-cairo);
    font-size: 24px;
    font-weight: 900;
    color: #00C8FF;
    line-height: 1;
}
.bs-price-currency {
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 700;
    color: rgba(0,200,255,0.7);
}
.bs-price-old {
    font-family: var(--font-cairo);
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-decoration: line-through;
}
.bs-discount-badge {
    background: rgba(255,211,53,0.12);
    border: 1px solid rgba(255,211,53,0.3);
    color: #FFD335;
    font-family: var(--font-cairo);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    animation: bsBadgePulse 2s infinite alternate ease-in-out;
}
@keyframes bsBadgePulse {
    0%   { box-shadow: 0 0 0 rgba(255,211,53,0); }
    100% { box-shadow: 0 0 10px rgba(255,211,53,0.25); }
}
.bs-price-free {
    font-family: var(--font-cairo);
    font-size: 18px;
    font-weight: 800;
    color: #10b981;
}

/* ---- Action Buttons ---- */
.bs-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    transform: translateY(6px);
    transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
}
.bs-card:hover .bs-actions { transform: translateY(0); }

/* Buy Now */
.bs-btn-buy {
    position: relative;
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(120deg, #00C8FF 0%, #0099cc 100%);
    color: #02142D !important;
    text-decoration: none !important;
    font-family: var(--font-cairo);
    font-size: 13px;
    font-weight: 800;
    padding: 11px 18px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    box-shadow: 0 6px 18px rgba(0,200,255,0.25);
}
.bs-btn-buy:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,200,255,0.45), 0 0 15px rgba(0,200,255,0.2);
    color: #02142D !important;
}
.bs-btn-buy i { font-size: 11px; }
/* Shine animation */
.bs-btn-shine {
    position: absolute;
    top: -50%;
    left: -70%;
    width: 35%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.35), transparent);
    transform: rotate(25deg);
    animation: bsBtnShine 3.5s ease-in-out infinite;
}
@keyframes bsBtnShine {
    0%, 100% { left: -70%; }
    30%, 60%  { left: 130%; }
}

/* Add to Cart */
.bs-btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0,200,255,0.07);
    border: 1.5px solid rgba(0,200,255,0.3);
    color: #00C8FF;
    font-family: var(--font-cairo);
    font-size: 12px;
    font-weight: 700;
    padding: 11px 14px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
    white-space: nowrap;
}
.bs-btn-cart i { font-size: 14px; }
.bs-btn-cart-label { font-size: 12px; }
.bs-btn-cart:hover {
    background: #00C8FF;
    color: #02142D;
    border-color: transparent;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,200,255,0.3);
}

/* ---- Empty State ---- */
.bs-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: rgba(255,255,255,0.25);
    font-family: var(--font-cairo);
}
.bs-empty-state i { font-size: 48px; color: rgba(0,200,255,0.2); }
.bs-empty-state p  { font-size: 16px; margin: 0; }

/* ---- Browse All CTA ---- */
.bs-cta-wrap { text-align: center; margin-top: 55px; position: relative; z-index: 10; }

.bs-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0,200,255,0.06);
    border: 1.5px solid rgba(0,200,255,0.25);
    color: #00C8FF !important;
    text-decoration: none !important;
    font-family: var(--font-cairo);
    font-size: 16px;
    font-weight: 800;
    padding: 16px 44px;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0,200,255,0.08);
}
.bs-cta-btn:hover {
    background: #00C8FF;
    color: #02142D !important;
    border-color: transparent;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0,200,255,0.4), 0 0 20px rgba(0,200,255,0.2);
}
.bs-cta-shine {
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.25), transparent);
    transform: rotate(25deg);
    animation: bsBtnShine 4s ease-in-out infinite;
}

/* ---- Responsive Tweaks ---- */
@media (max-width: 768px) {
    .bs-header { flex-direction: column; align-items: flex-start; }
    .bs-tabs-wrapper { width: 100%; overflow-x: auto; }
    .bs-tabs { width: max-content; }
    .bs-tab { padding: 8px 14px; font-size: 12px; }
    .bs-section-title { font-size: 26px; }
    .bs-cta-btn { padding: 13px 30px; font-size: 14px; }
}

@media (max-width: 480px) {
    .bs-btn-cart-label { display: none; }
    .bs-btn-cart { padding: 11px 13px; }
}

