/* ==========================================================================
   Sample Lectures (/sample-lectures) — MOA_Final_27112026/sample-lectures.html
   Port of sample-lectures.css + the page's three inline style blocks (lecture cards) +
   inner-banner-center.css and black-inner-banners.css, final cascade.
   Template: static_templates/sample-lectures.html.
   ========================================================================== */

.samples-page { color: #171717; font-family: Montserrat, Arial, sans-serif; }

/* ---------- Hero ---------- */
.samples-hero {
  display: flex; align-items: center; min-height: 390px; padding: 75px 18px; background: #000; color: #fff; text-align: center;
}
/* black-inner-banners.css: the banner content sits above its (removed) artwork layers.
   margin: auto (design .container) also centres it vertically inside the flex hero. */
.samples-hero > .moa-container { position: relative; z-index: 1; max-width: 820px; margin: auto; }
.samples-eyebrow { color: #ee343b; font-size: 12px; font-weight: 800; letter-spacing: 2px; }
.samples-hero .samples-eyebrow { color: #fff; }
.samples-hero h1 { margin: 17px auto; color: #fff; font-size: clamp(32px, 4vw, 52px); line-height: 1.14; }
.samples-hero p { margin: 0 auto 27px; color: #fff; font-size: 17px; line-height: 1.7; }
.samples-primary, .samples-bottom a {
  display: inline-block; padding: 14px 24px; border-radius: 6px; background: #ee343b; color: #fff !important; font-weight: 700;
}

/* ---------- Lecture cards ---------- */
#lecture-library { padding-top: 48px; padding-bottom: 64px; scroll-margin-top: 100px; }
.lecture-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 0; }
.lecture-preview-card {
  position: relative; display: flex; flex-direction: column; align-items: center; overflow: hidden; padding: 30px;
  border: 1px solid #e5e5e8; border-radius: 20px; background: linear-gradient(150deg, #fff 70%, #fff5f5);
  box-shadow: 0 12px 36px #1111110d; text-align: center; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.lecture-preview-card::before {
  content: ""; position: absolute; top: 0; right: 0; left: 0; height: 4px; background: #ee343b;
  transform: scaleX(0); transition: transform .3s ease; pointer-events: none;
}
.lecture-preview-card:hover::before { transform: scaleX(1); }
.lecture-preview-card:hover { transform: translateY(-6px); border-color: #ee343b; box-shadow: 0 20px 44px #11111117; }
.lecture-preview-icon {
  display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 18px; background: #fff0f0; color: #ee343b;
}
.lecture-preview-card h2 {
  display: flex; align-items: center; justify-content: center; max-width: 420px; min-height: 2.7em; margin: 0 0 24px;
  color: #111; font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; line-height: 1.35; letter-spacing: -.025em;
}
.lecture-preview-media, .lecture-preview-card video {
  position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px; background: #111; box-shadow: 0 5px 18px #11111120; outline: 1px solid #11111110;
}
.lecture-preview-card video { object-fit: contain; pointer-events: auto; }
.lecture-preview-media iframe { display: block; width: 100%; height: 100%; border: 0; }
.lecture-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lecture-preview-card p {
  display: flex; align-items: center; justify-content: center; min-height: 3.1em; margin: 20px 0 24px;
  color: #333; font-size: 15px; font-weight: 600; line-height: 1.55;
}
.lecture-preview-cta {
  position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto;
  padding: 14px 26px; border-radius: 9px; background: #ee343b; box-shadow: 0 5px 12px #ee343b25;
  color: #fff !important; font-weight: 600; pointer-events: auto; transition: background .2s;
}
.lecture-preview-cta:hover { background: #d92730; }
.lecture-preview-cta:focus-visible { outline: 3px solid #111; outline-offset: 3px; }
.lecture-preview-cta svg { transition: transform .2s; }
.lecture-preview-cta:hover svg { transform: translateX(4px); }
.samples-empty { padding: 45px; text-align: center; }

/* ---------- Pagination (more than 4 lectures) ---------- */
.lecture-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.lecture-pagination button {
  min-width: 42px; height: 42px; padding: 0 12px; border: 1px solid #e1e3e6; border-radius: 9px; background: #fff;
  color: #222; font-size: 14px; font-weight: 700; cursor: pointer;
}
.lecture-pagination button[aria-current="page"] { border-color: #ee343b; background: #ee343b; color: #fff; }
.lecture-pagination button:disabled { opacity: .45; cursor: default; }

/* ---------- Bottom call to action ---------- */
.samples-bottom { padding: 66px 20px; background: #111; color: #fff; text-align: center; }
.samples-bottom h2 { margin: 0 0 12px; font-size: 32px; }
.samples-bottom p { margin-bottom: 26px; color: #ddd; }

@media (max-width: 700px) {
  #lecture-library { padding-top: 28px; padding-bottom: 36px; }
  .lecture-preview-grid { grid-template-columns: 1fr; gap: 22px; }
  .lecture-preview-card { padding: 22px; }
  .lecture-preview-card h2, .lecture-preview-card p { min-height: 0; }
}
@media (max-width: 600px) {
  .samples-hero { min-height: 340px; }
  .samples-bottom h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .lecture-preview-card, .lecture-preview-card::before, .lecture-preview-cta, .lecture-preview-cta svg { transition: none; }
  .lecture-preview-card:hover, .lecture-preview-cta:hover svg { transform: none; }
}
