/* ============================================================
   The Moldau Institute — Shared Stylesheet
   ============================================================ */

/* ------------------------------------------------------------
   1. Reset & Variables
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1A2332;
  --gold: #C4714A;
  --cream: #F0ECE4;
  --slate: #8A9BB5;
  --white: #FFFFFF;
  --navy-light: #243044;
  --gold-hover: #A85D3B;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: normal; }
h1 { font-size: 2rem; line-height: 1.3; }
h2 { font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.2rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hover); }

img { max-width: 100%; height: auto; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ------------------------------------------------------------
   2. Navigation
   ------------------------------------------------------------ */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo:hover { color: var(--gold-hover); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--cream);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }

.nav-links .btn-register {
  background: var(--gold);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.nav-links .btn-register:hover {
  background: var(--gold-hover);
  color: var(--navy);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  background: var(--navy-light);
  border: 1px solid rgba(196, 113, 74, 0.2);
  border-radius: 4px;
  min-width: 240px;
  list-style: none;
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: var(--cream);
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: rgba(196, 113, 74, 0.1);
  color: var(--gold);
}

/* Hamburger — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: background 0.2s;
}

.nav-hamburger:hover span { background: var(--gold); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy-light);
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(196, 113, 74, 0.15);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links .btn-register {
    margin-top: 12px;
    text-align: center;
  }

  .nav-dropdown-menu {
    position: static;
    display: block;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 0 16px;
  }

  .nav-dropdown-menu a {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }
}

/* ------------------------------------------------------------
   3. Footer
   ------------------------------------------------------------ */
.footer {
  background: var(--navy);
  color: var(--slate);
  padding: 48px 0 32px;
  font-size: 0.85rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 1rem;
}

.footer-brand p {
  max-width: 240px;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-links ul { list-style: none; }

.footer-links ul li { margin-bottom: 8px; }

.footer-links ul li a {
  color: var(--slate);
  transition: color 0.2s;
}

.footer-links ul li a:hover { color: var(--cream); }

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(138, 155, 181, 0.2);
  font-size: 0.78rem;
  color: rgba(138, 155, 181, 0.6);
}

.footer-legal {
  margin-top: 16px;
  font-size: 0.78rem;
}

.footer-legal a {
  color: var(--slate);
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--cream); }

@media (max-width: 600px) {
  .footer .container { flex-direction: column; }
}

/* ------------------------------------------------------------
   4. Hero
   ------------------------------------------------------------ */
.hero {
  background: linear-gradient(170deg, rgba(26, 35, 50, 0.82) 0%, rgba(15, 22, 32, 0.88) 100%),
              url('../img/hero-prague.jpg') center 35% / cover no-repeat;
  color: var(--cream);
  text-align: center;
  padding: 140px 24px 120px;
  position: relative;
}

.hero .section-label { color: var(--gold); margin-bottom: 16px; }

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.25;
  letter-spacing: 0.5px;
}

.hero .divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 20px auto 24px;
}

.hero .subtitle {
  color: var(--cream);
  font-size: 1.05rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .hero { padding: 64px 24px 56px; }
  .hero h1 { font-size: 1.9rem; }
}

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn:hover {
  background: var(--gold-hover);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn--outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* ------------------------------------------------------------
   6. Sections
   ------------------------------------------------------------ */
.section { padding: 72px 0; }

.section--navy {
  background: var(--navy);
  color: var(--cream);
}

.section--navy .section-label { color: var(--gold); }
.section--navy h2 { color: var(--cream); }
.section--navy p { color: var(--slate); }

.section--cream { background: var(--cream); }

.section-title {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--slate);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.section-header { margin-bottom: 40px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin-left: auto; margin-right: auto; }

@media (max-width: 600px) {
  .section { padding: 48px 0; }
}

.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--navy);
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

