/* ==========================================================================
   Alina Milin Academy — apex-clean.css
   Clean, Elementor-free design for the child theme. Single source of truth
   for the visual layer. Adapted from the verified Apex restyle (apex-home.css
   + apex-restyle.css) and rebuilt for clean semantic markup.
   Tokens: body #eaeaed · ink #131316 · gold #85693a (light #cbb27f)
   Type:   Playfair Display (serif) + Montserrat (sans)
   ========================================================================== */

/* ---------- 0. Base ---------- */
:root{
  --apex-ink:#131316;
  --apex-gold:#85693a;
  --apex-gold-lt:#cbb27f;
  --apex-body:#eaeaed;
  --apex-text:#2b2b30;
  --apex-muted:#5a5a63;
  /* Relative to this file (wp-content/themes/alinamilin-academy/) -> wp-content/uploads/.
     Portable across staging (subdir) and live (docroot). */
  --apex-logo:url('../../uploads/apex_logo_08_full.png'); /* 2026-11-23: header = full gold logo (Daniel: "the gold full logo, not the simplified one") */
}
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0;
  background:#eaeaed !important;
  color:#2b2b30;
  font-family:'Montserrat',sans-serif;
  font-size:15px;
  line-height:1.75;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; }
a{ color:var(--apex-gold); }

/* ---------- 1. Container + skip link ---------- */
.apex-container{ max-width:1200px; margin:0 auto; padding:0 24px; }
.apex-skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--apex-ink); color:#fff; padding:10px 18px; border-radius:0 0 8px 0;
}
.apex-skip:focus{ left:0; }

/* ==========================================================================
   2. HEADER  (dark utility strip + white masthead)
   ========================================================================== */
.apex-header{ position:relative; z-index:90; }

