/* ==========================================================================
   FIXIZ ACADEMY — Theme Stylesheet
   Construction Safety Training LMS Template
   --------------------------------------------------------------------------
   Brand colors are defined once below. To re-brand the whole template,
   change the variables in :root only.
   ========================================================================== */

:root {
  /* Brand palette */
  --fx-primary: #ebb738;
  --fx-primary-dark: #c9971d;
  --fx-primary-soft: #fbf3dc;
  --fx-navy: #0a1628;
  --fx-navy-2: #13294a;
  --fx-yellow: #ebb738;
  --fx-green: #1fa97a;
  --fx-ink: #1e2a3b;
  --fx-muted: #5f6f87;
  --fx-line: #e7ecf3;
  --fx-bg-soft: #f5f8fc;

  /* Map onto Bootstrap */
  --bs-primary: var(--fx-primary);
  --bs-primary-rgb: 235, 183, 56;
  --bs-body-color: var(--fx-muted);
  --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;

  --fx-radius: 8px;
  --fx-shadow: 0 1px 2px rgba(10, 22, 40, 0.05), 0 10px 30px rgba(10, 22, 40, 0.07);
  --fx-shadow-lg: 0 2px 6px rgba(10, 22, 40, 0.07), 0 18px 44px rgba(10, 22, 40, 0.12);
}

/* ---------- Base ---------- */

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--fx-muted);
  font-size: 1rem;
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Sora', 'Inter', sans-serif;
  color: var(--fx-navy);
  font-weight: 700;
  line-height: 1.25;
}

a { color: var(--fx-primary-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--fx-navy); }

img { max-width: 100%; }

::selection { background: var(--fx-primary); color: var(--fx-navy); }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--fx-bg-soft); }
.bg-navy { background: var(--fx-navy); }

.text-primary-fx { color: var(--fx-primary-dark) !important; }

/* ---------- Buttons ---------- */

.btn { border-radius: 6px; font-weight: 600; padding: .7rem 1.5rem; transition: all .25s ease; }

.btn-brand {
  background: var(--fx-primary);
  border: 2px solid var(--fx-primary);
  color: var(--fx-navy);
}
.btn-brand:hover {
  background: var(--fx-primary-dark);
  border-color: var(--fx-primary-dark);
  color: var(--fx-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10,22,40,.18);
}

.btn-brand-outline {
  background: transparent;
  border: 2px solid var(--fx-primary);
  color: var(--fx-navy);
}
.btn-brand-outline:hover { background: var(--fx-primary); color: var(--fx-navy); transform: translateY(-2px); }

.btn-white {
  background: #fff;
  border: 2px solid #fff;
  color: var(--fx-navy);
}
.btn-white:hover { background: var(--fx-navy); border-color: var(--fx-navy); color: #fff; transform: translateY(-2px); }

.btn-ghost-light {
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }

.btn-lg { padding: .9rem 2rem; }

/* ---------- Topbar ---------- */

.topbar {
  background: var(--fx-navy);
  color: rgba(255,255,255,.75);
  font-size: .85rem;
  padding: .55rem 0;
  position: relative;
  z-index: 1031; /* keep the language dropdown above the sticky navbar (z-index 1020) */
}
.topbar .dropdown-menu {
  border: 1px solid var(--fx-line);
  border-radius: 8px;
  box-shadow: var(--fx-shadow-lg);
  font-size: .88rem;
}
.topbar .dropdown-menu a {
  color: var(--fx-ink);
  padding: .45rem 1.1rem;
}
.topbar .dropdown-menu a:hover {
  color: var(--fx-navy);
  background: var(--fx-bg-soft);
}
.dropdown-menu .dropdown-item.active {
  background: var(--fx-primary-soft);
  color: var(--fx-navy);
}
.topbar a { color: rgba(255,255,255,.75); }
.topbar a:hover { color: var(--fx-yellow); }
.topbar .bi { color: var(--fx-yellow); margin-inline-end: 6px; }
.topbar .divider { width: 1px; height: 16px; background: rgba(255,255,255,.18); }

/* ---------- Navbar ---------- */

.main-nav {
  background: #fff;
  padding: 1rem 0;
  transition: box-shadow .25s ease, padding .25s ease;
}
.main-nav.scrolled { box-shadow: 0 8px 30px rgba(15,34,57,.09); padding: .6rem 0; }

.navbar-brand {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--fx-navy) !important;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.navbar-brand span.accent { color: var(--fx-primary); }

.brand-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--fx-primary), #f6d478);
  color: var(--fx-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(235,183,56,.35);
}

