/**
 * Interactroom - Premium Minimalist Light Design System
 * Crisp Typography, High-Contrast Whitespace, Fluid Layouts & Polished UI
 */

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-subtle: #dbeafe;
    
    --secondary: #0f172a;
    --secondary-hover: #1e293b;
    
    --accent: #0284c7;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --success-border: #bbf7d0;
    
    --warning: #d97706;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;
    
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    
    --info: #0284c7;
    --info-light: #f0f9ff;
    --info-border: #bae6fd;

    /* Light Theme Surface Colors */
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-subtle: #f1f5f9;
    --bg-input: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --border-strong: #cbd5e1;

    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);

    --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Top Notification & Contact Bar */
.topbar {
    background: #ffffff;
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.topbar-contact a, .topbar-contact span {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.topbar-contact a:hover {
    color: var(--primary);
}
.topbar-contact i {
    color: var(--primary);
}
.topbar-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid var(--primary-subtle);
}

/* Minimal Navbar */
.navbar {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}
.brand-logo img {
    height: 38px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 24px;
}
.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    padding: 6px 0;
    position: relative;
    transition: color 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    border: 1px solid var(--border);
    transition: all 0.15s ease;
}
.cart-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-subtle);
}
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* User Dropdown */
.user-nav-dropdown {
    position: relative;
}
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    transition: border-color 0.15s ease;
}
.user-pill:hover {
    border-color: var(--border-strong);
}
.user-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}
.dropdown-menu {
    position: absolute;
    right: 0;
    top: 120%;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 230px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
}
.dropdown-menu.show {
    display: block;
}
.dropdown-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}
.dropdown-header .name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-heading);
}
.dropdown-header .email {
    font-size: 11px;
    color: var(--text-muted);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    transition: background 0.15s ease;
}
.dropdown-item:hover {
    background: var(--bg-subtle);
    color: var(--primary);
}
.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-heading);
    cursor: pointer;
}

/* Minimal Light Page Title Header */
.page-header-light {
    background: #ffffff;
    padding: 35px 0;
    border-bottom: 1px solid var(--border);
}
.page-header-light .header-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.page-header-light .header-desc {
    color: var(--text-muted);
    font-size: 14px;
}
.page-header-light .breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}
.page-header-light .breadcrumbs a {
    color: var(--text-muted);
}
.page-header-light .breadcrumbs span {
    color: var(--border-strong);
}
.page-header-light .breadcrumbs .current {
    color: var(--primary);
    font-weight: 600;
}

/* KPI Stat Cards (Light Minimalist Grid) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.kpi-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.kpi-icon.indigo { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.kpi-icon.cyan { background: #f0fdfa; color: #0d9488; border: 1px solid #ccfbf1; }
.kpi-icon.emerald { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.kpi-icon.amber { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }

.kpi-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 2px;
}
.kpi-info p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    text-decoration: none;
}
.btn-lg {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
}
.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: var(--radius-sm);
}
.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #ffffff;
}
.btn-secondary {
    background: var(--secondary);
    color: #ffffff;
}
.btn-secondary:hover {
    background: var(--secondary-hover);
    color: #ffffff;
}
.btn-outline {
    background: #ffffff;
    border-color: var(--border);
    color: var(--text-body);
}
.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--border-strong);
}
.btn-outline-primary {
    background: #ffffff;
    border-color: var(--primary-subtle);
    color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-success { background: var(--success); color: #ffffff; }
.btn-block { width: 100%; }

/* Badges */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--success-light);
    color: #15803d;
    border: 1px solid var(--success-border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.badge-unverified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--warning-light);
    color: #b45309;
    border: 1px solid var(--warning-border);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.badge-admin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}
.badge-category {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.3;
}
.badge-level {
    display: inline-flex;
    align-items: center;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    line-height: 1.3;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize;
}
.status-badge.completed, .status-badge.approved, .status-badge.published, .status-badge.active {
    background: var(--success-light);
    color: #15803d;
    border: 1px solid var(--success-border);
}
.status-badge.pending, .status-badge.draft {
    background: var(--warning-light);
    color: #b45309;
    border: 1px solid var(--warning-border);
}
.status-badge.failed, .status-badge.rejected, .status-badge.cancelled {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid var(--danger-border);
}

