/* ================================================================
   CourseHub — Premium Course Platform CSS
   Design: Refined educational SaaS, warm amber + deep navy
================================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:     #1a2744;
  --primary-lt:  #253558;
  --accent:      #f59e0b;
  --accent-dk:   #d97706;
  --accent-lt:   #fef3c7;
  --success:     #10b981;
  --danger:      #ef4444;
  --text:        #1e293b;
  --text-md:     #475569;
  --text-sm:     #64748b;
  --border:      #e2e8f0;
  --bg:          #f8fafc;
  --white:       #ffffff;
  --card-shadow: 0 2px 12px rgba(0,0,0,.07);
  --card-hover:  0 8px 32px rgba(0,0,0,.12);
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   18px;
  --transition:  .22s ease;
  --font-body:   'Plus Jakarta Sans', sans-serif;
  --font-serif:  'Instrument Serif', serif;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ─────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
       border-radius: var(--radius-sm); font-weight: 600; font-size: .95rem;
       transition: var(--transition); letter-spacing: .01em; }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: var(--accent-dk); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,158,11,.35); }
.btn-dark { background: var(--primary); color: var(--white); }
.btn-dark:hover { background: var(--primary-lt); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: .875rem; }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-buy { background: linear-gradient(135deg, #f59e0b, #d97706); color: var(--white);
           font-size: 1.1rem; padding: 16px 32px; border-radius: var(--radius);
           box-shadow: 0 6px 24px rgba(245,158,11,.4); }
.btn-buy:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(245,158,11,.5); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1db954; transform: translateY(-1px); }

/* ── Topbar ────────────────────────────────────────────── */
.topbar { background: var(--primary); color: rgba(255,255,255,.8); font-size: .8rem; padding: 7px 0; }
.topbar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar-inner span { display: flex; align-items: center; gap: 6px; }
.topbar-right { margin-left: auto; }
.topbar i { color: var(--accent); }

/* ── Navbar ────────────────────────────────────────────── */
.navbar { background: var(--white); border-bottom: 1px solid var(--border);
          position: sticky; top: 0; z-index: 1000;
          box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.navbar-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px;
              display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; }
.brand-text { font-size: 1.3rem; font-weight: 800; color: var(--primary); letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: .9rem;
               font-weight: 500; color: var(--text-md); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--accent-lt); }
.nav-cta { margin-left: 12px; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown > a { display: flex; align-items: center; gap: 5px; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white);
                 border: 1px solid var(--border); border-radius: var(--radius); min-width: 220px;
                 box-shadow: var(--card-hover); opacity: 0; visibility: hidden;
                 transform: translateY(-8px); transition: var(--transition); z-index: 200; }
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a { display: flex; align-items: center; gap: 10px; padding: 10px 16px;
                      font-size: .875rem; color: var(--text-md); transition: var(--transition); }
.dropdown-menu li a:hover { background: var(--accent-lt); color: var(--primary); border-radius: 0; }
.dropdown-menu i { width: 16px; color: var(--accent); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; padding: 4px;
             margin-left: auto; }
.hamburger span { display: block; height: 2px; background: var(--primary); border-radius: 2px;
                  transition: var(--transition); }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 900; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { background: linear-gradient(135deg, var(--primary) 0%, #2d4a8a 100%);
        color: var(--white); padding: 90px 0 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -80px; right: -80px;
                width: 500px; height: 500px; background: radial-gradient(circle, rgba(245,158,11,.15), transparent 70%);
                border-radius: 50%; }
.hero::after  { content: ''; position: absolute; bottom: -100px; left: -100px;
                width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,.04), transparent 70%);
                border-radius: 50%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(245,158,11,.2);
              border: 1px solid rgba(245,158,11,.4); color: var(--accent); border-radius: 50px;
              padding: 6px 16px; font-size: .82rem; font-weight: 600; margin-bottom: 20px; letter-spacing: .03em; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-family: var(--font-serif); font-weight: 400;
           line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); font-style: italic; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.hero-stat span { font-size: .8rem; color: rgba(255,255,255,.65); }