.main-nav .nav-link {
  font-weight: 600;
  color: var(--fx-navy);
  padding: .5rem 1.05rem !important;
  position: relative;
}
.main-nav .nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 1.05rem;
  bottom: 2px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--fx-primary);
  transition: width .25s ease;
}
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::after { width: calc(100% - 2.1rem); }
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--fx-primary-dark); }

.navbar-toggler { border: none; font-size: 1.6rem; color: var(--fx-navy); }
.navbar-toggler:focus { box-shadow: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(120deg, var(--fx-navy) 0%, var(--fx-navy-2) 55%, #1d3f68 100%);
  background-size: 48px 48px, 48px 48px, 100% 100%;
  color: #fff;
  padding: 110px 0 150px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,183,56,.14), transparent 65%);
  top: -180px;
  inset-inline-end: -120px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,183,56,.08), transparent 65%);
  bottom: -160px;
  inset-inline-start: -120px;
}
.hero .container { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(235,183,56,.08);
  border: 1px solid rgba(235,183,56,.4);
  color: var(--fx-yellow);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 1.05rem;
  border-radius: 4px;
  margin-bottom: 1.4rem;
}
.hero-tag .bi { font-size: .85rem; }

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1.2rem;
}
.hero h1 .underline {
  color: var(--fx-yellow);
  position: relative;
  white-space: nowrap;
}
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.1rem; max-width: 540px; }

.hero-search {
  background: #fff;
  border-radius: 8px;
  padding: .5rem;
  display: flex;
  gap: .5rem;
  max-width: 540px;
  box-shadow: var(--fx-shadow-lg);
}
.hero-search input {
  border: none;
  flex: 1;
  padding: .6rem 1rem;
  font-size: .95rem;
  color: var(--fx-ink);
  background: transparent;
  min-width: 0;
}
.hero-search input:focus { outline: none; }

.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2.6rem; }
.hero-stats .stat h3 { color: #fff; font-size: 1.9rem; font-weight: 800; margin-bottom: 0; }
.hero-stats .stat h3 span { color: var(--fx-yellow); }
.hero-stats .stat p { color: rgba(255,255,255,.6); font-size: .87rem; margin: 0; }

/* Hero visual card */
.hero-visual { position: relative; }

.hero-art {
  border-radius: 10px;
  min-height: 430px;
  box-shadow: var(--fx-shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-art img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; display: block; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,.55), rgba(10,22,40,.08) 55%);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--fx-shadow-lg);
  padding: .9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  z-index: 3;
}
.floating-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.floating-card strong { display: block; color: var(--fx-navy); font-size: .95rem; line-height: 1.2; }
.floating-card small { color: var(--fx-muted); font-size: .78rem; }

.fc-1 { top: 8%; inset-inline-start: -34px; }
.fc-1 .icon { background: var(--fx-primary-soft); color: var(--fx-primary-dark); }
.fc-2 { bottom: 20%; inset-inline-end: -28px; }
.fc-2 .icon { background: #edf1f7; color: var(--fx-navy-2); }

/* Hero bottom curve */
.hero-curve {
  position: absolute;
  bottom: -1px;
  inset-inline-start: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.hero-curve svg { width: 100%; height: 70px; display: block; }

/* ---------- Logo strip ---------- */

.logo-strip { padding: 34px 0; }
.logo-strip .logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: #a9b6c9;
  font-size: 1.05rem;
  transition: color .25s ease;
  white-space: nowrap;
}
.logo-strip .logo-item .bi { font-size: 1.5rem; }
.logo-strip .logo-item:hover { color: var(--fx-navy); }

/* ---------- Section headings ---------- */

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--fx-navy);
  color: var(--fx-yellow);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .5rem 1.05rem;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}
.sec-tag .bi { font-size: .85rem; }
.sec-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .8rem; }
.sec-sub { max-width: 620px; }

