/* ==========================================================
   PROJECT LANTERN — NEW EPISODES
   TRUE HORIZONTAL / LANDSCAPE VERSION
   SCOPED ONLY TO OUR NEW SECTION
   ========================================================== */

.baxter-new-episodes {
  position: relative;
  z-index: 3;

  box-sizing: border-box;

  margin-top: 30px;
  margin-bottom: 34px;

  padding:
    24px
    clamp(24px, 3vw, 42px);

  border-top:
    1px solid rgba(229, 187, 76, 0.72);

  border-bottom:
    1px solid rgba(229, 187, 76, 0.72);

  background:
    radial-gradient(
      circle at 10% 0%,
      rgba(143, 12, 28, 0.25),
      transparent 34%
    ),
    radial-gradient(
      circle at 90% 0%,
      rgba(230, 189, 80, 0.08),
      transparent 24%
    ),
    linear-gradient(
      180deg,
      rgba(31, 3, 8, 0.98),
      rgba(10, 1, 4, 0.99)
    );
}

.baxter-new-episodes__header {
  display: grid;

  grid-template-columns:
    minmax(270px, 0.8fr)
    minmax(360px, 1.4fr)
    auto;

  align-items: center;

  gap: 30px;

  margin-bottom: 22px;
}

.baxter-new-episodes__heading {
  min-width: 0;
}

