/* Homepage offers — distinctive professional layout */

.rewa-offers {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(224, 164, 78, 0.14), transparent 55%),
    linear-gradient(180deg, #f4fafb 0%, #ffffff 48%, #f7fbfc 100%);
  overflow: hidden;
}

.rewa-offers__glow {
  position: absolute;
  inset: auto 10% -20% auto;
  width: min(420px, 50vw);
  height: min(420px, 50vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.12), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
}

.rewa-offers__inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  z-index: 1;
}

.rewa-offers__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.rewa-offers__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.rewa-offers__kicker i {
  font-size: 15px;
}

.rewa-offers__title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: #0c3640;
  margin: 0 0 12px;
  letter-spacing: -0.4px;
}

.rewa-offers__subtitle {
  margin: 0;
  color: #5a7b82;
  font-size: 16.5px;
  line-height: 1.65;
}

.rewa-offers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.rewa-offers__card {
  position: relative;
  background: #fff;
  border: 1px solid #e4eef0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(16, 59, 68, 0.03),
    0 16px 40px rgba(16, 59, 68, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.rewa-offers__card:hover {
  transform: translateY(-8px);
  border-color: #c5dde3;
  box-shadow:
    0 12px 20px rgba(16, 59, 68, 0.05),
    0 28px 56px rgba(14, 116, 144, 0.14);
}

.rewa-offers__card--featured {
  border-color: #f0c878;
  box-shadow:
    0 8px 18px rgba(180, 83, 9, 0.08),
    0 20px 44px rgba(14, 116, 144, 0.12);
}

.rewa-offers__card--featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #e0a44e, #0e7490, #e0a44e);
  z-index: 3;
}

.rewa-offers__badge {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 4;
  background: rgba(12, 54, 64, 0.88);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.02em;
}

.rewa-offers__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #e8f4f6, #f7fbfc);
  overflow: hidden;
}

.rewa-offers__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.rewa-offers__card:hover .rewa-offers__media img {
  transform: scale(1.05);
}

.rewa-offers__media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(224, 164, 78, 0.22), transparent 50%),
    linear-gradient(145deg, #0e7490, #0c3640);
  color: #fff;
  font-size: 48px;
}

.rewa-offers__ribbon {
  position: absolute;
  bottom: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  background: linear-gradient(135deg, #047857, #059669);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(4, 120, 87, 0.28);
}

.rewa-offers__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.rewa-offers__name {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 21px;
  color: #0c3640;
  margin: 0;
  line-height: 1.3;
}

.rewa-offers__lead {
  margin: 0;
  color: #0e7490;
  font-weight: 600;
  font-size: 14.5px;
}

.rewa-offers__desc {
  margin: 0;
  color: #5a7b82;
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rewa-offers__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px dashed #e4eef0;
}

.rewa-offers__discount {
  background: #ecfdf5;
  color: #047857;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.rewa-offers__price {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: #0c3640;
  letter-spacing: -0.3px;
}

.rewa-offers__was {
  color: #8aa3a9;
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 600;
}

.rewa-offers__cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #0c3640 0%, #0e7490 55%, #0891b2 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(14, 116, 144, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.rewa-offers__cta i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

[dir='ltr'] .rewa-offers__cta i {
  transform: scaleX(-1);
}

.rewa-offers__cta:hover {
  opacity: 0.96;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(14, 116, 144, 0.34);
}

.rewa-offers__cta:hover i {
  transform: translateX(-3px);
}

[dir='ltr'] .rewa-offers__cta:hover i {
  transform: scaleX(-1) translateX(-3px);
}

.rewa-pkg-modal--offer .rewa-pkg-modal__kicker {
  color: #b45309;
}

.rewa-pkg-modal__chip--badge {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.rewa-pkg-modal__chip--was {
  text-decoration: line-through;
  opacity: 0.7;
  font-weight: 600;
}

@media (max-width: 640px) {
  .rewa-offers {
    padding: 60px 0 68px;
  }

  .rewa-offers__grid {
    gap: 18px;
  }

  .rewa-offers__price {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rewa-offers__card,
  .rewa-offers__media img,
  .rewa-offers__cta,
  .rewa-offers__cta i {
    transition: none;
  }

  .rewa-offers__card:hover {
    transform: none;
  }

  .rewa-offers__card:hover .rewa-offers__media img {
    transform: none;
  }
}