/* ---------- Category cards ---------- */

.cat-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: all .3s ease;
  height: 100%;
  display: block;
}
.cat-card .icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: var(--fx-primary-soft);
  border: 1px solid rgba(201,151,29,.35);
  color: var(--fx-navy);
  transition: all .3s ease;
}
.cat-card h4 { font-size: 1.02rem; margin-bottom: .25rem; }
.cat-card p { font-size: .84rem; margin: 0; color: var(--fx-muted); }
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fx-shadow-lg);
  border-color: #d9e2ec;
}
.cat-card:hover .icon { background: var(--fx-primary); border-color: var(--fx-primary); color: var(--fx-navy); }

/* ---------- Course cards ---------- */

.course-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  overflow: hidden;
  transition: all .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--fx-shadow-lg);
  border-color: #d9e2ec;
}

.course-thumb {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: var(--fx-navy);
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.05); }
.course-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,22,40,.02) 45%, rgba(10,22,40,.42));
  pointer-events: none;
}

.badge-level {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: rgba(10,22,40,.82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 4px;
  z-index: 2;
}

.course-body { padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; flex: 1; }

.course-meta {
  display: flex;
  gap: 1.1rem;
  font-size: .8rem;
  color: var(--fx-muted);
  margin-bottom: .6rem;
}
.course-meta .bi { color: var(--fx-primary); margin-inline-end: 4px; }

.course-title { font-size: 1.08rem; margin-bottom: .55rem; }
.course-title a { color: var(--fx-navy); }
.course-title a:hover { color: var(--fx-primary-dark); }

.course-rating { font-size: .84rem; color: var(--fx-muted); margin-bottom: 1rem; }
.course-rating .bi { color: var(--fx-yellow); font-size: .8rem; }
.course-rating strong { color: var(--fx-navy); }

.course-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--fx-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.instructor { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--fx-navy); font-weight: 600; }

