/* --------------------------------------------------
   1. Reset / base
-------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* Helps with consistent rem sizing */
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Make images and embeds behave */
img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Remove default list styles where we handle them ourselves */
ul,
ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

button {
  font: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* --------------------------------------------------
   2. Design tokens (CSS variables)
-------------------------------------------------- */

:root {
  /* Raw palette */
  --color-mint-100: #d1ffec;
  --color-mint-200: #8edfd0;
  --color-mint-300: #4ca59a;
  --color-mint-400: #2b7a78;

  --color-coral-300: #ff7c66;
  --color-coral-200: #ff9d8c;
  --color-coral-100: #ffbdb3;
  --color-coral-50: #ffded9;

  --color-gray-900: #2f2f2f;
  --color-white: #ffffff;

  /* Semantic colors */
  --color-bg: #f7fffb; /* very light mint background */
  --color-bg-alt: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-strong: #ffffff;

  --color-primary: var(--color-mint-400);
  --color-primary-soft: var(--color-mint-200);
  --color-accent: var(--color-coral-300);

  --color-text: var(--color-gray-900);
  --color-text-muted: #5e5e5e;
  --color-border-subtle: rgba(0, 0, 0, 0.06);

  /* Shadows / blur */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.12);
  --shadow-subtle: 0 8px 20px rgba(0, 0, 0, 0.06);
  --backdrop-blur: 18px;

  /* Radius */
  --radius-sm: 0.4rem;
  --radius-md: 0.8rem;
  --radius-lg: 1.2rem;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2rem;
  --fs-3xl: 2.5rem;

  /* FONT FAMILIES */
  --font-body: "Inter", sans-serif;
  --font-title: "Montserrat", sans-serif;

  /* FONT WEIGHTS */
  --fw-body: 400;
  --fw-body-medium: 500;
  --fw-body-bold: 600;
  --fw-title-black: 900;

  /* FONT SIZES (mobile-first scale) */
  --fs-xs: 0.75rem; /* small labels */
  --fs-sm: 0.875rem; /* footers, tiny text */
  --fs-base: 1rem; /* normal body text */
  --fs-md: 1.25rem; /* section subtitles */
  --fs-lg: 1.5rem; /* big section heading */
  --fs-xl: 2rem; /* hero titles */
  --fs-xxl: 2.75rem; /* large hero titles */

  /* LINE HEIGHT */
  --lh-tight: 1.1;
  --lh-normal: 1.4;
  --lh-relaxed: 1.6;

  /* Layout */
  --container-max: 1120px;

  /* Breakpoints */
  --bp-sm: 480px;
  --bp-md: 768px;
  --bp-lg: 1024px;

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;
}

/* ===========
   3. BASE TYPOGRAPHY
   =========== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-body);
  color: var(--color-gray-900);
  background: var(--color-gray-100);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-title);
  font-weight: var(--fw-title-black);
  line-height: var(--lh-tight);
}

h1 {
  font-size: var(--fs-xl);
}
h2 {
  font-size: var(--fs-lg);
}
h3 {
  font-size: var(--fs-md);
}

/* ===========
   4. BUTTONS
   =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.7rem 1.4rem;
  border-radius: 999px; /* pill */

  border: 1px solid transparent;
  background: transparent;
  color: var(--color-gray-900);

  font-family: var(--font-body);
  font-weight: var(--fw-body-medium);
  font-size: var(--fs-base);
  line-height: 1;

  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease, box-shadow 0.1s ease;
}

/* subtle "press" feedback */
.btn:active {
  transform: translateY(1px);
}

/* Primary CTA */
.btn--primary {
  background: var(--color-coral-300);
  color: #ffffff;
  border-color: white;
  border-width: 2px;
  height: 50px;
}

.btn--primary:hover {
  background: var(--color-coral-200);
  border-color: var(--color-coral-200);
}

/* Secondary outline */
.btn--secondary {
  background: #ffffff;
  color: var(--color-gray-900);
  border-color: var(--color-mint-300);
}

.btn--secondary:hover {
  background: var(--color-mint-100);
}

/* Ghost / text button */
.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-mint-400);
}

.btn--ghost:hover {
  color: var(--color-coral-100);
}

/* disabled status styling */
button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: saturate(0.8);
}

/* honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===========
   5. CARDS
   =========== */

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(0, 0, 0, 0.03);

  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.4);
}

/* slightly smaller / denser card if needed */
.card--compact {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
}