/* Minimal Light Hero Section */
.hero {
    background: #ffffff;
    color: var(--text-heading);
    padding: 65px 0 75px;
    border-bottom: 1px solid var(--border);
    position: relative;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 45px;
    align-items: center;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-light);
    border: 1px solid var(--primary-subtle);
    padding: 5px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}
.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
    color: var(--text-heading);
}
.hero-title .gradient-text {
    color: var(--primary);
}
.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.65;
}
.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
}
.hero-stat-number {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-heading);
}
.hero-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Minimal Light Hero Card */
.hero-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}
.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}
.hero-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Sections */
.section {
    padding: 60px 0;
}
.section-light { background: var(--bg-page); }
.section-white { background: #ffffff; }
.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 40px;
}
.section-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--primary);
    margin-bottom: 8px;
}
.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}
.section-desc {
    font-size: 15px;
    color: var(--text-muted);
}

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* Minimal Cards */
.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: #f1f5f9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card:hover .card-thumb img {
    transform: scale(1.05);
}
.card-thumb .badge-category {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}
.card-thumb .badge-level {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.ebook-card, .course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    line-height: 1.4;
}
.card-title a {
    color: var(--text-heading);
}
.card-title a:hover {
    color: var(--primary);
}
.card-text {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.price-box {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-current {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-heading);
}
.price-old {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}

/* E-Book Minimal Card */
.ebook-card .card-thumb {
    aspect-ratio: 16/9;
    background: #f1f5f9;
}

/* Blog Minimal Card */
.blog-card .card-thumb {
    aspect-ratio: 16/9;
}
.blog-author-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-author-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid var(--primary-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

/* Community Q&A */
.community-header-box {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 30px;
    color: var(--text-heading);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xs);
}
.community-verification-banner {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.question-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    transition: all 0.15s ease;
}
.question-item:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
}
.question-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 60px;
}
.stat-pill {
    width: 100%;
    text-align: center;
    padding: 4px 6px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}
.stat-pill .num {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-heading);
    display: block;
}
.stat-pill .label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
}
.stat-pill.solved {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.stat-pill.solved .num, .stat-pill.solved .label {
    color: #15803d;
}

.question-main {
    flex: 1;
}
.question-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.question-title a {
    color: var(--text-heading);
}
.question-title a:hover {
    color: var(--primary);
}
.question-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.question-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tag-badge {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.tag-badge:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary-subtle);
}
.question-author-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-light);
}

/* Discussion & Single Question */
.vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.vote-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.vote-btn:hover, .vote-btn.voted {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
.vote-count {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-heading);
}

.answer-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    display: flex;
    gap: 18px;
}
.answer-card.best-answer {
    border: 1px solid #86efac;
    background: #f0fdf4;
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
    vertical-align: middle;
}
.admin-table tr:hover td {
    background: #fafafa;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-heading);
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
textarea.form-control {
    min-height: 110px;
    resize: vertical;
}

/* Alerts */
.custom-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.alert-danger { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

/* Footer */
.footer {
    background: #ffffff;
    color: var(--text-body);
    padding: 60px 0 25px;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 35px;
    margin-bottom: 40px;
}
.footer-logo {
    color: var(--text-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-body);
}
.footer-contact-item i {
    color: var(--primary);
    margin-top: 3px;
}
.footer-col h4 {
    color: var(--text-heading);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
}
.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 8px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 13px;
}
.footer-links a:hover {
    color: var(--primary);
}
.footer-social-links a {
    color: var(--text-muted);
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}
.footer-social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}
.footer-social-links a.insta:hover {
    color: #e1306c;
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Rich Content */
.blog-rich-content {
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}
.blog-rich-content h2, .blog-rich-content h3, .blog-rich-content h4 {
    color: #0f172a;
    font-weight: 800;
    margin: 24px 0 10px;
    letter-spacing: -0.01em;
}
.blog-rich-content p { margin-bottom: 16px; }
.blog-rich-content pre {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #0f172a;
    margin: 18px 0;
}
.blog-rich-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--primary);
}
.blog-rich-content ul, .blog-rich-content ol {
    margin: 14px 0 18px 24px;
}
.blog-rich-content li { margin-bottom: 6px; }

