@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; margin: 0; }

/* =====================
   HERO
===================== */
.culinary-hero {
  position: relative;
  background: url('https://raw.githubusercontent.com/ethn-boyi/fiesta-site/main/images/baking/baker.jpg') center/cover no-repeat;
  text-align: center;
  padding: 0;
  height: 70vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.culinary-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(59,20,28,0.82) 0%, rgba(180,80,10,0.55) 100%);
  z-index: 1;
}

.culinary-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: #fdf6ee;
  clip-path: ellipse(60% 100% at 50% 100%);
  z-index: 2;
}

.culinary-hero h1,
.culinary-hero p {
  position: relative;
  z-index: 3;
  opacity: 0;
  animation: heroFade 0.9s cubic-bezier(0.22,1,0.36,1) forwards;
}

.culinary-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  animation-delay: 0.2s;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.culinary-hero p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255,245,230,0.92);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 300;
  animation-delay: 0.45s;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding: 20px;
}

@keyframes heroFade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================
   COURSES SECTION
===================== */
.courses-section {
  padding: 80px 24px 100px;
  background: #fdf6ee;
  max-width: 1100px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

.courses-section > h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #3b141c;
  text-align: center;
  margin: 0 0 64px;
  letter-spacing: -0.3px;
  position: relative;
}

.courses-section > h2::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, #f3961c, #e05c10);
  border-radius: 99px;
  margin: 16px auto 0;
}

/* =====================
   COURSE CARD
===================== */
.course-outline {
  background: #fff;
  border-radius: 24px;
  margin: 0 0 56px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(59,20,28,0.06), 0 12px 40px rgba(59,20,28,0.08);
  border: 1px solid rgba(243,150,28,0.12);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  opacity: 0;
  animation: cardSlide 0.7s cubic-bezier(0.22,1,0.36,1) forwards;
}

.course-outline:nth-child(2) { animation-delay: 0.1s; }
.course-outline:nth-child(3) { animation-delay: 0.22s; }
.course-outline:nth-child(4) { animation-delay: 0.34s; }

@keyframes cardSlide {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.course-outline:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 12px rgba(59,20,28,0.08), 0 20px 56px rgba(59,20,28,0.13);
}

/* =====================
   COURSE HEADER
===================== */
.course-header {
  background: linear-gradient(135deg, #3b141c 0%, #7a2a10 60%, #c55a10 100%);
  color: white;
  padding: 36px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.course-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(243,150,28,0.25) 0%, transparent 60%),
                    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

.course-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  margin: 0 0 24px;
  letter-spacing: 0.3px;
  position: relative;
  line-height: 1.3;
}

.course-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  position: relative;
}

.course-details div {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  transition: background 0.25s ease;
  white-space: nowrap;
}

.course-details div:hover {
  background: rgba(255,255,255,0.22);
}

/* =====================
   MONTH CONTAINER
===================== */
.month-container {
  padding: 36px 40px 40px;
  display: grid;
  gap: 20px;
}

/* =====================
   MONTH ITEM (accordion style)
===================== */
.month-item {
  border: 1px solid rgba(243,150,28,0.18);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease;
}

.month-item:hover {
  box-shadow: 0 4px 20px rgba(243,150,28,0.15);
}

.month-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #3b141c;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(90deg, rgba(253,246,238,1) 0%, rgba(255,255,255,1) 100%);
  border-bottom: 1px solid rgba(243,150,28,0.15);
  cursor: default;
  position: relative;
}

.month-title::before {
  content: attr(data-month);
  background: linear-gradient(135deg, #f3961c, #c55a10);
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
  flex-shrink: 0;
  white-space: nowrap;
}

.month-content {
  padding: 18px 22px 22px;
}

.month-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.month-content li {
  font-size: 0.94rem;
  color: #4a3a35;
  padding: 10px 14px 10px 38px;
  border-radius: 10px;
  background: #fdf6ee;
  position: relative;
  line-height: 1.5;
  transition: background 0.2s ease, transform 0.2s ease;
  border: 1px solid transparent;
}

.month-content li::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f3961c, #c55a10);
  flex-shrink: 0;
}

.month-content li:hover {
  background: #fff3e0;
  border-color: rgba(243,150,28,0.2);
  transform: translateX(4px);
}

/* =====================
   FOOTER
===================== */
footer {
  text-align: center;
  padding: 32px 20px;
  background: linear-gradient(135deg, #3b141c 0%, #7a2a10 100%);
  color: rgba(255,245,230,0.85);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.3px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .culinary-hero { height: 55vh; }

  .courses-section {
    padding: 60px 16px 80px;
  }

  .course-header {
    padding: 28px 20px;
  }

  .course-details {
    gap: 8px;
  }

  .course-details div {
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  .month-container {
    padding: 24px 20px 28px;
  }

  .month-title {
    font-size: 1.05rem;
    padding: 15px 18px;
  }

  .month-content {
    padding: 14px 18px 18px;
  }
}

@media (max-width: 480px) {
  .culinary-hero h1 { font-size: 2rem; }
  .culinary-hero p  { font-size: 0.97rem; }

  .course-header h3 { font-size: 1.25rem; }

  .month-content li {
    font-size: 0.88rem;
    padding: 9px 12px 9px 34px;
  }

  .month-title::before {
    font-size: 0.65rem;
    padding: 4px 9px;
  }
}