/* small label at top, e.g. "Coming soon" */
.card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;

  background: var(--color-mint-100);
  color: var(--color-mint-400);
  font-size: var(--fs-xs);
  font-weight: var(--fw-body-medium);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* card title (course name, episode title, etc.) */
.card__title {
  font-family: var(--font-title);
  font-weight: var(--fw-title-black);
  font-size: var(--fs-md);
  line-height: var(--lh-tight);
}

/* main body copy in card */
.card__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: rgba(47, 47, 47, 0.85);
}

/* meta row at bottom: duration, level, etc. */
.card__meta {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: rgba(47, 47, 47, 0.6);
}

/* optional footer area for buttons/links */
.card__actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* podcast episode cards */
.podcast-card {
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden; /* Ensures image matches rounded corners */
  display: flex;
  flex-direction: column;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.4);
  max-width: 400px;
}

/* Text section */
.podcast-card__content {
  display: grid;
  grid-template-rows: repeat(4, auto);
  grid-template-columns: 100%;
}

.podcast-card__title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  line-height: 1.3;
  color: var(--color-mint-400);
  margin: 1.5rem;
  margin-bottom: 0.75rem;
  grid-row: 1;
}

.podcast-card__desc {
  font-family: var(--font-body);
  font-size: 0.95rem; /* ~15–16px */
  line-height: 1.4;
  color: var(--color-slate-700, #4a4a4a);
  margin: 1.5rem;
  grid-row: 2;
}

.podcast-card__meta {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin: 0 1.5rem;
  grid-row: 3;
  color: var(--color-mint-300);
}

/* Tags */
.podcast-card_tags {
  z-index: 2;
  grid-row: 4;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 16px;
  align-self: flex-end;
  padding: 0.5rem 1rem;
  color: var(--color-mint-100);
  background-color: rgba(0, 0, 0, 0.75);
}

/* Image */
.podcast-card__image {
  z-index: 1;
  width: 100%;
  height: auto;
  padding: 0;
  grid-column: 1 / -1;
  grid-row: 4;
}

/* ====================
   6. LAYOUT HELPERS
   ==================== */

/* Full page wrapper */
.page {
  min-height: 100vh;
  background: var(--bg-soft);
  color: var(--color-gray-900);
}

/* Hero for each page */
.hero {
  padding: 4.5rem 2rem 0rem 0rem;
}

@media (min-width: 324px) {
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Generic section wrapper */
.section {
  padding: 3rem 1.5rem;
}

/* Alternate background (for contrast between sections) */
.section--alt {
  background: var(--color-mint-100);
}

/* Narrow hero section if you want a bit more padding */
.section--hero {
  padding-top: 4rem;
  padding-bottom: 3.5rem;
}

/* Width limiter */
.container {
  max-width: 1500px;
  margin: 0 auto;
}

/* Vertical stack */
.stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Tighter stack variant */
.stack--tight {
  gap: 0.75rem;
}

/* Row of elements with wrapping */
.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Simple responsive grid (e.g., for cards) */
.grid {
  display: grid;
  gap: 1.25rem;
}

/* standard "Coming Soon!" section */
.coming-soon-section {
  padding: 1rem;
  padding-top: 0;
  color: white;
  font-style: italic;
}

.coming-soon-message {
  font-size: 36px;
  text-align: center;
}

/* 2 columns on larger screens */
@media (min-width: 768px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 3 columns on larger screens (e.g., future course grid) */
@media (min-width: 960px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ====================
   7. HEADER & NAV
   ==================== */

nav.header-nav {
  position: fixed;
  z-index: 999;
  width: 100vw;
  background-color: var(--color-mint-400);
  height: 64px;
  padding-top: 10px;
  padding-left: 10px;
  margin-bottom: 1rem;
}

#nav-logo-link {
  display: block;
  width: 150px;
}

#nav-logo {
  width: 150px;
}

#menuToggle {
  display: block;
  /* You can also use relative/absolute here if you want to stay on the top */
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 1;

  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a {
  text-decoration: none;
  color: var(--color-gray-900);

  transition: color 0.3s ease;
}

#menuToggle a:hover {
  color: var(--color-coral-300);
  font-weight: 600;
}

#menuToggle input {
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;

  cursor: pointer;

  opacity: 0; /* hide this */
  z-index: 2; /* and place it over the hamburger */

  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span {
  display: block;
  width: 33px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;

  background: white;
  border-radius: 3px;

  z-index: 1;

  transform-origin: 4px 0px;

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1),
    background 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), opacity 0.55s ease;
}

