/* ==========================================================================
   TechKnowEdge Premium Design System (Learning Spoons Inspired Clone)
   ========================================================================== */

/* Global Reset & System Settings */
:root {
    /* Color Palette - Official TechKnowEdge Brand Palette */
    --bg-primary: #05070c; /* TKE Deep Black */
    --bg-secondary: #0d121f; /* Premium Dark Slate */
    --bg-card: rgba(13, 18, 31, 0.6);
    --bg-card-hover: rgba(22, 31, 58, 0.8);
    
    --text-primary: #ffffff; /* TKE Clean White */
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #8b2cf5; /* TKE Electric Violet */
    --accent-primary-glow: rgba(139, 44, 245, 0.35);
    --accent-secondary: #00f0ff; /* TKE Neon Blue */
    --accent-secondary-glow: rgba(0, 240, 255, 0.35);
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(139, 44, 245, 0.5);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #8b2cf5 0%, #d946ef 100%);
    --gradient-secondary: linear-gradient(135deg, #00f0ff 0%, #3b82f6 100%);
    --gradient-dark: linear-gradient(180deg, #05070c 0%, #0c0f17 100%);
    --gradient-hero: radial-gradient(circle at 75% 20%, rgba(139, 44, 245, 0.18) 0%, rgba(0, 240, 255, 0.08) 50%, rgba(5, 7, 12, 0) 100%);
    
    /* Box Shadows & Glassmorphism */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 50px -10px var(--accent-primary-glow);
    --glass-blur: blur(16px);
    
    /* Layout Constants */
    --max-width: 1200px;
    --header-height: 80px;
    --font-primary: 'Inter', 'Pretendard', -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Pretendard', sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    background-image: var(--gradient-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Common Layout Elements */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 20px 0;
}

/* Button UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-bounce);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--accent-secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.5);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
    border-radius: 6px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-block {
    width: 100%;
}

/* Micro-animations */
.animate-pulse {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    }
    100% {
        box-shadow: 0 0 25px rgba(139, 92, 246, 0.7);
    }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(11, 15, 25, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition-smooth);
}

.main-header.scrolled {
    height: 70px;
    background: rgba(11, 15, 25, 0.85);
    box-shadow: var(--shadow-md);
}

.header-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-secondary); /* TKE Neon Blue */
}

.logo-prompt {
    color: var(--accent-secondary); /* TKE Neon Blue */
    font-weight: 800;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 101;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
    visibility: hidden;
}

.mobile-drawer.open {
    right: 0;
    visibility: visible;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
}

.drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.drawer-link {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    display: block;
    padding: 8px 0;
}

.drawer-link:hover {
    color: var(--text-primary);
    padding-left: 8px;
}

.drawer-footer {
    margin-top: auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    background-image: var(--gradient-hero);
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, rgba(139, 92, 246, 0) 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-icon {
    color: #f43f5e;
    animation: firePulse 1.2s infinite alternate;
}

@keyframes firePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2) rotate(5deg); }
}

.hero-title {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 32px;
    color: var(--text-primary);
    line-height: 1;
}

.stat-unit {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
}

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

