/* ========================================
   DILIGENT EDUCATIONS - MAIN STYLES
   Modern, Premium Education Consultancy
   ======================================== */

/* ==========================================
   CSS VARIABLES & ROOT
   ========================================== */
:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;

    /* Secondary Colors */
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --secondary-dark: #0284c7;

    /* Accent Colors */
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;

    /* Success/Error */
    --success: #10b981;
    --error: #ef4444;

    /* Neutral Colors */
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #f97316 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-secondary) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1280px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(var(--primary-rgb), 0.3);
    --shadow-glow-lg: 0 0 80px rgba(var(--primary-rgb), 0.4);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index layers */
    --z-back: -1;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    --z-preloader: 9999;
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    background: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
textarea,
select {
    font-family: inherit;
    font-size: inherit;
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ==========================================
   LAYOUT
   ========================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
    overflow: hidden;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-back);
    overflow: hidden;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-header.center {
    text-align: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.section-tag i {
    font-size: 0.75rem;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-light);
    max-width: 600px;
}

.section-header.center .section-subtitle {
    margin: 0 auto;
}

/* ==========================================
   PRELOADER
   ========================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

/* Realistic Earth Preloader */
/* Cohort Card Image Fix */
.cohort-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--dark-secondary);
    opacity: 1 !important;
}

.loader-orbit {
    height: 140px;
    position: relative;
    margin: 0 auto 30px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: orbit 5s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(79, 172, 254, 0.1);
}

/* The Earth in the center */
.loader-orbit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    /* Bright, non-creepy Earth Gradient */
    background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe);
    background: radial-gradient(circle at 30% 30%,
            #89f7fe 0%,
            #66a6ff 40%,
            #0575E6 100%);
    box-shadow:
        inset -10px -10px 20px rgba(0, 0, 0, 0.2),
        0 0 15px rgba(137, 247, 254, 0.6);
    z-index: 1;
}

/* The Moon Orbiting */
.loader-planet {
    position: absolute;
    top: -6px;
    /* Position on the ring */
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #f0f0f0;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
    z-index: 2;
}

@keyframes orbit {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.loader-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(to right, #fff, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseText 2s infinite alternate;
}

@keyframes pulseText {
    from {
        text-shadow: 0 0 10px rgba(var(--primary-rgb), 0.1);
    }

    to {
        text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
    }
}

.loader-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--gray-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.loader-progress {
    margin-top: 35px;
    width: 250px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #89f7fe 0%, #66a6ff 100%);
    /* Matching Earth colors */
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(102, 166, 255, 0.5);
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary);
}



.loader-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.5);
}

.loader-percent {
    font-size: 0.875rem;
    color: var(--gray-light);
    font-family: var(--font-accent);
}

/* ==========================================
   NAVIGATION
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: var(--transition-normal);
}

.glass-nav {
    /* Performance: Removed backdrop-filter */
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: var(--shadow-lg);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--gray-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(var(--primary-rgb), 0.1);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    transition: var(--transition-normal);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 180px;
    /* Increased to fix header overlap */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-back);
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%);
}

.hero-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--dark), transparent);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-3d-scene {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero-badge i {
    color: var(--accent);
}

.hero-title {
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    flex-wrap: nowrap;
    /* Desktop: Single line */
    justify-content: flex-start;
    align-items: stretch;
}

@media (max-width: 768px) {
    .hero-stats {
        flex-wrap: wrap;
        /* Mobile: Allow wrapping */
        gap: 20px;
    }

    .stat-item {
        flex: 1 1 140px;
        /* Grow to fill space */
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    min-width: 140px;
    /* Ensure consistency */
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    /* Primary color border on hover */
    background: rgba(255, 255, 255, 0.06);
}

.stat-value-wrapper {
    display: flex;
    align-items: center;
    /* Center align vertically */
    gap: 2px;
    white-space: nowrap;
    /* FORCE single line */
    margin-bottom: 4px;
}

.stat-number {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: var(--font-accent);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary);
    /* Pop color */
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-light);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 24px;
    margin-bottom: 50px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-3d {
    transform-style: preserve-3d;
}

.btn-glow-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    filter: blur(20px);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.btn-3d:hover .btn-glow-effect {
    opacity: 0.5;
}

/* Hero Social */
.hero-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-label {
    font-size: 0.875rem;
    color: var(--gray-light);
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--gray-light);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    font-size: 0.8125rem;
    color: var(--gray-light);
}

