@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&family=Cairo:wght@200..900&display=swap');

:root {
    --bg-dark: #f0f4f8;
    /* Bluish-white */
    --nav-bg: rgba(255, 255, 255, 0.7);
    --segment-bg: rgba(255, 255, 255, 0.8);
    --accent-color: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.15);
    --primary-gradient: linear-gradient(45deg, #f09433, #e3165b, #d82d7e, #8a3ab9, #4c5fd7);
    --transition-smooth: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

body {
    background-color: var(--bg-dark);
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Navbar Wrapper */
.nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Nav Container - Segmented Design */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 6px;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    transition: var(--transition-smooth);
}

/* Segments */
.nav-segment {
    background: var(--segment-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    transition: var(--transition-smooth);
}

/* Logo Segment */
.logo-segment {
    padding: 0 16px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    /* Slightly smaller for segment fitting */
    width: auto;
    object-fit: contain;
    display: block;
}

/* Menu Segment */
.menu-segment {
    background: var(--segment-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px;
    height: 48px;
    margin: 0 auto;
    /* Keep centered between logo and actions */
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
    height: 100%;
}

.nav-links li {
    height: 100%;
    display: flex;
}

.nav-links li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0 16px;
    border-radius: 100px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #4169E1;
    /* Royal Blue */
    background: rgba(65, 105, 225, 0.08);
    /* Transparent Royal Blue */
}

/* Actions Segment */
.actions-segment {
    gap: 12px;
    background: transparent;
    border: none;
    padding: 0;
}

/* Grouping Actions in sub-segments */
.social-group {
    display: flex;
    gap: 6px;
    background: var(--segment-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px;
    height: 48px;
}

.icon-box {
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.icon-box:hover {
    color: #e3165b;
    /* Brand pink/red for subtle pop */
}

/* Language Box */
.lang-box {
    height: 48px;
    padding: 0 16px;
    background: var(--segment-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    display: flex;
    align-items: center;
}

.lang-toggle {
    background: none;
    border: none;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.current-lang {
    font-family: inherit;
    font-weight: 600;
}

.chevron {
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.dropdown-box {
    position: relative;
}

.dropdown-box[data-state="open"] .chevron {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 8px;
    list-style: none;
    width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dropdown-box[data-state="open"] .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown li {
    padding: 10px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s;
}

.lang-dropdown li:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}

.lang-dropdown li.active {
    color: #0f172a;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.02);
}

.lang-dropdown li a {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Mobile Adjustments for Dropdown */
@media (max-width: 1100px) {
    .mobile-lang .lang-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        text-align: center;
    }

    .mobile-lang[data-state="open"] .lang-dropdown {
        max-height: 200px;
        margin-top: 10px;
    }
}

/* Register Button - Premium Animated Border */
.btn-register {
    height: 48px;
    padding: 0 24px;
    border-radius: 100px;
    /* White background + Animated Gradient Border */
    background-image: linear-gradient(#ffffff, #ffffff),
        linear-gradient(90deg, #f09433, #e3165b, #d82d7e, #8a3ab9, #4c5fd7, #f09433);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    background-size: 100% 100%, 400% 100%;
    animation: borderFlow 6s linear infinite;
    border: 2px solid transparent;

    color: #0a0a0a;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

@keyframes borderFlow {
    from {
        background-position: center, 0% 0%;
    }

    to {
        background-position: center, 400% 0%;
    }
}

/* Mobile Hamburger */
.mobile-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    background: var(--segment-bg);
    border: 1px solid var(--border-color);
    border-radius: 100%;
    color: #0f172a;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ===== HERO SECTION ===== */

/* Wrapper with blurred image + dark blue overlay */
.hero-wrapper {
    position: relative;
    overflow: hidden;
}

.hero-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: url('https://images.unsplash.com/photo-1528819622765-d6bcf132f793?w=1600&q=80') center/cover no-repeat;
    filter: blur(8px);
    z-index: 0;
}

.hero-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 20, 60, 0.88), rgba(15, 37, 87, 0.82));
    z-index: 0;
}

.hero-section {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 60px;
}

/* Left Column */
.hero-left {
    flex: 1;
    max-width: 560px;
}

.hero-label {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #93b4ff;
    /* Light Blue */
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
}

.hero-heading {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-heading-accent {
    background: linear-gradient(135deg, #93b4ff, #4169E1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 480px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.her.social-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.05);
    /* Light bg */
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.icon-box i,
.icon-box svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5px;
    /* Thinner stroke (less bold) */
}

.icon-box:hover {
    background: rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
    color: #4169E1;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
}

.hero-btn-primary {
    background: #0f2557;
    color: #ffffff;
}

.hero-btn-primary:hover {
    background: #1a3a7a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 37, 87, 0.25);
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Right Column — Image Carousel */
.hero-right {
    flex: 0 0 400px;
    height: 400px;
    position: relative;
}

.scroller-mask {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

/* Scrolling Track — JS driven */
.scroller-track {
    display: flex;
    flex-direction: column;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.scroller-item {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroller-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ===== FLOATING GLASS BADGES ===== */

.float-badge {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: floatBadge 4s ease-in-out infinite;
}

.float-badge-icon {
    font-size: 1.6rem;
    line-height: 1;
}

.float-badge-content {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.float-badge-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.float-badge-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Positioning */
.float-badge-rank {
    top: 115px;
    right: 18%;
    animation-delay: 0s;
}

.float-badge-counter {
    bottom: 30px;
    right: 28%;
    animation-delay: 1.3s;
}

.float-badge-rating {
    top: 130px;
    right: 38%;
    animation-delay: 2.6s;
}

.float-ba.instructor-img-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-img-box video {
    transform: scale(1.05);
}

/* Ensure images in slider cover area strictly */
.slide-4-5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Hide on very small screens */
@media (max-width: 600px) {
    .float-badge {
        padding: 8px 12px;
    }

    .float-badge-icon {
        font-size: 1.2rem;
    }

    .float-badge-value {
        font-size: 0.95rem;
    }

    .float-badge-rank {
        top: 110px;
        right: 3%;
    }

    .float-badge-counter {
        bottom: 24px;
        right: 18%;
    }

    .float-badge-rating {
        top: 50%;
        right: 2%;
    }
}

/* ===== TEXT MARQUEE ===== */

.text-marquee {
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
    position: relative;
}

/* Variant: Black */
.marquee-black {
    background: #0a0a0a;
}

.marquee-black::before,
.marquee-black::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-black::before {
    left: 0;
    background: linear-gradient(to right, #0a0a0a, transparent);
}

.marquee-black::after {
    right: 0;
    background: linear-gradient(to left, #0a0a0a, transparent);
}

/* Variant: Blue */
.marquee-blue {
    background: #0f2557;
}

.marquee-blue::before,
.marquee-blue::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-blue::before {
    left: 0;
    background: linear-gradient(to right, #0f2557, transparent);
}

.marquee-blue::after {
    right: 0;
    background: linear-gradient(to left, #0f2557, transparent);
}

/* Track Shared */
.marquee-track {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
    width: max-content;
}

/* LTR Animation */
.marquee-ltr {
    animation: marqueeLTR 25s linear infinite;
}

/* RTL Animation */
.marquee-rtl {
    animation: marqueeRTL 25s linear infinite;
}

.marquee-item {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.marquee-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

@keyframes marqueeLTR {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes marqueeRTL {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* ===== COURSES SECTION ===== */

.courses-section {
    width: 100%;
    /* Full width background */
    background-color: #f8fbff;
    /* Soft Blue-White */
    background-image: linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 50px 50px;
    /* Larger, subtler squares */
    background-position: center center;
    padding: 40px 20px;
    /* Reduced padding */
}

/* Centered content container */
.courses-content-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Container - Layout Only */
.courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 10px;
}

/* Boxed Header Text Only */
.section-title {
    display: inline-block;
    background: #e0f2fe;
    /* Light Blue Background */
    border: 2px solid #0ea5e9;
    /* Visible Blue Border */
    padding: 6px 20px;
    border-radius: 10px;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #0c4a6e;
    /* Darker Blue Text */
    margin-bottom: 0;
    /* Reset margin since wrapper handles spacing */
    letter-spacing: -0.5px;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.1), 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .courses-section {
        padding: 40px 16px;
    }

    .courses-header {
        flex-direction: row;
        flex-wrap: nowrap;
        /* Force single line */
        align-items: center;
        justify-content: space-between;
        /* Push apart */
        gap: 12px;
        margin-bottom: 24px;
        padding: 0;
    }

    .section-title {
        font-size: 1.1rem;
        /* Compact font for mobile */
        padding: 6px 16px;
        white-space: nowrap;
        flex-shrink: 1;
        /* Allow shrinking if absolutely needed, though prefer text wrap? No, nowrap */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .courses-nav {
        flex-shrink: 0;
        /* Don't shrink buttons */
        display: flex;
        gap: 8px;
    }

    .courses-nav-btn {
        width: 38px;
        /* Smaller buttons for mobile */
        height: 38px;
    }
}

/* Section header */
.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4169E1;
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 480px;
}

.courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.courses-nav {
    display: flex;
    gap: 8px;
}

.courses-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #e0f2fe;
    /* Match Header Box */
    border: 2px solid #0ea5e9;
    /* Match Header Border */
    color: #0c4a6e;
    /* Match Header Text */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 4px -1px rgba(14, 165, 233, 0.06);
}

.courses-nav-btn:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

.courses-nav-btn svg {
    width: 20px;
    height: 20px;
}

/* Track wrapper */
.courses-track-wrapper {
    overflow: hidden;
}

.courses-track {
    display: flex;
    gap: 24px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Course card */
.course-card {
    flex: 0 0 320px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid var(--border-color);
    transition: var(--transition-smooth);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.course-card:hover {
    border-color: #4169E1;
}

/* Card image area */
.course-card-img {
    position: relative;
    height: 140px;
    overflow: hidden;
}

.course-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-img img {
    transform: scale(1.05);
}

/* Tags on image */
.course-tag {
    position: absolute;
    bottom: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.course-tag:first-of-type {
    left: 12px;
}

.course-tag:last-of-type {
    right: 12px;
}

.tag-beginner {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.tag-intermediate {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.tag-advanced {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.tag-age {
    background: rgba(65, 105, 225, 0.9);
    color: white;
}

/* Card body */
.course-card-body {
    padding: 16px;
}

.course-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.course-price {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #4169E1;
    margin-bottom: 8px;
}

.course-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
}

.course-card-desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: #94a3b8;
    flex: 1;
}

.course-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.course-enroll-btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    color: white;
    background: #4169E1;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.course-enroll-btn:hover {
    background: #3358c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.3);
}

/* Courses responsive */
@media (max-width: 768px) {
    .courses-section {
        padding: 60px 20px;
    }

    .courses-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .course-card {
        flex: 0 0 88vw;
        /* Wider on mobile to reduce gaps */
        max-width: 88vw;
    }
}

/* ===== TESTIMONIALS SECTION ===== */

.testimonials-section {
    background: #f1f5f9;
    padding: 30px 0 20px;
    overflow: hidden;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 0 40px;
}

.testimonials-header .section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #4169E1;
    margin-bottom: 10px;
    padding: 6px 14px;
    background: rgba(65, 105, 225, 0.08);
    border-radius: 20px;
}

.testimonials-header .section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: #0f172a;
}

/* Scrolling row */
.testi-row {
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    /* Edge fade masks */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.testi-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.testi-ltr {
    animation: testiScrollLTR 35s linear infinite;
}

.testi-rtl {
    animation: testiScrollRTL 40s linear infinite;
}

@keyframes testiScrollLTR {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes testiScrollRTL {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Card */
.testi-card {
    flex: 0 0 380px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: border-color 0.3s ease;
}

.testi-card:hover {
    border-color: #4169E1;
}

.testi-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.testi-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.testi-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.testi-role {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

.testi-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.testi-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #475569;
    font-style: italic;
}

/* Pause on hover */
.testi-row:hover .testi-track {
    animation-play-state: paused;
}

/* ===== COURSES PAGE SPECIFIC ===== */
.page-header {
    margin-top: 80px;
    /* Space for fixed navbar */
    padding: 100px 20px 60px;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    /* background: url('hero-chess-bg.jpg') center/cover no-repeat; */
    /* Optional: Add subtle texture if available */
    opacity: 0.1;
    animation: spin 60s linear infinite;
    z-index: 0;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ===== COURSES PAGE ===== */

.courses-grid-section {
    padding: 60px 20px;
    background: transparent !important;
    /* Force transparency */
    position: relative;
    z-index: 10;
}

.courses-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .courses-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .courses-container {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2.2rem;
    }
}

/* Reuse existing card styles but remove absolute positioning from carousel if any */
.courses-grid-section .course-card {
    width: 100%;
    /* Force full width in grid cell */
    flex: none;
    /* Override flex potential */
}

/* ===== CONTACT CTA SECTION ===== */

/* ===== CONTACT PAGE SPECIFIC ===== */

/* ===== PREMIUM CONTACT PAGE ===== */

/* ===== CONTACT V3 SPECIFIC ===== */

.chess-pattern-bg {
    background-color: #f0f9ff;
    background-image:
        linear-gradient(45deg, #e0f2fe 25%, transparent 25%, transparent 75%, #e0f2fe 75%, #e0f2fe),
        linear-gradient(45deg, #e0f2fe 25%, transparent 25%, transparent 75%, #e0f2fe 75%, #e0f2fe);
    background-position: 0 0, 60px 60px;
    background-size: 120px 120px;
    min-height: 100vh;
}

.contact-header-v3,
.about-header {
    height: 350px;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
    /* Deep Royal Blue to Bright Blue */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff !important;
    /* Force White Text */
    padding-top: 100px;
    /* Offset fixed header */
    position: relative;
    overflow: hidden;
}

.contact-header-v3 h1,
.contact-header-v3 p,
.about-header h1,
.about-header p {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.header-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-section-v3 {
    max-width: 1100px;
    margin: 40px auto 40px;
    /* Reduced bottom gap */
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

/* ... existing code ... */

.facebook {
    background: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e62e5d, #bc1888);
    box-shadow: 0 8px 20px rgba(230, 46, 93, 0.3);
}

.whatsapp {
    background: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.linkedin {
    background: #0077b5;
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.tiktok {
    background: #000000;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.contact-grid-v3 {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    /* Significantly wider left side */
    gap: 12px;
    /* Very tight gap */
    align-items: start;
}

@media (max-width: 900px) {
    .contact-grid-v3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* LEFT COL: Details */
.details-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Unified Info Box Style */
.email-gradient-box,
.info-vertical-list,
.socials-v3 {
    background: #fff;
    border-radius: 20px;
    padding: 24px 16px;
    /* Reduced side padding significantly */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

/* Email Specific Overrides to match unification */
.email-gradient-box {
    background: #fff;
    /* Remove gradient */
    color: #1e293b;
    /* Dark Text */
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    /* Light Blue */
    color: #0284c7;
    /* Royal Blue Icon */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.email-info {
    display: flex;
    flex-direction: column;
}

.email-info {
    display: flex;
    flex-direction: column;
}

.email-info .label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.email-info .value {
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    /* Muted Gray like Friday style */
    text-decoration: none;
    overflow-wrap: anywhere;
    /* Break long emails */
    line-height: 1.4;
}

/* Phones & Location Vertical List */
.info-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-icon-v3 {
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    flex-shrink: 0;
}

.info-text-v3 {
    display: flex;
    flex-direction: column;
}

.label-v3 {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.phones-v3 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.phones-v3 a {
    color: #0f172a;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
}

.info-text-v3 p {
    color: #64748b;
    /* Muted Gray like Friday style */
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Rounded Socials Box */
.socials-v3 {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.socials-label {
    font-size: 1.1rem;
    color: #1e293b;
    margin-bottom: 20px;
}

.social-icons-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
}

.social-box {
    width: 42px;
    /* Reduced size */
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s;
}

.social-box svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 900px) {
    .contact-grid-v3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-header-v3,
    .about-header {
        height: 280px;
        /* Smaller header on mobile */
        padding-top: 80px;
    }

    .header-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {

    .header-title {
        font-size: 2rem;
    }

    .header-subtitle {
        font-size: 1rem;
        padding: 0 20px;
    }

    .contact-section-v3 {
        margin: 20px auto;
        padding: 0 16px;
    }

    .email-gradient-box,
    .info-vertical-list,
    .socials-v3 {
        padding: 20px;
        /* Reduce padding on mobile */
    }

    .form-col-v3 {
        padding: 20px;
        /* Reduce form padding */
    }

    .icon-circle,
    .info-icon-v3 {
        width: 45px;
        height: 45px;
    }

    .social-box {
        width: 45px;
        height: 45px;
    }
}

.social-box:hover {
    transform: translateY(-5px);
}

.facebook {
    background: #1877F2;
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.3);
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e62e5d, #bc1888);
    box-shadow: 0 8px 20px rgba(230, 46, 93, 0.3);
}

.whatsapp {
    background: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

/* RIGHT COL: Form */
.form-col-v3 {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 25px;
    font-weight: 700;
}

.whatsapp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    /* Form takes all available space */
}

.form-group-name {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-message {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    /* Message group expands */
}

.form-group-v3 label {
    font-weight: 600;
    color: #475569;
    font-size: 0.95rem;
}

.form-group-v3 input,
.form-group-v3 textarea {
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group-v3 input:focus,
.form-group-v3 textarea:focus {
    outline: none;
    border-color: #3b82f6;
}

.form-group-v3 textarea {
    height: 100%;
    /* Fill flex parent */
    min-height: 150px;
    resize: none;
}

.wa-submit-btn {
    margin-top: 10px;
    padding: 18px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.wa-submit-btn:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    padding-bottom: 80px;
}

.map-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.map-frame {
    height: 400px;
    /* Taller map */
    background: #f1f5f9;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    overflow: hidden;
    /* Clip map corners */
}

/* Responsive */
@media (max-width: 850px) {
    .contact-grid-v3 {
        grid-template-columns: 1fr;
    }

    .contact-section-v3 {
        margin-top: -40px;
    }

    .contact-header-v3 {
        height: 300px;
        padding-top: 80px;
    }

    .header-title {
        font-size: 2.5rem;
    }
}

/* ===== CONTACT CTA SECTION ===== */

.contact-cta {
    background: linear-gradient(135deg, #1a3a8f, #4169E1, #5b8af5);
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact-cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-cta-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.contact-cta-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 28px;
    line-height: 1.5;
}

.contact-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-btn-white {
    background: #ffffff;
    color: #4169E1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta-btn-white:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cta-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.contact-cta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-cta-info span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

@media (max-width: 600px) {
    .contact-cta {
        padding: 36px 20px;
    }

    .contact-cta-actions {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-cta-info {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== FOOTER ===== */

.site-footer {
    background: linear-gradient(135deg, #070e24, #0a1632, #0f1e4a);
    padding: 40px 40px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    gap: 40px;
    padding-bottom: 28px;
}

/* Align columns */
.footer-col:nth-child(1) {
    justify-self: start;
}

.footer-col:nth-child(2) {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-col:nth-child(3) {
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 42px;
    margin-bottom: 10px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.45);
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
    text-align: center;
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(65, 105, 225, 0.15);
    border-color: rgba(65, 105, 225, 0.4);
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background: rgba(65, 105, 225, 0.2);
    border-color: #4169E1;
    color: #6b8cff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .site-footer {
        padding: 32px 20px 0;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
    }

    .footer-brand {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Reset grid alignments for mobile flex */
    .footer-col:nth-child(1),
    .footer-col:nth-child(2),
    .footer-col:nth-child(3) {
        justify-self: auto;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
    }
}

/* ===== FOUNDER SECTION ===== */

.founder-section {
    background: linear-gradient(270deg, #0a1632, #0f2557, #1a3a8f, #122b6a, #0f2557, #0a1632);
    background-size: 600% 100%;
    animation: founderGradient 16s linear infinite;
    padding: 50px 40px;
}

@keyframes founderGradient {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: -200% 50%;
    }
}

.founder-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    gap: 60px;
}

/* Video */
.founder-video {
    flex: 0 0 380px;
    min-width: 0;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.founder-video video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Text */
.founder-text {
    flex: 1;
    min-width: 0;
}

.founder-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6b8cff;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: rgba(65, 105, 225, 0.15);
    border-radius: 20px;
}

.founder-name {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.founder-title {
    font-size: 0.95rem;
    color: #6b8cff;
    font-weight: 600;
    margin-bottom: 20px;
}

.founder-bio {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
}

.founder-bio strong {
    color: #ffffff;
    font-weight: 700;
}

.founder-stats {
    display: flex;
    gap: 32px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.founder-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.founder-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
}

.founder-stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Founder responsive */
@media (max-width: 900px) {
    .founder-container {
        flex-direction: column;
        gap: 40px;
    }

    .founder-section {
        padding: 60px 24px;
    }

    .founder-text {
        text-align: center;
    }

    .founder-stats {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .founder-section {
        padding: 48px 16px;
    }

    .founder-stats {
        gap: 20px;
    }
}

/* ===== HERO RESPONSIVE ===== */


@media (max-width: 900px) {
    .hero-section {
        flex-direction: column;
        padding: 120px 24px 60px;
        gap: 40px;
        min-height: auto;
    }

    .hero-left {
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-right {
        flex: none;
        width: 100%;
        max-width: 360px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 16px 40px;
        gap: 32px;
    }

    .hero-heading {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
    }

    .hero-right {
        max-width: 100%;
        height: 260px;
    }
}

/* ===== MOBILE RESPONSIVE & DRAWER ===== */

@media (max-width: 1100px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-wrapper {
        padding: 12px;
        height: 72px;
    }

    .nav-container {
        width: 100%;
        max-width: 600px;
        justify-content: space-between;
        padding: 6px 12px;
        gap: 6px;
        border-radius: 60px;
    }

    .logo-segment {
        padding: 0 10px;
    }

    .logo-img {
        height: 30px;
    }

    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }
}

@media (max-width: 480px) {
    .nav-wrapper {
        padding: 8px;
        height: 64px;
    }

    .nav-container {
        padding: 4px 10px;
        gap: 4px;
        border-radius: 50px;
    }

    .logo-img {
        height: 26px;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
    }
}

/* ===== MOBILE DRAWER ===== */

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    height: 100dvh;
    /* Modern viewport-aware height */
    background: #f8fafc;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-drawer[data-state="open"] {
    transform: translateX(0);
    box-shadow: -10px 0 40px rgba(15, 23, 42, 0.12);
}

/* Close Button */
.drawer-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.04);
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    z-index: 10;
}

.drawer-close-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    color: #e3165b;
}

/* Drawer Content */
.drawer-content {
    position: relative;
    padding: 80px 24px 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.drawer-header {
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.drawer-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
}

/* Drawer Navigation Links */
.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-links li a {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.drawer-links li a:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
}

.drawer-links li a.active {
    color: #4169E1;
    /* Royal Blue — matching desktop */
    background: rgba(65, 105, 225, 0.08);
    font-weight: 600;
}

/* Drawer Footer */
.drawer-footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Mobile Language Switcher */
.mobile-lang {
    width: 100% !important;
    justify-content: center;
    background: rgba(15, 23, 42, 0.03) !important;
    border: 1px solid var(--border-color) !important;
}

/* Register Button in Drawer */
.drawer-btn {
    width: 100% !important;
    height: 52px !important;
    font-size: 0.95rem !important;
    border-radius: 14px !important;
}

/* Social Icons in Drawer */
.drawer-social {
    width: 100% !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    gap: 12px !important;
}

.drawer-social .icon-box {
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    width: 46px;
    height: 46px;
}

/* Subtle Gloss inside Drawer */
.drawer-content::before {
    content: '';
    position: absolute;
    top: -15%;
    right: -15%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(65, 105, 225, 0.08), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* ===== OVERLAY ===== */

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 1500;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Scroll Lock */
body.no-scroll {
    overflow: hidden;
}

/* ===== ABOUT PAGE SPECIFIC (PREMIUM) ===== */

.about-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
}

/* Premium Content Section */
.about-premium-section {
    padding: 30px 20px 30px;
    /* Aggressively reduced padding */
    width: 100%;
    /* Full width background */
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
}

.premium-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 50px;
    /* Reduced gap */
}

/* Story Box */
.story-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    /* Reduced gap */
    align-items: center;
    /* New Premium Background */
    background:
        radial-gradient(circle at 0% 0%, rgba(219, 234, 254, 0.6) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(191, 219, 254, 0.4) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
    padding: 40px;
    /* Reduced padding */
    border-radius: 40px;
    /* Darker border for visibility */
    border: 1px solid #94a3b8;
    /* Darker border */
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.1);
}

.story-content .section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.story-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.1;
    color: #0f172a;
    font-weight: 800;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 20px;
}

.story-visual {
    position: relative;
    height: 400px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 20px 20px 0px rgba(37, 99, 235, 0.1);
}

.story-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modern Mission Grid */
.mission-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.glass-card {
    background: #fff;
    /* Darker border */
    border: 1px solid #94a3b8;
    /* Darker border */
    padding: 30px;
    /* Reduced padding */
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(148, 163, 184, 0.15);
    border-color: #94a3b8;
}

.highlight-card {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    color: #fff;
    border: none;
}

.glass-icon {
    width: 56px;
    height: 56px;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.highlight-card .glass-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.glass-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #64748b;
}

.highlight-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Super Stats Strip (Removed container, kept internal items) */

.stats-float-container {
    background: #fff;
    border-radius: 24px;
    padding: 30px 40px;
    /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    /* Darker border */
    border: 1px solid #94a3b8;
    /* Darker border */
    position: relative;
    z-index: 2;
}

.pro-stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon-box {
    width: 64px;
    height: 64px;
    background: #f0f9ff;
    color: #2563eb;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

.stat-desc {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 4px;
}

.stat-divider {
    width: 2px;
    height: 60px;
    background: #e2e8f0;
}

/* Responsive Premium */
@media (max-width: 1024px) {
    .story-box {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .story-visual {
        height: 300px;
    }

    .mission-modern-grid {
        grid-template-columns: 1fr;
    }

    .stats-float-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .stat-divider {
        width: 60px;
        height: 2px;
    }

    .pro-stat-item {
        flex-direction: column;
    }
}

/* Instructors Section */
.instructors-section {
    max-width: 100%;
    /* Ensure full width for background */
    margin: 0 auto;
    /* Fade from light blue (previous section end) to white */
    background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 100%);
    padding: 30px 20px 40px;
    /* Aggressively reduced padding */
}

.instructors-grid-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    /* Reduced margin */
    color: #1e293b;
}

/* Rounded Box Heading with Lines */
.lined-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    white-space: nowrap;
}

.lined-heading::before,
.lined-heading::after {
    content: '';
    height: 2px;
    background: #cbd5e1;
    /* Visible divider line */
    width: 100px;
    /* Fixed width lines or use flex:1 for full width */
    max-width: 150px;
    border-radius: 2px;
}

.lined-heading span {
    background: #2563eb;
    /* Blue Box */
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.instructor-card {
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.instructor-card:hover {
    transform: translateY(-10px);
}

.instructor-img-box {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.instructor-img-box img,
.instructor-img-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.instructor-card:hover .instructor-img-box img,
.instructor-card:hover .instructor-img-box video {
    transform: scale(1.05);
}

/* Volume Toggle Button */
.volume-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.volume-toggle:hover,
.volume-toggle.active {
    background: #2563eb;
    border-color: #2563eb;
    transform: scale(1.1);
}

.volume-toggle i {
    width: 20px;
    height: 20px;
}

.instructor-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: bottom 0.4s ease;
}

.instructor-card:hover .instructor-overlay {
    bottom: 0;
}

.overlay-content {
    color: #fff;
}

.overlay-content h4 {
    color: #60a5fa;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.overlay-content p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.instructor-info {
    padding: 30px;
}

.instructor-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #1e293b;
}

.instructor-role {
    display: block;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 15px;
}

.instructor-bio {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Infinite Slider (4:5) */
.infinite-gallery-section {
    padding: 20px 0 80px;
    /* Reduced top padding */
    background: #fff;
    overflow: hidden;
}

.slider-wrapper-4-5 {
    width: 100%;
    display: flex;
    overflow: hidden;
    /* Mask gradient sides */
    mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.slider-track-4-5 {
    display: flex;
    gap: 20px;
    animation: scroll-4-5 120s linear infinite;
    width: max-content;
}

.slide-4-5 {
    width: 320px;
    height: 400px;
    flex-shrink: 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.slide-4-5 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide-4-5:hover img {
    transform: scale(1.05);
}

@keyframes scroll-4-5 {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Adjust based on duplicated content length */
    }
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .stats-strip {
        gap: 40px;
    }

    .instructor-img-box {
        height: 350px;
    }

    .slide-4-5 {
        width: 240px;
        height: 300px;
    }
}

/* Hamburger z-index */
.mobile-menu-btn {
    z-index: 2001;
}

/* Full-width drawer on small phones */
@media (max-width: 480px) {
    .mobile-drawer {
        width: 100%;
        border-left: none;
    }

    .drawer-content {
        padding: 72px 20px 32px;
    }
}

/* ===== ABOUT HERO BANNER SCROLLER ===== */
.about-hero-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #0f172a;
}

.banner-scroller-track {
    display: flex;
    width: max-content;
    height: 100%;
    animation: aboutBannerScroll 180s linear infinite;
    direction: ltr !important;
}

.banner-slide {
    width: 600px;
    height: 100%;
    flex-shrink: 0;
    border-right: 4px solid rgba(255, 255, 255, 0.2);
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

@keyframes aboutBannerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px 20px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6));
    z-index: 2;
}

.banner-content {
    max-width: 900px;
    text-align: center;
    color: white;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.banner-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.banner-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    opacity: 0.95;
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* RTL Adjustments for Banner Text */
html[dir="rtl"] .banner-content {
    direction: rtl;
}

@media (max-width: 768px) {
    .about-hero-banner {
        height: 300px;
    }

    .banner-content {
        padding: 25px;
        width: 90%;
        border-radius: 20px;
    }

    .banner-slide {
        width: 350px;
    }
}

/* ===== HOME BOTTOM GALLERY SCROLLER ===== */
.home-gallery-banner {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.home-gallery-banner .banner-slide {
    width: 450px;
    height: 100%;
}

.home-gallery-banner .banner-slide img {
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.home-gallery-banner:hover .banner-slide img {
    filter: brightness(1);
}

@media (max-width: 768px) {
    .home-gallery-banner {
        height: 130px;
    }

    .home-gallery-banner .banner-slide {
        width: 300px;
    }
}

/* ===== PREMIUM REGISTRATION FORM ===== */
.premium-reg-form .form-group-v3 {
    margin-bottom: 24px;
}

.premium-reg-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    transition: color 0.2s;
}

.premium-reg-form:focus-within label {
    color: #3b82f6;
}

.premium-reg-form input,
.premium-reg-form select {
    width: 100%;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    /* Lighter, cleaner border */
    border-radius: 16px;
    /* More rounded */
    font-size: 1.05rem;
    color: #0f172a;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    /* Subtle depth */
}

.premium-reg-form input:hover,
.premium-reg-form select:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.premium-reg-form input:focus,
.premium-reg-form select:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15), 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.premium-reg-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Custom Select Styling */
.premium-reg-form select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 20px;
    padding-inline-end: 45px;
}

.premium-reg-form select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html[dir="rtl"] .premium-reg-form select {
    background-position: left 20px center;
}

/* Submit Button Enhancement */
.premium-reg-form .wa-submit-btn {
    margin-top: 16px;
    padding: 20px;
    border-radius: 16px;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.premium-reg-form .wa-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.premium-reg-form .wa-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.5);
}

.premium-reg-form .wa-submit-btn:hover::before {
    opacity: 1;
}

.premium-reg-form .wa-submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px -5px rgba(37, 99, 235, 0.4);
}

/* ===== COURSE DETAILS PAGE ===== */
.course-details-page {
    background-color: #f0f9ff;
    /* White Blue Background */
    background-image: radial-gradient(#e0f2fe 1px, transparent 1px);
    background-size: 24px 24px;
}

.course-details-section {
    padding: 60px 20px 100px;
}

.course-details-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Main Content - Now Enclosed */
.course-main {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.course-hero-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: -40px -40px 40px -40px;
    /* Pull to edges of card */
    margin-bottom: 40px;
    box-shadow: none;
    border-bottom: 1px solid #e2e8f0;
}

.course-hero-img img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.course-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #3b82f6;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.course-content-block {
    margin-bottom: 40px;
}

.course-content-block h2 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 20px;
    font-weight: 800;
}

.course-content-block p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* Learn List */
.course-learn-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 16px;
}

.course-learn-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #334155;
    font-size: 1rem;
    line-height: 1.6;
}

.course-learn-list i {
    color: #10b981;
    min-width: 20px;
    margin-top: 4px;
}

/* Curriculum */
.curriculum-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s;
}

.curriculum-item:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.week-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    font-weight: 700;
    color: #3b82f6;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    line-height: 1.2;
    padding: 10px;
    font-size: 0.9rem;
}

.curriculum-text h4 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 1.1rem;
}

.curriculum-text p {
    margin: 0;
    font-size: 0.95rem;
}

/* Sidebar */
.course-sticky-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 40px;
}

.info-card-title {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 12px;
}

.info-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.info-price .period {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 500;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-item i {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    color: #3b82f6;
    border-radius: 12px;
}

.info-item .label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 4px;
}

.info-item .value {
    display: block;
    font-size: 1.05rem;
    color: #0f172a;
    font-weight: 600;
}

.register-btn-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.register-btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

.money-back {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Media Query */
@media (max-width: 900px) {
    .course-details-container {
        grid-template-columns: 1fr;
    }

    .course-hero-img img {
        height: 300px;
    }
}

/* ===== RTL SUPPORT & ARABIC FONT ===== */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] button,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] select {
    font-family: 'Cairo', 'Outfit', sans-serif !important;
}

html[dir="rtl"] .hero-left {
    text-align: right;
}

html[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

html[dir="rtl"] .hero-subtitle {
    margin-right: 0;
    margin-left: auto;
}

html[dir="rtl"] .float-badge {
    left: auto;
}

html[dir="rtl"] .float-badge-rank {
    right: auto;
    left: 18%;
}

html[dir="rtl"] .float-badge-counter {
    right: auto;
    left: 28%;
}

html[dir="rtl"] .float-badge-rating {
    right: auto;
    left: 38%;
}

html[dir="rtl"] .courses-header {
    flex-direction: row-reverse;
}

html[dir="rtl"] .course-card-body {
    text-align: right;
}

html[dir="rtl"] .tag-bubble-row {
    justify-content: flex-start;
}

html[dir="rtl"] .instructor-info {
    text-align: right;
}

html[dir="rtl"] .founder-text {
    text-align: right;
}

html[dir="rtl"] .founder-stats {
    justify-content: flex-start;
}

html[dir="rtl"] .footer-inner {
    direction: rtl;
}

html[dir="rtl"] .footer-col:nth-child(1) {
    justify-self: end;
    text-align: right;
}

html[dir="rtl"] .footer-col:nth-child(3) {
    justify-self: start;
    align-items: flex-start;
}

html[dir="rtl"] .footer-links {
    justify-content: flex-start;
}

html[dir="rtl"] .contact-grid-v3 {
    text-align: right;
}

html[dir="rtl"] .email-gradient-box {
    flex-direction: row-reverse;
}

html[dir="rtl"] .info-row {
    flex-direction: row-reverse;
}

html[dir="rtl"] .form-col-v3 {
    text-align: right;
}

html[dir="rtl"] .premium-reg-form label {
    text-align: right;
}

html[dir="rtl"] .premium-reg-form select {
    background-position: left 16px center;
}

/* Fix Scrollers Direction (Keep LTR visual flow) */
html[dir="rtl"] .text-marquee,
html[dir="rtl"] .slider-wrapper-4-5,
html[dir="rtl"] .scroller-mask,
html[dir="rtl"] .testi-row,
html[dir="rtl"] .about-hero-banner,
html[dir="rtl"] .home-gallery-banner,
html[dir="rtl"] .courses-track-wrapper {
    direction: ltr !important;
}

/* Ensure course details sidebar aligns correctly in RTL */
html[dir="rtl"] .course-details-container {
    grid-template-columns: 1fr 2fr;
}

@media (max-width: 900px) {
    html[dir="rtl"] .course-details-container {
        grid-template-columns: 1fr;
    }
}