/* ============================================================
   Hi-Vibe LMS — Global Stylesheet
   Palette: ink #191D32 | primary #4338CA | accent #FFB020
            bg #F6F6FB  | success #16A34A | danger #DC2626
   Type: Bricolage Grotesque (display) + Inter (body)
   ============================================================ */
:root {
  --ink: #191D32;
  --ink-2: #232849;
  --primary: #4338CA;
  --primary-soft: #EEF0FF;
  --accent: #FFB020;
  --accent-soft: #FFF4DC;
  --bg: #F6F6FB;
  --card: #FFFFFF;
  --line: #E7E8F2;
  --muted: #6B7089;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(25,29,50,.05), 0 8px 24px -12px rgba(25,29,50,.12);
}

* { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14.5px;
}
h1,h2,h3,h4,.display-font {
  font-family: 'Bricolage Grotesque', 'Inter', sans-serif;
  letter-spacing: -.01em;
}
a { text-decoration: none; }

/* ============ PANEL LAYOUT ============ */
.panel-wrap { display: flex; min-height: 100vh; }

.sidebar {
  width: 256px; flex-shrink: 0;
  background: var(--ink);
  color: #C9CCE3;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar-brand {
  padding: 22px 22px 18px;
  display: flex; align-items: center; gap: 10px;
  color: #fff;
}
.sidebar-brand .logo-dot {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7C6CFF 60%, var(--accent));
  display: grid; place-items: center; font-weight: 800; color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
}
.sidebar-brand .brand-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 17px; line-height: 1.1; }
.sidebar-brand .brand-role { font-size: 11px; color: #8A90B8; letter-spacing: .08em; text-transform: uppercase; }

.sidebar-nav { padding: 8px 14px; overflow-y: auto; flex: 1; }
.sidebar-nav .nav-label {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #7A80AC; padding: 16px 10px 6px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 11px;
  color: #C9CCE3; padding: 9.5px 12px; border-radius: 10px;
  font-size: 13.8px; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.sidebar-nav a i { font-size: 16px; width: 20px; text-align: center; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(90deg, var(--primary), #5B4EE8);
  color: #fff; box-shadow: 0 6px 16px -6px rgba(67,56,202,.55);
}
.sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-foot .btn-logout {
  width: 100%; border: 1px solid rgba(255,255,255,.14); color: #C9CCE3;
  background: transparent; border-radius: 10px; padding: 8px; font-size: 13.5px;
}
.sidebar-foot .btn-logout:hover { background: rgba(220,38,38,.15); color: #fff; border-color: rgba(220,38,38,.4); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 14px 26px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar .page-title { font-size: 18px; font-weight: 700; margin: 0; }
.topbar .user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 6px 14px 6px 6px; border-radius: 999px;
}
.topbar .user-chip .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}
.topbar .user-chip .u-name { font-size: 13px; font-weight: 600; line-height: 1.1; }
.topbar .user-chip .u-role { font-size: 11px; color: var(--muted); text-transform: capitalize; }

.content { padding: 26px; }

/* ============ CARDS & STATS ============ */
.card-x {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-x .card-x-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.card-x .card-x-head h5 { margin: 0; font-size: 15px; font-weight: 700; }
.card-x .card-x-body { padding: 20px; }

.stat-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-card::before {
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--sc, var(--primary));
}
.stat-card .sc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-size: 19px;
  background: color-mix(in srgb, var(--sc, var(--primary)) 12%, #fff);
  color: var(--sc, var(--primary));
}
.stat-card .sc-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 12px;
  font-variant-numeric: tabular-nums;
}
.stat-card .sc-label { color: var(--muted); font-size: 12.8px; margin-top: 2px; }

/* ============ TABLES ============ */
.table-x { margin: 0; }
.table-x thead th {
  background: var(--bg); font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .07em; color: var(--muted); border-bottom: 1px solid var(--line) !important;
  padding: 10px 16px; font-weight: 600;
}
.table-x tbody td { padding: 12px 16px; font-size: 13.5px; vertical-align: middle; border-color: var(--line); }

.badge-soft { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge-soft.paid, .badge-soft.active, .badge-soft.approved { background: #E7F6EC; color: var(--success); }
.badge-soft.pending { background: var(--accent-soft); color: #A16207; }
.badge-soft.failed, .badge-soft.blocked, .badge-soft.rejected { background: #FDE8E8; color: var(--danger); }

/* ============ BUTTONS ============ */
/* Defined via Bootstrap CSS variables so .btn:hover/.btn:active
   never reset the background to transparent (button "disappearing" bug) */
.btn-primary-x {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #4F46E5;
  --bs-btn-hover-border-color: #4F46E5;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #3730A3;
  --bs-btn-active-border-color: #3730A3;
  --bs-btn-focus-shadow-rgb: 67, 56, 202;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #9490D8;
  --bs-btn-disabled-border-color: #9490D8;
  background: var(--primary); color: #fff; border: 1px solid var(--primary);
  border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14px;
}
/* Safety net for any usage without the .btn class */
.btn-primary-x:hover  { background: #4F46E5; color: #fff; border-color: #4F46E5; }
.btn-primary-x:active { background: #3730A3 !important; color: #fff !important; transform: translateY(1px); }
.btn-primary-x:focus-visible { box-shadow: 0 0 0 3px rgba(67,56,202,.25); }

/* ============ AUTH ============ */
.auth-wrap { min-height: 100vh; display: flex; }
.auth-side {
  flex: 1; background: var(--ink); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  padding: 44px; position: relative; overflow: hidden; text-align: left;
}
.auth-side::after {
  content: ''; position: absolute; right: -120px; bottom: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,176,32,.5), rgba(217,119,6,.18) 60%, transparent 75%);
  filter: blur(6px);
}
.auth-side::before {
  content: ''; position: absolute; left: -80px; top: -80px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, rgba(245,158,11,.4), transparent 70%);
}
.auth-side-brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none; z-index: 2;
}
.auth-side-mid { max-width: 460px; }
.auth-chip-list { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.auth-chip {
  display: inline-flex; align-items: center; gap: 9px; color: #EDEEF7; font-size: 14px; font-weight: 500;
  background: rgba(255,176,32,.1); border: 1px solid rgba(255,176,32,.3); border-radius: 30px;
  padding: 9px 20px;
}
.auth-chip i { color: var(--accent); font-size: 15px; }

/* Mobile-only: simple logo bar (top) and plain bullet list (bottom) —
   the full dark branded panel is desktop-only (see .d-lg-flex above);
   these give mobile visitors the same key info without the heavy panel. */
.auth-mobile-topbar {
  width: 100%; background: #fff; border-bottom: 1px solid var(--line);
  padding: 16px 20px; display: flex; justify-content: center;
}
.auth-mobile-bullets {
  width: 100%; list-style: none; margin: 0; padding: 28px 24px 36px;
  background: var(--ink);
}
.auth-mobile-bullets li {
  display: flex; align-items: center; gap: 10px; color: #EDEEF7;
  font-size: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.auth-mobile-bullets li:last-child { border-bottom: none; }
.auth-mobile-bullets li i { color: var(--accent); font-size: 16px; flex-shrink: 0; }

.auth-form-col {
  width: min(520px, 100%); background: var(--card);
  display: flex; align-items: center; justify-content: center; padding: 40px 32px;
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card h3 { font-weight: 800; font-size: 24px; }
.auth-card .form-label { font-size: 13px; font-weight: 600; }
.auth-card .req { color: #DC2626; font-weight: 700; margin-left: 1px; }
.auth-card .form-control, .auth-card .form-select {
  border-radius: 10px; border-color: var(--line); padding: 10px 14px; font-size: 14px;
}
.auth-card .form-control:focus, .auth-card .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,56,202,.14);
}
.role-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.role-pick input { display: none; }
.role-pick label {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px;
  text-align: center; cursor: pointer; font-size: 13.5px; font-weight: 600;
  transition: all .15s;
}
.role-pick label i { display: block; font-size: 20px; margin-bottom: 4px; color: var(--muted); }
.role-pick input:checked + label {
  border-color: var(--primary); background: var(--primary-soft); color: var(--primary);
}
.role-pick input:checked + label i { color: var(--primary); }

/* ============ FRONTEND ============ */
.site-nav { background: #fff; border-bottom: 1px solid var(--line); }
.hero {
  background: var(--ink); color: #fff; padding: 84px 0; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -140px; top: -140px; width: 440px; height: 440px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.5), transparent 70%);
}
.hero h1 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; line-height: 1.08; }
.hero h1 .hl { color: var(--accent); }
.hero p { color: #C9CCE3; max-width: 560px; }

.cat-chip {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 600; font-size: 14px; transition: all .15s;
}
.cat-chip:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }

.course-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .15s, box-shadow .15s; height: 100%;
}
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-card .thumb { aspect-ratio: 16/9; background: var(--primary-soft); object-fit: cover; width: 100%; }
.course-card .cc-body { padding: 14px 16px; }
.course-card .cc-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.course-card .cc-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; color: var(--primary); }

.section-title { font-weight: 800; font-size: 24px; }
.section-eyebrow { color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.footer { background: var(--ink); color: #A6ABCE; padding: 40px 0; margin-top: 60px; font-size: 13.5px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 991px) {
  .sidebar { position: fixed; left: -260px; z-index: 1050; transition: left .25s; }
  .sidebar.open { left: 0; }
  .sidebar-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(25,29,50,.5); z-index: 1040;
  }
  .sidebar-backdrop.show { display: block; }
  .auth-wrap { flex-direction: column; min-height: auto; }
  .auth-form-col { width: 100%; }
  .content { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ============ VIDEO PLAYER (Phase 4) ============ */
.video-shell { user-select: none; }
.watermark {
  position: absolute; top: 8%; left: 6%;
  color: rgba(255,255,255,.45); font-size: 12px; font-weight: 600;
  pointer-events: none; z-index: 5; text-shadow: 0 1px 2px rgba(0,0,0,.6);
  letter-spacing: .03em;
}

/* Star rating picker */
.rating-pick { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rating-pick input { display: none; }
.rating-pick label { color: #D8DAE8; font-size: 22px; cursor: pointer; transition: color .1s; }
.rating-pick input:checked ~ label,
.rating-pick label:hover,
.rating-pick label:hover ~ label { color: #FFB020; }

/* ============ HOMEPAGE v2 (Udemy-style) ============ */
.hero-v2 {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  padding: 72px 0 88px;
}
.hero-v2::after {
  content: ''; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.45), transparent 70%);
}
.hero-v2::before {
  content: ''; position: absolute; left: -100px; bottom: -140px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,176,32,.22), transparent 70%); z-index: 0;
}
.hero-search {
  background: #fff; border-radius: 14px; padding: 7px;
  display: flex; gap: 8px; max-width: 560px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.55);
}
.hero-search input {
  border: none; outline: none; flex: 1; padding: 10px 14px; font-size: 15px;
  background: transparent; color: var(--ink);
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; }
.hero-badges .hb { display: flex; align-items: center; gap: 8px; color: #C9CCE3; font-size: 13.5px; }
.hero-badges .hb i { color: var(--accent); }

/* Ad banner strip (admin-managed) */
.ad-strip { margin-top: -46px; position: relative; z-index: 3; }
.ad-strip .carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ad-strip img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: center; display: block; }

/* Slider Section 1 — sits at the very top of the page (no hero above it
   anymore). Kept at the SAME wide ratio on mobile as desktop (2.2:1) —
   narrower ratios (e.g. 16:9, square) crop the LEFT/RIGHT edges of a wide
   banner image to fit, which was cutting off the couple/silhouette at the
   sides. Matching the desktop ratio avoids side-cropping entirely, and
   naturally comes out shorter on narrow screens too. */
.ad-strip.hero-slider { margin-top: 24px !important; }
.ad-strip.hero-slider img { aspect-ratio: 2.2/1; }
@media (max-width: 767px) {
  .ad-strip.hero-slider { margin-top: 14px !important; }
}
.ad-strip .carousel-control-prev-icon,
.ad-strip .carousel-control-next-icon { width: 1.75rem; height: 1.75rem; }
@media (max-width: 575px) {
  .ad-strip .carousel-control-prev-icon,
  .ad-strip .carousel-control-next-icon { width: 1.3rem; height: 1.3rem; }
  .ad-strip .carousel-indicators { margin-bottom: 6px; }
  .ad-strip .carousel-indicators [data-bs-target] { width: 6px; height: 6px; border-radius: 50%; }
}
.ad-badge {
  position: absolute; top: 12px; left: 12px; z-index: 5;
  background: rgba(25,29,50,.75); color: #FFB020; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}

/* Category cards v2 — photo on top, icon + name + count below */
.cat-card-v2 {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s;
  height: 100%;
}
.cat-card-v2:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); color: var(--ink); }
.cc2-image { aspect-ratio: 16/10; overflow: hidden; background: var(--primary-soft); }
.cc2-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.cat-card-v2:hover .cc2-image img { transform: scale(1.06); }
.cc2-image-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 38px; color: var(--primary); }
.cc2-body { padding: 16px 18px; }
.cc2-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 16px; transition: all .18s;
}
.cat-card-v2:hover .cc2-icon { background: var(--primary); color: #fff; }
.cc2-title { font-weight: 700; font-size: 14.5px; }
.cc2-count { color: var(--muted); font-size: 12px; margin-top: 8px; }

/* How it works steps */
.step-card { text-align: center; position: relative; padding: 10px 14px; }
.step-card .sn {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), #7C6CFF); color: #fff;
  display: grid; place-items: center; font-size: 23px;
  box-shadow: 0 10px 22px -8px rgba(67,56,202,.55); position: relative;
}
.step-card .sn .num {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--ink); font-size: 11.5px; font-weight: 800;
  display: grid; place-items: center; font-family: 'Bricolage Grotesque', sans-serif;
}
.step-card h6 { font-weight: 700; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: 13px; margin: 0; }
.step-connector { position: absolute; top: 29px; left: calc(50% + 40px); width: calc(100% - 80px); border-top: 2px dashed #D8DAF0; }
@media (max-width: 767px) { .step-connector { display: none; } }

/* Stats band */
.stats-band { background: var(--ink); color: #fff; padding: 44px 0; position: relative; overflow: hidden; }
.stats-band::after {
  content: ''; position: absolute; right: -100px; bottom: -140px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.4), transparent 70%);
}
.stat-b { text-align: center; }
.stat-b .v { font-family: 'Bricolage Grotesque', sans-serif; font-size: 34px; font-weight: 800; color: var(--accent); }
.stat-b .l { color: #C9CCE3; font-size: 13.5px; }

/* Become instructor */
.instructor-cta {
  background: linear-gradient(135deg, #221E4E, #191D32 55%);
  border-radius: 22px; color: #fff; overflow: hidden; position: relative;
}
.instructor-cta::after {
  content: ''; position: absolute; right: -90px; top: -90px; width: 300px; height: 300px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,176,32,.3), transparent 70%);
}
.instructor-cta .benefit { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; color: #C9CCE3; font-size: 14px; }
.instructor-cta .benefit i { color: var(--accent); margin-top: 2px; }
.teach-icon {
  width: 200px; height: 200px; border-radius: 50%; background: rgba(124,108,255,.15);
  display: grid; place-items: center; font-size: 84px; color: #7C6CFF;
}
.hero-illustration {
  max-width: 340px; width: 60%; height: auto; margin: 0 auto; display: block;
  filter: drop-shadow(0 20px 34px rgba(0,0,0,.35));
}
@media (max-width: 991px) {
  .hero-illustration { width: 46%; max-width: 220px; }
}

/* Why choose us */
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px; height: 100%; transition: all .18s;
}
.feature-card .fi {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 14px;
  display: grid; place-items: center; font-size: 21px;
  background: var(--fc-bg, var(--primary-soft)); color: var(--fc, var(--primary));
}
.feature-card h6 { font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 13.5px; margin: 0; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary); }

