/* ============================================================
   Katriva Design System v2
   ============================================================ */
:root {
  /* Palette derived from the Katriva logo: dark teal-charcoal wordmark,
     teal/green "K" swoosh, orange/gold flame + starburst accent. */
  --ink: #0E2A33;
  --ink-soft: #4C6B72;
  --paper: #FBF8F1;
  --paper-alt: #F1EAD8;
  --card: #FFFFFF;
  --line: rgba(14,42,51,.10);
  --line-strong: rgba(14,42,51,.16);

  --navy: #0E2A33;
  --navy-deep: #081A20;
  --gold: #E07A22;
  --gold-deep: #B85A16;
  --gold-soft: #F8DDA7;
  --terracotta: #A8431C;
  --sage: #2F7A68;

  --shadow-sm: 0 1px 2px rgba(14,42,51,.06);
  --shadow-md: 0 6px 20px rgba(14,42,51,.08);
  --shadow-lg: 0 18px 45px rgba(14,42,51,.14);
  --radius: 18px;
  --radius-sm: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .edf-brand-font {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--navy); }
a:hover { color: var(--gold-deep); }

::selection { background: var(--gold-soft); color: var(--ink); }

.text-muted { color: var(--ink-soft) !important; }

/* ---------------- Navbar ---------------- */
.edf-navbar {
  /* Pure white, matching the logo file's own opaque white background exactly
     so the logo's edges are invisible instead of reading as a boxed tile. */
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding-top: .5rem;
  padding-bottom: .5rem;
}
.edf-navbar .navbar-brand.edf-brand-lockup {
  display: flex;
  align-items: center;
  padding: 0;
}
.edf-brand-lockup .edf-brand-logo {
  height: 62px;
  width: auto;
  object-fit: contain;
  display: block;
}
@media (max-width: 991.98px) {
  .edf-brand-lockup .edf-brand-logo { height: 48px; }
}

.edf-footer-brand-lockup {
  display: inline-flex;
  align-items: center;
}
.edf-footer-brand-lockup .edf-footer-brand-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Trademark mark — small ™ set above/right of the wordmark, on both the
   navbar and footer logo lockups. Registered as text (not baked into the
   logo image) so it stays crisp at any size and is easy to update. */
.edf-brand-mark { position: relative; display: inline-flex; }
.edf-brand-mark .edf-trademark {
  position: absolute;
  top: 30%;
  right: 2%;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink-soft, #5a5a5a);
  line-height: 1;
}
@media (max-width: 991.98px) {
  .edf-brand-mark .edf-trademark { font-size: .7rem; }
}
.edf-navbar .nav-link {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .94rem;
  padding: .5rem .9rem !important;
}
.edf-navbar .nav-link:hover { color: var(--ink); }
.edf-navbar .navbar-toggler { border-color: var(--line-strong); padding: .35rem .55rem; }
.edf-navbar .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(14,42,51,.15); }

/* Active nav item — tells a visitor which section/page they're currently on
   (Home / Courses / AI Mock Tests / Blog / About / Contact), set server-side
   in header.php from the request path. Underline indicator on plain links; a
   solid-filled pill on the "AI Mock Tests" highlight link, since it already
   carries a background and an underline would clash with it. */
.edf-navbar .nav-link.active:not(.nav-link-highlight) {
  color: var(--ink);
  font-weight: 700;
  position: relative;
}
.edf-navbar .nav-link.active:not(.nav-link-highlight)::after {
  content: "";
  position: absolute;
  left: .9rem; right: .9rem; bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
}
@media (max-width: 991.98px) {
  .edf-navbar .nav-link.active:not(.nav-link-highlight)::after { left: .2rem; right: auto; width: 28px; }
}