#menuToggle span:first-child {
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2) {
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span {
  opacity: 1;
  transform: rotate(45deg) translate(-3px, -3px);
  background: var(--color-gray-900);
}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3) {
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2) {
  transform: rotate(-45deg) translate(0, -1px);
}

/*
 * Make this absolute positioned
 * at the top right of the screen
 */
#menu {
  background-color: #fff;
  position: fixed;
  right: -100px;
  top: 100px;
  text-align: right;
  max-width: 400px;
  width: 100vw;
  max-height: 100vh;
  margin: -100px 0 0 -50px;
  padding-right: 150px;
  padding-top: 225px;
  padding-bottom: 25px;
  box-sizing: border-box;
  overflow-y: auto;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */

  transform-origin: 0% 0%;
  transform: translate(100%, 0);

  transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1);
  border-radius: 12px;
}

/* image for the menu ul */
#menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background: linear-gradient(
      rgba(142, 223, 208, 0.5),
      rgba(142, 223, 208, 0.5)
    ),
    url("/assets/images/toomas-tartes-Yizrl9N_eDA-unsplash.jpg");
  background-size: 100%;
  background-position: top right 75px;
  pointer-events: none;
}

#menu li {
  padding: 10px 0;
  font-size: 22px;
}

#menu li label {
  cursor: pointer;
}

/*
 * And let's slide it in from the right
 */
#menuToggle input:checked ~ ul {
  transform: none;
}

/* Logo / brand area */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--mint-200), var(--coral-100));
}

.site-logo__text {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: var(--fw-title-black);
  letter-spacing: 0.03em;
}

/*======= NAV FOR DEVICES ABOVE 767px =======*/

@media (min-width: 768px) {
  /* Keep nav as a bar, but lay things out normally */
  .header-nav {
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
  }

  /* #menuToggle becomes just a simple container on the right */
  #menuToggle {
    position: relative;
    display: flex;
    align-items: center;
    top: auto;
    right: auto;
  }

  /* Hide the hamburger lines and checkbox */
  #menuToggle input,
  #menuToggle span {
    display: none;
  }

  /* Turn #menu into an inline list */
  #menu {
    position: static;
    transform: none;
    background: transparent;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;

    /* resets */
    margin: 0;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    right: auto;
    top: auto;
  }

  #menu li {
    margin: 0;
  }

  #menu li a {
    color: #ffffff; /* nav text color on desktop */
    font-size: 0.95rem;
    text-decoration: none;
  }

  #menu li a:hover {
    text-decoration: underline; /* or your hover style */
  }

  #menu::before {
    content: none;
    display: none;
  }
}

/* ====== NAV for screens above 1400 ====== */
@media (min-width: 1400px) {
  nav.header-nav {
    padding-left: 96px;
    padding-right: 96px;
  }
}

/* ====================
   8. INDEX HERO SECTION
   ==================== */

#hero-index-container {
  max-width: 800px;
}

#index-hero {
  background: linear-gradient(
    135deg,
    var(--color-coral-50),
    var(--color-mint-100)
  );
}

#cta-emphasis {
  font-size: 32px;
  font-weight: 900;
  color: var(--color-coral-300);
}

#index-signup__label {
  color: var(--color-gray-900);
}

.hero-copy {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto auto;
  gap: 1rem;
}

#hero-title {
  padding-top: 2rem;
  grid-row: 1;
  grid-column: 1;
  z-index: 0;
}

.hero-subtitle {
  grid-row: 2;
  grid-column: 1;
  font-size: 20px;
  margin: 0;
}

#index-signup {
  grid-column: 1;
  grid-row: 3;
  z-index: 999;
}

.hero-media {
  display: flex;
  grid-column: 2;
  grid-row: 1/4;
  align-self: flex-end;
  justify-self: flex-end;
  margin: 0;
  max-width: 250px;
  min-width: 0px;
  z-index: 0;
}

.hero-media__img {
  min-width: 180px;
  height: auto;
}

#hero-title {
  color: var(--color-mint-400);
  margin: 0;
}

@media (min-width: 565px) {
  .hero-media {
    justify-self: flex-start;
    align-self: flex-end;
  }
}

@media (min-width: 600px) {
  .hero-copy {
    gap: 0;
  }
  #hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 24px;
  }
}

@media (min-width: 676px) {
  #hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 30px;
  }

  #index-signup__label {
    font-size: 18px;
  }
}

@media (min-width: 767px) {
  #index-signup {
    width: 80%;
  }
}