.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar-xl { width: 84px; height: 84px; font-size: 1.5rem; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.av-1, .av-2, .av-3, .av-4, .av-5, .av-6 { background: var(--fx-navy-2); }

.course-price { font-family: 'Sora', sans-serif; font-weight: 800; color: var(--fx-primary-dark); font-size: 1.15rem; }
.course-price .old { color: #b6c1d1; font-size: .85rem; font-weight: 600; text-decoration: line-through; margin-inline-end: .4rem; }
.course-price.free { color: var(--fx-green); }

/* ---------- Feature cards ---------- */

.feature-card {
  background: #fff;
  border-radius: var(--fx-radius);
  padding: 2rem 1.6rem;
  border: 1px solid var(--fx-line);
  height: 100%;
  transition: all .3s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--fx-shadow-lg); border-color: #d9e2ec; }
.feature-card .icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 1.2rem;
}
.icon-orange { background: var(--fx-primary-soft); color: var(--fx-primary-dark); }
.icon-green, .icon-yellow, .icon-navy, .icon-purple, .icon-pink { background: #edf1f7; color: var(--fx-navy-2); }
.feature-card h4 { font-size: 1.1rem; margin-bottom: .55rem; }
.feature-card p { font-size: .9rem; margin: 0; }

/* ---------- Why choose (checklist) ---------- */

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  display: flex;
  gap: .8rem;
  margin-bottom: 1.05rem;
  color: var(--fx-ink);
  font-weight: 500;
}
.check-list .bi {
  color: var(--fx-green);
  font-size: 1.15rem;
  line-height: 1.5;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--fx-primary) 0%, #f6d478 100%);
  color: var(--fx-navy);
  padding: 3.6rem 3rem;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.12);
  top: -120px;
  inset-inline-end: -80px;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 190px; height: 190px;
  border-radius: 50%;
  border: 28px solid rgba(255,255,255,.1);
  bottom: -80px;
  inset-inline-start: 8%;
}
.cta-band h2 { color: var(--fx-navy); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { color: rgba(10,22,40,.75); }
.cta-band .container-inner { position: relative; z-index: 2; }

/* ---------- Testimonials ---------- */

.t-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  padding: 2rem 1.8rem;
  height: 100%;
  transition: all .3s ease;
  position: relative;
}
.t-card:hover { box-shadow: var(--fx-shadow-lg); transform: translateY(-3px); border-color: #d9e2ec; }
.t-card .quote-mark {
  position: absolute;
  top: 1.4rem;
  inset-inline-end: 1.6rem;
  font-size: 3rem;
  color: var(--fx-primary-soft);
  line-height: 1;
  font-family: Georgia, serif;
}
.t-stars { color: var(--fx-yellow); font-size: .9rem; margin-bottom: 1rem; }
.t-quote { color: var(--fx-ink); font-size: .96rem; margin-bottom: 1.4rem; }
.t-person { display: flex; align-items: center; gap: .9rem; }
.t-person strong { display: block; color: var(--fx-navy); font-size: .95rem; }
.t-person small { color: var(--fx-muted); font-size: .8rem; }

.swiper { padding-bottom: 56px !important; }
.swiper-pagination-bullet { background: #c6d2e0; opacity: 1; width: 10px; height: 10px; }
.swiper-pagination-bullet-active { background: var(--fx-primary); width: 28px; border-radius: 6px; }

/* ---------- Page header (inner pages) ---------- */

.page-header {
  position: relative;
  background: linear-gradient(120deg, var(--fx-navy) 0%, var(--fx-navy-2) 60%, #1d3f68 100%);
  color: #fff;
  padding: 84px 0;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,183,56,.12), transparent 65%);
  top: -140px;
  inset-inline-end: -80px;
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: #fff; font-weight: 800; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: .5rem; }
.page-header .breadcrumb { margin: 0; }
.page-header .breadcrumb-item, .page-header .breadcrumb-item a { color: rgba(255,255,255,.65); font-size: .9rem; }
.page-header .breadcrumb-item.active { color: var(--fx-yellow); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ---------- Filters sidebar ---------- */

.filter-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  padding: 1.5rem;
  margin-bottom: 1.4rem;
}
.filter-card h5 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid var(--fx-line);
}
.filter-card .form-check { margin-bottom: .6rem; }
.filter-card .form-check-label { font-size: .9rem; color: var(--fx-muted); cursor: pointer; display: flex; justify-content: space-between; width: 100%; }
.filter-card .form-check-label .count { color: #a9b6c9; font-size: .8rem; }
.form-check-input:checked { background-color: var(--fx-primary); border-color: var(--fx-primary); }
.form-check-input:focus { border-color: var(--fx-primary); box-shadow: 0 0 0 .2rem rgba(235,183,56,.15); }

.sort-bar {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: 14px;
  padding: .9rem 1.3rem;
}
.sort-bar .form-select {
  border-color: var(--fx-line);
  font-size: .9rem;
  border-radius: 10px;
  width: auto;
}
.form-select:focus, .form-control:focus {
  border-color: var(--fx-primary);
  box-shadow: 0 0 0 .2rem rgba(235,183,56,.12);
}

/* ---------- Pagination ---------- */

.pagination .page-link {
  border: 1px solid var(--fx-line);
  color: var(--fx-navy);
  font-weight: 600;
  border-radius: 10px !important;
  margin: 0 .25rem;
  min-width: 42px;
  text-align: center;
}
.pagination .page-link:hover { background: var(--fx-primary-soft); color: var(--fx-primary); border-color: var(--fx-primary-soft); }
.pagination .page-item.active .page-link { background: var(--fx-primary); border-color: var(--fx-primary); color: var(--fx-navy); }

/* ---------- Course single ---------- */

.course-hero-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: .9rem; color: rgba(255,255,255,.75); }
.course-hero-meta .bi { color: var(--fx-yellow); margin-inline-end: 6px; }

.content-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  padding: 2rem;
  margin-bottom: 1.6rem;
}
.content-card h3 { font-size: 1.3rem; margin-bottom: 1.1rem; }

.nav-pills-fx { gap: .5rem; }
.nav-pills-fx .nav-link {
  color: var(--fx-navy);
  font-weight: 600;
  border-radius: 12px;
  padding: .6rem 1.4rem;
  background: var(--fx-bg-soft);
}
.nav-pills-fx .nav-link.active { background: var(--fx-primary); color: var(--fx-navy); }