/* Hero Code Visual Card */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.glass-preview-card {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

.glass-preview-card:hover {
    transform: translateY(-5px) rotate(1deg);
    border-color: var(--border-color-active);
}

.card-header-bar {
    background: rgba(11, 15, 25, 0.5);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.card-title-bar {
    font-family: monospace;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-left: auto;
}

.card-code-content {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13.5px;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-keyword { color: #f472b6; }
.code-class { color: #38bdf8; }
.code-string { color: #34d399; }
.code-comment { color: #64748b; font-style: italic; }

.card-decoration-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 180px;
    height: 180px;
    background: var(--accent-primary);
    filter: blur(50px);
    opacity: 0.15;
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-sm);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
    animation: floatingFloat 4s ease-in-out infinite;
}

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

.badge-avatar {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 16px;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-text strong {
    font-size: 13.5px;
    color: var(--text-primary);
}

.badge-text span {
    font-size: 11px;
    color: var(--accent-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    margin-bottom: 60px;
}

.text-center {
    text-align: center;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-secondary);
    letter-spacing: 0.15em;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 38px;
    line-height: 1.3;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================================================
   Course Catalog (Learning Spoons Grid Design)
   ========================================================================== */
.courses-section {
    padding: 100px 0;
    background: rgba(11, 15, 25, 0.4);
    position: relative;
}

.filter-tabs-container {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.filter-tabs {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 100px;
    display: inline-flex;
    gap: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14.5px;
    padding: 10px 24px;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Course Grid & Cards */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.course-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-active);
    box-shadow: var(--shadow-lg);
}

.card-image-placeholder {
    height: 180px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.free-gradient {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
}

.paid-gradient {
    background: linear-gradient(135deg, #7c3aed 0%, #d946ef 100%);
}

.card-huge-icon {
    font-size: 72px;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    bottom: -10px;
    right: -10px;
    transform: rotate(-15deg);
    transition: var(--transition-smooth);
}

.course-card:hover .card-huge-icon {
    transform: scale(1.15) rotate(-20deg);
    color: rgba(255, 255, 255, 0.25);
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}

.card-badge.free {
    background: #10b981;
    color: #ffffff;
}

.card-badge.paid {
    background: #f43f5e;
    color: #ffffff;
}

.card-badge-dday {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fb7185;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.card-meta-top {
    position: absolute;
    bottom: 16px;
    left: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-body {
    padding: 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-ratings {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.stars {
    color: #fbbf24;
    font-size: 13px;
}

.rating-val {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

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

.card-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.card-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.card-tags .tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 500;
}

.card-divider {
    margin: 16px 0;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.price-value {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

.free-text {
    color: #34d399;
}

.original-price {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: line-through;
    line-height: 1;
    margin-bottom: 2px;
}

.discount-flex {
    display: flex;
    align-items: center;
    gap: 6px;
}

.discount-rate {
    font-size: 15px;
    color: #f43f5e;
    font-weight: 800;
}

/* ==========================================================================
   Curriculum Timeline Section
   ========================================================================== */
.curriculum-section {
    padding: 100px 0;
    position: relative;
}

.curriculum-timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto 0;
    padding-left: 40px;
}

.curriculum-timeline::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 15px;
    width: 2px;
    height: calc(100% - 30px);
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-badge {
    position: absolute;
    top: 4px;
    left: -40px;
    width: 50px;
    height: 28px;
    transform: translateX(-50%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
}

.timeline-item.active .timeline-badge {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent-primary-glow);
}

.timeline-content {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition-smooth);
}

.timeline-item.active .timeline-content {
    border-color: var(--border-color-active);
    box-shadow: var(--shadow-md);
}

.timeline-title {
    font-size: 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-output {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
}

.timeline-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.timeline-details {
    background: rgba(11, 15, 25, 0.4);
    border-radius: var(--radius-sm);
    padding: 20px;
}

.timeline-details ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.timeline-details li {
    font-size: 14.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.timeline-details li i {
    color: var(--accent-primary);
    margin-top: 4px;
}

/* ==========================================================================
   Schedule & Meetup Section
   ========================================================================== */
.schedule-section {
    padding: 100px 0;
    background: rgba(11, 15, 25, 0.4);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.schedule-card, .location-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.schedule-card-title {
    font-size: 22px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.timeline-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.time-step {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: start;
}

.step-hour {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--accent-secondary);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 6px 12px;
    border-radius: 4px;
    text-align: center;
}

.step-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.step-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.step-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 30px;
}

.step-tag.free {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.step-tag.paid {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
}

.time-step.rest .step-hour {
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

.step-tag.rest-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Location Box & Simulated Map */
.map-placeholder {
    height: 200px;
    border-radius: var(--radius-sm);
    background: linear-gradient(45deg, #131b2e 25%, #182238 25%, #182238 50%, #131b2e 50%, #131b2e 75%, #182238 75%);
    background-size: 40px 40px;
    position: relative;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
}

.map-overlay-icon {
    font-size: 32px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.map-overlay span {
    font-weight: 600;
    font-size: 14.5px;
}

.map-overlay .map-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loc-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.loc-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-txt {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.loc-txt strong {
    font-size: 14.5px;
    color: var(--text-primary);
}

.loc-txt span {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */
.reviews-section {
    padding: 100px 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
}

.review-card:hover {
    border-color: var(--border-color-active);
    transform: translateY(-4px);
}

.review-quote {
    color: var(--accent-primary-glow);
    font-size: 24px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.review-comment {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    padding-top: 16px;
    flex-grow: 1;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar-placeholder {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-course-tag {
    font-size: 12px;
    color: var(--accent-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    padding: 100px 0;
    background: rgba(11, 15, 25, 0.4);
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-color-active);
}

.faq-trigger {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 16.5px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    gap: 16px;
}

.faq-icon {
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition-bounce);
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--accent-primary);
}

.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-content-inner {
    padding: 0 24px 24px 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 16px;
}

/* ==========================================================================
   CTA Action Banner
   ========================================================================== */
.cta-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, rgba(11, 15, 25, 0) 60%);
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    filter: blur(100px);
    opacity: 0.1;
    pointer-events: none;
}

.cta-title {
    font-size: 42px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-tagline {
    font-size: 14.5px;
    color: var(--text-secondary);
    max-width: 320px;
}

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

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.social-links a:hover {
    color: var(--text-primary);
    background: var(--accent-primary);
    border-color: transparent;
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   Registration Modal Component
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 10, 19, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 600px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-bounce);
}

.modal-backdrop.open .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: rgba(11, 15, 25, 0.5);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

/* Custom form UI elements */
.form-group {
    margin-bottom: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.required {
    color: #ef4444;
}

.optional {
    color: var(--text-muted);
    font-size: 12px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    background: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 14.5px;
    outline: none;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.2);
}

.form-textarea {
    resize: none;
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-primary);
    cursor: pointer;
}

.checkbox-label {
    font-size: 13.5px;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    margin-top: 10px;
}

/* Spinner for Loading Submit */
.btn-spinner {
    display: inline-flex;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   Toast Notification Component
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(19, 27, 46, 0.95);
    border-left: 4px solid var(--accent-secondary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    min-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast-icon {
    font-size: 18px;
}

.toast.toast-success .toast-icon {
    color: #10b981;
}

.toast-message {
    font-size: 14px;
    font-weight: 500;
}

@keyframes toastSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.toast.fade-out {
    animation: toastFadeOut 0.3s ease forwards;
}

@keyframes toastFadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ==========================================================================
   Responsive Media Queries (Mobile First approach)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 42px;
    }
    .courses-grid {
        gap: 20px;
    }
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .review-card:last-child {
        display: none; /* Hide 3rd review on tablet to keep grid clean */
    }
}

@media (max-width: 768px) {
    /* Header styling */
    .nav-menu {
        display: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    
    /* Hero layout */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-stats {
        align-self: center;
        justify-content: center;
    }
    .hero-buttons {
        width: 100%;
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }
    .hero-visual {
        margin-top: 20px;
    }
    .floating-badge {
        display: none; /* Simplify on mobile */
    }
    
    /* Courses */
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Curriculum */
    .timeline-details ul {
        grid-template-columns: 1fr;
    }
    .timeline-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    /* Schedule & Location */
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .time-step {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .step-hour {
        text-align: left;
        width: max-content;
    }
    
    /* Reviews & Footer */
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .review-card:last-child {
        display: flex;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Modal row */
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    .section-title {
        font-size: 28px;
    }
    .hero-stats {
        gap: 20px;
    }
    .stat-num {
        font-size: 24px;
    }
    .curriculum-timeline {
        padding-left: 20px;
    }
    .curriculum-timeline::before {
        left: 5px;
    }
    .timeline-badge {
        left: -20px;
        width: 44px;
        font-size: 11px;
    }
    .timeline-content {
        padding: 20px;
    }
    .location-details .btn-xs {
        margin-top: 8px;
        align-self: flex-start;
    }
}