.baxter-new-episodes__eyebrow {
  margin: 0 0 6px;

  color: #e6bd55;

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.baxter-new-episodes h2 {
  margin: 0;

  color: #fff4df;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size:
    clamp(2.2rem, 3vw, 3.4rem);

  font-weight: 700;
  line-height: 0.92;
}

.baxter-new-episodes__intro {
  margin: 0;

  color:
    rgba(255, 244, 224, 0.7);

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.9rem;
  line-height: 1.6;
}

.baxter-new-episodes__circus-link {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 9px;

  white-space: nowrap;

  padding:
    12px
    17px;

  border:
    1px solid rgba(231, 191, 82, 0.7);

  border-radius: 999px;

  background:
    rgba(8, 2, 4, 0.62);

  color: #efc965;

  text-decoration: none;

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;

  text-transform: uppercase;
}

.baxter-new-episodes__grid {
  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 22px;
}

.baxter-new-episode {
  min-width: 0;

  overflow: hidden;

  border:
    1px solid rgba(228, 184, 76, 0.7);

  border-radius: 16px;

  background:
    linear-gradient(
      180deg,
      #160307,
      #070203
    );

  box-shadow:
    0 18px 42px
    rgba(0, 0, 0, 0.38);
}

/*
   THIS IS THE MAIN CHANGE:
   poster LEFT + video RIGHT.
*/

.baxter-new-episode__media {
  display: grid;

  grid-template-columns:
    42% 58%;

  min-height: 220px;

  border-bottom:
    1px solid rgba(228, 184, 76, 0.42);
}

.baxter-new-episode__poster,
.baxter-new-episode__video {
  position: relative;

  min-width: 0;
  height: 100%;

  background: #000;
}

.baxter-new-episode__poster {
  overflow: hidden;

  border-right:
    1px solid rgba(228, 184, 76, 0.4);
}

.baxter-new-episode__poster img {
  display: block;

  width: 100%;
  height: 100%;

  min-height: 220px;

  object-fit: cover;

  background: #0a0204;
}

.baxter-new-episode__badge {
  position: absolute;

  z-index: 4;

  top: 12px;
  left: 12px;

  padding:
    7px
    10px;

  border:
    1px solid rgba(235, 196, 91, 0.95);

  background:
    rgba(7, 2, 3, 0.88);

  color: #f2ca67;

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.baxter-new-episode__video {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 10px;

  box-sizing: border-box;
}

.baxter-new-episode__video video {
  display: block;

  width: 100%;
  height: 100%;

  max-height: 245px;

  aspect-ratio: 864 / 496;

  object-fit: contain;

  border-radius: 9px;

  background: #000;
}

.baxter-new-episode__copy {
  display: grid;

  grid-template-columns:
    minmax(220px, 0.9fr)
    minmax(0, 1.1fr);

  align-items: center;

  gap: 24px;

  padding:
    15px
    18px
    17px;
}

.baxter-new-episode__label {
  margin: 0 0 5px;

  color: #d9ae49;

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.baxter-new-episode h3 {
  margin: 0;

  color: #fff4df;

  font-family:
    "Cormorant Garamond",
    Georgia,
    serif;

  font-size:
    clamp(1.45rem, 1.8vw, 2rem);

  line-height: 1;
}

.baxter-new-episode__copy > p {
  margin: 0;

  color:
    rgba(255, 244, 223, 0.67);

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.79rem;
  line-height: 1.55;
}

@media (max-width: 1180px) {

  .baxter-new-episodes__header {
    grid-template-columns:
      1fr 1.4fr;
  }

  .baxter-new-episodes__circus-link {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .baxter-new-episode__media {
    grid-template-columns:
      40% 60%;
  }

  .baxter-new-episode__copy {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 900px) {

  .baxter-new-episodes {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
  }

  .baxter-new-episodes__header {
    grid-template-columns: 1fr;
  }

  .baxter-new-episodes__grid {
    grid-template-columns: 1fr;
  }

  .baxter-new-episode__media {
    grid-template-columns: 1fr;
  }

  .baxter-new-episode__poster {
    border-right: 0;

    border-bottom:
      1px solid rgba(228, 184, 76, 0.4);
  }

  .baxter-new-episode__poster img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .baxter-new-episode__video video {
    height: auto;
  }
}

/* ==========================================================
   PROJECT LANTERN — ORIGINAL EPISODE ROW CORRECTION

   The new section must occupy BOTH columns in the existing
   lower episode grid. This prevents it from covering
   Cease & Desist and keeps the original two cards below.
   ========================================================== */

.baxter-new-episodes {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;
  min-width: 0 !important;
}

/*
  The existing episode cards after this element are allowed
  to return to their original grid positions.
*/
.baxter-new-episodes + article {
  grid-column: auto !important;
}

/* BAXTERGATE NEW EPISODE BADGE CLEANUP START */

.baxter-new-episode__badge {
  top: 10px !important;
  left: 10px !important;

  padding: 5px 8px !important;

  border: 1px solid rgba(235, 196, 91, 0.82) !important;
  border-radius: 2px !important;

  background: rgba(8, 2, 4, 0.78) !important;

  color: #f2ca67 !important;

  font-size: 0.54rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em !important;
  line-height: 1 !important;

  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.25) !important;

  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* BAXTERGATE NEW EPISODE BADGE CLEANUP END */

/* BAXTERGATE EPISODE SEPARATION START */

/* ----------------------------------------------------------
   1. Give the original episodes real breathing room below.
   ---------------------------------------------------------- */

.baxter-new-episodes {
  margin-bottom: 84px !important;
}

.baxter-new-episodes::after {
  content: "ORIGINAL EPISODES CONTINUE BELOW  ↓";

  display: block;

  width: fit-content;

  margin:
    34px auto
    -58px;

  padding:
    9px
    16px;

  border-top:
    1px solid rgba(230, 189, 82, 0.52);

  border-bottom:
    1px solid rgba(230, 189, 82, 0.52);

  color:
    rgba(240, 204, 112, 0.82);

  background:
    rgba(9, 2, 4, 0.78);

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.15em;

  text-align: center;
  text-transform: uppercase;
}


/* ----------------------------------------------------------
   2. Differentiate EPISODE ONE.
   Promises = crimson/red treatment.
   ---------------------------------------------------------- */

.baxter-new-episode:nth-child(1) {
  border-color:
    rgba(211, 44, 57, 0.82) !important;

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(211, 44, 57, 0.12),
    0 0 28px rgba(164, 16, 30, 0.12) !important;
}

.baxter-new-episode:nth-child(1)
.baxter-new-episode__copy {
  background:
    linear-gradient(
      110deg,
      rgba(74, 5, 14, 0.34),
      rgba(10, 2, 4, 0.15)
    );
}

.baxter-new-episode:nth-child(1)
.baxter-new-episode__label {
  color: #e36a71 !important;
}

.baxter-new-episode:nth-child(1)
.baxter-new-episode__badge {
  top: 10px !important;
  left: 10px !important;

  padding:
    5px
    8px !important;

  background:
    rgba(126, 8, 20, 0.91) !important;

  border-color:
    rgba(239, 96, 105, 0.92) !important;

  color: #fff4e4 !important;

  font-size: 0.51rem !important;
  letter-spacing: 0.08em !important;
}

.baxter-new-episode:nth-child(1)
.baxter-new-episode__badge {
  font-size: 0 !important;
}

.baxter-new-episode:nth-child(1)
.baxter-new-episode__badge::after {
  content: "PROMISES FILE";

  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}


/* ----------------------------------------------------------
   3. Differentiate EPISODE TWO.
   Agenda = gold treatment.
   ---------------------------------------------------------- */

.baxter-new-episode:nth-child(2) {
  border-color:
    rgba(231, 190, 78, 0.9) !important;

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(231, 190, 78, 0.12),
    0 0 28px rgba(212, 160, 36, 0.10) !important;
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__copy {
  background:
    linear-gradient(
      110deg,
      rgba(82, 51, 5, 0.23),
      rgba(10, 2, 4, 0.15)
    );
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__label {
  color: #e5bf59 !important;
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__badge {
  top: 10px !important;
  right: 10px !important;
  left: auto !important;

  padding:
    5px
    8px !important;

  background:
    rgba(89, 59, 6, 0.92) !important;

  border-color:
    rgba(235, 199, 99, 0.94) !important;

  color: #fff4d6 !important;

  font-size: 0 !important;
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__badge::after {
  content: "AGENDA FILE";

  font-size: 0.51rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}


/* ----------------------------------------------------------
   4. Reverse Episode Two media order:
      Episode 1 = POSTER | VIDEO
      Episode 2 = VIDEO  | POSTER

   This makes them immediately feel like separate stories.
   ---------------------------------------------------------- */

.baxter-new-episode:nth-child(2)
.baxter-new-episode__poster {
  order: 2;

  border-right: 0 !important;

  border-left:
    1px solid rgba(228, 184, 76, 0.40);
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__video {
  order: 1;
}


/* ----------------------------------------------------------
   5. Slight visual identity for each headline.
   ---------------------------------------------------------- */

.baxter-new-episode:nth-child(1) h3::before {
  content: "01  ";

  color:
    rgba(222, 77, 87, 0.8);

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.48em;
  font-weight: 800;
  letter-spacing: 0.08em;

  vertical-align: middle;
}

.baxter-new-episode:nth-child(2) h3::before {
  content: "02  ";

  color:
    rgba(232, 193, 88, 0.86);

  font-family:
    Montserrat,
    sans-serif;

  font-size: 0.48em;
  font-weight: 800;
  letter-spacing: 0.08em;

  vertical-align: middle;
}


/* ----------------------------------------------------------
   Mobile: don't reverse the stacked layout.
   ---------------------------------------------------------- */

@media (max-width: 900px) {

  .baxter-new-episodes {
    margin-bottom: 68px !important;
  }

  .baxter-new-episodes::after {
    margin:
      28px auto
      -48px;
  }

  .baxter-new-episode:nth-child(2)
  .baxter-new-episode__poster {
    order: 1;

    border-left: 0;

    border-bottom:
      1px solid rgba(228, 184, 76, 0.4);
  }

  .baxter-new-episode:nth-child(2)
  .baxter-new-episode__video {
    order: 2;
  }
}

/* BAXTERGATE EPISODE SEPARATION END */

/* BAXTERGATE LEFT COLUMN POSITION FINAL START */

/*
  Keep the entire New Episodes section inside the existing
  LEFT episode column.

  No viewport-width stretching.
  No negative margin.
  No right-panel overlap.
*/
.baxter-new-episodes {
  width: 100% !important;
  max-width: 100% !important;

  margin-left: 0 !important;
  margin-right: 0 !important;

  margin-top: 30px !important;
  margin-bottom: 58px !important;

  grid-column: 1 / -1 !important;

  box-sizing: border-box !important;
}


/*
  Two distinct horizontal stories stacked vertically.
*/
.baxter-new-episodes__grid {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr) !important;

  gap: 24px !important;

  width: 100% !important;
  max-width: 100% !important;
}


/*
  Story 01:
  poster | video
*/
.baxter-new-episode__media {
  display: grid !important;

  grid-template-columns:
    minmax(220px, 42%)
    minmax(0, 58%) !important;

  min-height: 215px !important;
}


/*
  Story 02 remains visually different:
  video | poster
*/
.baxter-new-episode:nth-child(2)
.baxter-new-episode__poster {
  order: 2 !important;

  border-right: 0 !important;

  border-left:
    1px solid
    rgba(228, 184, 76, 0.4) !important;
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__video {
  order: 1 !important;
}


/*
  Keep both media areas compact.
*/
.baxter-new-episode__poster img {
  width: 100% !important;
  height: 100% !important;

  min-height: 215px !important;

  object-fit: cover !important;
}

.baxter-new-episode__video {
  min-width: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.baxter-new-episode__video video {
  width: 100% !important;
  height: auto !important;

  max-height: 250px !important;

  object-fit: contain !important;
}


/*
  Compact header now that this lives intentionally
  beneath the left-side Foreclosure feature.
*/
.baxter-new-episodes__header {
  display: grid !important;

  grid-template-columns:
    minmax(0, 1fr) !important;

  gap: 12px !important;

  margin-bottom: 22px !important;
}

.baxter-new-episodes__circus-link {
  justify-self: start !important;
}


/*
  Keep the divider without creating a giant blank region.
*/
.baxter-new-episodes::after {
  margin:
    28px auto
    -38px !important;
}


/*
  On mobile, stack each poster/video pair.
*/
@media (max-width: 900px) {

  .baxter-new-episode__media {
    grid-template-columns:
      minmax(0, 1fr) !important;
  }

  .baxter-new-episode:nth-child(2)
  .baxter-new-episode__poster {
    order: 1 !important;

    border-left: 0 !important;
  }

  .baxter-new-episode:nth-child(2)
  .baxter-new-episode__video {
    order: 2 !important;
  }

  .baxter-new-episode__poster img {
    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: 16 / 9;
  }
}

/* BAXTERGATE LEFT COLUMN POSITION FINAL END */

/* BAXTERGATE POSTER THEN VIDEO START */

/*
  NEW EPISODES:
  Poster first, then a large full-width video.
*/

.baxter-new-episode__media {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;

  min-height: 0 !important;
}


/* ----------------------------------------------------------
   POSTER
   ---------------------------------------------------------- */

.baxter-new-episode__poster,
.baxter-new-episode:nth-child(2)
.baxter-new-episode__poster {
  order: 1 !important;

  width: 100% !important;

  border-left: 0 !important;
  border-right: 0 !important;

  border-bottom:
    1px solid rgba(228, 184, 76, 0.42) !important;

  overflow: hidden !important;

  background: #080203 !important;
}

.baxter-new-episode__poster img {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  min-height: 0 !important;

  /*
    Wide promotional banner so the poster doesn't
    make the card excessively tall.
  */
  aspect-ratio: 16 / 8.5 !important;

  object-fit: cover !important;
  object-position: center !important;
}


/* ----------------------------------------------------------
   VIDEO — FULL WIDTH
   ---------------------------------------------------------- */

.baxter-new-episode__video,
.baxter-new-episode:nth-child(2)
.baxter-new-episode__video {
  order: 2 !important;

  display: block !important;

  width: 100% !important;
  min-width: 0 !important;

  box-sizing: border-box !important;

  padding:
    14px
    16px
    16px !important;

  background:
    rgba(3, 1, 2, 0.98) !important;
}

.baxter-new-episode__video video {
  display: block !important;

  width: 100% !important;
  height: auto !important;

  max-width: none !important;
  max-height: none !important;

  aspect-ratio: 16 / 9 !important;

  object-fit: contain !important;

  border:
    1px solid rgba(228, 184, 76, 0.32) !important;

  border-radius: 10px !important;

  background: #000 !important;
}


/* ----------------------------------------------------------
   COPY — keep compact below the larger video
   ---------------------------------------------------------- */

.baxter-new-episode__copy {
  padding:
    18px
    22px
    22px !important;
}


/*
  Keep Promise / Agenda badges on top of the poster.
*/

.baxter-new-episode__badge {
  z-index: 5 !important;
}


/*
  No reversed media layout anymore.
  The cards are differentiated by their red/gold styling
  instead of swapping poster/video positions.
*/

.baxter-new-episode:nth-child(2)
.baxter-new-episode__poster {
  order: 1 !important;
}

.baxter-new-episode:nth-child(2)
.baxter-new-episode__video {
  order: 2 !important;
}


/* Mobile remains naturally stacked. */

@media (max-width: 900px) {

  .baxter-new-episode__poster img {
    aspect-ratio: 16 / 9 !important;
  }

  .baxter-new-episode__video {
    padding:
      10px
      10px
      12px !important;
  }
}

/* BAXTERGATE POSTER THEN VIDEO END */

/* BAXTER SOURCE ARTICLE LINK START */

.baxter-new-episode__source-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  gap: 18px !important;

  width: fit-content !important;

  margin-top: 16px !important;
  padding: 10px 14px !important;

  border:
    1px solid
    rgba(224, 184, 79, 0.58) !important;

  border-radius: 999px !important;

  color: #efd083 !important;

  background:
    rgba(9, 3, 4, 0.62) !important;

  font-family:
    Montserrat,
    sans-serif !important;

  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  line-height: 1 !important;

  text-decoration: none !important;
  text-transform: uppercase !important;

  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease !important;
}

.baxter-new-episode__source-link:hover {
  transform: translateY(-1px) !important;

  border-color:
    rgba(239, 208, 131, 0.9) !important;

  background:
    rgba(239, 208, 131, 0.09) !important;
}

.baxter-new-episode__source-link strong {
  font-size: 0.9rem !important;
  line-height: 1 !important;
}

/* Promise File keeps its crimson identity. */

.baxter-new-episode:nth-child(1)
.baxter-new-episode__source-link {
  color: #ff9c9c !important;

  border-color:
    rgba(207, 66, 66, 0.62) !important;
}

/* Agenda File keeps its gold identity. */

.baxter-new-episode:nth-child(2)
.baxter-new-episode__source-link {
  color: #efd083 !important;
}

@media (max-width: 700px) {

  .baxter-new-episode__source-link {
    width: 100% !important;

    box-sizing: border-box !important;

    justify-content: space-between !important;
  }
}

/* BAXTER SOURCE ARTICLE LINK END */

/* ==================================================
   PALM TRAN FEATURED EPISODE
   ================================================== */

.baxter-transit-feature {
  grid-column: 1 / -1;
  margin: 0 0 34px;
}

.baxter-transit-feature
.baxter-new-episode__media {
  display: grid;
  grid-template-columns:
    minmax(220px, 300px)
    minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.baxter-transit-feature
.baxter-new-episode__poster {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

.baxter-transit-feature
.baxter-new-episode__poster img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.baxter-transit-feature
.baxter-new-episode__video {
  width: 100%;
  min-width: 0;
}

.baxter-transit-feature
.baxter-new-episode__video video {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 864 / 496;
  object-fit: contain;
  background: #000;
}

.baxter-transit-feature
.baxter-new-episode__copy {
  margin-top: 20px;
}

@media (max-width: 780px) {

  .baxter-transit-feature
  .baxter-new-episode__media {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .baxter-transit-feature
  .baxter-new-episode__poster {
    max-width: 360px;
  }

}