/* ------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  perspective: 800px;
}

.card {
  background: var(--white);
  border: 1px solid rgba(26, 35, 50, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.06),
              0 8px 24px rgba(26, 35, 50, 0.04);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 6px 16px rgba(26, 35, 50, 0.08),
              0 20px 40px rgba(26, 35, 50, 0.1);
}

.card-header {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 60%, rgba(196, 113, 74, 0.12) 100%);
  padding: 32px 24px;
  color: var(--cream);
  text-align: left;
  border-bottom: 1px solid rgba(196, 113, 74, 0.15);
}

.card-header h3 { color: var(--cream); margin-bottom: 6px; }

.card-body { padding: 20px 24px 24px; }

.card-body p {
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-meta {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.card--muted {
  opacity: 0.75;
  pointer-events: none;
}

.card--muted .card-header::after {
  display: none;
}

/* ------------------------------------------------------------
   8. Feature Row
   ------------------------------------------------------------ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature { text-align: center; }

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.feature h3 {
  color: var(--navy);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.section--navy .feature h3 { color: var(--cream); }

.feature p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   9. Course Page
   ------------------------------------------------------------ */

/* Course hero */
.course-hero {
  background: linear-gradient(170deg, var(--navy) 0%, #0f1620 100%);
  color: var(--cream);
  text-align: center;
  padding: 100px 24px 80px;
}

.course-hero h1 { font-size: 2.2rem; margin-bottom: 16px; }

.course-hero .subtitle {
  color: var(--slate);
  max-width: 580px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

.course-hero .tagline {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
}

.gold-divider {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
}

/* Meta pills */
.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 32px;
}

.pill {
  background: rgba(196, 113, 74, 0.12);
  border: 1px solid rgba(196, 113, 74, 0.3);
  color: var(--cream);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
}

.pill strong { color: var(--gold); }

/* Date cards */
.date-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 32px;
}

.date-card {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 6px;
  padding: 20px 28px;
  text-align: center;
  min-width: 160px;
}

.date-card .date-label {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.date-card .date-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--navy);
}

/* Day header */
.day-header {
  background: var(--navy);
  color: var(--cream);
  padding: 12px 20px;
  border-radius: 4px 4px 0 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-top: 32px;
  margin-bottom: 0;
}

/* Schedule table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.schedule-table thead th {
  background: var(--navy-light);
  color: var(--slate);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.schedule-table tbody tr:nth-child(odd) { background: var(--white); }
.schedule-table tbody tr:nth-child(even) { background: #f7f4ef; }

.schedule-table tbody tr:hover { background: rgba(196, 113, 74, 0.07); }

.schedule-table td {
  padding: 11px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
}

.schedule-table .time {
  width: 100px;
  color: var(--slate);
  font-size: 0.8rem;
  white-space: nowrap;
}

.schedule-table .vh {
  width: 80px;
  text-align: center;
  color: var(--slate);
  font-size: 0.8rem;
}

.field-trip {
  color: var(--gold-hover);
  font-weight: 600;
}

/* Responsive table */
@media (max-width: 600px) {
  .schedule-table-wrap { overflow-x: auto; }
  .schedule-table { min-width: 480px; }
}

/* Instructor grid */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

.instructor {
  text-align: center;
}

.instructor-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--navy-light);
  margin: 0 auto 14px;
  overflow: hidden;
  border: 3px solid var(--gold);
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor h4 {
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--navy);
}

