/* Erexa - School Management SaaS Landing Page CSS */
/* Brand Colors: Primary #4f46e5, Secondary #10b981 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Brand Colors */
    --primary: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.3);

    --secondary: #10b981;
    --secondary-light: #34d399;
    --secondary-dark: #059669;
    --secondary-glow: rgba(16, 185, 129, 0.3);

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-secondary: 0 0 40px var(--secondary-glow);
    --shadow-3d: 0 20px 40px -15px rgba(79, 70, 229, 0.3);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

    /* Spacing */
    --container-max: 1280px;
    --section-padding: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    background: var(--gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn-hero-outline {
    background: rgba(79, 70, 229, 0.05);
    color: var(--primary);
    border: 2px solid rgba(79, 70, 229, 0.3);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.btn-hero-outline:hover {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(79, 70, 229, 0.3);
}

.btn-outline-primary:hover {
    background: rgba(79, 70, 229, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--white);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-secondary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2xl);
}

.btn-ghost-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}



/* ===== LOGO ===== */
/* ===== LOGO WRAPPER ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* ===== LOGO IMAGE ===== */
.logo-icon,
.logo-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
}

/* subtle hover effect */
.logo:hover .logo-img {
    transform: scale(1.05);
}

/* ===== TEXT BLOCK ===== */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 4px;
}

/* Brand name */
.logo-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;

    /* Keep theme color */
    color: var(--gray-900);

    position: relative;
    transition: all 0.3s ease;
}

.logo-name::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 2px;
    border-radius: 999px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

/* Hover underline animation */
.logo:hover .logo-name::after {
    width: 100%;
}

/* Hover color shift within theme */
.logo:hover .logo-name {
    color: var(--primary);
}

/* ==
/* Tagline */
.logo-tagline {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray-500);
}

@media (max-width: 768px) {

    .logo-icon,
    .logo-img {
        width: 38px;
        height: 38px;
    }

    .logo-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {

    .logo-name {
        font-size: 1.1rem;
    }
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    position: relative;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== CTA ===== */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ===== MOBILE ===== */
.mobile-menu-btn {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-btn span {
        width: 24px;
        height: 2px;
        background: var(--gray-800);
        border-radius: 999px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: calc(100vh - 8rem);
    padding-top: 8rem;
    padding-bottom: 5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.03) 0%, rgba(16, 185, 129, 0.03) 50%, rgba(79, 70, 229, 0.02) 100%);
    overflow: hidden;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234f46e5' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: pulse-glow 8s ease-in-out infinite;
}

.hero-orb-1 {
    top: 5rem;
    left: 5%;
    width: 24rem;
    height: 24rem;
    background: rgba(79, 70, 229, 0.2);
}

.hero-orb-2 {
    bottom: 10%;
    right: 5%;
    width: 20rem;
    height: 20rem;
    background: rgba(16, 185, 129, 0.15);
    animation-delay: 2s;
}

.hero-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 32rem;
    margin-bottom: 2rem;
}

.hero-description strong {
    color: var(--primary);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-highlights {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.70rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all var(--transition-base);
}

.highlight-item:hover {
    color: var(--primary);
}

.highlight-icon {
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero-highlights {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

/* Hero Image */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.hero-image-wrapper {
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

.hero-3d-card {
    position: relative;
    min-height: 440px;
    transform: rotateY(-4deg) rotateX(4deg);
    transition: transform var(--transition-slow);
}

.hero-3d-card:hover {
    transform: rotateY(0) rotateX(0);
}

.ai-interaction-stage {
    position: relative;
    min-height: 440px;
    border-radius: 2rem;
    background:
        radial-gradient(circle at center, rgba(79, 70, 229, 0.12), transparent 34%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.12), transparent 28%),
        radial-gradient(circle at bottom left, rgba(168, 85, 247, 0.1), transparent 30%);
    overflow: hidden;
    padding: 1rem;
}

.interaction-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 70, 229, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 70, 229, 0.06) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 90%);
}

.interaction-line {
    position: absolute;
    height: 2px;
    transform-origin: left center;
    border-radius: 999px;
    overflow: hidden;
}

.interaction-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.9), rgba(16, 185, 129, 0.8), transparent);
    background-size: 200% 100%;
    animation: signal-flow 3s linear infinite;
}

.interaction-line-student {
    width: 140px;
    top: 164px;
    left: 124px;
    transform: rotate(38deg);
}

.interaction-line-teacher {
    width: 140px;
    top: 164px;
    right: 122px;
    transform: rotate(-38deg);
    transform-origin: right center;
}

.interaction-line-loop {
    width: 180px;
    top: 292px;
    left: 50%;
    opacity: 0.35;
    transform: translateX(-50%);
}

.interaction-node {
    position: absolute;
}

.interaction-node-ai {
    top: 61%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
}

.interaction-core {
    position: absolute;
    inset: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    background: var(--gradient-primary);
    box-shadow: 0 24px 45px rgba(79, 70, 229, 0.28);
    z-index: 2;
    animation: core-float 4.5s ease-in-out infinite;
}

.interaction-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(79, 70, 229, 0.16);
}

.interaction-ring-1 {
    animation: spin-slow 16s linear infinite;
}

.interaction-ring-2 {
    inset: 14px;
    border-color: rgba(16, 185, 129, 0.18);
    animation: spin-slow 10s linear infinite reverse;
}

.interaction-label {
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 170px;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.interaction-label strong,
.interaction-chip strong {
    display: block;
    font-size: 0.88rem;
    color: var(--gray-900);
}

.interaction-label span,
.interaction-chip span {
    display: block;
    margin-top: 0.18rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--gray-500);
}

.interaction-node-student {
    top: 86px;
    left: 24px;
    animation: message-float 5s ease-in-out infinite;
}

.interaction-node-teacher {
    top: 86px;
    right: 24px;
    animation: message-float 5s ease-in-out infinite 1s;
}

.interaction-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.7rem;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.interaction-avatar.student {
    background: linear-gradient(135deg, #f59e0b, #fb7185);
}

.interaction-avatar.teacher {
    background: linear-gradient(135deg, #10b981, #0f766e);
}

.interaction-chip {
    margin-top: 0.75rem;
    width: 170px;
    padding: 0.85rem 0.9rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
}

.interaction-pulse {
    position: absolute;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
    animation: ping-soft 2s ease-out infinite;
}

.interaction-pulse-1 {
    top: 190px;
    left: 222px;
}

.interaction-pulse-2 {
    top: 190px;
    right: 220px;
    animation-delay: 1s;
}

.interaction-message {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 260px;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
    color: var(--gray-700);
    font-size: 0.86rem;
    line-height: 1.45;
}

.interaction-message-top {
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.interaction-message-bottom {
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
}

.interaction-message-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(16, 185, 129, 0.14));
    color: var(--primary);
    flex-shrink: 0;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    animation: float-card 4s ease-in-out infinite;
}

.floating-card-1 {
    top: -1rem;
    right: -1rem;
}

.floating-card-2 {
    bottom: 2rem;
    left: -1.5rem;
    animation-delay: 1s;
}

.floating-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.floating-card-icon i {
    color: var(--white);
}

.floating-card-icon.green {
    background: var(--gradient-secondary);
}

.floating-card-icon.purple {
    background: var(--gradient-primary);
}

.floating-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
}

.floating-card-subtitle {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-3xl);
    filter: blur(60px);
    z-index: -1;
    transform: scale(1.1);
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
    overflow: hidden;
}

.hero-wave svg {
    position: relative;
    display: block;
    width: calc(150% + 1.3px);
    height: 120px;
    animation: wave-float 10s ease-in-out infinite alternate;
}