/* Login CTA strip */
.login-strip {
  background: linear-gradient(90deg, var(--primary), #6D5EF0);
  border-radius: 18px; color: #fff; padding: 30px 34px;
}
.login-strip .btn-white { background: #fff; color: var(--primary); font-weight: 700; border-radius: 10px; padding: 10px 22px; border: none; }
.login-strip .btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); border-radius: 10px; padding: 10px 22px; font-weight: 600; }
.login-strip .btn-white:hover { background: #FFB020; color: var(--ink); }
.login-strip .btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Footer v2 */
.footer-v2 { background: var(--ink); color: #A6ABCE; padding: 54px 0 0; margin-top: 70px; font-size: 13.5px; }
.footer-v2 h6 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 14.5px; }
.footer-v2 a { color: #A6ABCE; display: block; margin-bottom: 8px; transition: color .12s; overflow-wrap: anywhere; word-break: break-word; }
.footer-v2 a:hover { color: var(--accent); }
.footer-v2 .social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); margin-right: 8px; }
.footer-v2 .social a:hover { background: var(--primary); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding: 18px 0; font-size: 12.5px; color: #7A80AC; }

/* ============ NAV BUTTON ALIGNMENT FIX ============ */
.site-nav .btn, .login-strip a, .instructor-cta .btn {
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.site-nav .btn { padding-top: 9px; padding-bottom: 9px; }

/* ============ CONTACT SECTION ============ */
.contact-wrap { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.contact-info {
  background: var(--ink); color: #C9CCE3; padding: 38px 34px; height: 100%;
  position: relative; overflow: hidden;
}
.contact-info::after {
  content: ''; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.4), transparent 70%);
}
.contact-info h4 { color: #fff; font-weight: 800; }
.contact-info .ci-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; position: relative; z-index: 2; }
.contact-info .ci-row i {
  width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.08);
  color: var(--accent); display: grid; place-items: center; font-size: 16px; flex-shrink: 0;
}
.contact-info .ci-row .t { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #7A80AC; }
.contact-info .ci-row .v { color: #fff; font-size: 14px; font-weight: 600; word-break: break-word; }
.contact-form { padding: 38px 34px; }
.contact-form .form-control {
  border-radius: 10px; border-color: var(--line); padding: 11px 14px; font-size: 14px;
}
.contact-form .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67,56,202,.14); }