/* Curriculum accordion */
.curriculum .accordion-item {
  border: 1px solid var(--fx-line);
  border-radius: 14px !important;
  margin-bottom: .9rem;
  overflow: hidden;
}
.curriculum .accordion-button {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: var(--fx-navy);
  font-size: .98rem;
  padding: 1.1rem 1.4rem;
  background: #fff;
}
.curriculum .accordion-button:not(.collapsed) {
  background: var(--fx-primary-soft);
  color: var(--fx-primary-dark);
  box-shadow: none;
}
.curriculum .accordion-button:focus { box-shadow: none; }
.curriculum .accordion-button .module-count {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .8rem;
  color: var(--fx-muted);
  margin-inline-start: auto;
  margin-inline-end: 1rem;
}

.lesson-row {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem 1.4rem;
  border-top: 1px solid var(--fx-line);
  font-size: .92rem;
  color: var(--fx-ink);
}
.lesson-row .bi-play-circle { color: var(--fx-primary); font-size: 1.1rem; }
.lesson-row .bi-file-earmark-text { color: var(--fx-navy-2); font-size: 1.05rem; }
.lesson-row .bi-patch-question { color: var(--fx-green); font-size: 1.05rem; }
.lesson-row .duration { margin-inline-start: auto; font-size: .8rem; color: var(--fx-muted); }
.lesson-row .tag-quiz {
  background: #e6f7f0;
  color: var(--fx-green);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 50px;
  padding: .15rem .65rem;
}
.lesson-row .tag-preview {
  background: var(--fx-primary-soft);
  color: var(--fx-primary-dark);
  font-size: .7rem;
  font-weight: 700;
  border-radius: 50px;
  padding: .15rem .65rem;
}