.wave-layer-1 {
    animation: move-wave 25s linear infinite;
    transform-origin: bottom;
}

.wave-layer-2 {
    animation: move-wave 15s linear infinite;
    transform-origin: bottom;
}

@keyframes move-wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

@keyframes wave-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(5px); }
}

/* ===== SECTION COMMON STYLES ===== */
.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.section-badge.green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* ===== AI HERO BADGE ===== */
.ai-badge {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px solid rgba(79, 70, 229, 0.3);
    position: relative;
}

.ai-pulse {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: ai-blink 1.5s ease-in-out infinite;
    margin-left: 4px;
}

@keyframes ai-blink {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    50% {
        opacity: .6;
        box-shadow: 0 0 8px 4px rgba(34, 197, 94, 0.2);
    }
}

/* ===== AI SECTION ===== */
.ai-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #0f0d2e 0%, #1a1145 50%, #0f0d2e 100%);
    color: var(--white);
    overflow: hidden;
}

.ai-section .section-badge {
    color: #a78bfa;
    background: rgba(167, 139, 250, 0.15);
}

.ai-section-badge {
    border: 1px solid rgba(167, 139, 250, 0.3) !important;
}

.ai-section .section-title {
    color: var(--white);
}

.ai-section .section-description {
    color: rgba(255, 255, 255, 0.65);
}

.ai-section-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.ai-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.ai-orb-1 {
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.25);
    animation: pulse-glow 8s ease-in-out infinite;
}

.ai-orb-2 {
    bottom: 10%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: rgba(168, 85, 247, 0.2);
    animation: pulse-glow 8s ease-in-out infinite 3s;
}

.ai-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(167, 139, 250, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* AI Features Grid */
.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.ai-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-2xl);
    backdrop-filter: blur(12px);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.ai-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.ai-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(167, 139, 250, 0.3);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.ai-card-featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(168, 85, 247, 0.1));
    border-color: rgba(167, 139, 250, 0.25);
}

.ai-card-featured .ai-card-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ai-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(168, 85, 247, 0.3));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #c4b5fd;
    margin-bottom: 1rem;
}

.ai-card-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}

.ai-card h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.ai-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ai-card-features {
    list-style: none;
}

.ai-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.25rem 0;
}

.ai-card-features li i {
    color: #34d399;
    font-size: 0.9rem;
}

/* AI Chat Preview */
.ai-chat-preview {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(79, 70, 229, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-avatar {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
}

.ai-chat-header h4 {
    font-size: 1rem;
    color: white;
    font-weight: 600;
}

.ai-chat-status {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: ai-blink 1.5s infinite;
}

.ai-chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-msg {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-xl);
    max-width: 85%;
}

.ai-msg p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.ai-msg p:last-child {
    margin-bottom: 0;
}

.ai-msg-bot {
    background: rgba(79, 70, 229, 0.15);
    border: 1px solid rgba(79, 70, 229, 0.2);
    align-self: flex-start;
}

.ai-msg-user {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-self: flex-end;
}

.ai-chat-footer {
    padding: 1rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat-footer span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== AI ROLES SECTION ===== */
.ai-roles-section {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
}

.ai-roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.ai-role-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.ai-role-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.ai-role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-300);
}

.ai-role-card-highlight {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.04), rgba(168, 85, 247, 0.04));
    border-color: rgba(79, 70, 229, 0.2);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.08);
}

.ai-role-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ai-role-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.ai-role-card>p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ai-role-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ai-role-card ul li {
    font-size: 0.9rem;
    color: var(--gray-700);
}

/* AI Section Responsive */
@media (max-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .ai-features-grid {
        grid-template-columns: 1fr;
    }

    .ai-card-featured {
        grid-column: span 1;
    }

    .ai-roles-grid {
        grid-template-columns: 1fr;
    }

    .ai-chat-preview {
        margin: 0 -0.5rem;
    }
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 3rem 0 var(--section-padding);
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    /* background: var(--gradient-primary); */
    border-radius: var(--radius-2xl);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.feature-icon.secondary {
    background: var(--gradient-secondary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.feature-card:hover h3 {
    color: var(--primary);
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.feature-line {
    margin-top: 1.5rem;
    height: 3px;
    width: 0;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

.feature-card:hover .feature-line {
    width: 100%;
}

/* ===== STATS SECTION ===== */
.stats-section {
    position: relative;
    padding: 100px 20px;
    background: var(--gradient-primary);
    overflow: hidden;
    text-align: center;
}

/* Pattern Background */
.stats-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* Floating Orbs */
.stats-orb {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: float 10s ease-in-out infinite;
}

.stats-orb-1 {
    top: 2rem;
    left: 5%;
    width: 8rem;
    height: 8rem;
}

.stats-orb-2 {
    bottom: 2rem;
    right: 5%;
    width: 12rem;
    height: 12rem;
    animation-delay: 3s;
}

/* Header */
.stats-header {
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.stats-subtitle {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Grid */
.stats-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
}

/* Stat Box */
.big-stat {
    text-align: center;
}

.big-stat-value {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.big-stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stats-orb-2 {
        width: 8rem;
        height: 8rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .stats-section {
        padding: 80px 15px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .stats-subtitle {
        font-size: 0.95rem;
    }

    .stats-orb-1,
    .stats-orb-2 {
        display: none;
        /* remove floating circles on small screens */
    }
}

/* ===== MODULES SECTION ===== */
.modules {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    position: relative;
}

.modules::before,
.modules::after {
    content: '';
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(100px);
}

.modules::before {
    top: 0;
    left: 25%;
    background: rgba(79, 70, 229, 0.05);
}

.modules::after {
    bottom: 0;
    right: 25%;
    background: rgba(16, 185, 129, 0.05);
}

.modules-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.module-card {
    position: relative;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

.module-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.module-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: var(--shadow-xl);
}

.module-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.module-badge.core {
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.module-badge.finance {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.module-badge.comm {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.module-badge.support {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.module-badge.admin {
    background: rgba(244, 63, 94, 0.1);
    color: #e11d48;
    border: 1px solid rgba(244, 63, 94, 0.2);
}

.module-badge.portal {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.module-badge.platform {
    background: rgba(6, 182, 212, 0.1);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.module-badge.ai-mod {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(168, 85, 247, 0.15));
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.3);
    font-weight: 700;
}

.module-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    transition: transform var(--transition-base);
}

.module-card:hover .module-icon {
    transform: scale(1.1);
}

.module-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color var(--transition-fast);
}

.module-card:hover h3 {
    color: var(--primary);
}

.module-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* ===== ROLES SECTION ===== */
.roles {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.roles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.roles-column {
    position: relative;
}

.roles-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.roles-header-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.roles-header-icon.purple {
    background: var(--gradient-primary);
}

.roles-header-icon.green {
    background: var(--gradient-secondary);
}

.roles-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.roles-header p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.role-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    cursor: pointer;
    opacity: 0;
    transform: translateX(-20px);
}

.role-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.role-item:hover {
    transform: translateX(10px);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: var(--shadow-lg);
}

.role-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform var(--transition-base);
}

.role-item:hover .role-icon {
    transform: scale(1.1);
}

.role-item div {
    flex: 1;
}

.role-item strong {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
    transition: color var(--transition-fast);
}

.role-item:hover strong {
    color: var(--primary);
}

.role-item span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.role-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: all var(--transition-base);
    cursor: pointer;
}

.role-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(16, 185, 129, 0.15));
}

.permissions-box {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05), rgba(16, 185, 129, 0.05));
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-2xl);
}

.permissions-indicator {
    width: 0.5rem;
    height: 0.5rem;
    background: var(--secondary);
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.5rem;
    animation: pulse 2s infinite;
}

.permissions-box h4 {
    display: inline;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.permissions-box p {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    position: relative;
}

.testimonials::before,
.testimonials::after {
    content: '';
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    filter: blur(80px);
}

.testimonials::before {
    top: 5rem;
    left: 5%;
    background: rgba(79, 70, 229, 0.05);
}

.testimonials::after {
    bottom: 5rem;
    right: 5%;
    background: rgba(16, 185, 129, 0.05);
}

.testimonials-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    position: relative;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(79, 70, 229, 0.1);
    border-radius: var(--radius-3xl);
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.3);
}

.testimonial-quote {
    position: absolute;
    top: -0.75rem;
    left: -0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.125rem;
    letter-spacing: 0.125rem;
    margin-bottom: 1rem;
}

.testimonial-content {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(79, 70, 229, 0.2);
}

.testimonial-author strong {
    display: block;
    font-weight: 600;
    color: var(--gray-900);
}

.testimonial-author span {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.testimonial-author .institution {
    color: var(--primary);
    font-size: 0.8125rem;
}

/* ===== PRICING SECTION ===== */
.pricing {
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    position: relative;
}

.pricing::before,
.pricing::after {
    content: '';
    position: absolute;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
}

.pricing::before {
    top: -10%;
    left: 20%;
    background: rgba(79, 70, 229, 0.08);
}

.pricing::after {
    bottom: -10%;
    right: 20%;
    background: rgba(16, 185, 129, 0.08);
}

.pricing-controls {
    position: relative;
    z-index: 10;
    max-width: 55rem;
    margin: 0 auto 4rem auto;
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-200);
}

.student-slider-container label {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

.slider-wrapper {
    position: relative;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.slider-dots {
    position: absolute;
    top: 4px;
    /* Center of the 8px track */
    left: calc(1rem + 8px);
    right: calc(1rem + 8px);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
    z-index: 1;
}

.slider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
}

.student-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
    margin-bottom: 1rem;
}

.student-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
    transition: transform var(--transition-fast);
}

.student-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

@keyframes thumb-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.student-slider.pulse-animation::-webkit-slider-thumb {
    animation: thumb-pulse 1.5s infinite;
}

.student-slider.pulse-animation::-moz-range-thumb {
    animation: thumb-pulse 1.5s infinite;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Drag Hint Arrow */
.slider-drag-hint {
    position: absolute;
    top: -22px;
    left: 30px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
    animation: dragHintBounce 1.8s ease-in-out infinite;
    white-space: nowrap;
    z-index: 5;
}

.slider-drag-hint svg {
    stroke: var(--primary);
}

@keyframes dragHintBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(8px);
    }
}

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.toggle-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.save-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-dark);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary);
    transition: .4s;
    border-radius: 34px;
}

