/* ===================================
   eMuhendisi - Premium Engineering Education Platform
   Modern UI/UX with Electric Blue, Deep Navy & Glassmorphism
   =================================== */

/* ===== CSS VARIABLES ===== */
:root {
    /* Primary Colors (HSL based for harmony) */
    --primary-h: 217;
    --primary-s: 91%;
    --primary-l: 60%;

    --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l));
    --primary-dark: hsl(222, 47%, 11%);
    --primary-light: hsl(var(--primary-h), var(--primary-s), 95%);

    --accent: hsl(250, 89%, 65%);
    /* Electric Purple */
    --electric-blue: hsl(199, 89%, 48%);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--electric-blue) 0%, var(--accent) 100%);
    --gradient-premium: linear-gradient(135deg, #0d1117 0%, #1e293b 100%);
    --gradient-electric: linear-gradient(135deg, var(--primary), var(--accent));
    --gradient-accent: linear-gradient(135deg, #f59e0b, #ef4444);
    --gradient-hero: linear-gradient(to bottom, #020408, #0d1117);
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    /* Energetic Orange-Red */
    --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));

    /* Backgrounds */
    --bg-main: #020408;
    /* Ultra Deep Void */
    --bg-card: #0d1117;
    --bg-surface: #161b22;

    /* Text - Max Contrast for 2026 Premium feel */
    --text-white: #ffffff;
    --text-gray: #d1d5db;
    /* Brighter gray for readability */
    --text-muted: #9ca3af;
    /* Much lighter muted text */

    /* Cinematic Lighting & Glows - Increased Luminosity */
    --glow-blue: rgba(56, 139, 253, 0.7);
    --glow-secondary: rgba(139, 92, 246, 0.6);
    --nebula: radial-gradient(circle at 50% 50%, rgba(56, 139, 253, 0.2), transparent 70%);

    /* Glassmorphism - Higher definition */
    --glass-bg: rgba(13, 17, 23, 0.6);
    --glass-blur: 30px;
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-tech: 'JetBrains Mono', monospace;

    /* Transitions & Dynamics */
    --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --bezier-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-white);
    background: var(--bg-main);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 24px;
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-electric);
    color: white;
    box-shadow: 0 4px 15px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px hsla(var(--primary-h), var(--primary-s), var(--primary-l), 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-3px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--shadow-premium);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header:not(.scrolled) .logo-text {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    color: #e2e8f0;
    padding: 8px 0;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--electric-blue);
}

.header:not(.scrolled) .nav-link {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-utils {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-login {
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--electric-blue);
    color: var(--electric-blue);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-normal);
}

.header:not(.scrolled) .btn-login {
    border-color: white;
    color: white;
}

.btn-login:hover {
    background: var(--electric-blue);
    color: white;
    box-shadow: 0 0 20px rgba(56, 139, 253, 0.4);
}

.btn-cart {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 139, 253, 0.15);
    border-radius: var(--radius-full);
    color: var(--electric-blue);
    font-size: 1.125rem;
    transition: var(--transition-fast);
}

.header:not(.scrolled) .btn-cart {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: var(--accent-orange);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cinematic 3D Tech Background */
.hero-visual-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-main);
    z-index: 0;
}

.hero-visual-bg::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.4;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

.hero-visual-bg::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, var(--glow-secondary) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.3;
}

/* Floating 3D 'Core' */
.hero-core {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    perspective: 1000px;
}

.core-inner {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), transparent);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        inset 0 0 50px rgba(56, 139, 253, 0.2),
        0 0 80px rgba(56, 139, 253, 0.3);
    animation: floatCore 10s ease-in-out infinite;
    position: relative;
    backdrop-filter: blur(10px);
}

.core-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: rotateRing 20s linear infinite;
}

.ring-1 {
    width: 400px;
    height: 400px;
    border-width: 2px;
    border-color: rgba(56, 139, 253, 0.1);
}

.ring-2 {
    width: 450px;
    height: 450px;
    animation-duration: 30s;
    animation-direction: reverse;
}