.trust-badge i {
    color: var(--success);
    font-size: 0.875rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================
   HERO SOLAR GALAXY
   ========================================== */
.solar-system {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Central Earth */
.hero-earth {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    /* Slightly larger for presence */
    height: 140px;
    border-radius: 50%;
    /* Realistic "Blue Marble" Earth Gradient */
    background: radial-gradient(circle at 30% 30%, #4facfe, #00f2fe);
    background: radial-gradient(circle at 45% 45%,
            #4B9CD3 0%,
            /* Shallow Water */
            #134B70 50%,
            /* Deep Ocean */
            #0a2e46 100%
            /* Marianas Trench */
        );
    /* Continents Suggestion via multiple Shadows/Gradient Overlays (Simulated) */
    box-shadow:
        inset 10px 10px 50px rgba(0, 0, 0, 0.6),
        /* Night side shadow */
        inset -5px -5px 20px rgba(255, 255, 255, 0.2),
        /* Atmosphere reflection */
        0 0 40px rgba(75, 156, 211, 0.4);
    /* Glow */
    z-index: 10;
    overflow: hidden;
}

/* Simulated Continents/Clouds texture using pseudo-element */
.hero-earth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.4) 0%, transparent 10%),
        /* Cloud */
        radial-gradient(circle at 30% 60%, rgba(76, 175, 80, 0.4) 0%, transparent 20%),
        /* Land hint */
        radial-gradient(circle at 80% 50%, rgba(76, 175, 80, 0.3) 0%, transparent 15%);
    /* Land hint */
    filter: blur(2px);
}

.earth-atmosphere {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 20px rgba(137, 247, 254, 0.4);
    opacity: 0.8;
}

/* Orbits */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.05);
    /* Soft glow */
}

.orbit-1 {
    width: 240px;
    height: 240px;
    animation: orbit 15s linear infinite;
}

.orbit-2 {
    width: 380px;
    height: 380px;
    animation: orbit 25s linear infinite reverse;
}

.orbit-3 {
    width: 520px;
    height: 520px;
    animation: orbit 35s linear infinite;
}

/* Planets/Icons on Orbit */
.planet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

/* Position icons on the ring */
.planet-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-light);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

/* Orbit 1 Positions */
.planet-1 .planet-icon {
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.planet-2 .planet-icon {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

/* Orbit 2 Positions */
.planet-3 .planet-icon {
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
}

.planet-4 .planet-icon {
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
}

/* Orbit 3 Positions */
.planet-5 .planet-icon {
    top: 15%;
    left: 85%;
}

.planet-6 .planet-icon {
    bottom: 15%;
    right: 85%;
}

@keyframes orbit {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Counter-rotate icons to keep them upright */
.planet-icon i {
    animation: counter-rotate 15s linear infinite;
}

.orbit-2 .planet-icon i {
    animation-duration: 25s;
    animation-direction: reverse;
}

.orbit-3 .planet-icon i {
    animation-duration: 35s;
}

@keyframes counter-rotate {
    100% {
        transform: rotate(-360deg);
    }
}

/* ==========================================
   COHORT SLIDER SECTION
   ========================================== */
.cohort {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cohort-slider-container {
    position: relative;
    width: 100%;
    padding: 60px 0;
    /* Increased padding to prevent hover cutoff */
    overflow: hidden;
}

.cohort-track {
    display: flex;
    gap: 40px;
    /* Increased gap */
    width: max-content;
    /* Ensure it takes full width of children */
    padding: 0 40px;
    /* Side padding */
    /* Remove CSS animation if JS is taking over, or keep as fallback */
    /* animation: scrollSlider 20s linear infinite; */
}

/* Skeleton Loader */
.skeleton-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--dark-secondary);
}

.skeleton-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

.cohort-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    opacity: 0;
    /* Hide initially until loaded */
    transition: opacity 0.5s ease, transform 0.6s ease;
}

.cohort-image.loaded {
    opacity: 1;
}

.cohort-image.loaded+.skeleton-loader {
    display: none;
}


@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
        /* Move by 1/3 (one set of 3) */
    }
}

