/* New Offers card design - Prince */
.offer_cards_layout {
  position: relative;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0px;
  box-shadow:
    0px 1px 2px 0px rgba(0, 0, 0, 0.051),
    0px 12px 24px -8px rgba(0, 0, 0, 0.0784);
  min-width: 320px;
  max-width: 350px;
  width: 100%;
  overflow: hidden;

  .img_Container {
    position: relative;
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: none;
    border-bottom: 2px solid #eab308;
    overflow: hidden;
  }

  .img_ribbon-Container {
    position: absolute;
    left: -5px;
    top: 12px;
    width: 141px;
    height: 80px;
    z-index: 1;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .ticket_content {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 1;
      max-width: max-content;
      width: 100%;
      margin-bottom: 0px;
      color: white;
      font-size: 20px;
      line-height: 24px;
      font-weight: 600;
    }
  }

  .cards_details {
    padding: 24px 20px 24px;
    position: relative;
    .card-text-color {
      position: absolute;
      top: -30px;
      left: 50%;
      transform: translateX(-50%);
      text-align: center;
      max-width: max-content;
      width: 100%;
      padding: 12px 6px;
      background-color: #fef3c7;
      border: 2px solid #eab308;
      border-radius: 50px;
      margin: 0px auto;
      font-size: 12px;
      font-weight: 700;
      line-height: 14px;
      color: #d97706;
      /* transform: translateY(30px); */
    }

    .card-text-2-color {
      color: black;
      font-size: 18px;
      font-weight: 600;
      line-height: 24px;
      text-align: center;
      padding-bottom: 18px;
      border-bottom: 1px solid #9e001b;
      max-width: max-content;
      width: 100%;

      &:nth-child(2 of .card-text-2-color) {
        font-size: 14px;
        border-bottom: 0px;
        padding-bottom: 0px;
        max-width: none;
        width: 100%;
      }

      &:nth-child(3 of .card-text-2-color) {
        max-width: none;
        width: 100%;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 0px;
        padding-bottom: 0px;
      }
    }

    .card-text-2-color {
    }
  }
}

.offers-wrap {
  max-width: 1480px;
  margin-inline: auto;
}

/* 2) EDIT your existing .offer_cards_layout block: keep everything you have
      (min-width, max-width, width, border, shadow...) and ADD these 3 lines. */
.offer_cards_layout {
  flex: 1 1 320px; /* start at 320px, grow up to your max-width 350px */
  display: flex; /* lets the Call Now button sit at the bottom */
  flex-direction: column;

  /* ...inside your nested rules, add: */
  .cards_details {
    flex: 1;
  }
}

/* 3) Phones narrower than ~360px: don't force 320px, or the card can overflow. */
@media (max-width: 359.98px) {
  .offer_cards_layout {
    min-width: 0;
  }
}

/* Wide offer card (image left, details right) */
.offer_wide_card {
  position: relative;
  display: flex;
  flex-direction: column; /* stacked on phones */
  width: 100%;
  max-width: 1100px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0px 1px 2px 0px rgba(0, 0, 0, 0.051),
    0px 12px 24px -8px rgba(0, 0, 0, 0.0784);
}

/* ---------- LEFT: media ---------- */
.offer_wide_media {
  position: relative;
  flex: 0 0 auto;
  height: 240px; /* phone height */
  background: #000; /* black until you add the image */
  overflow: hidden;
  z-index: 2;
}

.offer_wide_photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer_wide_bow {
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: auto;
  pointer-events: none;
}

.offer_wide_ribbon {
  position: absolute;
  left: -5px;
  bottom: 28px;
  width: 150px;
  height: 64px;
  z-index: 2;
}

.offer_wide_ribbon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background_ribbon {
  position: absolute;
  right: 0px;
  top: 0px;
  bottom: 0px;
  width: 65%;
  height: auto;
  z-index: 1;

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.background_layer {
  position: absolute;
  right: 0px;
  top: auto;
  bottom: 0px;
  width: 65%;
  height: auto;
  z-index: 1;
  background: #ffffff;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
}

.offer_wide_code {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- RIGHT: details ---------- */
.offer_wide_body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px;
  z-index: 2;
  /* optional confetti: background: url('/your/confetti.png') center/cover no-repeat; */
}

.offer_wide_title {
  background: linear-gradient(90deg, #f26a1b 0%, #f59e1f 100%);
  border-radius: 14px;
  padding: 12px 20px;
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(242, 106, 27, 0.45);
}

.offer_wide_title h3 {
  margin: 0;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}

.offer_wide_title p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  color: #fff;
}

.offer_wide_info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.offer_wide_desc {
  max-width: 380px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #9e001b;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
  color: #000;
}

.offer_wide_time {
  margin: 0 0 22px;
  font-size: 16px;
  font-weight: 600;
  color: #000;
}

.offer_wide_days {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #000;
}

/* ---------- md and up: image left, details right ---------- */
@media (min-width: 768px) {
  .offer_wide_card {
    flex-direction: row;
  }

  .offer_wide_media {
    flex: 0 0 46%;
    height: auto;
    min-height: 330px;
  }

  .offer_wide_body {
    padding: 24px;
  }
}