.switch .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked+.slider {
    background-color: var(--primary);
}

.switch input:not(:checked)+.slider {
    background-color: var(--gray-300);
}

.switch input:not(:checked)+.slider:before {
    transform: translateX(0);
}

.switch input:checked+.slider:before {
    transform: translateX(22px);
}

.pricing-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 80rem;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(79, 70, 229, 0.1);
    background: linear-gradient(to bottom, #ffffff, #f9fafb);
}

.popular-badge {
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pricing-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.pricing-header p {
    font-size: 0.9375rem;
    color: var(--gray-500);
    min-height: 2.8rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.pricing-price .price-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.pricing-price .price {
    font-size: 3rem;
    font-weight: 900;
    color: var(--gray-900);
    letter-spacing: -1px;
}

.pricing-price .period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-500);
}

.total-billed {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.5rem;
    font-weight: 500;
}

.pricing-features {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.pricing-features p {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.pricing-features ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
}

.pricing-features ul li .ph-check-circle {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-card .btn {
    width: 100%;
    margin-top: auto;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-600);
    font-weight: 600;
    font-size: 1rem;
}

.trust-badge i {
    font-size: 1.5rem;
    color: var(--secondary);
}

/* Pricing Checklist */
/* Pricing Checklist */
.pricing-checklist {
    max-width: 65rem;
    margin: 4rem auto 3rem;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    justify-items: center;
}

.checklist-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.6rem;
    color: var(--gray-700);
    font-size: 1.05rem;
    font-weight: 500;
    width: 100%;
    max-width: 16rem;
}

.checklist-item i {
    color: var(--secondary);
    font-size: 1.25rem;
}

.pricing-note {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
    position: relative;
    z-index: 10;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        grid-column: 1 / -1;
    }

    .pricing-checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 40rem;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .slider-labels {
        font-size: 0.65rem;
    }

    .pricing-checklist {
        grid-template-columns: 1fr;
        justify-items: start;
        max-width: 18rem;
    }
}

/* ===== CTA SECTION ===== */
.cta {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: radial-gradient(circle at 2px 2px, white 2px, transparent 0);
    background-size: 30px 30px;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
}

.cta-orb-1 {
    top: 3rem;
    left: 5%;
    width: 10rem;
    height: 10rem;
    background: rgba(255, 255, 255, 0.1);
}

.cta-orb-2 {
    bottom: 3rem;
    right: 5%;
    width: 15rem;
    height: 15rem;
    background: rgba(16, 185, 129, 0.2);
    animation-delay: 3s;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 48rem;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content>p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cta-benefits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.cta-benefits span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-trust {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-brand .logo-name {
    color: var(--white);
}

.footer-brand .logo-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand>p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 20rem;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-contact a,
.footer-contact span {
    display: flex;
    /* important */
    align-items: center;
    /* vertical alignment */
    gap: 0.6rem;
    /* space between icon and text */
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-contact svg,
.footer-contact i {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a:hover {
    color: var(--white);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
    }

    50% {
        transform: translateY(-20px) rotate(0deg);
    }

    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes message-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes signal-flow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes core-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-6px) scale(1.02);
    }
}

@keyframes spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes ping-soft {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
        opacity: 1;
    }

    70% {
        box-shadow: 0 0 0 14px rgba(16, 185, 129, 0);
        opacity: 0.7;
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
        opacity: 1;
    }
}