.cohort-track:hover {
    animation-play-state: paused;
}

.cohort-card {
    position: relative;
    width: 350px;
    /* Fixed width */
    height: 450px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--dark-secondary);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: grab;
    /* Better UX indicator */
}

.cohort-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: rgba(var(--primary-rgb), 0.5);
    z-index: 2;
}

.cohort-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.cohort-card:hover .cohort-image {
    transform: scale(1.1);
}

.cohort-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cohort-card:hover .cohort-overlay {
    transform: translateY(0);
}

.cohort-info h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 5px;
}

.cohort-info p {
    font-size: 0.9rem;
    color: var(--gray-light);
}

/* Glassmorphism Badge */
.cohort-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.1s;
}

.cohort-card:hover .cohort-badge {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Logo Fix */
.logo-image {
    height: 80px;
    width: auto;
    border-radius: 8px;
    filter: invert(1);
    mix-blend-mode: screen;
    transition: height 0.3s ease;
}

@media (max-width: 768px) {
    .logo-image {
        height: 50px;
    }

    .hero {
        padding-top: 140px;
    }

    .cohort-card {
        width: 280px;
        height: 380px;
    }
}

/* ==========================================
   FLOATING ICONS
   ========================================== */

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    color: var(--primary-light);
    animation: float 6s ease-in-out infinite;
}

.icon-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    top: 30%;
    right: 10%;
    animation-delay: 1s;
}

.icon-3 {
    top: 60%;
    left: 10%;
    animation-delay: 2s;
}

.icon-4 {
    top: 80%;
    right: 30%;
    animation-delay: 0.5s;
}

.icon-5 {
    top: 20%;
    right: 30%;
    animation-delay: 1.5s;
}

.icon-6 {
    top: 50%;
    left: 30%;
    animation-delay: 2.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--gray-light);
    font-size: 0.8125rem;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--gray);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 2s ease infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ==========================================
   ABOUT SECTION - ENHANCED
   ========================================== */
.about {
    position: relative;
    background: var(--dark);
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
}

.bg-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(99, 102, 241, 0.3);
    top: -10%;
    left: -15%;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(14, 165, 233, 0.25);
    bottom: 10%;
    right: -10%;
}

.bg-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.2);
    top: 40%;
    left: 30%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-visual {
    position: relative;
    min-height: 450px;
}

.about-card-stack {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card {
    position: absolute;
    width: 220px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.about-card:hover {
    transform: translateY(-15px) rotate(0deg) scale(1.05) !important;
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
    z-index: 10;
}

.about-card-stack {
    height: 480px;
}

.card-1 {
    top: 0;
    left: 0;
    transform: rotate(-8deg);
    z-index: 3;
}

.card-2 {
    top: 140px;
    left: 180px;
    transform: rotate(5deg);
    z-index: 4;
}

.card-3 {
    top: 280px;
    left: 40px;
    transform: rotate(-3deg);
    z-index: 5;
}

.card-content {
    text-align: center;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.about-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.about-card p {
    font-size: 0.9375rem;
    color: var(--gray-light);
}

.about-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    width: 130px;
    height: 130px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* animation: rotateBadge 20s linear infinite; - Removed as requested */
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4);
    z-index: 6;
}

.badge-text {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--white);
}