.instructor .instructor-title {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.instructor p {
  font-size: 0.84rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   9b. Course Detail Layout
   ------------------------------------------------------------ */
.course-detail {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

.course-detail__body p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.course-sidebar {
  background: var(--white);
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 8px;
  padding: 28px 24px;
  position: sticky;
  top: 88px;
}

.course-status {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #4AAF57;
  background: rgba(74, 175, 87, 0.08);
  border: 1px solid rgba(74, 175, 87, 0.2);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.course-sidebar dl {
  margin: 0;
}

.course-sidebar dt {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 3px;
}

.course-sidebar dd {
  font-size: 0.92rem;
  color: var(--navy);
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
}

.course-sidebar dd:last-of-type {
  border-bottom: none;
  margin-bottom: 20px;
  padding-bottom: 0;
}

.course-sidebar .btn {
  display: block;
  text-align: center;
  width: 100%;
}

@media (max-width: 768px) {
  .course-detail {
    grid-template-columns: 1fr;
  }
  .course-sidebar {
    position: static;
  }
}

/* Course photo gallery */
.course-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.course-gallery__item {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.course-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-gallery__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.course-gallery__placeholder--1 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
}
.course-gallery__placeholder--2 {
  background: linear-gradient(135deg, var(--navy-light) 0%, #2d4060 100%);
}
.course-gallery__placeholder--3 {
  background: linear-gradient(135deg, #2d4060 0%, var(--navy) 100%);
}

@media (max-width: 600px) {
  .course-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .course-gallery__item:nth-child(3) {
    grid-column: span 2;
  }
}

/* Course highlights list */
.course-highlights {
  list-style: none;
  margin: 24px 0;
  padding: 24px;
  background: var(--white);
  border-radius: 6px;
  border-left: 3px solid var(--gold);
}

.course-highlights li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--navy);
  line-height: 1.55;
}

.course-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

/* Programme note */
.programme-note {
  font-size: 0.88rem;
  color: var(--slate);
  font-style: italic;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------
   10. Form
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--navy);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid rgba(26, 35, 50, 0.2);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 113, 74, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group .field-hint {
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 5px;
}

/* ------------------------------------------------------------
   10b. Form note
   ------------------------------------------------------------ */
.form-note {
  font-size: 0.85rem;
  color: #5a5a5a;
  font-style: italic;
  margin-bottom: 24px;
}

/* ------------------------------------------------------------
   11. Hotel Card
   ------------------------------------------------------------ */
.hotel-card {
  background: var(--white);
  border: 1px solid rgba(26, 35, 50, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 28px;
}

.hotel-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--navy-light);
}

.hotel-card-body { padding: 24px; }

.hotel-card-body h3 { margin-bottom: 8px; }

.hotel-card-body p {
  font-size: 0.9rem;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.6;
}

.hotel-price {
  font-size: 1.1rem;
  color: var(--gold);
  font-family: var(--font-serif);
  margin-bottom: 16px;
}

/* ------------------------------------------------------------
   11b. Two-Column Courses & Dates
   ------------------------------------------------------------ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.two-col__left .section-label,
.two-col__right .section-label {
  display: block;
  margin-bottom: 24px;
}

.course-list {
  list-style: none;
}

.course-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.08);
}

.course-list__item:last-child { border-bottom: none; }

.course-list__item h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.course-list__item h3 a {
  color: var(--navy);
  transition: color 0.2s;
}

.course-list__item h3 a:hover {
  color: var(--gold);
}

.course-list__item p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.55;
}

.course-list__meta {
  font-size: 0.76rem;
  color: var(--slate);
  letter-spacing: 0.3px;
  margin-top: 8px;
}

.course-list__status {
  color: #4AAF57;
  font-weight: 600;
}

.course-list__link {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.course-list__link:hover {
  color: var(--gold-hover);
}

.course-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-top: 5px;
}

.course-dot--sm {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-top: 0;
  vertical-align: middle;
  margin-right: 6px;
}

.course-dot--blue { background: #4A90D9; }
.course-dot--red { background: #D94A4A; }
.course-dot--green { background: #4AAF57; }
.course-dot--grey { background: #6B6B6B; }

.date-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.date-table thead th {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  padding: 0 14px 12px;
  border-bottom: 2px solid rgba(26, 35, 50, 0.1);
}

.date-table tbody tr {
  transition: background 0.15s;
}

.date-table tbody tr:hover {
  background: rgba(196, 113, 74, 0.06);
}

.date-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(26, 35, 50, 0.06);
  vertical-align: middle;
}

.date-table td:first-child {
  font-family: var(--font-serif);
  color: var(--navy);
  white-space: nowrap;
  width: 140px;
}

.date-table td a {
  color: var(--navy);
  transition: color 0.2s;
}

.date-table td a:hover {
  color: var(--gold);
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ------------------------------------------------------------
   12. CTA Banner
   ------------------------------------------------------------ */
.cta-banner {
  background: var(--navy);
  text-align: center;
  padding: 88px 24px;
}

.cta-banner .section-label { color: var(--gold); }

.cta-banner h2 {
  color: var(--cream);
  font-size: 2rem;
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--slate);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   13. Venue List
   ------------------------------------------------------------ */
.venue-list {
  list-style: none;
}

.venue-list li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(26, 35, 50, 0.1);
}

.venue-list li:last-child { border-bottom: none; }

.venue-list .venue-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.venue-list .venue-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.venue-list .venue-desc {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   14. About Page
   ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
  margin-top: 40px;
}

.team-member { text-align: center; }

.team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--navy-light);
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid rgba(196, 113, 74, 0.35);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-member h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 4px;
}

.team-member .team-role {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.team-member p {
  font-size: 0.84rem;
  color: var(--slate);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   15. Success Page
   ------------------------------------------------------------ */
.success-page {
  text-align: center;
  padding: 80px 24px;
  max-width: 560px;
  margin: 0 auto;
}

.success-page .success-icon {
  font-size: 3rem;
  margin-bottom: 24px;
  display: block;
}

.success-page h1 {
  color: var(--navy);
  margin-bottom: 16px;
}

.success-page p {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.success-page .btn { margin-top: 28px; }

/* ============================================================
   16. Motion & Scroll Animations
   ============================================================ */

/* --- Scroll reveal base --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children — cards, features, team, instructors */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.5s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gold divider draw-in --- */
.gold-divider,
.hero .divider {
  transform: scaleX(0);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s;
}

.gold-divider.is-visible,
.hero .divider.is-visible,
.is-visible .gold-divider,
.is-visible .divider {
  transform: scaleX(1);
}

/* --- Hero text entrance --- */
.hero .section-label,
.hero h1,
.hero .subtitle,
.hero .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero .section-label { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.25s; }
.hero .divider { animation: dividerDraw 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.45s forwards; }
.hero .subtitle { animation-delay: 0.55s; }
.hero .btn { animation-delay: 0.7s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dividerDraw {
  to { transform: scaleX(1); }
}

/* --- Course hero text entrance --- */
.course-hero .section-label,
.course-hero h1,
.course-hero .tagline {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.course-hero .section-label { animation-delay: 0.1s; }
.course-hero h1 { animation-delay: 0.25s; }
.course-hero .gold-divider { animation: dividerDraw 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.45s forwards; transform: scaleX(0); }
.course-hero .tagline { animation-delay: 0.55s; }

/* --- Nav scroll state --- */
.nav { transition: box-shadow 0.3s, background 0.3s; }

.nav.nav--scrolled {
  background: rgba(26, 35, 50, 0.97);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* --- Feature icon pulse on reveal --- */
.feature-icon {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              border-color 0.5s;
}

.is-visible .feature-icon {
  animation: iconPop 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes iconPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- CTA banner shimmer --- */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(196, 113, 74, 0.04), transparent);
  animation: ctaShimmer 6s ease-in-out infinite;
}

@keyframes ctaShimmer {
  0%, 100% { left: -50%; }
  50% { left: 100%; }
}

/* --- Date card hover lift --- */
.date-card {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s;
}

.date-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(196, 113, 74, 0.15);
}

/* --- Day header slide-in --- */
.day-header {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.day-header.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Schedule table row fade --- */
.schedule-table tbody tr {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.schedule-table.is-visible tbody tr {
  opacity: 1;
  transform: translateY(0);
}

.schedule-table.is-visible tbody tr:nth-child(1) { transition-delay: 0.05s; }
.schedule-table.is-visible tbody tr:nth-child(2) { transition-delay: 0.12s; }
.schedule-table.is-visible tbody tr:nth-child(3) { transition-delay: 0.19s; }

/* --- Hotel card entrance --- */
.hotel-card {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s;
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.12);
}

/* --- Pills float in --- */
.meta-pills {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.meta-pills.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Counter animation for "40" --- */
.feature-icon[data-count] {
  font-variant-numeric: tabular-nums;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > *,
  .gold-divider,
  .hero .divider,
  .hero .section-label,
  .hero h1,
  .hero .subtitle,
  .hero .btn,
  .course-hero .section-label,
  .course-hero h1,
  .course-hero .tagline,
  .course-hero .gold-divider,
  .day-header,
  .schedule-table tbody tr,
  .meta-pills {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .cta-banner::before { animation: none; }
}