@keyframes progress-grow {
    0% {
        width: 58%;
    }

    100% {
        width: 82%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 4;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-items: center;
    }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        justify-content: center;
    }

    .hero-image {
        max-width: 600px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .roles-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 28rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .ai-interaction-stage {
        min-height: 500px;
    }

    .hero-3d-card {
        min-height: 500px;
    }

    .interaction-node-student {
        top: 96px;
        left: 16px;
        transform: none;
    }

    .interaction-node-teacher {
        top: 96px;
        right: 16px;
        left: auto;
        bottom: auto;
        transform: none;
    }

    .interaction-node-ai {
        top: 64%;
    }

    .interaction-line-student {
        width: 108px;
        height: 2px;
        top: 214px;
        left: 104px;
        transform: rotate(44deg);
    }

    .interaction-line-teacher {
        width: 108px;
        height: 2px;
        top: 214px;
        right: 104px;
        left: auto;
        bottom: auto;
        transform: rotate(-44deg);
        transform-origin: right center;
    }

    .interaction-line-loop {
        display: none;
    }

    .interaction-chip {
        width: 132px;
        padding: 0.72rem 0.78rem;
    }

    .interaction-chip strong {
        font-size: 0.8rem;
    }

    .interaction-chip span {
        font-size: 0.66rem;
        line-height: 1.35;
    }

    .interaction-label {
        min-width: 148px;
        padding: 0.7rem 0.8rem;
    }

    .interaction-message {
        max-width: calc(100% - 28px);
        padding: 0.72rem 0.85rem;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .interaction-message-top {
        top: 14px;
    }

    .interaction-message-bottom {
        bottom: 14px;
    }

    .interaction-pulse-1 {
        top: 236px;
        left: 205px;
    }

    .interaction-pulse-2 {
        top: 236px;
        right: 205px;
    }

    .floating-card {
        position: static;
        margin-top: 1rem;
        width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .cta-benefits {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .ai-interaction-stage {
        min-height: 470px;
    }

    .hero-3d-card {
        min-height: 470px;
    }

    .interaction-avatar {
        width: 3.4rem;
        height: 3.4rem;
        border-radius: 1rem;
        font-size: 1.4rem;
    }

    .interaction-label {
        min-width: 138px;
        bottom: -0.5rem;
    }

    .interaction-chip {
        width: 118px;
        padding: 0.68rem 0.72rem;
    }

    .interaction-message {
        max-width: calc(100% - 22px);
        font-size: 0.74rem;
        padding: 0.68rem 0.78rem;
    }

    .interaction-node-student {
        left: 10px;
        top: 90px;
    }

    .interaction-node-teacher {
        right: 10px;
        top: 90px;
    }

    .interaction-node-ai {
        top: 66%;
    }

    .interaction-line-student {
        width: 88px;
        top: 206px;
        left: 90px;
    }

    .interaction-line-teacher {
        width: 88px;
        top: 206px;
        right: 90px;
    }

    .interaction-pulse-1 {
        top: 226px;
        left: 171px;
    }

    .interaction-pulse-2 {
        top: 226px;
        right: 171px;
    }

    .interaction-message-top {
        top: 10px;
    }

    .interaction-message-bottom {
        bottom: 10px;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

.feature-card {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.92));
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(135deg,
            rgba(166, 166, 246, 0.08),
            rgba(107, 152, 136, 0.06));
    box-shadow: var(--shadow-xl);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ==============================
   CONTACT US SECTION
============================== */
.contact {
    position: relative;
    padding: var(--section-padding) 0;
    background: var(--gray-50);
    overflow: hidden;
}

/* Background glow */
.contact::before,
.contact::after {
    content: '';
    position: absolute;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.contact::before {
    top: -6rem;
    left: 5%;
    background: rgba(79, 70, 229, 0.08);
}

.contact::after {
    bottom: -6rem;
    right: 5%;
    background: rgba(16, 185, 129, 0.08);
}

/* Wrapper */
.contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==============================
   FORM CARD
============================== */
.contact-form {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 255, 255, 0.94));
    border-radius: var(--radius-3xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(79, 70, 229, 0.12);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

/* ==============================
   FORM GROUP
============================== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

/* Label */
.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* Inputs & Textarea */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-900);
    transition: all var(--transition-base);
    box-sizing: border-box;
}

/* Focus */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-400);
}

/* ==============================
   SUBMIT BUTTON
============================== */
.contact-form button {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.5rem;
}

/* ==============================
   STATUS MESSAGE
============================== */
.form-status {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: var(--gray-600);
    transition: opacity 0.3s ease;
    min-height: 20px;
}

.form-status.success {
    color: var(--secondary);
}

.form-status.error {
    color: #dc2626;
}

/* ==============================
   TABLET
============================== */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .form-group.full-width,
    .contact-form button,
    .form-status {
        grid-column: 1;
    }
}

/* ==============================
   MOBILE (SMALL DEVICES)
============================== */
@media (max-width: 480px) {
    .contact {
        padding: 3rem 0;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: var(--radius-2xl);
    }

    .form-group label {
        font-size: 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 0.75rem 0.85rem;
    }
}

/* ==============================
   EXTRA SAFETY (NO HORIZONTAL SCROLL)
============================== */
.contact,
.contact * {
    max-width: 100%;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
}

.contact-item .contact-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-900);
    font-size: 1.5rem;
}

.contact-item .contact-icon i {
    flex-shrink: 0;
}

.contact-item .contact-icon span {
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--gray-900);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ===== NAVBAR ===== */
/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* ===== LINKS ===== */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: #111827;
}

/* ===== CTA VISIBILITY ===== */
.desktop-only {
    display: flex;
    gap: 1rem;
}

.mobile-only {
    display: none;
}

/* ===== MOBILE BUTTON ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #111827;
    transition: 0.3s ease;
}

/* ===== ANIMATION TO X ===== */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE STYLES ===== */
@media (max-width: 992px) {

    /* Hide desktop CTA completely */
    .nav-cta,
    .desktop-only {
        display: none !important;
    }

    .mobile-only .btn-primary {
        color: #ffffff;
        /* Change to whatever color you want */
    }

    /* Show hamburger */
    .mobile-menu-btn {
        display: flex;
    }

    /* Mobile menu container */
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
        display: none;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    /* Show mobile CTAs */
    .mobile-only {
        display: block;
        width: 100%;
    }

    .full-width {
        width: 100%;
        text-align: center;
    }
}

/* ===== LOGO ===== */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: var(--shadow-md);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--gray-900);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--gray-500);
}

/* ===== NAV LINKS ===== */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links li {
    white-space: nowrap;
}

.nav-links a {
    position: relative;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

/* Underline animation */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--gray-900);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== CTA BUTTONS ===== */
.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== MOBILE MENU BUTTON ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* Hamburger → X */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {

    /* Hide desktop items */
    .nav-links,
    .nav-cta {
        display: none;
    }

    /* Mobile menu open */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--white);
        padding: 1.25rem;
        gap: 1rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        overflow-x: hidden;
    }

    .nav-links a {
        padding: 0.75rem 0;
        width: 100%;
    }

    /* Mobile CTA buttons inside menu */
    .nav-links.active+.nav-cta {
        display: flex;
        flex-direction: column;
        padding: 0 1.25rem 1.25rem;
        gap: 0.75rem;
        background: var(--white);
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-cta a {
        width: 100%;
        text-align: center;
    }

    .mobile-menu-btn {
        display: flex;
    }
}

/* Safety: prevent horizontal scroll */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===== SECTION BACKGROUND ===== */
.contact {
    padding: 80px 16px;
    background: linear-gradient(135deg, #eef2ff, #ecfdf5);
}

/* ===== LAYOUT ===== */
.contact-container {
    max-width: 1100px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* ===== LEFT SIDE ===== */
.contact-info h2 {
    font-size: 34px;
    font-weight: 800;
    color: #4f46e5;
}

.contact-info p {
    margin: 12px 0 24px;
    color: #475569;
    line-height: 1.6;
}

/* ===== SMALL BOXES ===== */
.contact-boxes {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.contact-box .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5, );

    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* ===== IMAGES ===== */
.contact-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.contact-images img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

/* ===== FORM ===== */
.contact-form {
    background: white;
    padding: 26px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ===== BUTTON ===== */
.contact-form button {
    grid-column: 1 / -1;
    width: 100%;
    background: linear-gradient(135deg, #6366f1, #22c55e);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(99, 102, 241, 0.25);
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-images img {
        height: 110px;
    }
}

@media (max-width: 500px) {
    .contact {
        padding: 60px 14px;
    }

    .contact-info h2 {
        font-size: 26px;
    }

    .contact-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .contact-images {
        grid-template-columns: 1fr;
    }
}

/* ===== CONTACT INFO ROW ===== */
.contact-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 boxes in one row */
    gap: 14px;
    margin: 20px 0 26px;
}

/* ===== SINGLE BOX ===== */
.contact-box {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;
    background: var(--white);

    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);

    min-height: 60px;
}

/* ICON STYLE */
.contact-box .icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    color: var(--white);

    /* Erexa blue gradient only */
    background: linear-gradient(135deg, var(--primary), var(--primary-light));

    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.25);
}

