/* ==========================================================================
   Offers section — coupon / ticket cards
   ========================================================================== */

:root {
  --offer-card-w: 613px;
  --offer-card-h: 350px;
  --offer-gap: 20px;
  /* 3 cards + 2 gaps = 1879px row inside 1920 canvas */
  --offer-row-w: calc(var(--offer-card-w) * 3 + var(--offer-gap) * 2);
}

.offer-ticket-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.offers {
  background: #fff;
  padding: 52px 0;
  width: 100%;
}

/* Figma auto-layout row: 1879 x 350, 3 fixed cards with 20px gap */
.offers .container-fluid {
  display: flex;
  justify-content: center;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0;
}

.offers-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: var(--offer-gap);
  width: var(--offer-row-w);
  max-width: 100%;
  height: var(--offer-card-h);
  margin: 0 auto;
}

/* ----------------------------- Ticket card ------------------------------ */

.offer-ticket {
  position: relative;
  width: var(--offer-card-w);
  height: var(--offer-card-h);
  flex: none;
  order: 0;
  flex-grow: 0;
  filter: drop-shadow(0 4px 16px rgba(15, 33, 66, .13));
}

.offer-ticket__inner {
  position: relative;
  display: grid;
  grid-template-columns: 40% 60%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: url(#offerTicketClip);
}

/* Perforated / scalloped edges on all four sides */
.offer-ticket__edges {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.offer-edge {
  position: absolute;
  background: radial-gradient(circle, #fff 4.5px, transparent 4.6px);
  pointer-events: none;
}



.offer-edge--left,
.offer-edge--right {
  top: 18px;
  bottom: 18px;
  width: 10px;
  background-size: 10px 12px;
  background-repeat: repeat-y;
}

.offer-edge--left { left: -5px; }
.offer-edge--right { right: -5px; }

/* Dashed center divider with notch cut-outs — sits exactly on the
   blue panel / photo boundary (40%) of every ticket, at any height */
.offer-ticket__divider {
  position: absolute;
  left: 40%;
  top: 0;
  bottom: 0;
  width: 30px;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  /* vertical dashed line, inset 22px from each notch */
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .92) 0 7px,
    transparent 7px 13px
  );
  background-size: 2px calc(100% - 44px);
  background-position: center 22px;
  background-repeat: no-repeat;
}

/* Half-circle notches at top and bottom of the divider */
.offer-ticket__divider::before,
.offer-ticket__divider::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
}

.offer-ticket__divider::before { top: -14px; }
.offer-ticket__divider::after { bottom: -14px; }

/* Blue left panel — 40% */
.offer-ticket__panel {
  position: relative;
  z-index: 2;
  background: #1d4ed8;
  padding: 26px 18px 26px 28px;
  color: #fff;
}

.offer-ticket__media {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #0e2240;
}

.offer-ticket__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.offer-ticket__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

.offer-from {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  line-height: 1.2;
}

.offer-price {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(1.7rem, 2.5vw, 2.05rem);
  color: #fbbf24;
  line-height: 1.05;
  margin-bottom: 8px;
}

.offer-title {
  font-family: var(--display);
  font-weight: 800;
  font-style: italic;
  font-size: clamp(.9rem, 1.25vw, 1.02rem);
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
  max-width: 210px;
}

.offer-cond {
  font-size: .68rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 16px;
}

/* Claim pill button */
.offer-claim {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 9px 12px 9px 14px;
  background: #fbbf24;
  color: var(--navy);
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}

.offer-claim:hover {
  background: var(--yellow-600);
  transform: translateY(-1px);
}

.offer-claim__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22e838;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.offer-claim__label { line-height: 1; }

.offer-claim__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: transparent;
  color: var(--navy);
  flex-shrink: 0;
}

.offer-claim__arrow svg {
  width: 13px;
  height: 13px;
}

/* ------------------------------- Responsive ------------------------------- */

@media (max-width: 1879px) {
  .offers-grid {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    height: auto;
    padding: 0 16px;
  }
}

@media (max-width: 680px) {
  :root {
    --offer-card-w: 100%;
    --offer-card-h: auto;
    --offer-row-w: 100%;
  }

  .offers .container-fluid { padding: 0 16px; }

  .offers-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 0;
    max-width: 100%;
  }

  .offer-ticket {
    width: 100%;
    max-width: 613px;
    margin: 0 auto;
    aspect-ratio: 613 / 350;
    height: auto;
  }

  .offer-ticket__panel { padding: 22px 16px 22px 22px; }
  .offer-title { max-width: none; }
}