/* ============ STICKY HEADER + ACTIVE MENU ============ */
.site-nav {
  position: sticky; top: 0; z-index: 1030;
  transition: box-shadow .2s;
}
.site-nav.scrolled { box-shadow: 0 6px 22px -10px rgba(25,29,50,.25); }

.site-nav .nav-link { position: relative; color: var(--ink); }
.site-nav .nav-link::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px;
  height: 2.5px; border-radius: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: center; transition: transform .18s;
}
.site-nav .nav-link:hover { color: var(--primary); }
.site-nav .nav-link.active { color: var(--primary); font-weight: 700; }
.site-nav .nav-link.active::after { transform: scaleX(1); }

/* ============ TESTIMONIALS MARQUEE (left→right auto-scroll) ============ */
.testi-track-wrap {
  width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.testi-track {
  display: flex; gap: 20px; width: max-content;
  animation: testiScroll 38s linear infinite;
}
.testi-track-wrap:hover .testi-track { animation-play-state: paused; }
@keyframes testiScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.testi-card {
  width: 320px; flex-shrink: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px;
}
.testi-msg { font-size: 13.8px; color: #444; line-height: 1.6; min-height: 76px; }
.testi-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
}

/* ============ VIDEO PROMO BANNER (homepage) ============ */
.promo-banner {
  position: relative; min-height: 460px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.promo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,26,.15) 0%, rgba(10,12,26,.25) 55%, rgba(10,12,26,.72) 100%);
}
.promo-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 86px; height: 86px; border-radius: 50%;
  background: rgba(15,17,35,.55); border: 2px solid rgba(255,255,255,.85);
  color: #fff; font-size: 26px; display: grid; place-items: center;
  cursor: pointer; z-index: 3; backdrop-filter: blur(2px);
  transition: transform .18s, background .18s;
}
.promo-play-btn:hover { transform: translate(-50%, -50%) scale(1.07); background: var(--primary); border-color: var(--primary); }
.promo-play-btn i { position: relative; z-index: 2; margin-left: 4px; }
.promo-play-btn .ppb-ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.55);
  animation: ppbPulse 2.6s ease-out infinite;
}
@keyframes ppbPulse {
  0%   { transform: scale(.85); opacity: .9; }
  70%  { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.promo-card {
  position: relative; z-index: 2;
  background: rgba(15,17,35,.72); backdrop-filter: blur(3px);
  border-radius: 16px 16px 0 0; padding: 28px 30px 0;
  max-width: 480px; color: #fff; margin-bottom: 0;
}
.promo-card .pc-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.promo-card .pc-text { font-size: 14px; color: #D6D8EA; line-height: 1.7; margin-bottom: 20px; }
.promo-card .pc-btn {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent); color: var(--ink); font-weight: 700;
  padding: 14px 22px; border-radius: 0; text-decoration: none; font-size: 14.5px;
  margin: 0 -30px; transition: filter .15s;
}
.promo-card .pc-btn:hover { filter: brightness(1.06); color: var(--ink); }
@media (max-width: 767px) {
  .promo-banner { min-height: 360px; align-items: stretch; }
  .promo-card { max-width: 100%; border-radius: 0; }
  .promo-play-btn { width: 66px; height: 66px; font-size: 20px; }
}

/* ============ NAV CART ICON ============ */
.nav-cart-icon {
  position: relative; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--ink); font-size: 19px;
  background: var(--bg); border: 1px solid var(--line); text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-cart-icon:hover { background: var(--primary-soft); color: var(--primary); }
.nav-cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: #fff; font-size: 10.5px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center;
  padding: 0 4px; border: 2px solid #fff;
}

/* course-card is now a div (not an <a>) — hover affordance already defined above */

/* ============ ACTION BAR (sticky, bottom of every page) ============ */
body.has-action-bar { padding-bottom: 64px; }
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
  background: linear-gradient(90deg, #E09A0A, #FFB020 55%, #E09A0A);
  box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25);
}
.ab-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 14px 10px; text-align: center; border-right: 1px solid rgba(25,29,50,.14);
  transition: background .15s, color .15s;
}
.ab-btn:hover { background: rgba(25,29,50,.1); color: var(--ink); }
.ab-btn i { font-size: 15px; }
.col-6.col-md-3:nth-child(2n) .ab-btn { border-right: none; }
@media (min-width: 768px) {
  .col-6.col-md-3:nth-child(2n) .ab-btn { border-right: 1px solid rgba(25,29,50,.14); }
  .col-6.col-md-3:last-child .ab-btn { border-right: none; }
}
@media (max-width: 767px) {
  .ab-btn { flex-direction: column; gap: 3px; padding: 10px 6px; font-size: 11px; }
  body.has-action-bar { padding-bottom: 58px; }
}