.hero-visual { position: relative; }
.hero-card { background: var(--white); border-radius: var(--radius-lg); padding: 28px;
             box-shadow: 0 20px 60px rgba(0,0,0,.25); position: relative; }
.hero-card-badge { position: absolute; top: -12px; right: 20px; background: var(--accent);
                   color: var(--primary); font-size: .75rem; font-weight: 700; padding: 5px 14px;
                   border-radius: 50px; }
.hero-course-img { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; background: var(--border); }
.hero-course-meta { margin-top: 16px; }
.hero-course-meta h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.hero-course-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.hero-course-price del { font-size: .85rem; color: var(--text-sm); font-weight: 400; margin-left: 6px; }
.floating-badge { position: absolute; background: var(--white); border-radius: 10px;
                  padding: 10px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.15); font-size: .78rem;
                  font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 8px; }
.fb-1 { bottom: -18px; left: -24px; }
.fb-2 { top: 30px; right: -24px; }
.fb-dot { width: 8px; height: 8px; border-radius: 50%; }
.fb-dot-green { background: var(--success); }
.fb-dot-amber { background: var(--accent); }

/* ── Section Titles ────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-label { display: inline-block; background: var(--accent-lt); color: var(--accent-dk);
                 font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
                 padding: 5px 14px; border-radius: 50px; margin-bottom: 14px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-family: var(--font-serif);
                     font-weight: 400; color: var(--primary); line-height: 1.25; }
.section-header h2 span { color: var(--accent-dk); font-style: italic; }
.section-header p { color: var(--text-sm); font-size: 1rem; margin-top: 10px; max-width: 540px; margin-inline: auto; }

/* ── Course Cards ──────────────────────────────────────── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.course-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
               box-shadow: var(--card-shadow); transition: var(--transition); overflow: hidden;
               display: flex; flex-direction: column; }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--card-hover); border-color: transparent; }
.course-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--border); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: .4s ease; }
.course-card:hover .course-thumb img { transform: scale(1.04); }
.course-badge { position: absolute; top: 10px; left: 10px; background: var(--accent);
                color: var(--primary); font-size: .7rem; font-weight: 700; padding: 3px 10px;
                border-radius: 4px; letter-spacing: .02em; }
.course-badge.featured { background: var(--primary); color: var(--white); }
.course-discount { position: absolute; top: 10px; right: 10px; background: var(--danger);
                   color: var(--white); font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.course-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.course-cat { font-size: .74rem; font-weight: 600; color: var(--accent-dk); text-transform: uppercase;
              letter-spacing: .06em; margin-bottom: 7px; }
.course-title { font-size: .97rem; font-weight: 700; color: var(--text); line-height: 1.4;
                margin-bottom: 10px; flex: 1; }
.course-title a:hover { color: var(--primary); }
.course-meta-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
                   font-size: .78rem; color: var(--text-sm); margin-bottom: 12px; }
.course-meta-row i { color: var(--accent); }
.stars { color: var(--accent); font-size: .8rem; }
.stars-sm { color: var(--accent); font-size: .72rem; }
.rating-text { font-weight: 700; color: var(--text); }
.course-footer { display: flex; align-items: center; justify-content: space-between;
                 padding-top: 12px; border-top: 1px solid var(--border); }
.price { font-size: 1.25rem; font-weight: 800; color: var(--primary); }
.price-orig { font-size: .8rem; font-weight: 400; color: var(--text-sm); text-decoration: line-through; margin-left: 6px; }
.btn-enroll { font-size: .8rem; padding: 8px 16px; }

/* ── Category Cards ────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.cat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
            padding: 24px 16px; text-align: center; transition: var(--transition); cursor: pointer; }
.cat-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 20px rgba(245,158,11,.15); }
.cat-icon { width: 52px; height: 52px; background: var(--accent-lt); border-radius: 14px;
            display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
            color: var(--accent-dk); margin: 0 auto 12px; transition: var(--transition); }
.cat-card:hover .cat-icon { background: var(--accent); color: var(--white); }
.cat-card h3 { font-size: .88rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-card span { font-size: .75rem; color: var(--text-sm); }

/* ── Trust Section ─────────────────────────────────────── */
.trust-bar { background: var(--primary); padding: 40px 0; }
.trust-bar .container { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.trust-item { display: flex; align-items: center; gap: 14px; color: var(--white); }
.trust-item-icon { width: 48px; height: 48px; background: rgba(245,158,11,.15);
                   border: 1px solid rgba(245,158,11,.3); border-radius: 12px;
                   display: flex; align-items: center; justify-content: center;
                   font-size: 1.2rem; color: var(--accent); flex-shrink: 0; }
.trust-item-text strong { display: block; font-size: .93rem; margin-bottom: 2px; }
.trust-item-text span { font-size: .77rem; color: rgba(255,255,255,.6); }

/* ── Course Detail ─────────────────────────────────────── */
.course-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.course-detail-sidebar { position: sticky; top: 88px; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
                overflow: hidden; box-shadow: var(--card-hover); }
.sidebar-thumb { aspect-ratio: 16/9; }
.sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-body { padding: 24px; }
.sidebar-price { font-size: 2rem; font-weight: 800; color: var(--primary); }
.sidebar-orig { color: var(--text-sm); text-decoration: line-through; font-size: .95rem; margin-left: 8px; }
.sidebar-discount { background: var(--danger); color: var(--white); font-size: .75rem;
                    font-weight: 700; padding: 3px 10px; border-radius: 4px; margin-left: 8px; }
.sidebar-includes { margin: 20px 0; }
.sidebar-includes li { display: flex; align-items: center; gap: 10px; padding: 7px 0;
                       border-bottom: 1px solid var(--border); font-size: .875rem; color: var(--text-md); }
.sidebar-includes li:last-child { border: none; }
.sidebar-includes i { color: var(--accent); width: 16px; }
.guarantee { text-align: center; margin-top: 16px; font-size: .78rem; color: var(--text-sm); }
.guarantee i { color: var(--success); }

.detail-hero { background: var(--primary); color: var(--white); padding: 52px 0 40px; margin-bottom: 0; }
.detail-hero-breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.detail-hero-breadcrumb a { color: var(--accent); }
.detail-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.3;
                  margin-bottom: 14px; max-width: 700px; }
