body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #fff5e1;
  color: #2f2f2f;
  padding-bottom: 2.75rem;
}

footer.contact-bar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  box-sizing: border-box;
  background-color: #000 !important;
  color: #fff5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 9999;
  font-weight: 700;
}

footer.contact-bar a {
  color: #fff5e1 !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

footer.contact-bar a:hover,
footer.contact-bar a:focus-visible {
  text-decoration: underline;
}

footer.contact-bar svg {
  width: 1.65rem;
  height: 1.65rem;
  flex: 0 0 auto;
  fill: currentColor;
}

.hero-header {
  --bush-width: min(64vw, 760px);
  --bush-start-offset: 85%;
  --bush-end-offset: 190%;
  --bush-reveal-duration: 3.6s;
  position: relative;
  width: 90%;
  margin: 0 auto;
  overflow: hidden;
}

.header-background {
  display: block;
  width: 100%;
  height: auto;
}

.bush {
  position: absolute;
  bottom: -50px;
  width: var(--bush-width);
  height: auto;
  display: block;
  pointer-events: none;
  will-change: transform;
  max-width: none;
}

.bush-left {
  left: 50%;
  transform: translateX(calc(-1 * var(--bush-start-offset)));
}

.bush-right {
  right: 50%;
  transform: translateX(var(--bush-start-offset)) scaleX(-1);
}

.hero-header.reveal .bush-left {
  animation: move-left var(--bush-reveal-duration) ease-in-out forwards;
}

.hero-header.reveal .bush-right {
  animation: move-right var(--bush-reveal-duration) ease-in-out forwards;
}

@keyframes move-left {
  to {
    transform: translateX(calc(-1 * var(--bush-end-offset)));
  }
}

@keyframes move-right {
  to {
    transform: translateX(var(--bush-end-offset)) scaleX(-1);
  }
}


.course-meta {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding: 1.5rem 5vw;
  background: #ffe7bf;
  border-top: 1px solid rgba(47, 47, 47, 0.15);
  border-bottom: 1px solid rgba(47, 47, 47, 0.15);
}

.meta-item {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(47, 47, 47, 0.15);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.meta-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.meta-item p {
  margin: 0;
  line-height: 1.45;
}

.meta-item a {
  color: inherit;
}

.course-program-title {
  margin: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 0 0.5rem;
  text-align: center;
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
  letter-spacing: 0.08em;
}

.sections {
  display: flex;
  flex-direction: column;
}

.section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 2rem 5vw;
  gap: 2rem;
}

.section.text-left {
  flex-direction: row;
}

.section.text-right {
  flex-direction: row-reverse;
}

.section .image-card,
.section .section-copy {
  width: 50%;
}

.image-card {
  position: relative;
}

.section .section-img {
  display: block;
  width: 100%;
  height: clamp(280px, 34vw, 460px);
  object-fit: contain;
  background: #000;
  border-radius: 14px;
}

.image-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  gap: 0.5rem;
}

.image-toggle-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #2f2f2f;
  background: rgba(255, 245, 225, 0.88);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.image-toggle-btn.is-active {
  background: #2f2f2f;
  color: #fff5e1;
}

.section-copy {
  font-size: 1.1rem;
  line-height: 1.6;
  padding: 20px;
}

.section-copy p {
  margin: 0 0 0.9rem;
}

.section-copy p:last-child {
  margin-bottom: 0;
}

.lesson-copy .lesson-title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.2;
}

.lesson-copy p {
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .hero-header {
    --bush-width: 1vw;
    --bush-start-offset: 10%;
    --bush-end-offset: 12%;
    width: 100%;
  }

  .bush {
    bottom: 0;
  }

  .course-meta {
    flex-wrap: wrap;
  }

  .meta-item {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .section,
  .section.text-left,
  .section.text-right {
    flex-direction: row;
    align-items: stretch;
    gap: 0.9rem;
    padding: 1.25rem 4vw;
    min-height: 0;
  }

  .section .image-card {
    width: 46%;
  }

  .section .section-copy {
    width: 54%;
    padding: 0.5rem;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    line-height: 1.45;
  }

  .section.text-left.intro-section {
    align-items: center;
  }

  .intro-image-card {
    display: flex;
    align-items: center;
  }

  .intro-image-card .section-img {
    object-position: center;
  }

  .lesson-copy .lesson-title {
    font-size: clamp(1.05rem, 3.4vw, 1.35rem);
    margin-bottom: 0.55rem;
  }

  .lesson-copy p {
    margin-bottom: 0.55rem;
  }

  .section .section-img {
    height: 100%;
    min-height: 185px;
    max-height: 270px;
    object-fit: cover;
    background: #1a1a1a;
    border-radius: 12px;
  }

  .image-toggle {
    right: 8px;
    bottom: 8px;
    gap: 0.35rem;
  }

  .image-toggle-btn {
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 3.2rem;
  }

  footer.contact-bar {
    min-height: 3.2rem;
    gap: 0.7rem;
    font-size: 0.83rem;
    padding: 0 0.75rem;
  }

  .hero-header {
    --bush-width: 120vw;
    --bush-start-offset: 70%;
    --bush-end-offset: 170%;
  }

  .meta-item {
    flex-basis: 100%;
  }

  .section,
  .section.text-left,
  .section.text-right {
    gap: 0.65rem;
    padding: 1rem 3vw;
  }

  .section .image-card {
    width: 47%;
  }

  .section .section-copy {
    width: 53%;
    font-size: clamp(0.82rem, 2.9vw, 0.95rem);
  }

  .section .section-img {
    min-height: 160px;
    max-height: 220px;
  }
}