/* ============ DYNAMIC CONTENT BLOCK BODY (TinyMCE output) ============ */
.content-block-body { line-height: 1.8; text-align: left; }
.content-block-body p:last-child { margin-bottom: 0; }
.content-block-body ul, .content-block-body ol {
  text-align: left; width: 100%; margin: 0 0 1rem;
}
.content-block-body strong { color: var(--ink); }

/* ============ CALENDAR — TIMELINE UI ============ */
.cal-timeline { position: relative; }
.cal-day-group {
  display: flex; gap: 22px; position: relative; padding-bottom: 34px;
}
.cal-day-group:last-child { padding-bottom: 0; }
.cal-day-group::before {
  content: ''; position: absolute; left: 34px; top: 76px; bottom: -6px; width: 2px;
  background: var(--line);
}
.cal-day-group:last-child::before { display: none; }

.cal-date-badge {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 16px;
  background: var(--ink); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; position: relative; z-index: 2;
  box-shadow: var(--shadow);
}
.cal-date-num { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.cal-date-month { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; margin-top: 2px; }
.cal-date-dow { font-size: 9.5px; color: #9195B5; margin-top: 1px; }

.cal-day-events { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-event-card {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; transition: box-shadow .15s, border-color .15s;
}
.cal-event-card:hover { box-shadow: var(--shadow); border-color: var(--primary); }
.cal-event-thumb { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cal-event-thumb-fallback { background: var(--primary-soft); color: var(--primary); font-size: 26px; display: grid; place-items: center; }
.cal-event-body { flex: 1; min-width: 0; }
.cal-event-time { font-size: 12px; font-weight: 700; color: var(--primary); }
.cal-event-title { font-weight: 700; font-size: 16px; margin-bottom: 4px; }

@media (max-width: 575px) {
  .cal-day-group { gap: 14px; }
  .cal-day-group::before { left: 24px; }
  .cal-date-badge { width: 50px; height: 50px; border-radius: 12px; }
  .cal-date-num { font-size: 16px; }
  .cal-date-month { font-size: 9px; }
  .cal-date-dow { display: none; }
  .cal-event-card { flex-direction: column; }
  .cal-event-thumb { width: 100%; height: 140px; }
}

/* ============ INTRO BRAND STATEMENT (Home — "We are...") ============ */
.brand-statement {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--ink) 0%, #241F52 60%, var(--ink) 100%);
  border-radius: 24px; padding: 56px 40px; color: #fff;
}
.brand-statement::before {
  content: ''; position: absolute; left: -90px; top: -90px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.4), transparent 70%);
}
.brand-statement::after {
  content: ''; position: absolute; right: -80px; bottom: -100px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,176,32,.28), transparent 70%);
}
.bs-icon {
  position: relative; z-index: 2; width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; font-size: 27px; color: var(--accent);
}
.bs-title {
  position: relative; z-index: 2; font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: clamp(24px, 3vw, 34px); margin-bottom: 18px;
}
.bs-body {
  position: relative; z-index: 2; width: 100%;
  color: #C9CCE3; font-size: 15.5px;
}
.bs-body p { text-align: justify !important; }
.bs-body p:last-child { margin-bottom: 0; }
@media (max-width: 575px) {
  .brand-statement { padding: 40px 22px; border-radius: 18px; }
}