@media (max-width: 404px) {
  .hero-media__img {
    display: none;
  }

  .new-course {
    display: flex !important;
    flex-direction: column;
  }

  @media (max-width: 404px) {
    .new-course {
      align-items: center;
    }

    .card__tag {
      width: 100%;
      display: flex;
      justify-content: center;
    }

    .hero-media {
      width: 80%;
    }
  }

  .course-carousel__viewport {
    max-width: 100% !important;
  }
}

/* ====================
   8. INDEX UPCOMING COURSES SECTION
   ==================== */
#courses {
  padding: 2rem 1rem;
  background: linear-gradient(
    135deg,
    var(--color-mint-200),
    var(--color-coral-200)
  );
}

.new-course {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, auto);
  gap: 1rem;
}

#courses-title {
  text-align: center;
  font-size: 30px;
  color: var(--color-mint-400);
  margin: 0;
}

.card__tag {
  grid-column: 1/3;
  grid-row: 1;
}

.book-cover {
  width: 175px;
  grid-row: 2/4;
}

.card__title {
  grid-column: 2/3;
  grid-row: 2/3;
  margin: 0;
}

.card__text {
  grid-column: 2/3;
  grid-row: 3/4;
  margin: 0;
}

.course-details {
  grid-column: 1/3;
  grid-row: 4;
  list-style-type: disc;
  padding-left: 1rem;
}

.card__meta {
  grid-column: 1/3;
  grid-row: 5;
}

#course-buttons {
  display: flex;
  gap: 1rem;
}

/* ====================
   9. INDEX COURSE CAROUSEL
   ==================== */

.course-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.card.new-course {
  box-shadow: none;
}

/* viewport shows only one card at a time */
.course-carousel__viewport {
  overflow: hidden;
  flex: 1;
  max-width: 400px;
}

/* track holds all slides in a row */
.course-carousel__track {
  display: flex;
  transition: transform 0.35s ease, opacity 0.3s ease;
}

/* Make each slide take full viewport width */
.course-carousel__track .card {
  min-width: 100%;
}

/* nav buttons */
.carousel__btn {
  border: none;
  background: #ffffff;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  color: var(--color-mint-400);
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease,
    color 0.1s ease;
}

.carousel__btn:hover {
  background: var(--mint-100);
  color: var(--coral-100);
}

.carousel__btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

@media (min-width: 768px) {
  #courses-title {
    font-size: 45px;
    margin: 1rem;
  }
}

@media (min-width: 1399px) {
  #courses {
    display: flex;
    justify-content: center;
  }

  #courses .container {
    margin: 0 0;
    max-width: 100%;
  }

  .carousel__btn {
    display: none;
  }

  .course-carousel__viewport {
    max-width: 100%;
    overflow: visible;
  }

  .new-course {
    max-width: 400px;
    box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.4) !important;
  }

  .course-carousel__track {
    width: 100%;
    justify-content: center;
    gap: 2rem;
  }

  .course-carousel__track .card {
    min-width: 400px;
  }
}

/* ====================
   10. INDEX WHO AM I SECTION
   ==================== */

#about {
  background-color: var(--color-mint-400);
  padding: 2rem;
  display: flex;
  justify-content: center;
}

.about-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-mint-100);
  max-width: 500px;
}

#about-title {
  margin: 0px;
  font-size: 30px;
  text-align: center;
  color: white;
  margin-bottom: 2rem;
}

#bio-photo {
  background: linear-gradient(
    90deg,
    var(--color-coral-300),
    var(--color-coral-100)
  );
  border-radius: 50%;
  width: 200px;
  height: 200px;
}

#bio-photo > img {
  border-radius: 50%;
}

.about-copy {
  display: flex;
  flex-direction: column;
  font-size: 18px;
  margin: auto 1rem;
}

#bio-title {
  align-self: center;
  justify-self: center;
}

@media (min-width: 768px) {
  #about-title {
    font-size: 45px;
    margin: 1rem;
    margin-bottom: 2rem;
  }

  #bio-title {
    font-size: 30px;
  }

  #bio-photo {
    background: linear-gradient(
      90deg,
      var(--color-coral-300),
      var(--color-coral-100)
    );
    border-radius: 50%;
    width: 250px;
    height: 250px;
  }
}

/* ====================
   11. PODCASTS / VIDEOS PAGES
   ==================== */

.videos-section {
}

.podcasts-videos-page {
  background-image: url("/assets/images/main\ \ background.jpg");
  background-size: cover;
  background-position: right;
}

#podcasts-videos-main {
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
}

/* Hero section */