/* TEXT STYLE */
.contact-box strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-800);
}

.contact-box span {
    font-size: 12px;
    color: var(--gray-500);
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
    .contact-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 520px) {
    .contact-boxes {
        grid-template-columns: 1fr;
        /* stack vertically */
    }

    .contact-box {
        justify-content: flex-start;
    }
}

/* ===== CONTACT SUBMIT BUTTON (EREXA BLUE ONLY) ===== */
.contact-form button {
    grid-column: 1 / -1;

    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);

    border: none;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-xl);

    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;
    transition: all var(--transition-base);

    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
}

/* Hover */
.contact-form button:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.35);
}

/* Active click */
.contact-form button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 12px rgba(79, 70, 229, 0.25);
}

/* Focus accessibility */
.contact-form button:focus {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(79, 70, 229, 0.25),
        0 10px 20px rgba(79, 70, 229, 0.25);
}

/* Icon Base Styling */
.feature-icon i,
.module-icon i,
.mini-card-icon i,
.floating-card-icon i,
.roles-header-icon i,
.role-icon i,
.pricing-icon i,
.contact-icon i {
    font-size: 26px;
    color: #140839;
    /* Your brand primary */
}

/* Optional section-based color overrides */
.floating-card-icon.green i {
    color: #22c55e;
}

.floating-card-icon.purple i {
    color: #a855f7;
}

/* ===== AI PRICE TOGGLE ===== */
.ai-addon-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.ai-addon-box.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: inset 0 0 15px rgba(139, 92, 246, 0.05);
}

.ai-addon-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.ai-addon-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #6d28d9;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.sparkle-icon {
    font-size: 1.1rem;
}

.ai-addon-info {
    font-size: 0.8rem;
    color: var(--gray-600);
    text-align: left;
}

/* Switch styling */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: .4s;
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

.toggle-switch input:checked+.slider {
    background: linear-gradient(135deg, #8b5cf6, #d946ef);
}

.toggle-switch input:focus+.slider {
    box-shadow: 0 0 1px #8b5cf6;
}

.toggle-switch input:checked+.slider:before {
    transform: translateX(20px);
}

.toggle-switch .slider.round {
    border-radius: 34px;
}

.toggle-switch .slider.round:before {
    border-radius: 50%;
}

/* =============================================
   HERO PILLARS
   ============================================= */
.hero-pillars {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.hero-pillar {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-pillar:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.pillar-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.pillar-desc {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}

/* =============================================
   EXAM PORTAL SECTION
   ============================================= */
.exam-portal-section {
    padding: 6rem 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

.ep-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}

.ep-orb-1 {
    width: 500px;
    height: 500px;
    background: #6366f1;
    top: -100px;
    left: -150px;
}

.ep-orb-2 {
    width: 400px;
    height: 400px;
    background: #10b981;
    bottom: -100px;
    right: -100px;
}

.exam-badge {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff !important;
}

/* Steps Row */
.ep-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 2.5rem 0 3rem;
}

.ep-step {
    text-align: center;
    padding: 1.5rem 1.2rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 1.2rem;
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    transition: all 0.3s;
}

.ep-step:hover {
    border-color: #6366f1;
    background: #eef2ff;
    transform: translateY(-4px);
}

.ep-step-num {
    font-size: 0.7rem;
    font-weight: 800;
    color: #6366f1;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
}

.ep-step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.ep-step h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.ep-step p {
    font-size: 0.78rem;
    color: #64748b;
    line-height: 1.4;
}

.ep-step-arrow {
    font-size: 1.5rem;
    color: #cbd5e1;
    padding: 0 0.25rem;
}

/* Exam Type Cards Grid */
.exam-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.exam-type-card {
    position: relative;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    border: 2px solid transparent;
    background: #f8fafc;
    overflow: hidden;
    transition: all 0.35s ease;
}

.exam-type-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.exam-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 1.5rem 1.5rem 0 0;
}

.exam-cet {
    border-color: #e0e7ff;
}

.exam-cet .exam-card-glow {
    background: linear-gradient(90deg, #6366f1, #818cf8);
}

.exam-cet:hover {
    border-color: #6366f1;
    background: #eef2ff;
}

.exam-jee {
    border-color: #fef3c7;
}

.exam-jee .exam-card-glow {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.exam-jee:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.exam-neet {
    border-color: #d1fae5;
}

.exam-neet .exam-card-glow {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.exam-neet:hover {
    border-color: #10b981;
    background: #ecfdf5;
}

.exam-scholarship {
    border-color: #fce7f3;
}

.exam-scholarship .exam-card-glow {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.exam-scholarship:hover {
    border-color: #ec4899;
    background: #fdf2f8;
}

.exam-card-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
    margin-bottom: 1rem;
}

.exam-jee .exam-card-badge {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.exam-neet .exam-card-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.exam-scholarship .exam-card-badge {
    background: rgba(236, 72, 153, 0.12);
    color: #9d174d;
}

.exam-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.exam-type-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.6rem;
}

.exam-type-card p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.55;
    margin-bottom: 1rem;
}

.exam-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.exam-card-features li {
    font-size: 0.82rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
}

.exam-card-features li i {
    color: #10b981;
    font-size: 1rem;
}

.exam-card-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    margin-top: 0.5rem;
}

/* Individual Login CTA */
.individual-login-cta {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem;
    flex-wrap: wrap;
}

.ilc-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.ilc-content {
    flex: 1;
    min-width: 200px;
}

.ilc-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.4rem;
}

.ilc-content p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.ilc-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ilc-actions .btn-outline-primary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.ilc-actions .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =============================================
   COMPETITIVE RANKINGS SECTION
   ============================================= */
.competitive-section {
    padding: 6rem 0;
    background: #0f172a;
    position: relative;
    overflow: hidden;
}

.comp-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
}

.competitive-section .section-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.3);
}

.competitive-section .section-title {
    color: #f1f5f9;
}

.competitive-section .section-description {
    color: #94a3b8;
}

.comp-badge {
    background: rgba(99, 102, 241, 0.2) !important;
}

.competitive-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .competitive-layout {
        grid-template-columns: 1fr;
    }
}

/* Competition Features */
.comp-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comp-feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    transition: all 0.3s;
}

.comp-feature-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(4px);
}

.comp-feature-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    width: 2.5rem;
    text-align: center;
}

.comp-feature-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.3rem;
}

.comp-feature-item p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Leaderboard */
.comp-leaderboard {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

.lb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-title {
    font-weight: 800;
    font-size: 1rem;
    color: #fff;
}

.lb-subtitle {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.lb-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.lb-tab.active {
    color: #a5b4fc;
    border-bottom-color: #6366f1;
}

.lb-tab:hover {
    color: #e2e8f0;
}

.lb-rows {
    padding: 0.5rem 0;
}

.lb-row {
    display: grid;
    grid-template-columns: 50px 36px 1fr auto auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.2s;
}

.lb-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.lb-gold {
    background: rgba(245, 158, 11, 0.06);
}

.lb-silver {
    background: rgba(148, 163, 184, 0.06);
}

.lb-bronze {
    background: rgba(180, 83, 9, 0.06);
}

.lb-you {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
}

.lb-rank {
    font-size: 0.82rem;
    font-weight: 700;
    color: #94a3b8;
    white-space: nowrap;
}

.lb-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
}

.lb-name {
    display: flex;
    flex-direction: column;
}

.lb-name strong {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e2e8f0;
}

.lb-name span {
    font-size: 0.72rem;
    color: #64748b;
}

.lb-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #10b981;
    white-space: nowrap;
}

