/* Fonts header.php er <link> diye load hoy (druto, kom flash) */

@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 {
    /* Frontend LX theme er sathe milano — blue brand palette */
    --primary: #12308F;
    --primary-dark: #0A1B3D;
    --primary-light: #2E63E7;
    --accent: #2E63E7;
    --accent-hover: #2453C9;
    --success: #16a34a;
    --bg-page: #f4f7fe;
    --bg-card: #ffffff;
    --text-dark: #0A1B3D;
    --text-muted: #5A6B87;
    --border: #E3EAF7;
    --shadow-sm: 0 1px 3px rgba(18,48,143,.06), 0 1px 2px rgba(18,48,143,.04);
    --shadow-md: 0 4px 16px rgba(18,48,143,.08);
    --shadow-lg: 0 8px 32px rgba(18,48,143,.12);
    --radius: 12px;
    --radius-sm: 8px;

    /* Bootstrap primary override — btn/badge/text-primary sob blue hobe */
    --bs-primary: #2E63E7;
    --bs-primary-rgb: 46, 99, 231;
    --bs-link-color: #2E63E7;
    --bs-link-color-rgb: 46, 99, 231;
    --bs-link-hover-color: #2453C9;
}

/* ===== Bootstrap component gulo brand blue e ===== */
.btn-primary {
    --bs-btn-bg: #2E63E7; --bs-btn-border-color: #2E63E7;
    --bs-btn-hover-bg: #2453C9; --bs-btn-hover-border-color: #2453C9;
    --bs-btn-active-bg: #1F49B0; --bs-btn-active-border-color: #1F49B0;
    --bs-btn-disabled-bg: #2E63E7; --bs-btn-disabled-border-color: #2E63E7;
}
.btn-outline-primary {
    --bs-btn-color: #2E63E7; --bs-btn-border-color: #2E63E7;
    --bs-btn-hover-bg: #2E63E7; --bs-btn-hover-border-color: #2E63E7;
    --bs-btn-active-bg: #2E63E7; --bs-btn-active-border-color: #2E63E7;
}
.text-primary { color: #2E63E7 !important; }
.bg-primary { background-color: #2E63E7 !important; }
.badge.bg-primary, .badge.text-bg-primary { background-color: #2E63E7 !important; }
.bg-primary.bg-opacity-10 { background-color: rgba(46,99,231,.1) !important; }
.nav-tabs .nav-link.active { color: #2E63E7; }
.form-check-input:checked { background-color: #2E63E7; border-color: #2E63E7; }
.form-control:focus, .form-select:focus {
    border-color: #7FA5F2; box-shadow: 0 0 0 .25rem rgba(46,99,231,.18);
}
.form-switch .form-check-input:focus { border-color: #7FA5F2; }

/* =====================
   BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; }
html, body,
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: 'Hind Siliguri', 'Inter', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
}
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    background: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    letter-spacing: 0;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
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-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;
}
.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); }
.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; }

/* =====================
   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 navbar — frontend topbar er moto navy→blue gradient */
nav.navbar.bg-dark {
    background: linear-gradient(90deg, #0A1B3D 0%, #12308F 55%, #2E63E7 100%) !important;
    box-shadow: 0 2px 14px rgba(10,27,61,.18);
}
.admin-wrap { display: flex; min-height: calc(100vh - 68px); background: var(--bg-page); }
.admin-sidebar {
    width: 240px; color: #A9BBDE; flex-shrink: 0;
    background: linear-gradient(180deg, #0A1B3D 0%, #0d2350 100%);
}
.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 { background: rgba(46,99,231,0.14); color: #fff; }
.admin-sidebar a.active {
    background: linear-gradient(90deg, rgba(46,99,231,0.28), rgba(46,99,231,0.05));
    color: #fff; box-shadow: inset 3px 0 0 #4F8AF9;
}
/* 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-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; }
}


/* ═══════════ ADMIN PANEL RESPONSIVE ═══════════ */
.lx-adm-toggle { display: none; }

/* ≤1199px (tablet + choto laptop, jemon 1080px) — sidebar hamburger drawer hobe,
   jate desktop sidebar cramped/beke na jay */
@media (max-width: 1199.98px) {
    /* Hamburger button */
    .lx-adm-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 38px;
        background: rgba(255,255,255,0.1);
        border: 1px solid rgba(255,255,255,0.25);
        border-radius: 8px;
        color: #fff;
        font-size: 1.15rem;
        cursor: pointer;
    }
    /* Sidebar -> off-canvas drawer */
    .admin-sidebar {
        position: fixed;
        top: 0; left: -270px;
        width: 260px !important;
        height: 100vh;
        z-index: 1050;
        overflow-y: auto;
        transition: left .28s ease;
        box-shadow: 0 0 40px rgba(0,0,0,.35);
        padding-top: 10px;
    }
    .admin-sidebar.lx-open { left: 0; }
    .admin-sidebar a { padding: .85rem 1.2rem; font-size: 0.95rem; }
    /* Backdrop */
    .lx-adm-backdrop {
        position: fixed; inset: 0;
        background: rgba(6,15,44,.55);
        z-index: 1040;
        opacity: 0; visibility: hidden;
        transition: opacity .25s;
    }
    .lx-adm-backdrop.show { opacity: 1; visibility: visible; }
    /* Content full width */
    .admin-wrap { display: block; }
    .admin-content { padding: 1rem .9rem; }
    /* Table gulo scroll korbe, bhangbe na */
    .admin-content table { min-width: 620px; }
    .admin-content .table-responsive,
    .admin-content .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 575.98px) {
    /* Top navbar compact */
    .navbar.navbar-dark .navbar-brand { font-size: .9rem; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lx-adm-name { display: none; }           /* admin naam lukabe */
    .lx-adm-sitelink span { display: none; }  /* "সাইট দেখুন" text lukabe, icon thakbe */
    .admin-content { padding: .85rem .6rem; }
    .admin-content h3 { font-size: 1.15rem; }
    .admin-content .btn { font-size: .82rem; }
    /* Form row gulo stack hobe (Bootstrap col-md already kore, safety) */
    .modal-dialog { margin: .6rem; }
    /* Card header gulo choto screen e wrap korbe */
    .admin-content .card-header { flex-wrap: wrap; gap: 6px; font-size: .95rem; }
    /* Legal editor: preview choto, toolbar compact */
    .lx-prev { max-height: 260px; }
    .lx-legal-toolbar button { font-size: .74rem; padding: 3px 8px; }
    /* Nav-tabs onek button hole scroll korbe, bhangbe na */
    .nav-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .nav-tabs .nav-link { white-space: nowrap; }
    /* Bemানান boro number/table cell */
    .admin-content .table td, .admin-content .table th { font-size: .82rem; }
}

/* Admin content kokhono horizontal overflow kore body bhangbe na */
.admin-content { max-width: 100%; }
.admin-content .row { --bs-gutter-x: 1rem; }

/* ═══ Boro screen (1920px etc.) — content ke container e boondho kore center e ═══
   Jate wide monitor e line gulo besi lomba/stretch na hoy, porte aram hoy. */
@media (min-width: 1600px) {
    .admin-content {
        max-width: none;   /* full width — prantho theke prantho */
        margin-inline: 0;
        width: 100%;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
