/* ============================================================================
   Course landing pages (DFE-101, Proxmox, and future pages of this type).
   Prefixed lp-* so it never leaks into the rest of the site.

   Brand tones are custom properties so each landing page can re-theme without
   duplicating this file. Defaults are the DFE teal palette; a page overrides
   them in its own {% block head %} style, after this stylesheet is linked.
   ========================================================================== */
:root {
  --lp-grad: linear-gradient(125deg, #0b3a4a 0%, #114b5a 45%, #16a085 130%);
  --lp-dark: #0b3a4a;        /* darkest brand tone: sticky bar bg, text on white buttons */
  --lp-accent: #16a085;      /* icon and graphic accent (large elements only) */
  --lp-accent-text: #0f7a66; /* text accent — must hold 4.5:1 on white and .light-gray */
  --lp-tint: #e9faf5;        /* light tint: button hover, module-number bg */
  --lp-tint-border: #bfe9dd; /* border for tinted elements */
  --lp-glow: #a7f3e3;        /* light accent on dark backgrounds: eyebrow, meta icons */
}

/* ---- Hero: gradient band, no background image --------------------------- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
  text-align: center;
  color: #fff;
  background: var(--lp-grad);
}
.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 82% 18%, rgba(255, 255, 255, .14), transparent 46%);
}
.lp-hero .w-container { position: relative; z-index: 1; }

.lp-eyebrow {
  display: inline-block;
  margin-bottom: 22px;
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-glow);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 40px;
}
.lp-hero h1 {
  margin: 0 0 14px;
  font-size: 46px;
  line-height: 1.12;
  color: #fff;
}
.lp-hero-sub {
  max-width: 760px;
  margin: 0 auto 14px;
  font-size: 21px;
  color: rgba(255, 255, 255, .94);
}
.lp-hero-lead {
  max-width: 680px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: rgba(255, 255, 255, .82);
}
.lp-hero-cta { margin-top: 6px; }
.lp-hero-cta .button { margin: 6px; }
.lp-hero-cta .btn-txt { float: none; }

/* Recolor the shared buttons for a dark hero (white primary, ghost secondary) */
.lp-hero .button.btn-ndg-color { background: #fff; color: var(--lp-dark); }
.lp-hero .button.btn-ndg-color:hover,
.lp-hero .button.btn-ndg-color:focus,
.lp-hero .button.btn-ndg-color:active { background: var(--lp-tint); color: var(--lp-dark); }
.lp-hero .button.btn-ndg-line { background: transparent; box-shadow: rgba(255, 255, 255, .6) 0 0 0 1px inset; color: #fff; }
.lp-hero .button.btn-ndg-line:hover { background: rgba(255, 255, 255, .12); box-shadow: #fff 0 0 0 1px inset; color: #fff; }

.lp-hero-doc {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--lp-glow);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lp-hero-doc:hover, .lp-hero-doc:focus { color: #fff; }
.lp-hero-doc i { margin-right: 6px; }

.lp-meta {
  margin-top: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}
.lp-meta span { display: inline-block; margin: 4px 14px; }
.lp-meta i { margin-right: 7px; color: var(--lp-glow); }

/* ---- Equal-height card grid (flex, no float staggering) ----------------- */
.lp-grid { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.lp-cell { display: flex; padding: 12px; }
.lp-cell > * { width: 100%; }
.lp-cell-3 { flex: 0 0 25%; max-width: 25%; }
.lp-cell-4 { flex: 0 0 33.3333%; max-width: 33.3333%; }
.lp-cell-6 { flex: 0 0 50%; max-width: 50%; }

.lp-card {
  height: 100%;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #e6e9ec;
  border-radius: 8px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.lp-card:hover { box-shadow: 0 10px 26px rgba(11, 58, 74, .10); transform: translateY(-2px); }
.lp-card h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.35; font-weight: 700; color: #24323a; }
.lp-card h3 i { color: var(--lp-accent); }
.lp-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #586b75; }

/* ---- Semantic headings sized to match the site's visual scale ------------
   Cards and sections use h2/h3 for a correct outline (h1 > h2 > h3); these
   classes keep the legacy h4/h5 look from style.css. Margins are left to the
   element/utility classes (.no-space, .m-p) so those still win. */
.lp-h4 { font-size: 18px; line-height: 24px; letter-spacing: 1px; }
.lp-h5 { font-size: 15px; line-height: 24px; letter-spacing: 1px; }

/* ---- Icon-topped domain/topic tiles -------------------------------------- */
.lp-domain { height: 100%; padding: 18px 16px; text-align: center; }
.lp-domain i { color: var(--lp-accent); }
.lp-domain h3 { margin: 14px 0 8px; font-size: 14px; line-height: 1.35; font-weight: 700; color: #24323a; }
.lp-domain p { margin: 0; font-size: 14px; line-height: 1.55; color: #586b75; }

/* ---- Readable muted text on light backgrounds (replaces p-lighter here) -- */
.lp-muted { color: #586b75; }

/* ---- Certification / feature chips --------------------------------------- */
.lp-certs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px auto 12px;
  max-width: 820px;
}
.lp-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 17px;
  font-size: 13px;
  font-weight: 600;
  color: #24323a;
  background: #fff;
  border: 1px solid #d8dee2;
  border-radius: 40px;
}
.lp-chip i { margin-right: 8px; color: var(--lp-accent); }

/* ---- Curriculum module tiles -------------------------------------------- */
.lp-modules { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.lp-mod { display: flex; padding: 8px; flex: 0 0 33.3333%; max-width: 33.3333%; }
.lp-mod-inner {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #e6e9ec;
  border-radius: 8px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.lp-mod-inner:hover { box-shadow: 0 8px 22px rgba(11, 58, 74, .09); transform: translateY(-2px); }
.lp-mod-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--lp-dark);
  background: var(--lp-tint);
  border: 1px solid var(--lp-tint-border);
  border-radius: 50%;
}
.lp-mod-title { font-size: 14px; line-height: 1.35; font-weight: 600; color: #24323a; }

/* ---- Platform feature mini-list ----------------------------------------- */
.lp-feat { list-style: none; margin: 4px 0 0; padding: 0; }
.lp-feat li { padding: 7px 0; font-size: 15px; color: #3c4b53; }
.lp-feat i { width: 22px; margin-right: 8px; color: var(--lp-accent); }

/* ---- Product screenshots (real course and lab captures) ----------------- */
.lp-gallery { display: flex; flex-wrap: wrap; margin: 26px -12px 0; text-align: left; }
.lp-gallery figure { flex: 1 1 0; min-width: 0; margin: 0; padding: 12px; }
.lp-shot {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #dde3e7;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(11, 58, 74, .12);
}
.lp-shot-caption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: #586b75; }

/* ---- Single screenshot below the curriculum grid ------------------------- */
.lp-cur-shot { max-width: 820px; margin: 30px auto 0; }

/* ---- Full-width photo band ----------------------------------------------- */
.lp-band { display: block; width: 100%; height: auto; border-radius: 10px; }

/* ---- Screenshot inside a card -------------------------------------------- */
.lp-card-shot {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0;
  border: 1px solid #e6e9ec;
  border-radius: 6px;
}

/* ---- Final CTA band: bookend the page with the hero gradient ------------ */
.lp-cta {
  padding: 48px 0;
  color: #fff;
  background: var(--lp-grad);
}
/* DFE photo variant: examiner-at-work image under the same gradient, kept
   dark enough that the white text stays WCAG-readable. Page-specific because
   the image is baked in — add a sibling class for other pages' photos. */
.lp-cta.lp-cta-photo-dfe {
  background:
    linear-gradient(125deg, rgba(11, 58, 74, .95) 0%, rgba(17, 75, 90, .90) 45%, rgba(22, 160, 133, .82) 130%),
    url('/static/images/dfe101/dfe101-lab-examiner.webp') center 30% / cover no-repeat;
}
.lp-cta h4, .lp-cta p { color: #fff; }
.lp-cta h4 { margin: 0 0 6px; }
.lp-cta .lp-cta-actions { text-align: right; }
.lp-cta .button { margin: 6px 0 6px 10px; }
.lp-cta .btn-txt { float: none; }
.lp-cta .button.btn-ndg-color { background: #fff; color: var(--lp-dark); }
.lp-cta .button.btn-ndg-color:hover,
.lp-cta .button.btn-ndg-color:focus { background: var(--lp-tint); color: var(--lp-dark); }
.lp-cta .button.btn-ndg-line { background: transparent; box-shadow: rgba(255, 255, 255, .6) 0 0 0 1px inset; color: #fff; }
.lp-cta .button.btn-ndg-line:hover { background: rgba(255, 255, 255, .12); box-shadow: #fff 0 0 0 1px inset; color: #fff; }

/* ---- Section eyebrow / kicker ------------------------------------------- */
.lp-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lp-accent-text);
}
.lp-kicker.text-center, .text-center .lp-kicker { text-align: center; }

/* ---- FAQ ----------------------------------------------------------------- */
.lp-faq { max-width: 820px; margin: 0 auto; }
.lp-faq-item { padding: 18px 0; border-bottom: 1px solid #e6e9ec; }
.lp-faq-item:first-child { border-top: 1px solid #e6e9ec; }
.lp-faq-q { margin: 0 0 6px; font-size: 16px; line-height: 24px; letter-spacing: normal; font-weight: 700; color: #24323a; }
.lp-faq-a { margin: 0; font-size: 15px; line-height: 1.6; color: #586b75; }

/* ---- Sticky enroll bar -------------------------------------------------- */
.lp-stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  transform: translateY(100%);
  visibility: hidden; /* keep hidden links out of the tab order */
  transition: transform .25s ease, visibility .25s;
  background: var(--lp-dark);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -6px 20px rgba(11, 58, 74, .18);
}
.lp-stickybar.is-visible { transform: translateY(0); visibility: visible; }
.lp-stickybar .w-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.lp-stickybar-label { color: #fff; font-size: 15px; line-height: 1.3; }
.lp-stickybar-label strong { display: block; font-size: 16px; }
.lp-stickybar-label span { color: var(--lp-glow); font-size: 13px; }
.lp-stickybar-actions { flex: 0 0 auto; white-space: nowrap; }
.lp-stickybar .button { margin: 0 0 0 8px; }
.lp-stickybar .btn-txt { float: none; }
.lp-stickybar .button.btn-ndg-color { background: #fff; color: var(--lp-dark); }
.lp-stickybar .button.btn-ndg-color:hover { background: var(--lp-tint); color: var(--lp-dark); }
.lp-stickybar .button.btn-ndg-line { background: transparent; box-shadow: rgba(255, 255, 255, .5) 0 0 0 1px inset; color: #fff; }
.lp-stickybar .button.btn-ndg-line:hover { background: rgba(255, 255, 255, .12); box-shadow: #fff 0 0 0 1px inset; color: #fff; }

@media (max-width: 600px) {
  .lp-stickybar-label span { display: none; }
  .lp-stickybar .button.btn-ndg-line { display: none; }
  .lp-stickybar .button { padding-left: 16px; padding-right: 16px; }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .lp-card, .lp-mod-inner, .lp-stickybar { transition: none; }
  .lp-card:hover, .lp-mod-inner:hover { transform: none; }
}

/* ---- Responsive --------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 991px) {
  .lp-cell-3 { flex: 0 0 50%; max-width: 50%; }
  .lp-mod { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 767px) {
  .lp-hero { padding: 58px 0 50px; }
  .lp-hero h1 { font-size: 31px; }
  .lp-hero-sub { font-size: 18px; }
  .lp-cell-3, .lp-cell-4, .lp-cell-6 { flex: 0 0 100%; max-width: 100%; }
  .lp-mod { flex: 0 0 100%; max-width: 100%; }
  .lp-gallery figure { flex: 0 0 100%; }
  .lp-cta .lp-cta-actions { text-align: left; }
  .lp-cta .button { margin: 6px 10px 6px 0; }
}