.lb-time {
    font-size: 0.72rem;
    color: #64748b;
    white-space: nowrap;
}

.lb-you .lb-name strong,
.lb-you .lb-score {
    color: #a5b4fc;
}

.lb-footer {
    padding: 0.75rem 1.2rem;
    text-align: center;
    font-size: 0.72rem;
    color: #64748b;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =============================================
   RESPONSIVE FIXES
   ============================================= */
@media (max-width: 768px) {
    .hero-pillars {
        gap: 0.6rem;
    }

    .hero-pillar {
        min-width: 90px;
        padding: 0.7rem;
    }

    .pillar-icon {
        font-size: 1.4rem;
    }

    .pillar-label {
        font-size: 0.78rem;
    }

    .ep-step-arrow {
        display: none;
    }

    .ep-steps {
        flex-direction: column;
        align-items: stretch;
    }

    .ep-step {
        max-width: 100%;
    }

    .individual-login-cta {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .ilc-actions {
        justify-content: center;
    }

    .lb-row {
        grid-template-columns: 40px 32px 1fr auto;
    }

    .lb-time {
        display: none;
    }
}

/* =============================================
   HERO PILLARS FIX (light background)
   ============================================= */
.hero-pillars {
    display: flex;
    gap: 0.75rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.hero-pillar {
    flex: 1;
    min-width: 110px;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 1rem;
    padding: 1rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.hero-pillar:hover {
    background: #fff;
    border-color: #6366f1;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 0.35rem;
}

.pillar-label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.15rem;
}

.pillar-desc {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
}

/* =============================================
   HERO PLATFORM SHOWCASE (right side)
   ============================================= */
.hero-platform-showcase {
    position: relative;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

/* Main dashboard card */
.hps-card.hps-main {
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 24px 80px rgba(99, 102, 241, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid rgba(99, 102, 241, 0.12);
    animation: hpsFloat 4s ease-in-out infinite;
}

@keyframes hpsFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.hps-topbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.hps-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.hps-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-left: 0.5rem;
}

.hps-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 0 1rem;
}

.hps-nav-item {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.hps-nav-item.active {
    color: #6366f1;
    border-bottom-color: #6366f1;
}

.hps-body {
    padding: 1rem;
}

.hps-stat-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.hps-stat {
    flex: 1;
    background: color-mix(in srgb, var(--c) 8%, #fff);
    border: 1px solid color-mix(in srgb, var(--c) 20%, transparent);
    border-radius: 0.75rem;
    padding: 0.75rem 0.5rem;
    text-align: center;
}

.hps-stat-icon {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.hps-stat-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--c);
}

.hps-stat-lbl {
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 0.1rem;
}

.hps-exam-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hps-exam-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.6rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.hps-exam-item.hps-exam-live {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.hps-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05);
    }
}

.hps-exam-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    flex-shrink: 0;
}

.hps-exam-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #334155;
    flex: 1;
}

.hps-exam-count {
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
}

/* Floating notification cards */
.hps-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #fff;
    border-radius: 0.75rem;
    padding: 0.65rem 0.9rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.1);
    min-width: 180px;
    z-index: 10;
}

.hps-float-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hps-float-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
}

.hps-float-sub {
    font-size: 0.65rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.hps-float-rank {
    top: -20px;
    right: -20px;
    animation: floatIn1 3s ease-in-out infinite;
    border-left: 3px solid #f59e0b;
}

.hps-float-score {
    bottom: 60px;
    right: -30px;
    animation: floatIn2 3.5s ease-in-out infinite;
    border-left: 3px solid #6366f1;
}

.hps-float-ai {
    bottom: -10px;
    left: -20px;
    animation: floatIn3 4s ease-in-out infinite;
    border-left: 3px solid #10b981;
}

@keyframes floatIn1 {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-6px) translateX(2px);
    }
}

@keyframes floatIn2 {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

@keyframes floatIn3 {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-5px) translateX(-3px);
    }
}

@media (max-width: 1024px) {
    .hero-platform-showcase {
        max-width: 440px;
    }

    .hps-float {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-pillar {
        min-width: 85px;
        padding: 0.7rem 0.5rem;
    }

    .pillar-icon {
        font-size: 1.4rem;
    }

    .pillar-label {
        font-size: 0.75rem;
    }

    .pillar-desc {
        font-size: 0.62rem;
    }
}

/* =====================================================================
   BLOG PREVIEW SECTION (Landing Page)
   ===================================================================== */

.blog-preview-section {
    position: relative;
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
    overflow: hidden;
}

.blog-preview-bg { position: absolute; inset: 0; pointer-events: none; }
.blog-preview-orb {
    position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: 0.45;
}
.blog-orb-1 {
    top: -80px; left: -80px;
    width: 500px; height: 500px;
    background: rgba(79,70,229,0.08);
}
.blog-orb-2 {
    bottom: -80px; right: -80px;
    width: 400px; height: 400px;
    background: rgba(16,185,129,0.07);
}

.blog-badge {
    background: linear-gradient(135deg,rgba(79,70,229,0.1),rgba(168,85,247,0.1));
    color: var(--primary);
    border: 1px solid rgba(79,70,229,0.2);
}

/* ── Cards Grid ── */
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin: 3rem 0;
}
@media (max-width: 1024px) { .blog-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px)  { .blog-cards-grid { grid-template-columns: 1fr; } }

/* ── Blog Card ── */
.blog-card {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid var(--gray-100);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79,70,229,0.12);
}

.blog-card-img-wrap {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg,#ede9fe,#dbeafe);
    overflow: hidden;
}
.blog-card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.06); }

.blog-card-img-placeholder {
    display: flex; align-items: center; justify-content: center;
    height: 100%; font-size: 3rem;
}

.blog-card-category {
    position: absolute; bottom: 12px; left: 12px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.03em;
}
.blog-card-featured {
    position: absolute; top: 12px; right: 12px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 700;
    background: rgba(79,70,229,0.9); color: #fff;
}

