/* Shared Course Landing Page System
   Keeps existing page URLs and resource links intact while unifying layout. */

.course-landing-page {
  --course-ink: #251d18;
  --course-muted: #62584f;
  --course-paper: #fffdf8;
  --course-cream: #f5efe4;
  --course-line: #d7c9b7;
  --course-primary: #233746;
  --course-secondary: #486b7c;
  --course-accent: #b58a45;
  --course-warm: #8a4f32;
  --course-hero-image: url("../images/banner.webp");
  background: var(--course-cream);
  color: var(--course-ink);
}

.course-hist101,
.course-hist101-online {
  --course-primary: #263f46;
  --course-secondary: #7a4b2d;
  --course-accent: #c28b3c;
  --course-warm: #6b2c3e;
  --course-hero-image: url("../hist-101/assets/hist101-hero-generated.png");
}

.course-hist102,
.course-hist102-online {
  --course-primary: #233746;
  --course-secondary: #4a6f85;
  --course-accent: #c97d60;
  --course-warm: #8a4f32;
  --course-hero-image: url("../hist-102/assets/hist102-hero-generated.png");
}

.course-hist151 {
  --course-primary: #24433c;
  --course-secondary: #4b7c80;
  --course-accent: #b98537;
  --course-warm: #9a5137;
  --course-hero-image: url("../hist-151/assets/antique_map.webp");
}

.course-hist270 {
  --course-primary: #1f332f;
  --course-secondary: #2c7873;
  --course-accent: #d4af37;
  --course-warm: #8b6f47;
  --course-ink: #241f18;
  --course-hero-image: url("../the_lyceum/chinese-history/images/ch01_lec1_china_geography_map.jpg");
}

.course-phil120 {
  --course-primary: #2c3531;
  --course-secondary: #5c6b4a;
  --course-accent: #d4af37;
  --course-warm: #6b4c9a;
  --course-hero-image: url("../phil-120/images/socrates.webp");
}

.course-phil210 {
  --course-primary: #201d2f;
  --course-secondary: #2c7873;
  --course-accent: #d4af37;
  --course-warm: #6b4c9a;
  --course-hero-image: url("../the_lyceum/world-religions/images/phil210_religious_scholar.webp");
}

.course-landing-page .text-banner.course-banner,
.course-landing-page .text-banner.sacred-banner,
.course-landing-page header.hero,
.course-landing-page section.hero,
.course-landing-page > .hero {
  min-height: min(68vh, 680px);
  display: grid;
  align-items: end;
  padding: clamp(5.5rem, 10vw, 9rem) 1.5rem clamp(3rem, 7vw, 4.6rem) !important;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(24, 31, 29, 0.9), rgba(35, 55, 70, 0.66) 52%, rgba(37, 29, 20, 0.24)),
    var(--course-hero-image) center / cover !important;
  border-bottom: 5px solid var(--course-accent) !important;
  box-shadow: 0 6px 22px rgba(28, 22, 16, 0.24);
  overflow: hidden;
}

.course-landing-page .text-banner.course-banner::before,
.course-landing-page .text-banner.sacred-banner::before,
.course-landing-page .text-banner.course-banner::after,
.course-landing-page .text-banner.sacred-banner::after,
.course-landing-page header.hero::before,
.course-landing-page header.hero::after,
.course-landing-page section.hero::before,
.course-landing-page section.hero::after,
.course-landing-page > .hero::before,
.course-landing-page > .hero::after {
  display: none !important;
}

.course-landing-page .banner-content,
.course-landing-page header.hero .hero-inner,
.course-landing-page section.hero .hero-inner,
.course-landing-page > .hero .hero-inner {
  width: min(1120px, 100%);
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.course-landing-page .banner-course-title,
.course-landing-page header.hero h1,
.course-landing-page header.hero .hero-title,
.course-landing-page section.hero h1,
.course-landing-page section.hero .hero-title,
.course-landing-page > .hero h1,
.course-landing-page > .hero .hero-title {
  margin: 0;
  max-width: 850px;
  font-family: "Playfair Display", "Crimson Pro", serif !important;
  font-size: clamp(3rem, 8vw, 6rem) !important;
  line-height: 0.98 !important;
  color: #fffaf0 !important;
  text-align: left !important;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35) !important;
  letter-spacing: 0 !important;
}

.course-landing-page .banner-course-subtitle,
.course-landing-page header.hero .hero-sub,
.course-landing-page header.hero .hero-subtitle,
.course-landing-page section.hero .hero-sub,
.course-landing-page section.hero .hero-subtitle,
.course-landing-page > .hero .hero-sub,
.course-landing-page > .hero .hero-subtitle {
  max-width: 780px;
  margin: 1rem 0 0 !important;
  font-family: Lora, serif !important;
  font-size: clamp(1.08rem, 2vw, 1.35rem) !important;
  line-height: 1.6 !important;
  color: #f1e7d5 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

.course-landing-page header.hero .hero-eyebrow,
.course-landing-page section.hero .hero-eyebrow,
.course-landing-page > .hero .hero-eyebrow {
  color: #f0ca82;
  font-family: Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.course-landing-page header.hero .hero-tags,
.course-landing-page header.hero .hero-meta,
.course-landing-page section.hero .hero-tags,
.course-landing-page section.hero .hero-meta,
.course-landing-page > .hero .hero-tags,
.course-landing-page > .hero .hero-meta {
  justify-content: flex-start;
  margin-top: 1.4rem;
  margin-bottom: 0;
}

.course-landing-page header.hero .hero-tag,
.course-landing-page section.hero .hero-tag,
.course-landing-page > .hero .hero-tag {
  border-color: rgba(255, 250, 240, 0.38);
  color: #fffaf0;
  background: rgba(255, 250, 240, 0.12);
}

.course-landing-page .main-nav,
.course-landing-page .topbar,
.course-landing-page > nav[aria-label="Site navigation"] {
  background: var(--course-primary) !important;
  border-top: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 2px 10px rgba(20, 16, 12, 0.18) !important;
}

.course-landing-page .topbar,
.course-landing-page > nav[aria-label="Site navigation"] {
  padding: 0 !important;
}

.course-landing-page .topbar,
.course-landing-page .nav-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.course-landing-page .topbar-brand,
.course-landing-page .nav-brand {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1rem;
  color: #fffaf0 !important;
  font-family: Inter, sans-serif !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.08em;
}

.course-landing-page .topbar-nav,
.course-landing-page .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  list-style: none;
}

.course-landing-page .nav-link,
.course-landing-page .topbar-nav a,
.course-landing-page .nav-links a {
  color: #fffaf0 !important;
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
  font-family: Inter, sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.course-landing-page .nav-link:hover,
.course-landing-page .topbar-nav a:hover,
.course-landing-page .nav-links a:hover {
  color: #ffe0a6 !important;
  border-bottom-color: #ffe0a6 !important;
}

.course-landing-page .quick-nav,
.course-landing-page .hero-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem !important;
  background: #f7f1e7 !important;
  border-bottom: 1px solid var(--course-line) !important;
  box-shadow: none !important;
}

.course-landing-page .quick-nav-btn,
.course-landing-page .hero-nav-tabs a,
.course-landing-page .modality-switcher a,
.course-landing-page .modality-switcher span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem !important;
  border-radius: 999px !important;
  border: 1px solid color-mix(in srgb, var(--course-primary) 34%, white) !important;
  background: #fffdf8 !important;
  color: var(--course-primary) !important;
  box-shadow: none !important;
  font-family: Inter, sans-serif;
  font-size: 0.82rem !important;
  font-weight: 700;
  text-decoration: none;
}

.course-landing-page .quick-nav-btn:hover,
.course-landing-page .hero-nav-tabs a:hover,
.course-landing-page .modality-switcher a:hover {
  background: var(--course-primary) !important;
  color: #fffaf0 !important;
  transform: translateY(-2px);
}

.course-landing-page .modality-switcher {
  background: #f7f1e7 !important;
  border-bottom: 1px solid var(--course-line) !important;
}

.course-landing-page .modality-switcher .current {
  background: var(--course-primary) !important;
  color: #fffaf0 !important;
  border-color: var(--course-primary) !important;
}

.course-landing-page .container,
.course-landing-page .main-wrap,
.course-landing-page .section-wrap {
  width: min(1160px, 100%);
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem !important;
}

.course-landing-page .course-header {
  display: none;
}

.course-landing-page .content-box,
.course-landing-page .sacred-content-box,
.course-landing-page .content-section,
.course-landing-page .syllabus-box,
.course-landing-page .cta-box,
.course-landing-page .cta-block,
.course-landing-page .note-panel {
  background: var(--course-paper) !important;
  color: var(--course-ink) !important;
  border: 1px solid var(--course-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(42, 35, 25, 0.08) !important;
}

.course-landing-page .content-box,
.course-landing-page .sacred-content-box,
.course-landing-page .content-section,
.course-landing-page .syllabus-box {
  padding: clamp(1.35rem, 3vw, 2rem) !important;
  margin-bottom: 1.25rem !important;
}

.course-landing-page .section-title,
.course-landing-page .chapter-title,
.course-landing-page .section-header h2,
.course-landing-page .cta-box h3,
.course-landing-page .cta-block h2 {
  color: var(--course-primary) !important;
  font-family: "Playfair Display", "Crimson Pro", serif !important;
  font-size: clamp(1.85rem, 4vw, 2.6rem) !important;
  line-height: 1.08 !important;
  text-align: left !important;
  text-shadow: none !important;
  border-bottom: 0 !important;
  margin-bottom: 1rem !important;
}

.course-landing-page .section-title::after {
  display: none !important;
}

.course-landing-page .course-info-section,
.course-landing-page .syllabus-download,
.course-landing-page .chapter-section,
.course-landing-page .courses-section,
.course-landing-page .guides-section,
.course-landing-page .cta-section {
  margin-bottom: 1.5rem;
}

.course-landing-page .info-grid,
.course-landing-page .course-grid,
.course-landing-page .lecture-grid,
.course-landing-page .topics-grid,
.course-landing-page .chapter-grid,
.course-landing-page .policy-grid,
.course-landing-page .two-col,
.course-landing-page .objectives-list,
.course-landing-page .obj-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem !important;
}