/* Sticky purchase card */
.sticky-card {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: var(--fx-radius);
  border: 1px solid var(--fx-line);
  box-shadow: var(--fx-shadow);
  overflow: hidden;
}
.sticky-card .preview {
  height: 190px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--fx-navy);
}
.sticky-card .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sticky-card .preview::after { content: ""; position: absolute; inset: 0; background: rgba(10,22,40,.38); }
.sticky-card .play-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--fx-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .25s ease;
  z-index: 2;
}
.sticky-card .play-btn:hover { transform: scale(1.1); }
.sticky-card .body { padding: 1.6rem; }
.price-tag { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--fx-navy); }
.price-tag .old { font-size: 1.1rem; color: #b6c1d1; text-decoration: line-through; font-weight: 600; margin-inline-start: .5rem; }
.discount-chip { background: #e6f7f0; color: var(--fx-green); font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 50px; }

.includes-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.includes-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  font-size: .9rem;
  color: var(--fx-ink);
}
.includes-list .bi { color: var(--fx-primary); font-size: 1rem; width: 20px; }

/* Review bars */
.review-bar { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; font-size: .85rem; }
.review-bar .progress { flex: 1; height: 8px; border-radius: 6px; background: var(--fx-line); }
.review-bar .progress-bar { background: var(--fx-yellow); border-radius: 6px; }
.rating-big { font-family: 'Sora', sans-serif; font-size: 3.2rem; font-weight: 800; color: var(--fx-navy); line-height: 1; }

/* ---------- Shop ---------- */

.product-card {
  background: #fff;
  border: 1px solid var(--fx-line);
  border-radius: var(--fx-radius);
  overflow: hidden;
  transition: all .3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); border-color: #d9e2ec; }
.p-thumb {
  height: 210px;
  background: var(--fx-bg-soft);
  position: relative;
  overflow: hidden;
}
.p-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product-card:hover .p-thumb img { transform: scale(1.05); }
.p-badge {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
  color: #fff;
  background: var(--fx-primary);
}
.p-badge.sale { background: var(--fx-green); }
.p-badge.digital { background: #7048e8; }
.p-body { padding: 1.4rem; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .78rem; font-weight: 600; color: var(--fx-primary-dark); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.p-title { font-size: 1.05rem; margin-bottom: .5rem; }
.p-title a { color: var(--fx-navy); }
.p-title a:hover { color: var(--fx-primary-dark); }
.p-foot { margin-top: auto; padding-top: 1rem; display: flex; align-items: center; justify-content: space-between; }
.p-price { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.15rem; color: var(--fx-navy); }
.p-price .old { font-size: .85rem; color: #b6c1d1; text-decoration: line-through; font-weight: 600; margin-inline-end: .4rem; }
.btn-cart {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--fx-primary-soft);
  color: var(--fx-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all .25s ease;
}
.btn-cart:hover { background: var(--fx-primary); color: var(--fx-navy); }

.filter-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.filter-chips .chip {
  border: 1px solid var(--fx-line);
  background: #fff;
  color: var(--fx-navy);
  font-size: .88rem;
  font-weight: 600;
  border-radius: 50px;
  padding: .5rem 1.3rem;
  transition: all .25s ease;
  cursor: pointer;
}
.filter-chips .chip:hover, .filter-chips .chip.active {
  background: var(--fx-primary);
  border-color: var(--fx-primary);
  color: var(--fx-navy);
}

/* ---------- FAQ ---------- */

.faq-accordion .accordion-item {
  border: 1px solid var(--fx-line);
  border-radius: 14px !important;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
}
.faq-accordion .accordion-button {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fx-navy);
  padding: 1.2rem 1.5rem;
  background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) { background: #fff; color: var(--fx-primary-dark); box-shadow: none; }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { padding: 0 1.5rem 1.3rem; font-size: .94rem; }

.support-card {
  background: var(--fx-navy);
  border-radius: var(--fx-radius);
  color: #fff;
  padding: 2.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.support-card::before {
  content: "";
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,183,56,.18), transparent 65%);
  top: -80px;
  inset-inline-end: -60px;
}
.support-card h4 { color: #fff; position: relative; }
.support-card p { color: rgba(255,255,255,.7); position: relative; }

/* ---------- Auth (register/login) ---------- */

.auth-wrap { min-height: 100vh; display: flex; }

.auth-side {
  flex: 1;
  background: linear-gradient(140deg, var(--fx-navy) 0%, var(--fx-navy-2) 60%, #1d3f68 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,183,56,.15), transparent 65%);
  bottom: -180px;
  inset-inline-end: -140px;
}
.auth-side h2 { color: #fff; font-weight: 800; font-size: 2.1rem; position: relative; z-index: 2; }
.auth-side p { color: rgba(255,255,255,.72); position: relative; z-index: 2; }
.auth-side .check-list li { color: rgba(255,255,255,.85); position: relative; z-index: 2; }
.auth-side .check-list .bi { color: var(--fx-yellow); }

.auth-form-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: #fff;
  overflow-y: auto;
}
.auth-box { width: 100%; max-width: 440px; }

.auth-box .form-control {
  border-radius: 12px;
  padding: .8rem 1.1rem;
  border-color: var(--fx-line);
  font-size: .94rem;
}
.auth-box .form-label { font-weight: 600; color: var(--fx-navy); font-size: .88rem; }
.auth-box .input-group-text { background: var(--fx-bg-soft); border-color: var(--fx-line); border-radius: 12px 0 0 12px; color: var(--fx-muted); }

.auth-tabs { background: var(--fx-bg-soft); border-radius: 14px; padding: .4rem; display: flex; gap: .3rem; margin-bottom: 1.8rem; }
.auth-tabs .nav-link { flex: 1; text-align: center; font-weight: 700; color: var(--fx-muted); border-radius: 10px; padding: .65rem; }
.auth-tabs .nav-link.active { background: #fff; color: var(--fx-primary-dark); box-shadow: 0 4px 12px rgba(15,34,57,.08); }

/* Theme-owned tab panes for the auth page (MasterStudy globally hides `.tab-pane`) */
.fx-pane { display: none; }
.fx-pane.active { display: block; }

.divider-text { display: flex; align-items: center; gap: 1rem; color: #a9b6c9; font-size: .82rem; margin: 1.4rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--fx-line); }

.btn-social {
  border: 1px solid var(--fx-line);
  border-radius: 12px;
  font-weight: 600;
  font-size: .9rem;
  color: var(--fx-navy);
  padding: .7rem;
  width: 100%;
  background: #fff;
  transition: all .25s ease;
}
.btn-social:hover { background: var(--fx-bg-soft); border-color: #cdd8e4; }

/* ---------- Stats band ---------- */

.stats-band { background: var(--fx-navy); color: #fff; }
.stat-block { text-align: center; padding: 1rem 0; }
.stat-block .icon { font-size: 2rem; color: var(--fx-yellow); margin-bottom: .6rem; }
.stat-block h3 { color: #fff; font-size: 2.2rem; font-weight: 800; margin-bottom: .15rem; }
.stat-block h3 span { color: var(--fx-primary); }
.stat-block p { color: rgba(255,255,255,.6); margin: 0; font-size: .9rem; }

/* ---------- Video CTA ---------- */

.video-cta {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15,34,57,.92), rgba(22,48,79,.78)),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.04) 0 26px, transparent 26px 52px),
    linear-gradient(135deg, #13294a, #0a1628);
  color: #fff;
  padding: 5.5rem 2rem;
  text-align: center;
}
.video-cta h2 { color: #fff; font-weight: 800; }
.video-cta .play-btn {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--fx-primary);
  color: var(--fx-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  transition: transform .25s ease;
}
.video-cta .play-btn:hover { transform: scale(1.06); color: var(--fx-navy); }

/* ---------- Footer ---------- */

.footer {
  background: var(--fx-navy);
  color: rgba(255,255,255,.66);
  padding: 80px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235,183,56,.07), transparent 65%);
  top: -160px;
  inset-inline-end: -120px;
}
.footer .container { position: relative; z-index: 2; }
.footer-title { color: #fff; font-size: 1.05rem; margin-bottom: 1.3rem; }
.footer-link { display: block; color: rgba(255,255,255,.66); padding: .32rem 0; font-size: .92rem; }
.footer-link:hover { color: var(--fx-yellow); padding-inline-start: 6px; }
.footer .brand-blurb { font-size: .92rem; }

.social-btn {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all .25s ease;
}
.social-btn:hover { background: var(--fx-primary); color: var(--fx-navy); transform: translateY(-3px); }

.newsletter-form { position: relative; }
.newsletter-form .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  color: #fff;
  padding: .85rem 1.1rem;
  padding-inline-end: 3.4rem;
  font-size: .9rem;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.45); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,.12); box-shadow: none; border-color: var(--fx-primary); color: #fff; }
.newsletter-form button {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 40px; height: calc(100% - 12px);
  border: none;
  border-radius: 9px;
  background: var(--fx-primary);
  color: var(--fx-navy);
  font-size: 1rem;
  transition: background .2s ease;
}
.newsletter-form button:hover { background: var(--fx-primary-dark); }

.footer-contact li { display: flex; gap: .8rem; margin-bottom: .9rem; font-size: .92rem; }
.footer-contact .bi { color: var(--fx-yellow); font-size: 1.05rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 56px;
  padding: 1.4rem 0;
  font-size: .86rem;
}
.footer-bottom a { color: rgba(255,255,255,.66); }
.footer-bottom a:hover { color: var(--fx-yellow); }

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--fx-primary);
  color: var(--fx-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 10px 26px rgba(235,183,56,.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .3s ease;
  z-index: 99;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--fx-primary-dark); color: var(--fx-navy); }

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .section { padding: 68px 0; }
  .hero { padding: 70px 0 120px; }
  .hero-visual { margin-top: 3.5rem; }
  .fc-1 { inset-inline-start: 0; }
  .fc-2 { inset-inline-end: 0; }
  .main-nav .navbar-collapse {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--fx-shadow-lg);
    padding: 1rem 1.2rem 1.4rem;
    margin-top: .8rem;
  }
  .main-nav .nav-link::after { display: none; }
  .auth-side { display: none; }
  .cta-band { padding: 2.6rem 1.8rem; text-align: center; }
  .cta-band .btn { margin-top: 1.2rem; }
}

@media (max-width: 575.98px) {
  .hero-stats { gap: 1.4rem; }
  .hero-art { min-height: 320px; }
  .hero-art .bi { font-size: 7rem; }
  .floating-card { padding: .7rem .9rem; }
  .floating-card .icon { width: 36px; height: 36px; font-size: 1rem; }
  .content-card { padding: 1.4rem; }
  .auth-form-col { padding: 2rem 1.2rem; }
}