.detail-hero-meta { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; font-size: .85rem; }
.detail-hero-meta i { color: var(--accent); }
.badge-level { background: rgba(245,158,11,.2); border: 1px solid rgba(245,158,11,.4);
               color: var(--accent); padding: 3px 12px; border-radius: 50px; font-size: .76rem; font-weight: 600; }

.learn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.learn-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--text-md); }
.learn-list i { color: var(--success); margin-top: 3px; flex-shrink: 0; }

.detail-section { margin-bottom: 36px; }
.detail-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary);
                     margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }

/* ── Reviews ───────────────────────────────────────────── */
.reviews-summary { display: flex; gap: 28px; align-items: center; background: var(--accent-lt);
                   border: 1px solid rgba(245,158,11,.2); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; }
.review-avg-score { font-size: 3.5rem; font-weight: 800; color: var(--primary); line-height: 1; }
.review-avg-label { font-size: .82rem; color: var(--text-sm); margin-top: 6px; }
.reviews-grid { display: grid; gap: 16px; }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.review-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary);
                 color: var(--white); display: flex; align-items: center; justify-content: center;
                 font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: .9rem; color: var(--text); }
.review-city { font-size: .76rem; color: var(--text-sm); }
.review-date { font-size: .76rem; color: var(--text-sm); margin-left: auto; }
.review-text { font-size: .875rem; color: var(--text-md); line-height: 1.65; }

/* ── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; color: var(--text);
                    margin-bottom: 7px; }
.form-control { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
                font-size: .95rem; font-family: var(--font-body); color: var(--text);
                background: var(--white); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(245,158,11,.15); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ── Alert ─────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-danger  { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }

/* ── Page Hero ─────────────────────────────────────────── */
.page-hero { background: linear-gradient(135deg, var(--primary), #2d4a8a); color: var(--white);
             padding: 56px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-family: var(--font-serif);
                font-weight: 400; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.75); font-size: 1rem; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; align-items: center;
              font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 12px; }
.breadcrumb a { color: var(--accent); }