.course-landing-page .objectives-list,
.course-landing-page .obj-list,
.course-landing-page .policy-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.course-landing-page .info-card,
.course-landing-page .sacred-info-card,
.course-landing-page .course-card,
.course-landing-page .lecture-card,
.course-landing-page .topic-card,
.course-landing-page .sacred-topic-card,
.course-landing-page .chapter-card,
.course-landing-page .policy-card,
.course-landing-page .quick-card,
.course-landing-page .objective-item,
.course-landing-page .obj-item {
  background: var(--course-paper) !important;
  color: var(--course-ink) !important;
  border: 1px solid var(--course-line) !important;
  border-top: 4px solid var(--course-secondary) !important;
  border-left-width: 1px !important;
  border-radius: 8px !important;
  box-shadow: 0 7px 20px rgba(42, 35, 25, 0.08) !important;
  padding: 1.25rem !important;
  text-decoration: none;
}

.course-landing-page .chapter-card {
  display: flex !important;
  flex-direction: column;
  gap: 0.45rem;
}

.course-landing-page .info-card h3,
.course-landing-page .sacred-info-card h3,
.course-landing-page .course-card h3,
.course-landing-page .course-card h4,
.course-landing-page .lecture-card h4,
.course-landing-page .topic-card h4,
.course-landing-page .sacred-topic-card h4,
.course-landing-page .chapter-card h3,
.course-landing-page .chapter-card .card-title,
.course-landing-page .quick-card-text h3,
.course-landing-page .objective-content h4,
.course-landing-page .obj-body h4 {
  color: var(--course-primary) !important;
}

.course-landing-page p,
.course-landing-page li,
.course-landing-page .course-description,
.course-landing-page .card-sub,
.course-landing-page .section-intro {
  color: var(--course-muted) !important;
}

.course-landing-page .objective-number,
.course-landing-page .obj-num,
.course-landing-page .lecture-number,
.course-landing-page .card-num {
  background: var(--course-primary) !important;
  color: #fffaf0 !important;
  border-radius: 7px;
}

.course-landing-page .course-button,
.course-landing-page .lecture-button,
.course-landing-page .syllabus-button,
.course-landing-page .cta-button,
.course-landing-page .cta-button-secondary,
.course-landing-page .btn,
.course-landing-page .card-link,
.course-landing-page .socrates-button,
.course-landing-page .dharma-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1rem !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--course-primary) !important;
  color: #fffaf0 !important;
  font-family: Inter, sans-serif !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(15, 13, 10, 0.12) !important;
}

.course-landing-page .course-button:hover,
.course-landing-page .lecture-button:hover,
.course-landing-page .syllabus-button:hover,
.course-landing-page .cta-button:hover,
.course-landing-page .cta-button-secondary:hover,
.course-landing-page .btn:hover,
.course-landing-page .card-link:hover {
  background: var(--course-warm) !important;
  transform: translateY(-2px);
}

.course-landing-page .lecture-button.disabled,
.course-landing-page .coming-soon .lecture-button {
  background: #aaa !important;
  color: #fff !important;
}

.course-landing-page .site-footer,
.course-landing-page footer {
  background: var(--course-primary) !important;
  color: #efe3d1 !important;
}

.course-landing-page footer a,
.course-landing-page .site-footer a,
.course-landing-page .footer-text,
.course-landing-page .footer-quote {
  color: #efe3d1 !important;
}

@media (max-width: 900px) {
  .course-landing-page .info-grid,
  .course-landing-page .course-grid,
  .course-landing-page .lecture-grid,
  .course-landing-page .topics-grid,
  .course-landing-page .chapter-grid,
  .course-landing-page .policy-grid,
  .course-landing-page .two-col,
  .course-landing-page .objectives-list,
  .course-landing-page .obj-list {
    grid-template-columns: 1fr !important;
  }

  .course-landing-page .topbar,
  .course-landing-page .nav-inner,
  .course-landing-page .main-nav {
    position: static !important;
  }
}

@media (max-width: 560px) {
  .course-landing-page .text-banner.course-banner,
  .course-landing-page .text-banner.sacred-banner,
  .course-landing-page header.hero,
  .course-landing-page section.hero,
  .course-landing-page > .hero {
    min-height: 540px;
  }

  .course-landing-page .main-nav,
  .course-landing-page .topbar-nav,
  .course-landing-page .nav-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .course-landing-page .nav-link,
  .course-landing-page .topbar-nav a,
  .course-landing-page .nav-links a {
    text-align: center;
    padding: 0.68rem 0.35rem !important;
    font-size: 0.72rem !important;
  }

  .course-landing-page .topbar-brand,
  .course-landing-page .nav-brand {
    width: 100%;
    justify-content: center;
  }
}