/* Highlighted nav pill — calls out the free AI mock test feature in the main menu. */
.edf-navbar .nav-link.nav-link-highlight {
  background: rgba(224,122,34,.12);
  color: var(--gold-deep) !important;
  border-radius: 999px;
  padding: .5rem 1rem !important;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.edf-navbar .nav-link.nav-link-highlight:hover { background: rgba(224,122,34,.22); color: var(--gold-deep) !important; }
.edf-navbar .nav-link.nav-link-highlight.active {
  background: var(--gold-deep);
  color: #fff !important;
}
.edf-navbar .nav-link.nav-link-highlight.active:hover { background: var(--gold-deep); color: #fff !important; }
@media (max-width: 991.98px) {
  .edf-navbar .nav-link.nav-link-highlight { display: inline-flex; margin: .25rem 0; }
}

/* ---------------- Buttons ---------------- */
.btn { font-weight: 600; border-radius: 10px; font-size: .95rem; padding: .6rem 1.3rem; }
.btn-lg { padding: .8rem 1.8rem; font-size: 1rem; }
.btn-sm { padding: .4rem .9rem; font-size: .85rem; border-radius: 8px; }

.btn-warning, .btn-edf-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #241703;
  box-shadow: 0 4px 14px rgba(199,134,27,.28);
}
.btn-warning:hover, .btn-edf-gold:hover {
  background: var(--gold-deep); border-color: var(--gold-deep); color: #241703;
  box-shadow: 0 6px 18px rgba(199,134,27,.36);
}
.btn-edf-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn-edf-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color:#fff; }
.btn-outline-secondary { border-color: var(--line-strong); color: var(--ink); }
.btn-outline-secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- Hero ---------------- */
.edf-hero {
  background:
    radial-gradient(720px 420px at 88% -10%, rgba(224,122,34,.16), transparent 60%),
    radial-gradient(600px 500px at -5% 110%, rgba(47,122,104,.14), transparent 55%),
    linear-gradient(160deg, var(--paper) 0%, var(--paper-alt) 100%);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.edf-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(14,42,51,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
  pointer-events: none;
}
.edf-hero .badge-anniversary {
  background: rgba(224,122,34,.12);
  color: var(--gold-deep);
  border: 1px solid rgba(224,122,34,.32);
  font-weight: 600;
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.edf-hero h1 { font-size: 2.9rem; line-height: 1.12; color: var(--ink); }
.edf-hero .lead { color: var(--ink-soft); font-size: 1.12rem; }
.edf-hero-stat .num { font-family:'Space Grotesk',sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.edf-hero-stat .lbl { color: var(--ink-soft); font-size: .82rem; }
.edf-hero-stat { border-left: 1px solid var(--line); padding-left: .9rem; }
.edf-hero-stat:first-child { border-left: none; padding-left: 0; }

/* ---------------- Cards ---------------- */
.edf-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}
.edf-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.edf-card.lift:hover { transform: translateY(-4px); }

/* Course icon badge — colored per-course via inline --accent custom property */
.edf-course-icon {
  --accent: var(--navy);
  width: 56px; height: 56px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 14%, white);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.edf-course-icon svg { width: 30px; height: 30px; }
.edf-course-icon.lg { width: 68px; height: 68px; border-radius: 18px; }
.edf-course-icon.lg svg { width: 36px; height: 36px; }

.edf-course-card {
  border-top: 3px solid var(--accent, var(--navy));
}

/* ---------------- Slot rows ---------------- */
.edf-slot {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--card);
  transition: border-color .15s ease, background .15s ease;
}
.edf-slot:hover { border-color: var(--navy); background: #FAFAFF; }
.edf-slot .date-chip {
  background: var(--navy);
  color: #fff;
  border-radius: 11px;
  min-width: 58px;
  text-align: center;
  padding: 7px 0;
  font-family: 'Space Grotesk', sans-serif;
}
.edf-slot .date-chip .d { font-size: 1.15rem; font-weight: 700; line-height: 1; }
.edf-slot .date-chip .m { font-size: .66rem; text-transform: uppercase; opacity: .78; letter-spacing: .04em; }

/* ---------------- Sections ---------------- */
.edf-section-title { font-size: 2rem; margin-bottom: .35rem; }
.edf-section-sub { color: var(--ink-soft); }
.edf-section-alt { background: var(--paper-alt); }
.edf-kicker {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .6rem;
}

/* ---------------- Footer ---------------- */
/* Pure white, matching the logo file's own opaque white background exactly
   so the logo's edges are invisible instead of reading as a boxed tile. */
.edf-footer { background: var(--card); border-top: 1px solid var(--line); color: var(--ink); }
.edf-footer h6 { color: var(--ink); }
.edf-footer-muted { color: var(--ink-soft); }
.edf-footer-links a { color: var(--ink-soft); text-decoration: none; display: block; padding: 4px 0; font-size: .93rem; }
.edf-footer-links a:hover { color: var(--gold-deep); }
.edf-footer hr { border-color: var(--line-strong); opacity: 1; }
.edf-social-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-alt, rgba(0,0,0,.05)); color: var(--ink-soft); font-size: 1.05rem; transition: background .15s, color .15s; }
.edf-social-icon:hover { background: var(--gold, #E07A22); color: #fff; }

/* ---------------- Dashboard ---------------- */
.edf-sidebar,
.edf-sidebar.offcanvas-lg { background-color: var(--navy-deep) !important; min-height: 100vh; color: #fff; border-right: 0 !important; }
@media (min-width: 992px) {
  .edf-sidebar.offcanvas-lg {
    position: sticky;
    top: 0;
    height: 100vh;
    /* Bootstrap's responsive offcanvas resets the outer panel and its .offcanvas-body
       once it becomes a static, always-visible panel at the lg breakpoint — fine for a
       normal navbar, but it breaks a tall sidebar nav list: without an explicit flex
       column here, the 821px-tall body just overflows the 100vh box silently instead of
       scrolling inside it, so Logout is unreachable. Force a real scrolling flex column. */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
  }
  .edf-sidebar.offcanvas-lg .offcanvas-body {
    display: flex !important;
    flex-direction: column;
    flex-grow: 1 !important;
    min-height: 0;
    overflow-y: auto !important;
    padding: 0 !important;
  }
}
.edf-sidebar a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  display: block;
  padding: 10px 18px;
  border-radius: 9px;
  margin: 2px 10px;
  font-weight: 500;
  font-size: .93rem;
}
.edf-sidebar a:hover, .edf-sidebar a.active { background: rgba(199,134,27,.16); color: var(--gold); }
.edf-sidebar .brand {
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
/* Full-width light band for the logo (its source file has a fixed opaque white
   background) instead of a small rounded "boxed" pill — matches the public
   navbar/footer treatment so the logo reads as part of the design, not a sticker. */
.edf-sidebar-brand {
  /* Pure white, matching the logo file's own opaque white background. */
  background: var(--card);
  padding: 16px 18px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.edf-sidebar-logo { height: 40px; width: auto; object-fit: contain; display: block; }
.offcanvas-header.edf-sidebar-brand { justify-content: space-between; }
.edf-stat-card { background: #fff; border-radius: 14px; padding: 20px; border: 1px solid var(--line); }
.edf-stat-card .num { font-size: 1.7rem; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.badge-level { background: var(--gold-soft); color: var(--gold-deep); font-weight: 600; }
.table-edf thead { background: var(--paper-alt); }
.table-edf { --bs-table-hover-bg: #FAF7EE; font-size: .85rem; }
.table-edf th { font-size: .76rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-soft); font-weight: 700; }
.table-edf td, .table-edf th { vertical-align: middle; }
.table-edf .col-serial { width: 1%; color: var(--ink-soft); white-space: nowrap; }

/* Admin list-view toolbar: "N results" summary + Add New button above every
   admin CRUD list, and the small round icon buttons (view/edit/delete/etc)
   used in place of full-width text buttons in list rows. */
.edf-list-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; }
.edf-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--line, #E4DFD1);
  background: #fff; color: var(--ink-soft); margin: 0 2px; font-size: .85rem; line-height: 1;
  transition: background .15s, color .15s, border-color .15s; cursor: pointer;
}
.edf-icon-btn:hover, .edf-icon-btn:focus { background: var(--paper-alt); color: var(--ink); text-decoration: none; }
.edf-icon-btn.edf-icon-danger:hover, .edf-icon-btn.edf-icon-danger:focus { background: #FDECEA; color: #C0392B; border-color: #F3C3BD; }
.edf-icon-btn.edf-icon-success:hover, .edf-icon-btn.edf-icon-success:focus { background: #EAF7EE; color: #1E8449; border-color: #BEE6C8; }
.edf-icon-btn:disabled { opacity: .4; cursor: not-allowed; }
.edf-icon-btn:disabled:hover { background: #fff; color: var(--ink-soft); }

/* ---------------- Super UI v3: sequential ID chips, status pills,
   avatar initials, and the 3-dot row-action menu (replaces the old
   row of small icon buttons everywhere except a couple of 2-action
   rows where icons still read fine). ---------------- */
.edf-idchip {
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .74rem;
  color: var(--ink-soft); background: var(--paper-alt); border-radius: 6px;
  padding: 3px 7px; letter-spacing: .02em; white-space: nowrap; display: inline-block;
}
.edf-avatar {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: .72rem; flex-shrink: 0; background: var(--paper-alt); color: var(--ink-soft);
}
.edf-who { display: flex; align-items: center; gap: 10px; }
.edf-who .nm { font-weight: 600; font-size: .87rem; }
.edf-who .sub { font-size: .76rem; color: var(--ink-soft); margin-top: 1px; }

.edf-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.edf-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.edf-pill-info { background: #E6F0F8; color: #2E6C9E; }
.edf-pill-amber { background: #FBF3DC; color: #B8860B; }
.edf-pill-gold { background: var(--gold-soft); color: var(--gold-deep); }
.edf-pill-success { background: #E4F3EE; color: #1E5C4E; }
.edf-pill-danger { background: #FBEAE7; color: #B23A2E; }
.edf-pill-muted { background: var(--paper-alt); color: var(--ink-soft); }

/* 3-dot row action menu */
.edf-rowmenu { position: relative; display: inline-block; }
.edf-dots-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid transparent; background: transparent;
  color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.edf-dots-btn:hover, .edf-dots-btn.open { background: var(--paper-alt); border-color: var(--line-strong); color: var(--ink); }
.edf-dots-btn svg { width: 17px; height: 17px; }
.edf-menu {
  position: absolute; right: 0; top: calc(100% + 4px); min-width: 190px; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 11px; box-shadow: var(--shadow-lg);
  padding: 6px; z-index: 40; display: none;
}
.edf-menu.open { display: block; }
.edf-menu button, .edf-menu a.edf-menu-item {
  width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: none; background: transparent;
  border-radius: 7px; font-size: .84rem; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left;
  text-decoration: none; box-sizing: border-box;
}
.edf-menu button svg, .edf-menu a.edf-menu-item svg { width: 15px; height: 15px; color: var(--ink-soft); flex-shrink: 0; }
.edf-menu button:hover, .edf-menu a.edf-menu-item:hover { background: var(--paper-alt); }
.edf-menu button.edf-menu-danger { color: #B23A2E; }
.edf-menu button.edf-menu-danger svg { color: #B23A2E; }
.edf-menu button.edf-menu-success { color: #1E5C4E; }
.edf-menu button.edf-menu-success svg { color: #1E5C4E; }
.edf-menu .edf-menu-sep { height: 1px; background: var(--line); margin: 5px 2px; }
.edf-menu form { margin: 0; }
.edf-menu-toggle { display: flex; align-items: center; justify-content: space-between; }
.edf-menu-toggle .chev { width: 13px; height: 13px; color: var(--ink-faint, var(--ink-soft)); transition: transform .15s; flex-shrink: 0; }
.edf-menu-toggle.open .chev { transform: rotate(180deg); }
.edf-submenu { display: none; padding: 2px 0 2px 6px; border-left: 2px solid var(--line); margin: 2px 0 2px 20px; }
.edf-submenu.open { display: block; }
.edf-submenu button { font-size: .78rem; padding: 7px 8px; }
.edf-submenu button .chk { width: 14px; height: 14px; flex-shrink: 0; color: #1E5C4E; visibility: hidden; }
.edf-submenu button.current .chk { visibility: visible; }
.edf-submenu button.current { font-weight: 700; color: #1E5C4E; background: #E4F3EE; }

/* ---------------- Mock test ---------------- */
.mt-question-card { border-radius: var(--radius); }
.mt-timer { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.1rem; }
.score-ring {
  width: 140px; height: 140px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--sage) calc(var(--pct,0) * 1%), #EDE7D6 0);
}
.score-ring .inner {
  width: 112px; height: 112px; border-radius: 50%; background: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ---------------- How-it-works numbered steps ---------------- */
.edf-step-num {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  flex-shrink: 0;
}

/* ---------------- Utility ---------------- */
.edf-divider { height: 1px; background: var(--line); border: none; }
.edf-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--paper-alt); border-radius: 999px;
  padding: .3rem .75rem; font-size: .82rem; font-weight: 600; color: var(--ink-soft);
}

/* ============================================================
   Blog article body — styles the raw HTML that comes out of the
   admin CMS's rich-text editor (dashboard/admin/blog_edit.php).
   ============================================================ */
.edf-blog-content { font-size: 1.05rem; line-height: 1.8; color: var(--ink); }
.edf-blog-content h2 { font-size: 1.6rem; font-weight: 700; margin: 2rem 0 1rem; color: var(--ink); }
.edf-blog-content h3 { font-size: 1.3rem; font-weight: 700; margin: 1.75rem 0 .85rem; color: var(--ink); }
.edf-blog-content h4 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 .75rem; color: var(--ink); }
.edf-blog-content p { margin-bottom: 1.25rem; }
.edf-blog-content a { color: var(--gold-deep, #B8860B); text-decoration: underline; }
.edf-blog-content ul, .edf-blog-content ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.edf-blog-content li { margin-bottom: .4rem; }
.edf-blog-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.5rem 0; }
.edf-blog-content blockquote {
  border-left: 4px solid var(--gold-deep, #B8860B); background: var(--paper-alt);
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0; font-style: italic; color: var(--ink-soft);
}
.edf-blog-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.edf-blog-content table th, .edf-blog-content table td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.edf-blog-content table th { background: var(--paper-alt); }
.edf-blog-content code { background: var(--paper-alt); padding: .15rem .4rem; border-radius: 4px; font-size: .9em; }
.edf-blog-content pre { background: var(--ink); color: var(--paper); padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1.5rem 0; }
.edf-blog-content pre code { background: none; color: inherit; padding: 0; }
.edf-blog-content hr { border: none; border-top: 1px solid var(--line); margin: 2rem 0; }
.edf-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; margin: 1.5rem 0; background: #000; }
.edf-video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.edf-blog-content .edf-source-list { font-size: .92rem; color: var(--ink-soft, #5a5a5a); }
.edf-blog-content .edf-source-list a { word-break: break-word; }
.edf-blog-content .edf-callout {
  border-left: 4px solid var(--gold-deep, #B8860B); background: var(--paper-alt);
  padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 8px 8px 0;
}

/* ---------------- Course/test images — hero photo + card thumbnails ---------------- */
.edf-hero-with-image { position: relative; color: #fff; }
.edf-hero-with-image::after { display: none; }
.edf-hero-bgimg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.edf-hero-with-image .container { position: relative; z-index: 1; }
.edf-hero-with-image h1, .edf-hero-with-image .lead, .edf-hero-with-image .edf-hero-tagline { color: #fff; }
.edf-hero-with-image nav a { color: rgba(255,255,255,.75) !important; }
.edf-hero-tagline { font-size: 1.02rem; opacity: .85; margin-top: .15rem; }
.edf-course-hero-thumb {
  width: 68px; height: 68px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.35);
}
.edf-course-card-img {
  width: 100%; height: 160px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Homepage redesign v2 — logo wall, stats band, why-us compare,
   FAQ accordion, "from the blog" strip.
   ============================================================ */

/* Exam/language "logo wall" trust strip — original icon+wordmark chips,
   never the test bodies' own trademarked artwork (see exam_logo_badge()). */
.edf-logo-wall {
  display: flex; flex-wrap: wrap; gap: .65rem; justify-content: center;
}
.edf-logo-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: .5rem 1rem .5rem .5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.edf-logo-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.edf-logo-badge .ic {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.edf-logo-badge .ic svg { width: 18px; height: 18px; }
.edf-logo-badge .tx { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: .9rem; color: var(--ink); white-space: nowrap; }
.edf-trademark-note { font-size: .8rem; color: var(--ink-soft); text-align: center; max-width: 720px; margin: 1.25rem auto 0; }

/* Stats band — full-width dark panel, mirrors the hero's gradient + dot
   texture so it reads as part of the same design system, not a bolt-on. */
.edf-stats-band {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, #0E2A33, #2A2F6B);
  color: #fff;
}
.edf-stats-band::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.edf-stats-band .container { position: relative; z-index: 1; }
.edf-stat-item .ic {
  width: 46px; height: 46px; border-radius: 13px; margin: 0 auto .75rem;
  background: rgba(248,221,167,.16); color: #F8DDA7;
  display: flex; align-items: center; justify-content: center;
}
.edf-stat-item .ic svg { width: 24px; height: 24px; }
.edf-stat-item .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.1rem; line-height: 1; }
.edf-stat-item .lbl { color: rgba(255,255,255,.72); font-size: .86rem; margin-top: .35rem; }

/* Why-Katriva 3-column comparison */
.edf-compare-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem 1.5rem; height: 100%;
}
.edf-compare-col.is-featured {
  background: linear-gradient(155deg, #0E2A33, #2A2F6B); color: #fff; border: none;
  box-shadow: var(--shadow-lg); transform: translateY(-8px);
}
.edf-compare-col.is-featured .edf-compare-item { color: rgba(255,255,255,.9); }
.edf-compare-col .badge-featured {
  background: var(--gold); color: #241703; font-weight: 700; font-size: .74rem;
  padding: .3rem .75rem; border-radius: 999px; display: inline-block; margin-bottom: .75rem;
}
.edf-compare-item { display: flex; align-items: flex-start; gap: .55rem; margin-bottom: .7rem; font-size: .92rem; color: var(--ink-soft); }
.edf-compare-item i { flex-shrink: 0; margin-top: .15rem; }
.edf-compare-item.good i { color: var(--sage); }
.edf-compare-item.bad i { color: #B23A2E; }
.edf-compare-col.is-featured .edf-compare-item.good i { color: #7FDDBB; }

/* FAQ accordion */
.edf-faq .accordion-item { border: 1px solid var(--line); border-radius: 14px !important; overflow: hidden; margin-bottom: .75rem; }
.edf-faq .accordion-button { font-weight: 600; color: var(--ink); font-size: 1rem; }
.edf-faq .accordion-button:not(.collapsed) { background: var(--paper-alt); color: var(--ink); box-shadow: none; }
.edf-faq .accordion-button:focus { box-shadow: none; border-color: var(--line-strong); }
.edf-faq .accordion-body { color: var(--ink-soft); font-size: .94rem; }