/* ── Policy Pages ──────────────────────────────────────── */
.policy-content { max-width: 840px; margin: 0 auto; }
.policy-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin: 28px 0 12px; }
.policy-content h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.policy-content p  { color: var(--text-md); margin-bottom: 14px; line-height: 1.75; }
.policy-content ul { margin: 0 0 16px 20px; }
.policy-content ul li { color: var(--text-md); margin-bottom: 6px; list-style: disc; }
.policy-meta { background: var(--accent-lt); border: 1px solid rgba(245,158,11,.25);
               border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px; font-size: .85rem; color: var(--text-md); }

/* ── Contact Page ──────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-box { background: var(--primary); color: var(--white); border-radius: var(--radius-lg); padding: 36px; }
.contact-info-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-box p { color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 28px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cinfo-icon { width: 42px; height: 42px; background: rgba(245,158,11,.15); border-radius: 10px;
              display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.cinfo-text strong { display: block; font-size: .9rem; margin-bottom: 2px; }
.cinfo-text span, .cinfo-text a { font-size: .85rem; color: rgba(255,255,255,.65); }
.cinfo-text a:hover { color: var(--accent); }
.contact-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
                     padding: 36px; box-shadow: var(--card-shadow); }
.contact-form-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 24px; }

/* ── Admin ─────────────────────────────────────────────── */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--primary); color: var(--white); padding: 0; }
.admin-sidebar-brand { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-sidebar-brand .brand-text { color: var(--white); }
.admin-nav { padding: 16px 0; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px;
               font-size: .9rem; color: rgba(255,255,255,.7); transition: var(--transition); }
.admin-nav a:hover, .admin-nav a.active { color: var(--white); background: rgba(255,255,255,.08);
                                          border-left: 3px solid var(--accent); }
.admin-nav a i { width: 18px; }
.admin-nav .nav-section { padding: 12px 20px 6px; font-size: .7rem; font-weight: 700;
                           letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.admin-main { background: var(--bg); }
.admin-header { background: var(--white); border-bottom: 1px solid var(--border);
                padding: 0 28px; height: 65px; display: flex; align-items: center;
                justify-content: space-between; }
.admin-header h1 { font-size: 1.1rem; font-weight: 700; color: var(--primary); }
.admin-content { padding: 28px; }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
              box-shadow: var(--card-shadow); }
.admin-card-header { padding: 16px 24px; border-bottom: 1px solid var(--border);
                     display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.admin-card-body { padding: 24px; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
             padding: 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--card-shadow); }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center;
             justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-icon.amber { background: var(--accent-lt); color: var(--accent-dk); }
.stat-icon.navy  { background: #e8edff; color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.red   { background: #fee2e2; color: var(--danger); }
.stat-info strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat-info span { font-size: .8rem; color: var(--text-sm); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--bg); padding: 11px 16px; text-align: left;
                 font-size: .78rem; font-weight: 700; color: var(--text-sm);
                 text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 13px 16px; font-size: .875rem; border-bottom: 1px solid var(--border);
                 color: var(--text-md); vertical-align: middle; }
.data-table tr:hover td { background: var(--bg); }
.data-table img { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px;
         border-radius: 50px; font-size: .72rem; font-weight: 600; }
.badge-active   { background: #d1fae5; color: #065f46; }
.badge-inactive { background: #fee2e2; color: #991b1b; }
.badge-featured { background: var(--accent-lt); color: var(--accent-dk); }
.action-btns { display: flex; gap: 6px; }
.btn-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex;
            align-items: center; justify-content: center; font-size: .85rem; transition: var(--transition); }
.btn-icon.edit { background: #dbeafe; color: #1d4ed8; }
.btn-icon.edit:hover { background: #1d4ed8; color: var(--white); }
.btn-icon.del  { background: #fee2e2; color: var(--danger); }
.btn-icon.del:hover  { background: var(--danger); color: var(--white); }

/* ── Payment ───────────────────────────────────────────── */
.payment-layout { max-width: 820px; margin: 0 auto; }
.payment-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
                overflow: hidden; box-shadow: var(--card-hover); }
.payment-card-header { background: linear-gradient(135deg, var(--primary), #2d4a8a);
                       color: var(--white); padding: 28px; display: flex; align-items: center; gap: 16px; }
.payment-card-header i { font-size: 1.8rem; color: var(--accent); }
.payment-card-header h2 { font-size: 1.25rem; font-weight: 700; }
.payment-card-body { padding: 32px; }
.order-summary { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
                 padding: 20px; margin-bottom: 28px; }
.order-row { display: flex; justify-content: space-between; padding: 8px 0;
             border-bottom: 1px solid var(--border); font-size: .9rem; }
.order-row:last-child { border: none; font-weight: 700; font-size: 1rem; color: var(--primary); }
.secure-badges { display: flex; gap: 20px; align-items: center; justify-content: center;
                 margin-top: 20px; flex-wrap: wrap; }
.secure-badge { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-sm); }
.secure-badge i { color: var(--success); }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: #0f1929; color: rgba(255,255,255,.75); }
.footer-top { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }
.footer-brand .brand-text { color: var(--white); }
.footer-brand-link { margin-bottom: 16px; display: inline-flex; }
.footer-brand p { font-size: .85rem; line-height: 1.75; color: rgba(255,255,255,.55); margin-top: 14px; }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-links a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08);
                  display: flex; align-items: center; justify-content: center; font-size: .9rem;
                  color: rgba(255,255,255,.6); transition: var(--transition); }
.social-links a:hover { background: var(--accent); color: var(--primary); }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: var(--white); margin-bottom: 16px; letter-spacing: .02em; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.contact-list li { display: flex; gap: 10px; font-size: .83rem; color: rgba(255,255,255,.55); margin-bottom: 10px; align-items: flex-start; }
.contact-list i { color: var(--accent); margin-top: 3px; flex-shrink: 0; width: 14px; }
.contact-list a { color: rgba(255,255,255,.55); }
.contact-list a:hover { color: var(--accent); }
.footer-trust { background: rgba(0,0,0,.2); padding: 18px 0; border-top: 1px solid rgba(255,255,255,.06); }
.trust-icons { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: center; }
.trust-icons span { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: rgba(255,255,255,.5); }
.trust-icons i { color: var(--accent); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.06); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.4); }
.payment-badges { display: flex; gap: 8px; }
.payment-badges img { height: 24px; border-radius: 4px; }