/* LMS Video Classroom Layout */
.lms-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    min-height: calc(100vh - 60px);
}
.lms-player-col {
    padding: 30px;
    background: #090d16;
    overflow-y: auto;
}
.video-frame-box {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    margin-bottom: 25px;
    box-shadow: var(--shadow-xl);
}
.video-frame-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.lms-sidebar-col {
    background: #0f172a;
    border-left: 1px solid #1e293b;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px);
    position: sticky;
    top: 60px;
}
.lms-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #1e293b;
}
.lms-progress-bar {
    height: 6px;
    background: #1e293b;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}
.lms-progress-fill {
    height: 100%;
    background: #38bdf8;
    transition: width 0.3s;
}
.lms-curriculum-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.lms-section-title {
    padding: 12px 20px 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #64748b;
}
.lms-lesson-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.15s;
    border-left: 3px solid transparent;
}
.lms-lesson-item:hover {
    background: #1e293b;
}
.lms-lesson-item.active {
    background: #1e293b;
    border-left-color: #38bdf8;
}
.lesson-check-btn {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 15px;
    transition: color 0.15s;
}
.lesson-check-btn.completed {
    color: #10b981;
}

/* Desktop default for mobile-only elements */
.mobile-only-menu-actions {
    display: none;
}

@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .catalog-layout { grid-template-columns: 1fr !important; }
    .lms-wrapper { grid-template-columns: 1fr; }
    .lms-sidebar-col { height: auto; position: static; }
}

@media (max-width: 768px) {
    /* Topbar clean single-line on mobile */
    .topbar {
        padding: 5px 0;
        font-size: 11px;
    }
    .topbar .container {
        justify-content: center;
        text-align: center;
    }
    .topbar-contact {
        justify-content: center;
        gap: 12px;
        font-size: 11px;
        flex-wrap: wrap;
    }
    .topbar-contact a, .topbar-contact span {
        font-size: 11px;
    }
    .topbar-right {
        display: none !important;
    }

    /* Navbar & Mobile Header */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
    }
    .nav-wrapper {
        height: 60px;
    }
    .brand-logo img {
        height: 28px !important;
    }
    .desktop-auth-btn, .desktop-user-dropdown {
        display: none !important;
    }
    .nav-actions {
        gap: 8px;
    }
    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: var(--radius-md);
        border: 1px solid var(--border);
        background: #ffffff;
        color: var(--text-heading);
        font-size: 16px;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }
    .mobile-toggle:hover {
        background: var(--bg-subtle);
        color: var(--primary);
    }
    .cart-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    /* Mobile Dropdown Menu Drawer */
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        padding: 14px 18px 22px;
        border-bottom: 2px solid var(--border);
        box-shadow: 0 12px 28px rgba(0,0,0,0.1);
        flex-direction: column;
        gap: 4px;
        z-index: 9999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    .nav-menu.open {
        display: flex !important;
        animation: mobileMenuSlide 0.2s ease-out;
    }
    @keyframes mobileMenuSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .nav-menu a {
        padding: 10px 14px;
        border-radius: var(--radius-md);
        font-size: 14px;
        font-weight: 600;
        color: var(--text-heading);
        display: flex;
        align-items: center;
        text-decoration: none;
        transition: background 0.15s, color 0.15s;
    }
    .nav-menu a:hover, .nav-menu a.active {
        background: var(--primary-light);
        color: var(--primary);
    }
    .mobile-only-menu-actions {
        display: flex;
        flex-direction: column;
        gap: 4px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid var(--border-light);
    }

    /* Responsive Grids & Typography */
    .container {
        padding: 0 16px;
    }
    .grid-4, .grid-3, .grid-2, .kpi-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .catalog-layout {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    .hero-title {
        font-size: 26px !important;
        line-height: 1.25 !important;
    }
    .hero-desc {
        font-size: 14px !important;
    }
    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .section {
        padding: 35px 0;
    }
    .section-title {
        font-size: 22px !important;
    }
    .section-desc {
        font-size: 13px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

