  .home-offers {
    --home-offers-gutter: 5%;
    width: 100%;
    max-width: 1300px;
    margin: clamp(40px, 4.25vw, 56px) auto 0;
    padding: 0 var(--home-offers-gutter);
  }

  .home-offers-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: clamp(24px, 2.4vw, 32px);
  }

  .home-offers-heading {
    margin: 0;
    color: var(--home-text-strong);
    font-size: clamp(28px, 2.35vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.035em;
    text-align: center;
  }

  .home-offers-all {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b6b76;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
  }

  .home-offers-all:hover {
    color: var(--home-text-strong);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .home-offers-all:focus-visible,
  .home-offer-card:focus-visible,
  .home-offer-card-action:focus-visible {
    outline: 3px solid rgba(46, 182, 79, 0.4);
    outline-offset: 4px;
  }

  .home-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
  }

  .home-offers-carousel {
    position: relative;
  }

  .home-offers-terms {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 12px 14px 0;
    color: #6b7280;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.4;
  }

  .home-offers-terms .material-icons-round {
    flex: 0 0 auto;
    color: #289249;
    font-size: 16px;
  }

  .home-offers-nav {
    display: none;
  }

  .home-offer-card {
    position: relative;
    width: 100%;
    min-height: 288px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    margin: 0;
    padding: 32px;
    border: 1px solid #d9e1ee;
    border-radius: 24px;
    background: #fff;
    color: var(--home-text-strong);
    appearance: none;
    text-align: left;
    box-shadow: none;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
  }

  .home-offer-card:hover,
  .home-offer-card:focus-visible,
  .home-offer-card:focus-within {
    border-color: #d9e1ee;
    box-shadow: none;
    transform: translateY(-1px);
  }

  .home-offer-card-action {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    cursor: pointer;
  }

  .home-offer-card-content {
    position: relative;
    z-index: 3;
    display: grid;
    width: 100%;
    grid-template-rows: minmax(44px, auto) auto;
    max-width: none;
    align-items: flex-start;
    gap: 10px;
    pointer-events: none;
  }

  .home-offer-student-hint {
    display: block;
    max-width: 270px;
    min-height: 34px;
    margin: 1px 0 0;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
  }

  .home-offer-card-title {
    position: relative;
    z-index: 1;
    max-width: 100%;
    color: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }

  .home-offer-card-content .home-offer-card-title {
    max-width: 100%;
  }

  .home-offer-code {
    display: inline-flex;
    width: fit-content;
    min-height: 30px;
    align-items: center;
    justify-self: end;
    transform: translateX(16px);
    gap: 8px;
    padding: 3px 4px 3px 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    pointer-events: auto;
    white-space: nowrap;
  }

  .home-offer-code strong {
    color: #111827;
    font-weight: 900;
    letter-spacing: 0.035em;
  }

  .home-offer-code-copy {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.16s ease, transform 0.16s ease;
  }

  .home-offer-code-copy:hover {
    background: #253047;
    transform: translateY(-1px);
  }

  .home-offer-code-copy.is-copied {
    background: #16913a;
  }

  .home-offer-student-verify {
    position: relative;
    right: -16px;
    z-index: 4;
    display: inline-flex;
    width: fit-content;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    gap: 7px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
    color: #1f2937;
    font: inherit;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1.1;
    cursor: pointer;
    pointer-events: auto;
    white-space: nowrap;
    transition: box-shadow 0.18s ease, filter 0.18s ease, transform 0.18s ease;
  }

  .home-offer-student-verify .material-icons-round {
    flex: 0 0 auto;
    color: #111827;
    font-size: 17px;
    line-height: 1;
  }

  .home-offer-student-verify .home-offer-student-verify-arrow {
    color: #64748b;
    font-size: 16px;
    transition: transform 0.18s ease;
  }

  .home-offer-student-verify:hover,
  .home-offer-student-verify:focus-visible {
    border-color: rgba(71, 85, 105, 0.34);
    background: #f8fafc;
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
  }

  .home-offer-student-verify:hover .home-offer-student-verify-arrow,
  .home-offer-student-verify:focus-visible .home-offer-student-verify-arrow {
    transform: translateX(2px);
  }

  .home-offer-student-verify:focus-visible {
    outline: 3px solid rgba(100, 116, 139, 0.28);
    outline-offset: 3px;
  }

  .home-offer-card.home-offer-card--student {
    container: student-offer / inline-size;
    /* The copy's 2px offset aligns its title with the other cards' 32px inset. */
    padding-top: 30px;
  }

  .home-offer-card--student .home-offer-card-content {
    /* Keep the action at the same height in the grid and carousel. */
    grid-template-rows: minmax(22px, auto) auto;
    gap: 2px;
  }

  .home-offer-card--student .home-offer-card-title,
  .home-offer-card--student .home-offer-student-hint {
    position: relative;
    top: 2px;
  }

  @container student-offer (max-width: 210px) {
    .home-offer-card-title {
      font-size: 16px;
    }
  }

  @container student-offer (min-width: 256px) {
    .home-offer-student-verify {
      /* Lift only the action where it clears the last line of copy. */
      top: -8px;
    }
  }

  .home-offer-card--student .home-offer-card-image {
    inset: 60px 0 0;
    height: calc(100% - 60px);
  }

  .home-offer-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
  }

  html.home-offer-terms-open,
  body.home-offer-terms-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .home-offer-terms-modal[hidden] {
    display: none;
  }

  .home-offer-terms-modal {
    position: fixed;
    inset: 0;
    z-index: 1000300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
  }

  .home-offer-terms-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.58);
    cursor: default;
  }

  .home-offer-terms-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    width: min(100%, 560px);
    max-height: calc(100dvh - 48px);
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  }

  .home-offer-terms-handle {
    display: none;
    width: 44px;
    height: 5px;
    margin: -10px auto 0;
    border-radius: 999px;
    background: #e5e7eb;
  }

  .home-offer-terms-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #667085;
    cursor: pointer;
  }

  .home-offer-terms-close:hover,
  .home-offer-terms-close:focus-visible {
    background: #e9edf2;
    color: #111827;
    outline: none;
  }

  .home-offer-terms-close svg {
    width: 22px;
    height: 22px;
  }

  .home-offer-terms-visual {
    display: flex;
    min-height: 230px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 0;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
  }

  .home-offer-terms-visual img {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: contain;
  }

  .home-offer-terms-copy {
    display: grid;
    gap: 14px;
  }

  .home-offer-terms-copy h2 {
    margin: 0;
    color: #111827;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
  }

  .home-offer-terms-description {
    display: grid;
    gap: 9px;
  }

  .home-offer-terms-description p {
    margin: 0;
    color: #5b667a;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
  }

  .home-offer-terms-description strong {
    color: #111827;
    font-weight: 800;
  }

  .home-offer-terms-description .home-offer-terms-highlight {
    color: #00a63e;
  }

  .home-offer-terms-confirm {
    min-height: 56px;
    padding: 13px 20px;
    border: 0;
    border-radius: 15px;
    background: var(--flexlast-booking-cta, #4fbd4f);
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
  }

  .home-offer-terms-confirm:hover,
  .home-offer-terms-confirm:focus-visible {
    background: var(--flexlast-booking-cta, #4fbd4f);
    outline: none;
  }

  .home-offer-image-drop-overlay {
    position: absolute;
    inset: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 2px dashed rgba(46, 182, 79, 0.72);
    border-radius: 18px;
    background: rgba(244, 252, 246, 0.94);
    color: #167a35;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease, background-color 0.16s ease;
  }

  html[data-offer-image-drop-active='true'] .home-offer-image-drop-overlay {
    opacity: 0.86;
    visibility: visible;
  }

  .home-offer-card.is-offer-image-drop-target {
    border-color: #2eb64f;
    box-shadow: 0 16px 50px rgba(46, 182, 79, 0.2);
    transform: translateY(-2px);
  }

  .home-offer-card.is-offer-image-drop-target .home-offer-image-drop-overlay {
    background: rgba(235, 249, 239, 0.98);
    opacity: 1;
  }

  .home-offer-preview-reset {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 5;
    display: none;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.12);
    color: #111827;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, visibility 0.16s ease;
  }

  .home-offer-card.has-local-offer-preview .home-offer-preview-reset {
    display: inline-flex;
  }

  .home-offer-card.has-local-offer-preview:hover .home-offer-preview-reset,
  .home-offer-card.has-local-offer-preview:focus-visible .home-offer-preview-reset {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .home-offer-card.has-local-offer-preview .home-offer-card-title {
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 12px rgba(255, 255, 255, 0.82);
  }

  @media (max-width: 899px) {
    .home-offers-nav:not([hidden]) {
      position: absolute;
      z-index: 4;
      top: calc(50% - 2px);
      transform: translateY(-50%);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid #d9e1ee;
      border-radius: 50%;
      background: #fff;
      box-shadow: none;
      transition: none;
      animation: none;
      -webkit-tap-highlight-color: transparent;
      color: #111827;
      cursor: pointer;
      touch-action: manipulation;
    }

    .home-offers-nav--previous { left: 0; }
    .home-offers-nav--next { right: 0; }
    .home-offers-nav svg { width: 20px; height: 20px; }
    .home-offers-nav:disabled { opacity: .35; cursor: default; }
    .home-offers-nav:not([hidden]):is(:hover, :active) { background: #fff; border-color: #d9e1ee; box-shadow: none; transform: translateY(-50%); filter: none; scale: none; }
    .home-offers-nav:focus-visible { outline: 3px solid #289249; outline-offset: 3px; }

    .home-offers-grid {
      grid-auto-flow: column;
      /* Fit the available carousel width, including when a scrollbar takes space. */
      grid-auto-columns: min(360px, 100%);
      grid-template-columns: none;
      gap: 18px;
      /* Horizontal scrolling also clips vertically. Reserve room for the
         hover lift and keyboard focus outline without moving the cards. */
      margin: -8px calc(-1 * var(--home-offers-gutter)) 0;
      padding: 8px var(--home-offers-gutter) 12px;
      overflow-x: auto;
      overflow-y: visible;
      overscroll-behavior-inline: contain;
      scroll-padding-inline: var(--home-offers-gutter);
      scroll-snap-type: inline mandatory;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
    }

    .home-offers-grid::-webkit-scrollbar {
      display: none;
    }

    .home-offer-card {
      height: 288px;
      min-height: 288px;
      padding: 32px;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
  }

  @media (max-width: 599px) {
    .home-offers {
      --home-offers-gutter: 18px;
      margin-top: 48px;
      padding-right: var(--home-offers-gutter);
      padding-left: var(--home-offers-gutter);
    }

    .home-offers-header {
      margin-bottom: 24px;
    }

    .home-offers-heading {
      font-size: 24px;
    }

    .home-offers-all {
      display: none;
    }

    .home-offers-terms {
      align-items: flex-start;
      margin-right: 6px;
      margin-left: 6px;
    }

    .home-offer-terms-modal {
      align-items: flex-end;
      padding: 0;
    }

    .home-offer-terms-dialog {
      width: 100%;
      max-height: calc(100dvh - 20px);
      gap: 15px;
      padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
      border-width: 1px 0 0;
      border-radius: 26px 26px 0 0;
    }

    .home-offer-terms-handle {
      display: block;
    }

    .home-offer-terms-close {
      top: 16px;
      right: 16px;
    }

    .home-offer-terms-visual {
      min-height: 170px;
      margin-top: 14px;
    }

    .home-offer-terms-visual img {
      height: 170px;
    }

    .home-offer-terms-copy h2 {
      padding: 0 24px;
      font-size: 24px;
    }
  }

  @media (max-width: 600px) {
    .home-offers-heading {
      font-size: 24px;
      line-height: 1.05;
      letter-spacing: -0.02em;
    }
  }

  @media (max-width: 767px) {
    body.home-page.home-breakpoints-page .home-offers {
      margin-top: clamp(16px, 4.5vw, 20px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .home-offer-card {
      transition: none;
    }
  }