@keyframes rotateBadge {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-text {
    color: var(--gray-light);
    margin-bottom: 24px;
    line-height: 1.9;
    font-size: 1.0625rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 36px 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(5px);
}

.feature-item span {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9375rem;
}

.feature-icon {
    color: var(--success);
    font-size: 1.125rem;
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.service-card.featured {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 14px;
    background: var(--gradient-accent);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    z-index: 2;
}

.service-card-inner {
    padding: 40px 30px;
    position: relative;
    z-index: 1;
}

.service-icon-wrap {
    position: relative;
    margin-bottom: 24px;
}

.service-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    font-size: 1.75rem;
    color: var(--white);
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 35px;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    filter: blur(30px);
    opacity: 0.5;
}

.service-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-desc {
    color: var(--gray-light);
    font-size: 0.9375rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features {
    margin-bottom: 24px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--gray-light);
}

.service-features li i {
    color: var(--success);
    font-size: 0.75rem;
}

.service-countries {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9375rem;
}

.service-cta:hover {
    gap: 12px;
    color: var(--white);
}

.card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover .card-shine {
    left: 100%;
}

/* ==========================================
   COUNTRIES SECTION
   ========================================== */
.globe-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.1;
}

.countries-showcase {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.country-card {
    position: relative;
    padding: 30px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

.country-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: var(--shadow-glow);
}

.country-flag {
    font-size: 3rem;
    margin-bottom: 16px;
}

.country-name {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.country-info {
    font-size: 0.8125rem;
    color: var(--gray-light);
    margin-bottom: 16px;
}

.country-stats {
    font-size: 0.75rem;
    color: var(--primary-light);
}

.country-stats i {
    margin-right: 6px;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-timeline {
    position: relative;
    padding: 60px 0;
}

.process-path {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 1;
}

.path-svg {
    width: 100%;
    height: 200px;
}

.path-line {
    fill: none;
    stroke: rgba(var(--primary-rgb), 0.2);
    stroke-width: 2;
    stroke-dasharray: 10 5;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.process-step {
    text-align: center;
    max-width: 200px;
}

.step-marker {
    position: relative;
    margin-bottom: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--white);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    border-radius: 50%;
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dark);
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.8125rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* ==========================================
   COUNTRY CARDS WITH IMAGES
   ========================================== */
.country-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 0;
    /* Remove padding to let image touch edges */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.country-card-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.country-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.country-card:hover .country-card-image img {
    transform: scale(1.1);
}

.country-flag-overlay {
    position: absolute;
    bottom: -20px;
    right: 15px;
    background: white;
    padding: 3px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.country-card-content {
    padding: 25px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.country-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-color);
}

.country-info {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.country-stats {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* ==========================================
   WHY US SECTION - ENHANCED
   ========================================== */
.why-us {
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-secondary) 100%);
    position: relative;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.why-card {
    text-align: center;
    padding: 45px 30px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card:hover {
    transform: translateY(-12px);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25);
}

.why-card:hover::before {
    opacity: 1;
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
    position: relative;
    z-index: 1;
}

/* Visibility Safeguard - Ensure content is visible if JS fails */
.no-js .why-card,
.no-js .about-card {
    opacity: 1 !important;
    transform: none !important;
}

.why-number {
    font-family: var(--font-accent);
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    margin-bottom: 12px;
    line-height: 1;
}

.why-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--white);
}

.why-card p {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.6;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    background: var(--dark-secondary);
    position: relative;
    overflow: hidden;
}

.testimonials-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.testimonials-carousel {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    min-width: 100%;
    padding: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: all 0.5s ease;
    opacity: 1;
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 24px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--white);
    margin-bottom: 30px;
    font-style: italic;
    font-weight: 300;
}

.testimonial-rating {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
}

.testimonial-rating i {
    color: var(--accent);
    font-size: 1.125rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-image {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    flex-shrink: 0;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.author-info h4,
.author-info h5 {
    font-size: 1.125rem;
    margin-bottom: 6px;
    color: var(--white);
}

.author-info p,
.author-info span {
    font-size: 0.9375rem;
    color: var(--primary-light);
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.gradient-text-light {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--gray-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Button Variations */
.btn-large {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

.btn-glow {
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 50px rgba(var(--primary-rgb), 0.6);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn i {
    font-size: 1.125rem;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info {
    padding-right: 40px;
    order: 1;
}

.contact-form-wrapper {
    order: 2;
}

/* Structured Grid Layout for Contact Items */
.contact-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Glass border */
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(99, 102, 241, 0.5);
    /* Primary color glow */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Standardize border */
}

/* Response for mobile */
@media (max-width: 768px) {
    .contact-details {
        grid-template-columns: 1fr;
    }
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-sm);
    font-size: 1.25rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.contact-details p,
.contact-details a {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.6;
}

.contact-details a:hover {
    color: var(--primary-light);
}

.contact-form-wrap {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-lg);
}

.contact-form-wrapper {
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.form-subtitle {
    font-size: 0.9375rem;
    color: var(--gray-light);
    margin-bottom: 32px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white);
    margin-bottom: 8px;
}

/* Floating Label Styles */
.form-group.floating-label {
    margin-bottom: 24px;
}

.form-group.floating-label label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 0.9375rem;
    font-weight: 400;
    pointer-events: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
    background: transparent;
}

.form-group.floating-label input:focus~label,
.form-group.floating-label input:not(:placeholder-shown)~label,
.form-group.floating-label textarea:focus~label,
.form-group.floating-label textarea:not(:placeholder-shown)~label,
.form-group.floating-label input:valid~label,
.form-group.floating-label textarea:valid~label {
    top: -10px;
    left: 14px;
    font-size: 0.75rem;
    color: var(--primary-light);
    background: var(--dark-secondary);
    padding: 0 6px;
    transform: translateY(0);
}

.form-group.floating-label textarea~label {
    top: 20px;
    transform: translateY(0);
}

.form-group.floating-label textarea:focus~label,
.form-group.floating-label textarea:not(:placeholder-shown)~label {
    top: -10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--white);
    font-size: 0.9375rem;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    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='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-group select option {
    background: var(--dark);
    color: var(--white);
}

.form-submit {
    margin-top: 10px;
}

.form-submit .btn {
    width: 100%;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--dark-secondary);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-desc {
    font-size: 0.9375rem;
    color: var(--gray-light);
    line-height: 1.8;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-column h4 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--white);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--gray-light);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.copyright {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 0.875rem;
    color: var(--gray);
}

.footer-bottom-links a:hover {
    color: var(--primary-light);
}

/* -----------------------------------------------------------------
   CSS INFINITE SCROLL FOR COHORT SLIDER
   - Replaces JS-based GSAP scroller for maximum reliability
   ----------------------------------------------------------------- */
.cohort-track {
    display: flex;
    gap: 40px;
    padding: 20px;
    width: max-content;
    /* Ensure content flows horizontally */
    animation: scrollSlider 40s linear infinite;
    /* Smooth, slow scroll */
}

/* Pause on hover for better UX */
.cohort-track:hover {
    animation-play-state: paused;
}

/* Keyframes for sliding left */
@keyframes scrollSlider {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
        /* Moves 1/3, assuming triplicated content */
    }
}

/* Footer Social Icons - Glass Neon Future 🔮 */
.footer-social-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-social-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Stronger glass border */
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    /* Stronger initial glow */
}

.footer-social-icon:hover {
    transform: translateY(-5px) scale(1.15);
    background: transparent;
    border-color: transparent;
}

/* Individual Neon Brand Glows on Hover */
.footer-social-icon[aria-label="Facebook"]:hover {
    color: #1877F2;
    box-shadow: 0 0 25px rgba(24, 119, 242, 0.8), 0 0 50px rgba(24, 119, 242, 0.4);
    text-shadow: 0 0 10px rgba(24, 119, 242, 0.8);
}

.footer-social-icon[aria-label="Instagram"]:hover {
    color: #e1306c;
    box-shadow: 0 0 25px rgba(225, 48, 108, 0.8), 0 0 50px rgba(225, 48, 108, 0.4);
    text-shadow: 0 0 10px rgba(225, 48, 108, 0.8);
}

.footer-social-icon[aria-label="LinkedIn"]:hover {
    color: #0A66C2;
    box-shadow: 0 0 25px rgba(10, 102, 194, 0.8), 0 0 50px rgba(10, 102, 194, 0.4);
    text-shadow: 0 0 10px rgba(10, 102, 194, 0.8);
}

.footer-social-icon[aria-label="YouTube"]:hover {
    color: #FF0000;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.8), 0 0 50px rgba(255, 0, 0, 0.4);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.footer-social-icon[aria-label="Twitter"]:hover {
    color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.8), 0 0 50px rgba(255, 255, 255, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.footer-social-icon.whatsapp:hover,
.footer-social-icon[aria-label="WhatsApp"]:hover {
    color: #25D366;
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.8), 0 0 50px rgba(37, 211, 102, 0.4);
    text-shadow: 0 0 10px rgba(37, 211, 102, 0.8);
}

/* Classic Badge Glow match neon theme slightly */
.trust-glow {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hardware-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* ==========================================
   WEBGL CANVAS
   ========================================== */
.webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .countries-showcase {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==========================================
   TESTIMONIAL MARQUEE (LAG-FREE)
   ========================================== */
/* ==========================================
   TESTIMONIAL SCROLL SNAP (NATIVE FEEL, NO LAG)
   ========================================== */
.testimonial-snap-container {
    width: 100%;
    padding: 20px 0;
    position: relative;
    overflow: hidden;
}

.testimonial-snap-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Space for scrollbar if visible */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.testimonial-snap-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.snap-item {
    scroll-snap-align: center;
    flex: 0 0 85%;
    /* Mobile: Show one almost full */
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease, background 0.3s;
}

.snap-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.scroll-instruction {
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@media (min-width: 768px) {
    .snap-item {
        flex: 0 0 45%;
        /* Tablet: Show 2 */
    }
}

@media (min-width: 1024px) {
    .snap-item {
        flex: 0 0 30%;
        /* Desktop: Show 3 */
    }
}

/* ==========================================
   FAQ ACCORDION FIX (ROBUST)
   ========================================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
    /* Ensure clickable */
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    /* Highlight active */
    border-color: var(--primary);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    width: 100%;
    /* Full width click area */
    position: relative;
    z-index: 3;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--white);
    transition: color 0.3s;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-light);
}

.faq-icon i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.4s ease;
    opacity: 0;
    padding: 0 25px;
    color: var(--gray-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    /* Safe upper limit */
    opacity: 1;
    padding-bottom: 25px;
    transition: max-height 0.4s ease-in-out, opacity 0.4s ease;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.125rem;
    color: var(--white);
    transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
    color: var(--primary-light);
}

.faq-icon i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Safe large number */
    opacity: 1;
    padding-bottom: 24px;
    visibility: visible;
}