/* ============ "WHAT MAKES US DIFFERENT" FULL-WIDTH PANEL ============ */
.diff-panel {
  background: var(--bg); border-radius: 22px; padding: 48px 40px;
}
.diff-heading-col { margin-bottom: 24px; }
.diff-icon {
  width: 52px; height: 52px; border-radius: 15px; margin-bottom: 16px;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  font-size: 22px; box-shadow: 0 10px 22px -8px rgba(67,56,202,.5);
}
.diff-title {
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: var(--ink);
}
.diff-body-col {
  width: 100%; border-left: 3px solid var(--accent);
  padding-left: 32px;
}
.diff-body { color: #444; font-size: 16px; text-align: left; }
.diff-body p:last-child { margin-bottom: 0; }
@media (max-width: 575px) {
  .diff-panel { padding: 32px 24px; border-radius: 18px; }
  .diff-body-col { padding-left: 20px; }
}

/* ============ "WHAT WE OFFER" SPOTLIGHT CARD ============ */
.offer-section { background: var(--bg); }
.offer-panel {
  position: relative; background: #fff; border-radius: 24px;
  padding: 56px 40px 44px; text-align: center; max-width: 820px; margin: 0 auto;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.offer-panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, var(--primary), #7C6CFF 50%, var(--accent));
}
.offer-panel::after {
  content: ''; position: absolute; right: 16px; bottom: 16px; width: 140px; height: 140px;
  border-radius: 50%; background: radial-gradient(circle, var(--primary-soft), transparent 70%);
  opacity: .8; pointer-events: none; z-index: 0;
}
.op-badge {
  position: relative; z-index: 2; width: 60px; height: 60px; margin: -86px auto 18px;
  border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7C6CFF);
  color: #fff; display: grid; place-items: center; font-size: 24px;
  box-shadow: 0 12px 26px -8px rgba(67,56,202,.55); border: 4px solid #fff;
}
.op-title {
  position: relative; z-index: 2; font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); color: var(--ink); margin-bottom: 14px;
}
.op-body { position: relative; z-index: 2; color: var(--muted); font-size: 15.5px; width: 100%; text-align: left; }
.op-body p:last-child { margin-bottom: 0; }
@media (max-width: 575px) {
  .offer-panel { padding: 50px 24px 32px; border-radius: 18px; }
  .op-badge { margin-top: -80px; }
}

