@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

@font-face {
    font-family: 'Siyam Rupali';
    src: url('../fonts/siyam-rupali-v1.070.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* =====================
   DESIGN TOKENS
   ===================== */
:root {
    --primary: #1e1b4b;
    --primary-dark: #12103a;
    --primary-light: #312e81;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --success: #16a34a;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
    --radius: 12px;
    --radius-sm: 8px;
}

/* =====================
   BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html, body,
h1, h2, h3, h4, h5, h6,
p, span, a, li, td, th, label, small,
button, .btn, .badge, .nav-link, .navbar-brand,
input, select, textarea, .form-control, .form-select,
.dropdown-item, .alert, .card, .modal {
    font-family: 'Siyam Rupali', 'Inter', sans-serif !important;
}
body {
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}
a { color: inherit; }
img { max-width: 100%; }

/* =====================
   TOP INFO BAR
   ===================== */
.topbar-strip {
    background: var(--primary);
    color: rgba(255,255,255,0.75);
    font-size: 0.78rem;
    padding: 6px 0;
}
.topbar-strip .topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-strip span { display: flex; align-items: center; gap: 5px; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.topbar-right a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 1rem; transition: color 0.2s; }
.topbar-right a:hover { color: #fff; }
.topbar-result-btn {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.75rem !important; font-weight: 700;
    background: var(--accent); color: #fff !important;
    padding: 3px 12px; border-radius: 20px;
    text-decoration: none; transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.topbar-result-btn:hover { background: var(--accent-hover); color: #fff !important; transform: translateY(-1px); }

/* =====================
   NAVBAR
   ===================== */
.main-navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(30,27,75,0.08);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.main-navbar .container { min-height: 68px; display: flex; align-items: center; }
.navbar-brand { text-decoration: none !important; padding: 0; margin-right: 28px; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.brand-img { height: 54px; width: auto; max-width: 340px; object-fit: contain; display: block; }
.brand-icon { font-size: 1.9rem; color: var(--accent); line-height: 1; }
.brand-name { display: block; font-size: 1.05rem; font-weight: 800; color: var(--primary); line-height: 1.1; letter-spacing: -0.3px; }
.brand-sub { display: block; font-size: 0.65rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.2px; }

.main-navbar .navbar-nav .nav-link {
    font-weight: 600;
    color: #374151;
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem !important;
    border-radius: var(--radius-sm);
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}
.main-navbar .navbar-nav .nav-link:hover { background: #f1f5f9; color: var(--primary); }
.main-navbar .navbar-nav .nav-link.nav-admin { color: var(--accent); font-weight: 700; }

.navbar-toggler { border: none; color: var(--primary); font-size: 1.4rem; line-height: 1; padding: 6px; }
.navbar-toggler:focus { box-shadow: none; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

/* =====================
   BUTTONS
   ===================== */
.btn-accent {
    background: var(--accent);
    color: #fff !important;
    border: none;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    text-decoration: none !important;
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234,88,12,0.35);
}
.btn-outline-primary {
    border: 1.5px solid var(--primary);
    color: var(--primary) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: transparent;
    text-decoration: none !important;
    transition: background 0.18s, color 0.18s;
}
.btn-outline-primary:hover { background: var(--primary); color: #fff !important; }

/* =====================
   CONTENT WRAPPER
   ===================== */
.content-wrapper { min-height: calc(100vh - 68px); }

/* =====================
   FLASH MESSAGES
   ===================== */
.flash-wrap { padding: 0 0 4px; }
.alert { border: none; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; padding: 10px 16px; }
.alert-success { background: #f0fdf4; color: #15803d; border-left: 3px solid #16a34a; }
.alert-danger  { background: #fef2f2; color: #dc2626; border-left: 3px solid #ef4444; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border-left: 3px solid #3b82f6; }
.alert-warning { background: #fffbeb; color: #92400e; border-left: 3px solid #f59e0b; }

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 55%, #4338ca 100%);
    color: #fff;
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(234,88,12,0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(99,102,241,0.2) 0%, transparent 50%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234,88,12,0.2);
    border: 1px solid rgba(234,88,12,0.45);
    color: #fed7aa;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}
.hero-highlight { color: #fdba74; }
.hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin-bottom: 30px;
    line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-actions .btn { padding: 12px 26px; font-size: 0.9rem; font-weight: 700; }
.hero-actions .btn-outline-light {
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff !important;
    background: transparent;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}
.hero-actions .btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.8); }

.hero-meta {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat-num { display: block; font-size: 1.55rem; font-weight: 800; color: #fdba74; line-height: 1; }
.hero-stat-lbl { font-size: 0.75rem; color: rgba(255,255,255,0.6); font-weight: 500; margin-top: 3px; }

/* Hero Decoration */
.hero-deco {
    position: relative;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-deco-main { position: relative; z-index: 2; width: 290px; }
.hero-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 22px;
    color: #fff;
}
.hero-card-icon {
    width: 48px; height: 48px;
    background: rgba(234,88,12,0.3);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.hero-progress-bar {
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    height: 6px;
    margin-bottom: 6px;
    overflow: hidden;
}
.hero-progress-fill { height: 100%; background: #fdba74; border-radius: 6px; }

.hero-deco-float {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 11px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: #fff;
    z-index: 3;
}
.hero-deco-float.f1 { top: 24px; right: -24px; animation: floatY 3s ease-in-out infinite; }
.hero-deco-float.f2 { bottom: 64px; left: -34px; animation: floatY 3s ease-in-out infinite 1.5s; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

/* =====================
   HERO VIDEO (uniqueit style)
   ===================== */
.hero-vid-box { width: 100%; }

.hero-vid-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.22);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    transition: transform 0.3s;
}
.hero-vid-container:hover { transform: translateY(-4px); }

.hero-vid-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero-vid-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.35);
    gap: 14px;
}
.hero-vid-container.no-img .hero-vid-placeholder { display: flex; }
.hvp-icons { display: flex; gap: 18px; font-size: 2.4rem; }
.hero-vid-placeholder p { font-size: 0.8rem; margin: 0; }

.hero-vid-play-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s;
}
.hero-vid-container:hover .hero-vid-play-wrap { background: rgba(0,0,0,0.32); }

.hero-vid-play-btn {
    width: 84px; height: 84px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: #fff;
    padding-left: 7px;
    box-shadow: 0 8px 40px rgba(234,88,12,0.65), 0 0 0 14px rgba(234,88,12,0.18);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hero-vid-container:hover .hero-vid-play-btn {
    transform: scale(1.12);
    box-shadow: 0 12px 50px rgba(234,88,12,0.8), 0 0 0 18px rgba(234,88,12,0.22);
}

.hero-video-frame {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.22);
    box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.hero-video-frame .ratio { border-radius: 17px; overflow: hidden; }

/* =====================
   STATS SECTION
   ===================== */
.stats-section {
    background: #fff;
    padding: 44px 0;
    border-bottom: 1px solid var(--border);
}
.stat-col { position: relative; }
.stat-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 50px;
    background: var(--border);
}
.stat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
}
.stat-icon-wrap {
    width: 54px; height: 54px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}
.stat-icon-wrap.blue   { background: #eff6ff; color: #2563eb; }
.stat-icon-wrap.orange { background: #fff7ed; color: var(--accent); }
.stat-icon-wrap.green  { background: #f0fdf4; color: var(--success); }
.stat-icon-wrap.purple { background: #f5f3ff; color: #7c3aed; }

.stat-number { font-size: 1.65rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-label  { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top: 4px; }

@media (max-width: 767px) {
    .stat-col:not(:last-child)::after { display: none; }
    .stat-col { border-bottom: 1px solid var(--border); }
    .stat-col:last-child { border-bottom: none; }
    .stat-box { padding: 12px 16px; }
}

/* =====================
   SECTION COMPONENTS
   ===================== */
.section-header { margin-bottom: 36px; }
.section-badge {
    display: inline-block;
    background: #fff7ed;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); margin: 0 0 8px; line-height: 1.2; }
.section-sub   { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.section-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: gap 0.2s, color 0.2s;
}
.section-link:hover { gap: 9px; color: var(--accent-hover); }

/* =====================
   POPULAR COURSES
   ===================== */
.courses-section { padding: 64px 0; }

.course-card-new {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.course-card-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #c7d2fe;
}
.course-thumb-new {
    height: 156px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: rgba(255,255,255,0.6);
    overflow: hidden;
}
.course-thumb-new .thumb-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.thumb-grad-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.thumb-grad-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.thumb-grad-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.thumb-grad-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.thumb-grad-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.thumb-grad-6 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }

.course-type-badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
.course-body-new {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.course-title-new {
    font-size: 0.93rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 9px;
    line-height: 1.45;
}
.course-meta-row {
    display: flex;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.course-meta-row span { display: flex; align-items: center; gap: 4px; }
.course-desc-new {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 12px;
    line-height: 1.55;
    flex: 1;
}
.course-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.stars { color: #f59e0b; font-size: 0.82rem; letter-spacing: 1px; }
.rating-count { font-size: 0.73rem; color: var(--text-muted); }
.course-footer-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.course-price-new { font-size: 1.1rem; font-weight: 800; color: var(--success); display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-old { font-size: 0.82rem; font-weight: 600; color: #9ca3af; text-decoration: line-through; }
.course-off-badge {
    position: absolute; top: 12px; right: 12px;
    background: #dc2626; color: #fff;
    font-size: 0.72rem; font-weight: 800;
    padding: 3px 9px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(220,38,38,0.4);
    z-index: 2;
}
.btn-enroll {
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    display: inline-block;
}
.btn-enroll:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); }

/* =====================
   WHY CHOOSE US
   ===================== */
.why-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 68px 0;
    color: #fff;
}
.feature-box {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    height: 100%;
    transition: background 0.2s;
}
.feature-box:hover { background: rgba(255,255,255,0.1); }
.feat-icon {
    width: 44px; height: 44px;
    background: rgba(234,88,12,0.25);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fdba74;
    flex-shrink: 0;
}
.feat-title { font-size: 0.9rem; font-weight: 700; margin: 0 0 5px; color: #fff; }
.feat-desc  { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin: 0; line-height: 1.55; }

/* feature-box on light sections (About page etc.) — readable dark text */
.courses-grid-section .feature-box {
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}
.courses-grid-section .feature-box:hover { background: #fff; box-shadow: 0 8px 26px rgba(0,0,0,0.09); }
.courses-grid-section .feat-icon { background: rgba(234,88,12,0.12); color: var(--accent, #ea580c); }
.courses-grid-section .feat-title { color: var(--primary, #1e293b); }
.courses-grid-section .feat-desc  { color: var(--text-muted, #64748b); }

/* =====================
   PAGE HERO (inner pages)
   ===================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    padding: 40px 0 44px;
}
.page-hero h1 { font-size: 1.75rem; font-weight: 800; margin: 0 0 6px; }
.page-hero p  { color: rgba(255,255,255,0.65); margin: 0; font-size: 0.88rem; }
.page-hero .page-hero-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* =====================
   COURSES PAGE SEARCH
   ===================== */
.courses-grid-section { padding: 40px 0 60px; }
.search-bar-new {
    display: flex;
    gap: 10px;
    max-width: 460px;
    width: 100%;
}
.search-bar-new .form-control {
    border-radius: var(--radius-sm) !important;
    border: 1.5px solid var(--border);
    padding: 9px 14px;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.12);
    color: #fff;
    transition: border-color 0.2s;
}
.search-bar-new .form-control::placeholder { color: rgba(255,255,255,0.5); }
.search-bar-new .form-control:focus { border-color: rgba(255,255,255,0.7); box-shadow: none; background: rgba(255,255,255,0.15); }
.search-bar-new .btn-accent { padding: 9px 20px; flex-shrink: 0; border-radius: var(--radius-sm); }

/* =====================
   AUTH PAGES
   ===================== */
.auth-section {
    min-height: calc(100vh - 68px - 42px);
    display: flex;
    align-items: center;
    padding: 50px 0;
    background: var(--bg-page);
}
.auth-card {
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 36px;
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
}
.auth-logo { text-align: center; margin-bottom: 6px; }
.auth-logo-icon {
    width: 56px; height: 56px;
    background: #fff7ed;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem; color: var(--accent);
    margin: 0 auto 10px;
}
.auth-title { text-align: center; font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.auth-sub { text-align: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.auth-divider span { flex: 1; height: 1px; background: var(--border); }
.auth-divider small { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.form-label { font-weight: 600; font-size: 0.82rem; color: var(--text-dark); margin-bottom: 5px; display: block; }
.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 13px;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    display: block;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30,27,75,0.07);
    outline: none;
}

/* =====================
   DASHBOARD
   ===================== */
.dashboard-section { padding: 40px 0; }
.enroll-course-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}
.enroll-course-card:hover { box-shadow: var(--shadow-md); }

/* =====================
   ADMIN PANEL
   ===================== */
.admin-wrap { display: flex; min-height: calc(100vh - 68px); }
.admin-sidebar { width: 240px; background: var(--primary-dark); color: #94a3b8; flex-shrink: 0; }
.admin-sidebar .sidebar-brand {
    padding: 18px 16px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-sidebar .sidebar-brand i { color: var(--accent); font-size: 1.2rem; }
.admin-sidebar a {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: .65rem 1.1rem;
    font-size: 0.855rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.admin-sidebar a i { font-size: 0.95rem; width: 16px; text-align: center; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.07); color: #fff; }
/* badge styles now handled via inline style in admin_header.php */
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(234,88,12,0.25), 0 2px 6px rgba(234,88,12,0.4); }
    50%       { box-shadow: 0 0 0 5px rgba(234,88,12,0.12), 0 2px 8px rgba(234,88,12,0.5); }
}
.admin-content { flex: 1; padding: 1.5rem 2rem; background: var(--bg-page); overflow-x: auto; }
.stat-card { border: none; border-radius: var(--radius); color: #fff; }

/* =====================
   CERTIFICATE
   ===================== */
.certificate {
    max-width: 900px; margin: 2rem auto; background: #fff;
    border: 14px solid #b8860b; padding: 3rem; text-align: center;
    box-shadow: 0 0 20px rgba(0,0,0,.12);
    border-radius: 12px;
}
.certificate h1 { font-size: 2.5rem; color: #b8860b; letter-spacing: 2px; font-weight: 800; }
.certificate .student-name { font-size: 2rem; color: var(--text-dark); border-bottom: 2px dashed #999; display: inline-block; padding: 0 2rem .3rem; }

/* =====================
   SITE FOOTER
   ===================== */
.site-footer { background: #0d0c1d; color: rgba(255,255,255,0.65); }
.footer-main { padding: 58px 0 40px; }

.footer-brand { font-size: 1.1rem; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.footer-brand i { color: var(--accent); font-size: 1.35rem; }
.footer-logo-img { height: 52px; width: auto; max-width: 220px; display: block; }

/* ---- Back to Top ---- */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--accent, #ea580c);
    color: #fff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity .25s, transform .25s, visibility .25s, background .2s;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    z-index: 1050;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--primary, #4f46e5); }
@media (max-width: 576px) {
    .back-to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; font-size: 1.1rem; }
}
.footer-desc { font-size: 0.82rem; line-height: 1.75; color: rgba(255,255,255,0.5); max-width: 280px; }

.social-links { display: flex; gap: 9px; margin-top: 16px; }
.social-links a {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}
.social-links a:hover { background: var(--accent); color: #fff; }

.footer-heading { font-size: 0.72rem; font-weight: 800; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 9px; font-size: 0.82rem; display: flex; align-items: flex-start; gap: 5px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-links i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.payment-badges { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.pay-badge {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.footer-newsletter-input {
    background: rgba(255,255,255,0.07) !important;
    border: 1.5px solid rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border-radius: var(--radius-sm) !important;
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,0.3) !important; }
.footer-newsletter-input:focus { border-color: var(--accent) !important; box-shadow: none !important; background: rgba(255,255,255,0.1) !important; }

.footer-bottom {
    background: #07060f;
    padding: 14px 0;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.28);
}

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 991px) {
    .hero-title { font-size: 2.1rem; }
    .topbar-strip { display: none; }
    .main-navbar .navbar-collapse { background: #fff; padding: 12px; border-top: 1px solid var(--border); margin-top: 8px; border-radius: var(--radius-sm); }
    .nav-actions { margin-top: 10px; }
}
@media (max-width: 767px) {
    .hero-section { padding: 50px 0 60px; }
    .hero-title { font-size: 1.7rem; }
    .hero-meta { gap: 18px; padding-top: 22px; }
    .stat-divider { display: none; }
    .stats-section { padding: 36px 0; }
    .courses-section { padding: 48px 0; }
    .admin-sidebar { width: 190px; }
    .admin-content { padding: 1rem; }
    .auth-card { padding: 24px 20px; }
    .footer-main { padding: 40px 0 28px; }
}

@media print {
    nav, .site-footer, .no-print, .topbar-strip { display: none !important; }
    body { background: #fff; }
    .certificate { box-shadow: none; }
}