/* ── Filter Bar ────────────────────────────────────────── */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 0; }
.filter-inner { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.filter-inner .form-control { max-width: 200px; padding: 9px 12px; font-size: .85rem; }
.results-count { margin-left: auto; font-size: .85rem; color: var(--text-sm); font-weight: 500; }

/* ── Misc ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 28px 0; }
.text-muted { color: var(--text-sm); font-size: .85rem; }
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-sm); }
.empty-state i { font-size: 3rem; color: var(--border); margin-bottom: 14px; }
.accordion details { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 8px; }
.accordion summary { padding: 14px 18px; font-weight: 600; cursor: pointer; font-size: .9rem;
                     list-style: none; display: flex; justify-content: space-between; }
.accordion summary::after { content: '+'; font-size: 1.2rem; color: var(--accent); }
.accordion details[open] summary::after { content: '−'; }
.accordion details p { padding: 0 18px 16px; font-size: .875rem; color: var(--text-md); line-height: 1.65; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .course-detail-layout { grid-template-columns: 1fr; }
  .course-detail-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 0; right: 0;
                    width: 280px; height: 100vh; background: var(--white); z-index: 950;
                    padding: 24px 20px; box-shadow: -4px 0 24px rgba(0,0,0,.15); overflow-y: auto; }
  .nav-links.open .dropdown-menu { position: static; opacity: 1; visibility: visible; box-shadow: none;
                                    border: none; background: var(--bg); transform: none; margin-top: 4px; }
  .mobile-overlay.open { display: block; }
  .hero { padding: 60px 0 50px; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 18px; }
  .hero-stat strong { font-size: 1.3rem; }
  .learn-list { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .topbar-right { display: none; }
  .topbar-inner { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .reviews-summary { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .courses-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: 1fr; }
}