@keyframes floatCore {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

@keyframes rotateRing {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    from {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Layout Overrides & High Contrast Refinement */
.hero {
    background: var(--bg-main) !important;
    position: relative;
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    width: 100%;
}

.hero-content {
    max-width: 100% !important;
}

.hero-core-wrapper {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-core {
    position: relative !important;
    width: 450px;
    height: 450px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
    color: #ffffff !important;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8), 0 0 10px rgba(56, 139, 253, 0.2);
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--electric-blue);
    text-shadow: 0 0 40px rgba(56, 139, 253, 0.6);
}

.hero-desc {
    font-size: 1.25rem;
    color: #f1f5f9 !important;
    /* Stand out contrast */
    line-height: 1.8;
    max-width: 650px;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 280px);
    gap: 24px;
}

.bento-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: var(--electric-blue);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.bento-item-1 {
    grid-column: span 2;
    grid-row: span 1;
    background: linear-gradient(135deg, #1e293b 0%, #0d1117 100%);
}

.bento-item-2 {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(to bottom, #0d1117, #161b22);
}

.bento-item-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item-4 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item i {
    font-size: 2.8rem;
    color: var(--electric-blue);
    margin-bottom: 2rem;
}

.bento-item h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
}

.bento-item p {
    font-size: 1.05rem;
    color: #e2e8f0 !important;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .hero-core-wrapper {
        height: 400px;
        order: -1;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .bento-item {
        grid-column: span 2;
        height: 300px;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: var(--radius-full);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Cleaned redundant hero styles */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.95rem;
    color: #cbd5e1 !important;
    /* Stand out label */
    font-weight: 500;
}

/* ===== COURSE CARDS ===== */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-premium);
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 139, 253, 0.05) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

.course-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(225deg, var(--electric-blue) 0%, transparent 50%);
    opacity: 0.1;
    z-index: 1;
    transition: var(--transition);
}

.course-card:hover::after {
    opacity: 0.4;
    width: 60px;
    height: 60px;
}

.course-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.course-thumbnail {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.badge-popular {
    background: var(--gradient-accent);
    color: white;
}

.badge-bestseller {
    background: var(--gradient-primary);
    color: white;
}

.badge-new {
    background: var(--accent-green);
    color: white;
}

.badge-free {
    background: #22c55e;
    color: white;
}

.btn-bookmark {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2;
    color: var(--text-light);
}

.btn-bookmark:hover {
    background: var(--accent-orange);
    color: white;
    transform: scale(1.1);
}

.course-body {
    padding: 20px;
}

.course-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--electric-blue);
    /* Force bright secondary color */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-value {
    font-weight: 600;
    color: var(--text-white);
}

.rating-count {
    color: #94a3b8;
    /* Brighter muted color */
    font-size: 0.875rem;
}

.course-meta {
    display: flex;
    gap: 16px;
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
}

.instructor-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.instructor-info {
    display: flex;
    flex-direction: column;
}

.instructor-label {
    font-size: 0.75rem;
    color: #cbd5e1;
}

.instructor-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-white);
}

.course-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-surface);
    border-top: 1px solid var(--glass-border);
}

.course-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-old {
    font-size: 0.875rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.price-new {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.btn-add-cart {
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-add-cart:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--bg-dark);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur));
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-electric);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--electric-blue);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-electric);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    box-shadow: var(--shadow-glow);
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */
.cta {
    background: #0d1117;
    /* Solid dark background for maximum readability */
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background: var(--text-white);
    color: var(--bg-main);
    /* High contrast dark text on white */
    font-weight: 700;
}

.cta .btn:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-dark);
    color: var(--text-white);
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: white;
    -webkit-text-fill-color: white;
}

.footer-brand p {
    color: #cbd5e1;
    /* Brighter slate for footer text */
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background: var(--electric-blue);
    transform: translateY(-3px);
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: #e2e8f0;
    /* Crisp light gray */
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: white;
    padding-left: 5px;
}

/* Payment Logos */
.payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 0;
    margin-bottom: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.payment-label {
    font-size: 0.875rem;
    color: #cbd5e1;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-icons img,
.payment-icons svg {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    /* Higher visibility */
    transition: var(--transition-fast);
}

.payment-icons img:hover,
.payment-icons svg:hover {
    opacity: 1;
}

.troy-logo {
    height: 24px;
    width: 60px;
    color: white;
    opacity: 0.9;
}

.ssl-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    padding: 6px 12px;
    border-radius: var(--radius-full);
}

/* ===== PAGE HEADER (for static pages) ===== */
.page-header {
    background: var(--gradient-hero);
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 1.125rem;
    color: #e2e8f0;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.breadcrumb a {
    color: #ffffff;
}

.breadcrumb a:hover {
    color: white;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    padding: 60px 0;
}

.page-content h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 24px;
}

.page-content h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 32px 0 16px;
}

.page-content p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.page-content li {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 8px;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(56, 139, 253, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-white);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--bg-surface);
}

.faq-question i {
    transition: var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: #e2e8f0;
    /* Brighter gray for answers */
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ===== INSTRUCTORS GRID ===== */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.instructor-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.instructor-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.instructor-card img {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    object-fit: cover;
}

.instructor-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.instructor-card .title {
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.instructor-card .stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.875rem;
    color: #94a3b8;
    /* Brighter muted color */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }

    .hero {
        text-align: center;
        padding: 120px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}