#podcasts-videos-hero .subtitle {
  padding-right: 1rem;
}

/* ====================
   12. PODCASTS EPISODE SECTION
   ==================== */

#episodes {
  padding: 0rem 1rem 3rem 1rem;
}

#episodes-title {
  color: var(--color-gray-900);
  padding-top: 0;
  margin-top: 0;
}

/* ====================
   13. INDIVIDUAL PODCAST EPISODE PAGE
   ==================== */

#pod-episode-main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.episode {
  display: flex;
  flex-direction: column;
  max-width: 800px;
}

.pod-episode-image {
  border-radius: 1rem;
}

/* ====================
   14. VIDEOS PAGE
   ==================== */

#shorts-heading {
  color: var(--color-gray-900);
}

.videos-page {
  background-image: url("/assets/images/main\ \ background.jpg");
  background-size: cover;
  background-position: right;
}

.videos-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem;
}

.video-card {
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  width: 400px;
}

.video-card__thumb-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

.video-card__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.75rem 1rem 1rem;
  color: #2f2f2f;
}

#all-videos {
  padding: 0rem 1rem 3rem 1rem;
}

/* ====================
   15. WEEKLY LESSONS BODY
   ==================== */

#weekly-lessons-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-image: url("/assets/images/main\ \ background.jpg");
  background-size: cover;
  background-position: right;
}

#signup-main-content {
  flex-grow: 1;
  display: flex;
}

.signup-hero {
  flex-grow: 1;
  padding-bottom: 0;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
}

@media (max-width: 324px) {
  .signup-hero {
    padding-left: 0px;
    padding-right: 0px;
  }
}

.signup-form-section {
  flex-grow: 1;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  min-height: 500px;
  padding-bottom: 2rem;
}

.signup-hero__header {
  text-align: center;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.8)
  );
  border-radius: 12px;
  border: 1px solid white;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  margin: 1rem 0;
  padding: 0rem 1rem;
}

#sales-text {
  color: white;
  font-weight: 500;
}

#signup-heading {
  text-align: center;
  font-size: 30px;
  color: var(--color-mint-400);
}

.signup-hero__subtitle {
  text-align: center;
  padding: 0rem;
  color: var(--color-gray-900);
}

.signup-hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  max-width: 400px;
  grid-row: 1;
  grid-column: 1;
}

.signup-form__field {
  display: flex;
  flex-direction: column;
}

.signup-form__field label {
  color: white;
}

.signup-form {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.8)
  );
  border-radius: 12px;
  border: 1px solid white;
  border-bottom: 3px solid white;
  border-right: 3px solid white;
  align-self: flex-end;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  grid-row: 1;
  grid-column: 1;
}

.form-email {
  height: 2.5rem;
  width: 100%;
  border-radius: 999px;
  border-style: none;
  padding-left: 1rem;
}

#signup-form__button {
  margin: 1rem 0rem;
  width: 100%;
  height: 3rem;
}

#signup-logo {
  width: 50%;
  align-self: center;
}

#weekly-lesson-background-image {
  width: 275px;
  z-index: -1;
  grid-row: 1;
  grid-column: 1;
  justify-self: center;
  align-self: flex-end;
}

/* ====================
   16. TOAST
   ==================== */

.toast {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translateX(-50%);
  z-index: 9999;

  width: min(92vw, 520px);
  padding: 0.75rem 0.9rem;

  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 40px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(-50%);
}

.toast__content {
  display: flex;
  gap: 0.75rem;
  height: 8rem;
}

.toast__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-slate-900, #222);
  justify-self: center;
  align-self: center;
  flex-grow: 1;
  text-align: center;
}

.toast__close {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  align-self: flex-start;
  justify-self: flex-end;
}

.toast__close:focus-visible {
  outline: 2px solid var(--color-mint-400, #4ca59a);
  outline-offset: 2px;
}

/* optional: subtle “type” styling */
.toast--success {
  border: 2px solid var(--color-mint-200);
}

.toast--error {
  border: 1px solid rgba(255, 124, 102, 0.45);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .toast {
    transition: none;
  }
}

/* ====================
   *. FOOTER
   ==================== */

footer {
  background-color: var(--color-coral-300);
  padding: 1rem 1rem 0.1rem 1rem;
  color: white;
  height: 126px;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav img {
  width: 150px;
}

@media (max-width: 360px) {
  .site-footer__copy {
    font-size: 12px;
  }
}

@media (min-width: 1400px) {
  footer {
    padding-left: 96px;
    padding-right: 96px;
  }
}