@media (max-width: 992px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--dark);
        padding: 24px;
        flex-direction: column;
        gap: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .trust-badges {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-3d-scene {
        width: 100%;
        opacity: 0.3;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-visual {
        order: -1;
        min-height: 420px;
    }

    .about-card-stack {
        height: 400px;
    }

    .about-card {
        width: 180px;
        padding: 20px;
    }

    .card-1 {
        top: 0;
        left: 5%;
    }

    .card-2 {
        top: 110px;
        left: 45%;
    }

    .card-3 {
        top: 230px;
        left: 15%;
    }

    .about-badge {
        width: 100px;
        height: 100px;
        bottom: 10px;
        right: 10%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .countries-showcase {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-steps {
        flex-direction: column;
        gap: 40px;
    }

    .process-path {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .countries-showcase {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* Hide cursor on mobile */
@media (hover: none) {
    .cursor {
        display: none;
    }
}

/* Optimized Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glass-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.floating-whatsapp:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25d366;
    border-radius: 50%;
    z-index: -1;
    animation: pulse-border 1.5s linear infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}



@media (max-width: 992px) {
    .hero-image {
        max-width: 400px;
        margin-top: 40px;
    }
}

/* ==========================================
   COHORT SLIDER
   ========================================== */

/* ==========================================
   TESTIMONIAL SLIDER (INFINITE SCROLL)
   ========================================== */
.testimonial-slider-container {
    position: relative;
    width: 100%;
    padding: 40px 0;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.testimonial-track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    gap: 30px;
    padding: 20px 0;
    animation: scrollTestimonial 60s linear infinite;
    will-change: transform;
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTestimonial {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card-slider {
    width: 450px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-slider:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

@media (max-width: 768px) {
    .testimonial-card-slider {
        width: 300px;
        padding: 20px;
    }
}

/* ==========================================
   ISO CERTIFICATION - THEMED SHOWCASE
   ========================================== */
.iso-showcase-themed {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.iso-card {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.iso-text-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.iso-feature {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.iso-feature:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
    border-color: #3b82f6;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.iso-feature i {
    font-size: 1.5rem;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 50%;
    margin-top: -5px;
}

.iso-feature h4 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.iso-feature p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .iso-showcase-themed {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .iso-feature {
        text-align: left;
    }

    .iso-card {
        max-width: 100%;
        width: 100%;
    }
}

/* ==========================================
/* ==========================================
   BLOG SECTION - MATCHING USER SCREENSHOT
   ========================================== */
/* ==========================================
   FINAL BLOG REFINEMENT (EXACT MATCH)
   ========================================== */
#blog.section {
    background: #0b0f19 !important;
    /* Extremely dark blue background */
    padding: 100px 0 !important;
}

.blog-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    max-width: 1200px !important;
    margin: 50px auto 0 !important;
}

.blog-card {
    background: #111827 !important;
    /* Flat dark background */
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    cursor: pointer !important;
    position: relative !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.blog-card:hover {
    transform: translateY(-8px) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5) !important;
}

.blog-image {
    position: relative !important;
    height: 220px !important;
    overflow: hidden !important;
}

.blog-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.blog-date {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: #3b82f6 !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    z-index: 10 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.blog-date .day {
    display: block !important;
    font-size: 1.3rem !important;
    margin-bottom: 2px !important;
}

.blog-date .month {
    display: block !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
}

.blog-content {
    padding: 28px !important;
    /* Generous padding like screenshot */
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    background: transparent !important;
}

.blog-meta {
    display: flex !important;
    gap: 18px !important;
    margin-bottom: 15px !important;
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
}

.blog-meta span {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.blog-meta span i {
    color: #3b82f6 !important;
    font-size: 0.9rem !important;
}

.blog-title {
    font-size: 1.3rem !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.4 !important;
    min-height: 3.6rem !important;
    text-align: left !important;
}

.blog-excerpt {
    font-size: 0.95rem !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin-bottom: 25px !important;
    flex: 1 !important;
    text-align: left !important;
    opacity: 0.9 !important;
}

.blog-link {
    color: #3b82f6 !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: auto !important;
    text-decoration: none !important;
}

.blog-link:hover {
    color: #60a5fa !important;
}

/* Response for Blog */
@media (max-width: 1100px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0 40px !important;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
        padding: 0 20px !important;
    }

    .blog-image {
        height: 200px !important;
    }
}