/* --- 2a. Dark utility strip (Autentificare / Înregistrare) --- */
.apex-topbar{
  background:#131316;
  color:#ffffff;
  font-size:11px;
  font-weight:600;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1;
}
.apex-topbar .apex-container{ display:flex; justify-content:center; align-items:center; min-height:30px; }
.apex-topbar-links{ display:flex; align-items:center; gap:10px; }
.apex-topbar-links a{ color:#ffffff !important; text-decoration:none; transition:color .25s ease; }
.apex-topbar-links a:hover{ color:#cbb27f !important; }
.apex-topbar-hello{ color:#ffffff !important; }
.apex-topbar-sep{ color:rgba(255,255,255,.5) !important; }

/* --- 2b. White masthead (logo left, nav right) --- */
.apex-masthead{
  background:#ffffff;
  box-shadow:0 1px 0 rgba(19,19,22,.05), 0 10px 28px rgba(19,19,22,.06);
  position:sticky; top:0; z-index:90;
}
.apex-masthead-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height:88px; gap:24px;
  transition:min-height .3s ease;
}
/* Sticky shrink: masthead shrinks once scrolled (toggled by apex-nav.js). */
.apex-masthead.apex-shrunk{ box-shadow:0 1px 0 rgba(19,19,22,.06), 0 14px 34px rgba(19,19,22,.15); }
.apex-masthead.apex-shrunk .apex-masthead-inner{ min-height:62px; }
.apex-masthead.apex-shrunk .apex-logo{ height:46px; width:116px; }

/* Logo: gold AM mark drawn as a CSS background (portable via --apex-logo). */
.apex-logo{
  display:inline-block; flex:0 0 auto;
  width:150px; height:64px;
  background-image:var(--apex-logo);
  background-repeat:no-repeat;
  background-position:left center;
  background-size:contain;
}

/* --- Desktop nav: ink links, gold underline on hover --- */
.apex-nav{ display:flex; align-items:center; gap:4px; }
.apex-nav > a{
  font-family:'Montserrat',sans-serif;
  font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:#2b2b30; text-decoration:none;
  padding:0 20px; position:relative; white-space:nowrap;
  transition:color .25s ease;
}
.apex-nav > a::after{
  content:""; position:absolute; left:20px; right:20px; bottom:-10px; height:2px;
  background:#85693a; transform:scaleX(0); transform-origin:center; transition:transform .3s ease;
}
.apex-nav > a:hover,
.apex-nav > a:focus,
.apex-nav > .current-menu-item,
.apex-nav > .current_page_item,
.apex-nav > .current-menu-ancestor{ color:#85693a; }
.apex-nav > a:hover::after,
.apex-nav > a:focus::after{ transform:scaleX(1); }

/* --- Hamburger (mobile only) --- */
.apex-burger{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:44px; height:44px; padding:10px; margin-left:auto;
  background:transparent; border:0; cursor:pointer;
}
.apex-burger span{ display:block; height:2px; width:100%; background:#131316; transition:transform .25s ease, opacity .25s ease; }
.apex-burger:hover span{ background:#85693a; }
.apex-burger.apex-active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.apex-burger.apex-active span:nth-child(2){ opacity:0; }
.apex-burger.apex-active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }
/* The site-wide customizer dump (inline <style id="apex-restyle"> in the
   apex-restyle mu-plugin, wp_head prio 99) styles the BARE `button` element:
   background:#85693a !important; padding:10px 40px !important; color:#fff
   !important — which turned the burger into a bronze block with 0-width
   bars (44px box + 80px padding), and button:hover/:focus made it all
   white. Lock the burger back to spec (class specificity + !important
   beats the element-level dump). */
.apex-burger,
.apex-burger:hover,
.apex-burger:focus,
.apex-burger:active{
  background:transparent !important;
  border:0 !important;
  padding:10px !important;
  border-radius:0 !important;
  color:#131316 !important;
}
.apex-burger span{ background:#131316 !important; }
.apex-burger:hover span{ background:#85693a !important; }

/* ==========================================================================
   3. INTRO
   ========================================================================== */
.apex-intro{ background:#eaeaed; padding:84px 0 74px; }
.apex-intro-inner{ max-width:1120px; }
.apex-kicker{
  font-family:'Montserrat',sans-serif; font-size:12px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:#85693a; margin:0 0 20px;
}
.apex-intro-title{
  font-family:'Playfair Display',Georgia,serif; font-size:52px; line-height:1.06;
  font-weight:600; color:#131316; margin:0 0 14px; letter-spacing:-.01em;
}
.apex-intro-sub{
  font-family:'Playfair Display',Georgia,serif; font-style:italic; font-weight:500;
  font-size:23px; line-height:1.35; color:#85693a; margin:0 0 26px;
}
.apex-rule{ border:0; height:2px; width:64px; background:#85693a; margin:0 0 30px; }
.apex-lead{
  font-size:17px; line-height:1.85; color:#3a3a40; margin:0 0 22px; max-width:820px;
}
.apex-para{ font-size:15px; line-height:1.8; color:#4a4a52; margin:0 0 18px; max-width:820px; }

.apex-levels{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin:30px 0 34px; }
.apex-level{
  background:#ffffff; border:1px solid rgba(19,19,22,.08); border-radius:14px;
  padding:26px 24px; box-shadow:0 1px 2px rgba(19,19,22,.04);
}
.apex-level-num{
  font-family:'Playfair Display',Georgia,serif; font-size:40px; line-height:1;
  font-weight:600; color:#cbb27f; margin-bottom:12px;
}
.apex-level-name{
  font-family:'Montserrat',sans-serif; font-size:13px; font-weight:700;
  letter-spacing:.16em; text-transform:uppercase; color:#131316; margin-bottom:10px;
}
.apex-level p{ font-size:13.5px; line-height:1.6; color:#5a5a63; margin:0; }

.apex-aside{
  background:#f6efe1; border-left:3px solid #85693a; border-radius:0 12px 12px 0;
  padding:24px 28px; margin:0 0 22px; max-width:820px;
  font-size:14.5px; line-height:1.75; color:#5a4a2e;
}

/* ==========================================================================
   4. COURSE GROUP HEADERS
   ========================================================================== */
.apex-course-section{ background:#eaeaed; padding:48px 0; }
.apex-course-section:first-of-type{ padding-top:32px; }
.apex-ch-num{
  display:block; font-family:'Montserrat',sans-serif; font-size:12px; font-weight:700;
  letter-spacing:.22em; color:#85693a; text-transform:uppercase; margin-bottom:8px;
}
.apex-course-section h2{
  font-family:'Playfair Display',Georgia,serif; font-size:33px; line-height:1.12;
  font-weight:600; color:#131316; margin:0 0 10px;
}
.apex-ch-sub{ font-size:14.5px; line-height:1.7; color:#5a5a63; margin:0 0 16px; max-width:680px; }
.apex-ch-rule{ border:0; height:2px; width:64px; background:#85693a; margin:0 0 30px; }
/* White frame around the group header (num + title + sub) so it pops on the grey band. */
.apex-ch-frame{
  background:#ffffff; border:1px solid rgba(19,19,22,.06); border-radius:16px;
  box-shadow:0 2px 20px rgba(19,19,22,.08); padding:30px 34px 28px; margin:0 0 30px;
}
.apex-ch-frame .apex-ch-num{ margin-bottom:10px; }
.apex-ch-frame h2{ margin:0 0 12px; }
.apex-ch-frame .apex-ch-sub{ margin:0; max-width:760px; }

/* ==========================================================================
   5. COURSE GRID + CARDS  (matches LearnDash card markup)
   ========================================================================== */
.ld-course-list-items{ margin-left:-15px; margin-right:-15px; }
.ld_course_grid{
  display:grid !important; grid-template-columns:repeat(5,1fr); gap:30px 24px;
  padding:14px 15px; margin:0;
}
/* Section 01 (Calificare, 3 courses) = 3 columns so it fills one full row (original col-md-4).
   Sections 02/03 = 5 columns (original col-md-2-4). */
#apex-head-01 .ld_course_grid{ grid-template-columns:repeat(3,1fr); }
.ld_course_grid article{
  background:#ffffff; border:1px solid rgba(19,19,22,.06); border-radius:12px;
  overflow:hidden; margin:0; box-shadow:0 1px 2px rgba(19,19,22,.05);
  transition:transform .25s ease, box-shadow .25s ease; display:flex; flex-direction:column;
}
.ld_course_grid article:hover{ transform:translateY(-4px); box-shadow:0 14px 30px rgba(19,19,22,.12); }
.ld_course_grid article > a{ display:block; overflow:hidden; position:relative; }
.ld_course_grid article > a img{
  width:100%; height:auto; object-fit:cover; aspect-ratio:16/9;
  display:block; transition:transform .5s ease;
}
.ld_course_grid article:hover > a img{ transform:scale(1.05); }
.ld_course_grid .ribbon{
  position:absolute; top:12px; left:0; background:#131316; color:#cbb27f;
  font-family:'Montserrat',sans-serif; font-size:10px; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; padding:6px 14px 6px 12px;
  border-radius:0 4px 4px 0; z-index:2;
}
.ld_course_grid .caption{ padding:16px 18px 20px; }
.ld_course_grid .entry-title{
  font-family:'Playfair Display',Georgia,serif; font-size:15px; line-height:1.32;
  font-weight:600; color:#131316; margin:0 0 12px; min-height:2.64em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.ld_course_grid .ld_course_grid_button{ margin-top:auto; }
.ld_course_grid .ld_course_grid_button a.btn{
  display:inline-block; width:auto; text-align:center; white-space:nowrap;
  font-family:'Montserrat',sans-serif; font-size:11px; font-weight:600;
  letter-spacing:.05em; text-transform:uppercase; color:#85693a;
  background:transparent; border:1px solid #85693a; border-radius:4px;
  padding:9px 14px; cursor:pointer; transition:background .25s ease, color .25s ease;
}
.ld_course_grid .ld_course_grid_button a.btn:hover{ background:#85693a; color:#ffffff; }
.apex-card-noimg{ width:100%; aspect-ratio:16/9; background:#dedce8; }

/* ==========================================================================
   6. "DE CE" BAND (dark)
   ========================================================================== */
.apex-why{ background:#131316; color:#fff !important; padding:80px 0; }
.apex-why .apex-kicker{ color:#cbb27f !important; }
.apex-why-lead{
  font-family:'Playfair Display',Georgia,serif; font-size:34px; line-height:1.2;
  font-weight:600; color:#fff !important; margin:0 0 40px; max-width:900px;
}
.apex-why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:40px; }
.apex-why-item{
  background:rgba(255,255,255,.04); border:1px solid rgba(203,178,127,.25);
  border-radius:12px; padding:24px; font-size:14px; line-height:1.7; color:rgba(255,255,255,.86) !important;
}
.apex-why-item strong{ color:#cbb27f !important; font-weight:700; }
.apex-why-close{ font-size:15px; line-height:1.8; color:rgba(255,255,255,.84) !important; max-width:900px; margin:0 0 18px; }
.apex-why-final{
  font-family:'Playfair Display',Georgia,serif; font-style:italic; font-size:19px;
  line-height:1.6; color:#cbb27f !important; max-width:900px; margin:0;
}

/* ==========================================================================
   7. TAGLINE
   ========================================================================== */
.apex-tagline{ background:#eaeaed; padding:80px 0; text-align:center; }
.apex-tagline-name{
  font-family:'Montserrat',sans-serif; font-size:12px; font-weight:700;
  letter-spacing:.22em; text-transform:uppercase; color:#85693a; margin:0 0 20px;
}
.apex-tagline-big{
  font-family:'Playfair Display',Georgia,serif; font-size:38px; line-height:1.25;
  font-weight:600; color:#131316; margin:0 auto 20px; max-width:900px;
}
.apex-tagline-small{ font-size:15px; line-height:1.7; color:#5a5a63; margin:0 auto 30px; max-width:680px; }
.apex-cta{
  display:inline-block; font-family:'Montserrat',sans-serif; font-size:13px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:#fff; background:#85693a;
  border:1px solid #85693a; border-radius:4px; padding:14px 34px; text-decoration:none;
  transition:background .25s ease, color .25s ease;
}
.apex-cta:hover{ background:#131316; border-color:#131316; color:#fff; }

/* ==========================================================================
   8. CONTACT  (WPForms 670, dark band)
   ========================================================================== */
.apex-contact{ background:#131316; padding:72px 0; }
.apex-contact .wpforms-container{ max-width:760px; margin:0 auto; }
.apex-contact .wpforms-form h3,
.apex-contact .wpforms-form .wpforms-title,
.apex-contact .wpforms-form .wpforms-description{
  font-family:'Playfair Display',Georgia,serif; color:#fff !important;
}
.apex-contact .wpforms-form .wpforms-title{ font-size:30px; margin-bottom:8px; }
.apex-contact .wpforms-form .wpforms-field-label{
  font-family:'Montserrat',sans-serif; font-size:12px; font-weight:600;
  letter-spacing:.08em; text-transform:uppercase; color:#cbb27f !important;
}
.apex-contact .wpforms-form input:not([type=checkbox]):not([type=radio]),
.apex-contact .wpforms-form select,
.apex-contact .wpforms-form textarea{
  background:#f6f6f7 !important; color:#131316 !important;
  border:1px solid rgba(19,19,22,.12) !important; border-radius:6px;
  font-family:'Montserrat',sans-serif; font-size:14px; padding:12px 14px;
}
.apex-contact .wpforms-form .wpforms-checkbox-field input{ accent-color:#85693a; }
.apex-contact .wpforms-form .wpforms-acceptance-label,
.apex-contact .wpforms-form .wpforms-acceptance-text,
.apex-contact .wpforms-form .wpforms-field-label,
.apex-contact .wpforms-form .wpforms-field-label-inline,
.apex-contact .wpforms-form .wpforms-field-sublabel,
.apex-contact .wpforms-form .wpforms-field-description,
.apex-contact .wpforms-form p{ color:#ffffff !important; }
.apex-contact .wpforms-form .wpforms-acceptance-text a,
.apex-contact .wpforms-form .wpforms-field-description a{ color:#cbb27f !important; }
.apex-contact .wpforms-form .wpforms-submit{
  background:#131316 !important; color:#fff !important; border:1px solid #cbb27f !important;
  font-family:'Montserrat',sans-serif; font-size:13px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; border-radius:4px; padding:14px 34px;
}
.apex-contact .wpforms-form .wpforms-submit:hover{ background:#85693a !important; border-color:#85693a !important; }

/* ==========================================================================
   9. FOOTER (dark)
   ========================================================================== */
.apex-footer{ background:#ffffff; color:#5a5a63; padding:34px 0 0; }
.apex-footer .apex-container{ display:flex; flex-direction:column; align-items:center; gap:14px; text-align:center; }
.apex-footer-logo{
  width:160px; height:103px; margin-bottom:4px;
  background-image:var(--apex-logo-full);
  background-repeat:no-repeat; background-position:center; background-size:contain;
}
.apex-footer-base{ background:#131316; padding:22px 0 28px; margin-top:28px; }
.apex-footer-logos{ display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:12px 30px; margin:8px 0 4px; }
.apex-footer-logos a{ display:inline-block; }
.apex-footer-logos img{ display:block; height:48px; width:auto; }
.apex-footer-logos img[src*="anpc"]{ width:250px; height:auto; margin:5px; }
.apex-footer-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px 22px; }
.apex-footer-nav a{
  font-family:'Montserrat',sans-serif; font-size:12.5px; letter-spacing:.04em;
  color:#85693a; text-decoration:none; transition:color .2s ease;
}
.apex-footer-nav a:hover{ color:#131316; }
.apex-footer-credit{
  font-family:'Montserrat',sans-serif; font-size:12.5px; letter-spacing:.04em;
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:4px 10px;
  color:rgba(235,232,225,.62);
}
.apex-footer-credit a{ color:#cbb27f; text-decoration:none; }
.apex-footer-credit a:hover{ color:#fff; }
.apex-sep{ opacity:.4; }

/* ==========================================================================
   Termeni și Condiții page (page-id-557) — force light background.
   The Elementor page was built with a dark background; the content (dark legal
   text on a dark body) is unreadable. Force the body + content containers to
   the Apex light bg so the dark text is readable. Fonts/colors already match
   the Apex design system (Playfair Display headings + Montserrat body).
   ========================================================================== */
body.elementor-page-557,
body.elementor-page-557 .entry-content,
body.elementor-page-557 .elementor,
body.elementor-page-557 .elementor-top-section,
body.elementor-page-557 .elementor-section {
  background-color:#eaeaed !important;
  background-image:none !important;
}

/* ==========================================================================
   10. FOLD-IN FIXES  (from the old-version defect list A–D)
   ========================================================================== */
/* A — card CTA overflow: smaller type + tighter tracking (already 11px/.05em in §5). */
/* B — gold rule must render (theme <hr> border otherwise wins). */
.apex-rule, .apex-ch-rule{ background:#85693a !important; border:0 !important; }
/* C — cookie-consent bar must never overflow the viewport. */
.elementor-element-dea1,
.wpcoco-consent-bar, .cookie-notice, .cky-consent-bar{
  width:auto !important; max-width:100% !important; box-sizing:border-box;
}
/* D — stray red footer block (~24x29 #f90000). Selector identified in QA; hidden here. */
/* (added after QA identifies the exact element) */

/* ==========================================================================
   10b. DETALII PAGE  (clean rebuild, item 1)
   ========================================================================== */
.apex-detalii-hero{ background:#eaeaed; padding:70px 0 52px; }
.apex-detalii-hero .apex-kicker{ margin-bottom:18px; }
.apex-detalii-title{
  font-family:'Playfair Display',Georgia,serif; font-size:46px; line-height:1.08;
  font-weight:600; color:#131316; margin:0 0 18px; letter-spacing:-.01em;
}
.apex-detalii-lead{ font-size:17px; line-height:1.85; color:#3a3a40; margin:0 0 18px; max-width:840px; }
.apex-detalii-para{ font-size:15px; line-height:1.8; color:#4a4a52; margin:0 0 18px; max-width:840px; }
.apex-detalii-toc{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; margin:30px 0 6px; max-width:840px; }
.apex-detalii-toc a{
  background:#ffffff; border:1px solid rgba(19,19,22,.08); border-radius:12px;
  padding:18px 22px; color:#131316; text-decoration:none;
  font-family:'Playfair Display',Georgia,serif; font-size:18px; font-weight:600;
  box-shadow:0 1px 2px rgba(19,19,22,.04); transition:transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.apex-detalii-toc a:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(19,19,22,.1); color:#85693a; }
.apex-detalii-section{ background:#eaeaed; padding:46px 0; }
.apex-detalii-section:first-of-type{ padding-top:34px; }
.apex-detalii-card{
  background:#ffffff; border:1px solid rgba(19,19,22,.06); border-radius:16px;
  box-shadow:0 2px 20px rgba(19,19,22,.07); padding:34px 40px;
}
.apex-detalii-card h2{
  font-family:'Playfair Display',Georgia,serif; font-size:30px; line-height:1.15;
  font-weight:600; color:#131316; margin:0 0 20px;
}
.apex-detalii-card h3{
  font-family:'Playfair Display',Georgia,serif; font-size:22px; line-height:1.2;
  font-weight:600; color:#85693a; margin:30px 0 14px;
}
.apex-detalii-card p{ font-size:15px; line-height:1.85; color:#4a4a52; margin:0 0 16px; }
.apex-detalii-card ul{ margin:0 0 16px; padding-left:24px; }
.apex-detalii-card li{ font-size:15px; line-height:1.8; color:#4a4a52; margin:0 0 8px; }
.apex-detalii-card li strong{ color:#131316; }
.apex-detalii-quote{
  font-family:'Playfair Display',Georgia,serif; font-style:italic; font-size:20px;
  line-height:1.6; color:#85693a; border-left:3px solid #85693a;
  padding:6px 0 6px 26px; margin:26px 0;
}
.apex-detalii-sign{ font-size:15px; color:#5a5a63; margin:0; }
/* Bronze accent — key accreditation phrase (ACREDITATĂ și RECUNOSCUTĂ de Ministerul Muncii): bronze text, no background. */
.apex-hl{
  color:#85693a; font-weight:700;
}
/* Full-width section CTA buttons (end of Acreditare / Online sections). */
.apex-fullcta{
  display:block; width:100%; text-align:center;
  font-family:'Montserrat',sans-serif; font-size:13px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; color:#ffffff !important; background:#85693a;
  border:1px solid #85693a; border-radius:4px; padding:12px 20px; text-decoration:none;
  transition:background .25s ease, border-color .25s ease; margin-top:6px;
}
.apex-fullcta:hover{ background:#131316; border-color:#131316; color:#ffffff !important; }

/* ==========================================================================
   10c. ALIGNMENT — Astra native single pages (product, course, page, cart)
   Astra renders single templates full-bleed (content flush to the viewport
   edge, no container). Constrain every single page to the Apex container so
   course + product pages line up with the rest of the site.
   ========================================================================== */
.ast-article-single{
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  padding-left:24px;
  padding-right:24px;
}
/* Course/post featured image: fill the container width. Without this it
   renders at its uploaded size (1000px), left-aligned, with an empty gap. */
.ast-article-single .entry-header .wp-post-image{
  width:100%;
  height:auto;
}
/* Detalii cards: ordered lists inherit Astra's ~3em left margin while the
   ul is reset to 0 — normalize both to the same 24px indent. */
.apex-detalii-card ol{
  margin:0 0 16px;
  padding-left:24px;
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */
@media (max-width:1100px){
  .ld_course_grid{ grid-template-columns:repeat(4,1fr); }
}
@media (max-width:992px){
  .apex-intro-title{ font-size:44px; }
  .ld_course_grid{ grid-template-columns:repeat(3,1fr); }
  .apex-why-grid{ grid-template-columns:1fr; }
}
@media (max-width:1150px){
  /* Mobile header: logo left, hamburger right, drawer menu.
     Breakpoint 900px -> 1150px (2026-11-23): the nav gained a 5th item
     ("Cursuri cu Prezență"); the full row only fits above ~1150px. */
  .apex-masthead-inner{ min-height:72px; }
  .apex-logo{ height:48px; width:120px; }
  .apex-burger{ display:flex; }
  .apex-nav{
    position:absolute; top:100%; left:0; right:0;
    display:none; flex-direction:column; align-items:stretch; gap:0;
    background:#ffffff; box-shadow:0 18px 44px rgba(19,19,22,.14);
    padding:8px 0 12px;
  }
  .apex-nav.apex-open{ display:flex; }
  .apex-nav > a{
    display:block; width:100%; text-align:center; font-size:13.5px;
    padding:17px 16px; border-top:1px solid #ececee; color:#2b2b30;
  }
  .apex-nav > a::after{ display:none; }
  .apex-nav > a:hover{ background:#faf6ef; color:#85693a; }
}
@media (max-width:900px){
  .apex-levels{ grid-template-columns:1fr; }
}
@media (max-width:768px){
  .apex-intro{ padding:60px 0 52px; }
  .apex-intro-title{ font-size:36px; }
  .apex-intro-sub{ font-size:19px; }
  .apex-course-section h2{ font-size:27px; }
  .ld_course_grid{ grid-template-columns:repeat(2,1fr); gap:22px 16px; }
  #apex-head-01 .ld_course_grid{ grid-template-columns:repeat(2,1fr); gap:22px 16px; }
  .apex-why{ padding:56px 0; }
  .apex-why-lead{ font-size:27px; }
  .apex-tagline{ padding:56px 0; }
  .apex-tagline-big{ font-size:29px; }
  .apex-contact{ padding:52px 0; }
  .apex-contact .wpforms-form .wpforms-title{ font-size:24px; }
}
@media (max-width:480px){
  .apex-container{ padding:0 18px; }
  .ast-article-single{ padding-left:18px; padding-right:18px; }
  .apex-masthead-inner{ min-height:64px; }
  .apex-logo{ height:42px; width:104px; }
  .ld_course_grid{ grid-template-columns:1fr; }
  #apex-head-01 .ld_course_grid{ grid-template-columns:1fr; }
  .apex-tagline-big{ font-size:25px; }
  .apex-fullcta{ font-size:12px; letter-spacing:.1em; padding:11px 12px; }
}

/* ==========================================================================
   12. LESSON PAGE — sidebar header, lesson list, light gaps, cookie bar
   Request 2026-11-22 (Daniel, corrected spec):
     (a) course title at the top of the sidebar -> white font on bronze bg
     (b) the lesson list below -> just normal black font (all items, incl.
         current — the bronze highlight from round 1 is retired per Daniel)
     (c) the black background under the video -> white. Root cause: the
         cookie bar (#cookie-law-info-bar) is forced dark by the mu-plugin
         AND the body carries a dark background that shows in the gaps
         around the fixed sidebar / content column.
   Specificity note: the mu-plugin injects <style id="apex-restyle"> at
   wp_head prio 99, i.e. AFTER this sheet, with !important rules:
     #cookie-law-info-bar                 (0,1,0)
     ...ld-focus-sidebar .ld-course-
       navigation-heading                 (0,4,0)
     body{ background:var(--apex-bg)!imp } (0,0,1) + a further dark body rule
   The `body`/`html body` prefixes below keep our specificity strictly
   higher, so these win regardless of sheet order.
   ========================================================================== */

/* (c-1) light body on LMS pages — beats the mu-plugin's dark body rules */
html body.wp-theme-astra.ld-in-focus-mode,
html body.wp-theme-astra.single-sfwd-lessons,
html body.wp-theme-astra {
  background-color: #eaeaed !important;
}
/* (c-2) bulletproof: the lesson layout container itself is light, so no
         dark body can show through the sidebar/content gap */
body .learndash-wrapper .ld-focus {
  background-color: #ffffff !important;
}
/* (c-3) the cookie bar (the dark strip under the video) -> white, ink text;
         the bronze Accept button (mu-plugin) stays as-is on white */
body #cookie-law-info-bar,
body #CookieLawInfoBar,
body .cli-plugin-main-banner {
  background-color: #ffffff !important;
  border-top: 1px solid #d9d9de !important;
}
body #cookie-law-info-bar p,
body #cookie-law-info-bar span,
body #cookie-law-info-bar a,
body #cookie-law-info-bar label,
body #cookie-law-info-bar strong,
body #CookieLawInfoBar p,
body #CookieLawInfoBar span,
body #CookieLawInfoBar a,
body .cli-plugin-main-banner p,
body .cli-plugin-main-banner span {
  color: #131316 !important;
}

/* (a) course title on top of the sidebar -> white on black */
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading {
  background-color: #131316 !important;
  color: #ffffff !important;
}
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading h3,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading a,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-course-navigation-heading a:hover {
  color: #ffffff !important;
}

/* (b) lesson list items -> normal black font on white, all states */
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item a,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item .ld-item-title,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item .ld-lesson-item-preview,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item .ld-lesson-item-preview-heading,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item .ld-lesson-title,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item:hover,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item a:hover,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson a,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson .ld-item-title,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson .ld-lesson-item-preview,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson .ld-lesson-item-preview-heading,
body .learndash-wrapper .ld-focus .ld-focus-sidebar .ld-lesson-item.ld-is-current-lesson .ld-lesson-title {
  color: #131316 !important;
  background-color: transparent !important;
}

/* (d) bottom action bar: real space between the "Curs însușit" button and
       the "Înapoi la Curs" link — they were stacked with a 0px gap
       (request 2026-11-23). .ld-course-step-back exists only in this
       bottom bar, so the top bar's button is untouched. */
body .learndash-wrapper .ld-content-actions a.ld-course-step-back {
  margin-top: 18px !important;
}

/* (e) focus-mode brand logo (top-left of every lesson page): the LearnDash
       course settings still point at the 2020 logo (logo_online_v3_png.png)
       -> swap it for the full gold logo via CSS (request 2026-11-23:
       "the gold full logo, not the simplified one"). The <img> stays in the
       DOM for screen readers; the anchor carries the new graphic. Covers
       all courses at once — no per-course setting change needed. */
body .ld-focus .ld-focus-header .ld-brand-logo img {
  display: none !important;
}
body .ld-focus .ld-focus-header .ld-brand-logo a {
  display: inline-block !important;
  width: 130px;
  height: 48px;
  background-image: url("../../uploads/apex_logo_08_full.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