/* ============ HEADER/FOOTER CUSTOM COLORS (Admin > Settings > General) ============ */

/* Nav on a dark custom header color — flip text/icons to light */
.site-nav.nav-on-dark .navbar-brand span { color: #fff; }
.site-nav.nav-on-dark .nav-link { color: #E4E5F5; }
.site-nav.nav-on-dark .nav-link:hover { color: var(--accent); }
.site-nav.nav-on-dark .nav-link.active { color: var(--accent); }
.site-nav.nav-on-dark .nav-link.active::after { background: var(--accent); }
.site-nav.nav-on-dark .navbar-toggler { filter: invert(1) brightness(1.6); }
.site-nav.nav-on-dark .btn-outline-dark { color: #fff; border-color: rgba(255,255,255,.55); }
.site-nav.nav-on-dark .btn-outline-dark:hover { background: rgba(255,255,255,.12); color: #fff; }
.site-nav.nav-on-dark .nav-cart-icon { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); color: #fff; }
.site-nav.nav-on-dark .nav-cart-icon:hover { background: rgba(255,255,255,.22); color: var(--accent); }

/* Footer on a light custom footer color — flip text/icons to dark */
.footer-v2.footer-light { color: #4B4F6B; }
.footer-v2.footer-light h6 { color: var(--ink); }
.footer-v2.footer-light a { color: #565A78; }
.footer-v2.footer-light a:hover { color: var(--primary); }
.footer-v2.footer-light .social a { background: rgba(25,29,50,.07); color: var(--ink); }
.footer-v2.footer-light .social a:hover { background: var(--primary); color: #fff; }
.footer-v2.footer-light .footer-bottom { border-top-color: rgba(25,29,50,.1); color: #74789A; }

/* ============ RESPONSIVE IMAGES INSIDE RICH-TEXT CONTENT ============ */
/* TinyMCE often bakes a fixed pixel width (e.g. width="600" or an inline
   style) onto <img> tags when an admin resizes an image in the editor.
   That fixed width ignores the actual container size on mobile, causing
   the image to overflow past the screen edge. !important is required to
   win over that inline width/style attribute. */
.page-content img,
.blog-content img,
.content-block-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

/* ============ MONTH CALENDAR GRID (Calendar page) ============ */
.cal-grid { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cal-grid-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg); }
.cal-grid-head > div {
  padding: 10px 4px; text-align: center; font-size: 11.5px; font-weight: 700;
  color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
}
.cal-grid-row { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--line); }
.cal-grid-cell {
  aspect-ratio: 1/1; border: none; border-right: 1px solid var(--line); border-radius: 0;
  background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 6px 4px; position: relative;
}
.cal-grid-row > :last-child { border-right: none; }
.cal-grid-cell-empty { background: var(--bg); }
.cgc-day { font-size: 13px; font-weight: 600; color: var(--ink); }
.cal-grid-cell.is-today .cgc-day { color: var(--primary); }
.cal-grid-cell.is-today::after {
  content: ''; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--primary);
}
.cal-grid-cell-has-event { background: var(--primary-soft); cursor: pointer; transition: background .15s; }
.cal-grid-cell-has-event:hover { background: var(--primary); }
.cal-grid-cell-has-event:hover .cgc-day,
.cal-grid-cell-has-event:hover .cgc-label { color: #fff; }
.cgc-label {
  font-size: 9.5px; color: var(--primary); font-weight: 700; margin-top: 2px;
  text-align: center; line-height: 1.15; word-break: break-word;
}
@media (max-width: 575px) {
  .cal-grid-head > div { font-size: 9px; padding: 6px 2px; }
  .cgc-day { font-size: 11px; }
  .cgc-label { font-size: 7.5px; }
}