.blog-card-body {
    padding: 1.25rem;
    display: flex; flex-direction: column;
    flex: 1;
}
.blog-card-meta {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-size: 0.72rem; color: var(--gray-400); font-weight: 500;
}
.blog-card-title {
    font-size: 1rem; font-weight: 700;
    color: var(--gray-900); line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-excerpt {
    font-size: 0.82rem; color: var(--gray-500);
    line-height: 1.6; margin-bottom: 0.75rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blog-card-tags {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 1rem;
}
.blog-tag {
    padding: 0.15rem 0.6rem;
    background: var(--gray-100); color: var(--gray-500);
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 500;
}
.blog-card-footer {
    display: flex; align-items: center;
    justify-content: space-between;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}
.blog-card-author {
    display: flex; align-items: center; gap: 0.5rem;
}
.blog-author-avatar, .blog-author-avatar-placeholder {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.blog-author-avatar-placeholder {
    background: var(--gradient-primary);
    color: #fff; font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.blog-author-name  { font-size: 0.78rem; font-weight: 600; color: var(--gray-700); }
.blog-author-role  { font-size: 0.68rem; color: var(--gray-400); }
.blog-card-stats {
    display: flex; gap: 0.75rem;
    font-size: 0.72rem; color: var(--gray-400); font-weight: 500;
}

/* ── Skeleton ── */
.blog-skeleton {
    background: #fff; border-radius: 1.25rem;
    border: 1px solid var(--gray-100); overflow: hidden;
    animation: shimmer 1.5s infinite linear;
}
.blog-skel-img { height: 200px; background: var(--gray-100); }
.blog-skel-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-skel-line {
    height: 12px; border-radius: 6px; background: var(--gray-100);
}
.blog-skel-line.w-1\/3  { width: 33%; }
.blog-skel-line.w-4\/5  { width: 80%; }
.blog-skel-line.w-full  { width: 100%; }
.blog-skel-line.w-2\/3  { width: 66%; }
@keyframes shimmer {
    0%   { opacity: 1; }
    50%  { opacity: 0.6; }
    100% { opacity: 1; }
}

/* ── Empty State ── */
.blog-empty {
    flex-direction: column; align-items: center;
    justify-content: center; gap: 0.75rem;
    padding: 4rem; color: var(--gray-400); text-align: center;
}
.blog-empty-icon { font-size: 3rem; }

/* ── View All ── */
.blog-view-all { display: flex; justify-content: center; margin-top: 1rem; }
.blog-view-btn { padding: 0.875rem 2rem; font-size: 1rem; }


/* =====================================================================
   BLOG LISTING PAGE  (blog.html)
   ===================================================================== */

/* Hero */
.blog-hero {
    background: linear-gradient(135deg,#1e1b4b 0%,#312e81 50%,#1e3a5f 100%);
    padding: 8rem 0 5rem;
    position: relative; overflow: hidden;
    text-align: center;
}
.blog-hero::before {
    content:''; position: absolute; inset:0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.blog-hero-orb-1 {
    position:absolute; top:-100px; left:-100px; width:500px; height:500px;
    border-radius:50%; background:rgba(99,102,241,0.25); filter:blur(100px);
}
.blog-hero-orb-2 {
    position:absolute; bottom:-100px; right:-100px; width:400px; height:400px;
    border-radius:50%; background:rgba(16,185,129,0.15); filter:blur(80px);
}
.blog-hero-badge {
    display:inline-flex; align-items:center; gap:0.5rem;
    padding:0.4rem 1rem;
    background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2);
    border-radius:999px; color:rgba(255,255,255,0.9);
    font-size:0.8rem; font-weight:600; letter-spacing:0.05em;
    margin-bottom:1.5rem; backdrop-filter:blur(10px);
}
.blog-hero h1 {
    font-size: clamp(2rem,4vw,3.5rem);
    font-weight:800; color:#fff; line-height:1.15;
    margin-bottom:1rem;
}
.blog-hero h1 span { background:linear-gradient(135deg,#818cf8,#34d399); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.blog-hero p { font-size:1.1rem; color:rgba(255,255,255,0.75); max-width:600px; margin:0 auto 2.5rem; }

/* Search & Filter */
.blog-search-bar {
    max-width:600px; margin:0 auto;
    display:flex; gap:0.5rem;
    background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2);
    border-radius:0.875rem; padding:0.5rem;
    backdrop-filter:blur(10px);
}
.blog-search-bar input {
    flex:1; background:transparent; border:none; outline:none;
    color:#fff; font-size:0.95rem; padding:0.4rem 0.5rem;
}
.blog-search-bar input::placeholder { color:rgba(255,255,255,0.5); }
.blog-search-btn {
    padding:0.5rem 1.25rem; background:var(--gradient-primary);
    color:#fff; border:none; border-radius:0.625rem;
    font-size:0.875rem; font-weight:600; cursor:pointer;
    transition:all 0.2s;
}
.blog-search-btn:hover { transform:translateY(-1px); }

/* Filter Tabs */
.blog-filter-tabs {
    display:flex; flex-wrap:wrap; gap:0.5rem;
    justify-content:center; margin:2.5rem 0;
}
.blog-filter-tab {
    padding:0.5rem 1.25rem;
    background:#fff; border:2px solid var(--gray-200);
    border-radius:999px; font-size:0.875rem; font-weight:600;
    color:var(--gray-600); cursor:pointer;
    transition:all 0.2s; white-space:nowrap;
}
.blog-filter-tab:hover, .blog-filter-tab.active {
    background:var(--gradient-primary);
    border-color:transparent; color:#fff;
    transform:translateY(-1px); box-shadow:0 4px 15px rgba(79,70,229,0.3);
}

/* Main listing grid */
.blog-listing-grid {
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:2rem; margin:2.5rem 0;
}
@media (max-width:1024px) { .blog-listing-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px)  { .blog-listing-grid { grid-template-columns:1fr; } }

/* Featured card  (first post) */
.blog-card-featured-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background:#fff; border-radius:1.5rem;
    border:1px solid var(--gray-100);
    box-shadow:0 4px 20px rgba(0,0,0,0.07);
    overflow:hidden;
    transition:all 0.3s;
}
.blog-card-featured-large:hover { transform:translateY(-4px); box-shadow:0 20px 50px rgba(79,70,229,0.15); }
.blog-card-featured-large .blog-card-img-wrap { height:100%; min-height:280px; }
.blog-card-featured-large .blog-card-body { padding:2rem; display:flex; flex-direction:column; justify-content:center; }
.blog-card-featured-large .blog-card-title { font-size:1.5rem; -webkit-line-clamp:3; }
.blog-card-featured-large .blog-card-excerpt { -webkit-line-clamp:4; }
@media (max-width:768px) {
    .blog-card-featured-large { grid-template-columns:1fr; }
    .blog-card-featured-large .blog-card-img-wrap { min-height:220px; }
}

/* Load More button */
.blog-load-more {
    display:flex; justify-content:center; margin:1.5rem 0 2rem;
}
.blog-load-more-btn {
    padding:0.875rem 2.5rem;
    background:transparent; border:2px solid var(--gray-200);
    border-radius:999px; font-size:0.95rem; font-weight:600;
    color:var(--gray-600); cursor:pointer;
    transition:all 0.2s;
}
.blog-load-more-btn:hover { border-color:var(--primary); color:var(--primary); transform:translateY(-2px); }
.blog-load-more-btn:disabled { opacity:0.5; cursor:not-allowed; }


/* =====================================================================
   BLOG POST DETAIL PAGE (blog-post.html)
   ===================================================================== */

.blog-post-hero {
    position:relative; overflow:hidden;
    background:linear-gradient(160deg,#0f0a2e 0%,#1e1b4b 50%,#0f2240 100%);
}
.blog-post-hero-img {
    width:100%; height:500px; object-fit:cover;
    opacity:0.35; display:block;
}
.blog-post-hero-overlay {
    position:absolute; inset:0;
    background:linear-gradient(to bottom,rgba(15,10,46,0.3) 0%,rgba(15,10,46,0.9) 100%);
    display:flex; align-items:flex-end;
    padding:3rem;
}
.blog-post-hero-content { max-width:800px; }
.blog-post-breadcrumb {
    display:flex; align-items:center; gap:0.5rem;
    font-size:0.8rem; color:rgba(255,255,255,0.65); margin-bottom:1.25rem;
}
.blog-post-breadcrumb a { color:rgba(255,255,255,0.65); transition:color 0.2s; }
.blog-post-breadcrumb a:hover { color:#fff; }
.blog-post-hero-category {
    display:inline-block; padding:0.3rem 0.9rem;
    border-radius:999px; font-size:0.75rem; font-weight:700;
    background:rgba(99,102,241,0.85); color:#fff; margin-bottom:1rem;
}
.blog-post-hero-title {
    font-size:clamp(1.75rem,3.5vw,3rem);
    font-weight:800; color:#fff; line-height:1.2; margin-bottom:1.25rem;
}
.blog-post-hero-meta {
    display:flex; flex-wrap:wrap; align-items:center; gap:1rem;
    font-size:0.82rem; color:rgba(255,255,255,0.7);
}
.blog-post-hero-meta span { display:flex; align-items:center; gap:0.35rem; }

/* Layout */
.blog-post-layout {
    display:grid; grid-template-columns:1fr 320px;
    gap:3rem; padding:3rem 0 5rem; max-width:1200px; margin:0 auto;
}
@media (max-width:1024px) { .blog-post-layout { grid-template-columns:1fr; } }

/* Article Content */
.blog-post-content {
    background:#fff; border-radius:1.25rem;
    border:1px solid var(--gray-100);
    padding:2.5rem;
    font-size:1.05rem; line-height:1.8;
    color:var(--gray-700);
}
.blog-post-content h2 {
    font-size:1.6rem; font-weight:800; color:var(--gray-900);
    margin:2rem 0 0.75rem;
}
.blog-post-content h3 {
    font-size:1.25rem; font-weight:700; color:var(--gray-800);
    margin:1.5rem 0 0.5rem;
}
.blog-post-content p   { margin:0 0 1rem; }
.blog-post-content ul,
.blog-post-content ol  { padding-left:1.5rem; margin:1rem 0; }
.blog-post-content li  { margin:0.4rem 0; }
.blog-post-content blockquote {
    border-left:4px solid var(--primary);
    padding:0.75rem 1.25rem;
    background:rgba(79,70,229,0.05);
    border-radius:0 0.75rem 0.75rem 0;
    font-style:italic; color:var(--gray-600);
    margin:1.5rem 0;
}
.blog-post-content a   { color:var(--primary); text-decoration:underline; }
.blog-post-content img { border-radius:0.75rem; margin:1.25rem 0; max-width:100%; }
.blog-post-content pre {
    background:var(--gray-900); color:#e2e8f0;
    padding:1.25rem; border-radius:0.75rem;
    overflow-x:auto; font-family:monospace; font-size:0.9rem;
    margin:1.25rem 0;
}
.blog-post-content code {
    background:var(--gray-100); padding:0.15rem 0.4rem;
    border-radius:4px; font-family:monospace; font-size:0.9em;
}

/* Tags */
.blog-post-tags { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:2rem; }

/* Like/Dislike Bar */
.blog-interaction-bar {
    display:flex; align-items:center; gap:1rem;
    padding:1.25rem 1.5rem;
    background:linear-gradient(135deg,rgba(79,70,229,0.05),rgba(16,185,129,0.05));
    border:1px solid rgba(79,70,229,0.1);
    border-radius:1rem; margin-top:2rem;
    flex-wrap:wrap;
}
.blog-interaction-bar-label {
    font-size:0.875rem; font-weight:600; color:var(--gray-700);
    flex:1; min-width:150px;
}

.blog-like-btn, .blog-dislike-btn {
    display:flex; align-items:center; gap:0.5rem;
    padding:0.6rem 1.25rem; border-radius:999px;
    border:2px solid; font-size:0.9rem; font-weight:700;
    cursor:pointer; transition:all 0.25s;
    background:transparent;
}
.blog-like-btn {
    border-color:rgba(16,185,129,0.3); color:var(--gray-600);
}
.blog-like-btn:hover, .blog-like-btn.active {
    background:rgba(16,185,129,0.1); border-color:#10b981; color:#059669;
    transform:scale(1.05);
}
.blog-like-btn.active { background:rgba(16,185,129,0.15); }

.blog-dislike-btn {
    border-color:rgba(239,68,68,0.3); color:var(--gray-600);
}
.blog-dislike-btn:hover, .blog-dislike-btn.active {
    background:rgba(239,68,68,0.08); border-color:#ef4444; color:#dc2626;
    transform:scale(1.05);
}
.blog-dislike-btn.active { background:rgba(239,68,68,0.12); }

.blog-like-count, .blog-dislike-count {
    min-width:1.5rem; text-align:center;
    transition:transform 0.2s ease;
}
.count-bump { animation:count-bump 0.3s ease; }
@keyframes count-bump { 0% { transform:scale(1); } 50% { transform:scale(1.4); } 100% { transform:scale(1); } }

/* Share buttons */
.blog-share-btns {
    display:flex; gap:0.5rem; margin-left:auto;
}
.blog-share-btn {
    width:36px; height:36px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    border:2px solid var(--gray-200);
    color:var(--gray-500); background:transparent;
    cursor:pointer; font-size:0.85rem; font-weight:700;
    transition:all 0.2s;
    text-decoration:none;
}
.blog-share-btn:hover { background:var(--primary); border-color:var(--primary); color:#fff; transform:scale(1.1); }

/* Sidebar */
.blog-sidebar { display:flex; flex-direction:column; gap:1.5rem; }

.blog-sidebar-card {
    background:#fff; border-radius:1.25rem;
    border:1px solid var(--gray-100);
    padding:1.5rem; box-shadow:0 2px 10px rgba(0,0,0,0.04);
}
.blog-sidebar-card h3 {
    font-size:0.95rem; font-weight:700; color:var(--gray-800);
    margin-bottom:1rem; padding-bottom:0.75rem;
    border-bottom:2px solid var(--gray-100);
}

/* Stats card */
.blog-stats-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; }
.blog-stat-item {
    text-align:center; padding:0.75rem;
    background:var(--gray-50); border-radius:0.75rem;
}
.blog-stat-val { font-size:1.5rem; font-weight:800; color:var(--gray-900); }
.blog-stat-lbl { font-size:0.7rem; color:var(--gray-500); font-weight:500; }

/* Author card */
.blog-author-card {
    display:flex; flex-direction:column; align-items:center;
    text-align:center; gap:0.75rem;
}
.blog-author-img {
    width:72px; height:72px; border-radius:50%; object-fit:cover;
    border:3px solid var(--gray-100);
}
.blog-author-placeholder {
    width:72px; height:72px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    font-size:1.75rem; font-weight:800; color:#fff;
    background:var(--gradient-primary);
}
.blog-author-card h4  { font-size:1rem; font-weight:700; color:var(--gray-900); }
.blog-author-card p   { font-size:0.8rem; color:var(--gray-500); }

/* Related posts */
.blog-related-list { display:flex; flex-direction:column; gap:0.75rem; }
.blog-related-item {
    display:flex; gap:0.75rem; align-items:flex-start;
    padding:0.75rem; border-radius:0.75rem;
    transition:background 0.2s; cursor:pointer; text-decoration:none;
    color:inherit;
}
.blog-related-item:hover { background:var(--gray-50); }
.blog-related-thumb {
    width:56px; height:56px; border-radius:0.5rem;
    object-fit:cover; flex-shrink:0;
    background:linear-gradient(135deg,var(--gray-100),var(--gray-200));
    display:flex; align-items:center; justify-content:center;
    font-size:1.25rem;
}
.blog-related-title {
    font-size:0.82rem; font-weight:600; color:var(--gray-700);
    line-height:1.4;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden;
}
.blog-related-date { font-size:0.7rem; color:var(--gray-400); margin-top:0.2rem; }

/* Loading state on post page */
.blog-post-loading {
    display:flex; align-items:center; justify-content:center;
    min-height:60vh; flex-direction:column; gap:1rem;
    color:var(--gray-500);
}
.blog-post-spinner {
    width:48px; height:48px; border-radius:50%;
    border:4px solid var(--gray-200);
    border-top-color:var(--primary);
    animation:spin 0.8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }