/* ==========================================================================
   FlyX Offers & Rewards Redesign - Cleartrip / MakeMyTrip Travel Standard
   ========================================================================== */

/* Hero Section with Human Travel Photography */
.fx-offers-hero {
  position: relative !important;
  overflow: hidden !important;
  padding: 68px 0 74px !important;
  background: linear-gradient(115deg, rgba(88, 1, 22, 0.94) 0%, rgba(176, 4, 47, 0.91) 48%, rgba(239, 91, 38, 0.84) 100%), url('/images/banners/traveler_airport_hero.jpg') center/cover no-repeat !important;
  color: #ffffff !important;
  isolation: isolate !important;
}
.fx-offers-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 60%);
  pointer-events: none;
}
.fx-offers-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 40px;
  align-items: center;
}
.fx-offers-hero-content h1 {
  font-size: 46px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
  letter-spacing: -1.2px !important;
  color: #ffffff !important;
  margin: 0 0 16px !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.fx-offers-hero-content p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  max-width: 620px !important;
}

/* Featured Hero Card Showcase */
.fx-offers-hero-banner {
  position: relative;
  border-radius: 20px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fx-offers-hero-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 60px -8px rgba(0, 0, 0, 0.52);
}
.fx-hero-banner-inner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a050b;
}
.fx-hero-banner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.4s ease;
}
.fx-hero-banner-inner:hover .fx-hero-banner-photo {
  transform: scale(1.06);
}
.fx-hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.45) 50%, rgba(0, 0, 0, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  color: #ffffff;
}
.fx-hero-badge-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.fx-hero-fire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ff4d2e;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(255, 77, 46, 0.4);
}
.fx-hero-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.fx-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: fxPulseGreen 1.8s infinite;
}
@keyframes fxPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.fx-hero-banner-title {
  font-size: 22px;
  font-weight: 950;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}
.fx-hero-banner-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.45;
}
.fx-hero-banner-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.fx-hero-promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: 8px;
  background: #ffffff;
  color: #b0042f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.fx-hero-bank-stack {
  font-size: 11px;
  color: #a7f3d0;
  font-weight: 850;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Coupon Posters */
.fx-campaign-art {
  background: #07182f url('/images/offers-2026/flight.webp') center/cover !important;
  align-items: flex-start !important;
  text-align: left !important;
  padding: 54px 24px 32px !important;
  min-height: 250px;
}
.fx-campaign-art[data-poster-type="hotel"] {
  background-image: url('/images/offers-2026/hotel.webp') !important;
}
.fx-campaign-art[data-poster-type="bus"] {
  background-image: url('/images/offers-2026/bus.webp') !important;
}
.fx-campaign-art > * {
  position: relative;
  z-index: 2;
  max-width: 72%;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.fx-campaign-art strong {
  font-size: 38px !important;
  color: #ffffff !important;
}
.fx-campaign-art em {
  font-size: 14px !important;
  color: #ffffff !important;
}
.fx-campaign-art:before,
.fx-campaign-art:after {
  display: none !important;
}

/* Payment Partner Offers Section */
.fx-pay-offers {
  background: linear-gradient(135deg, #09121d 0%, #132235 60%, #1a2c42 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.fx-pay-offers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px !important;
}
.fx-pay-offer-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 18px !important;
  overflow: hidden;
}
.fx-pay-offer-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45) !important;
}
.fx-pay-card-button {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  padding: 20px !important;
  text-align: left;
  width: 100%;
}
.fx-pay-card-button h3 {
  font-size: 19px !important;
  line-height: 1.35 !important;
  color: #ffffff !important;
  margin: 12px 0 6px !important;
}
.fx-pay-card-button p {
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
}
.fx-pay-card-link {
  margin-top: auto !important;
  padding-top: 16px;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

/* 3D Bank Credit Card Showcase */
.fx-card-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 188px;
  background: radial-gradient(ellipse at 50% 90%, #1f334a 0%, #0c1624 75%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  perspective: 750px;
  position: relative;
}
.fx-card-stage::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.fx-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  padding: 10px;
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fx-card-image img {
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 148px;
  object-fit: contain;
  border-radius: 11px;
  box-shadow: 0 16px 36px -4px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.22);
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55));
  transition: transform 0.25s ease;
}
.fx-pay-offer-card:hover .fx-card-image {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
}
.fx-card-fallback-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 180px;
  height: 112px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}
.fx-card-fallback-box i {
  font-size: 26px;
  color: #38bdf8;
}
.fx-card-fallback-box strong {
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
}
.fx-card-fallback-box small {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
}

.fx-offers-section button:focus-visible,
.fx-pay-offers button:focus-visible {
  outline: 3px solid #fb923c;
  outline-offset: 3px;
}

/* Responsive Rules */
@media (max-width: 991.98px) {
  .fx-offers-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fx-offers-hero-banner {
    max-width: 480px;
    margin: 0 auto;
  }
  .fx-pay-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 580px) {
  .fx-offers-hero {
    padding: 44px 0 48px !important;
  }
  .fx-offers-hero-content h1 {
    font-size: 32px !important;
  }
  .fx-pay-offers-grid {
    grid-template-columns: 1fr !important;
  }
  .fx-card-stage {
    height: 180px;
  }
  .fx-campaign-art {
    min-height: 245px;
  }
  .fx-campaign-art strong {
    font-size: 34px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fx-offer-card,
  .fx-offer-img img,
  .fx-pay-offer-card,
  .fx-offers-hero-banner,
  .fx-card-image {
    transition: none !important;
    transform: none !important;
  }
  .fx-pulse-dot {
    animation: none !important;
  }
}
