* {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  background: #f5f6fa;
}

.offers-section {
  padding: 8px 0;
}

.offers-heading-wrap {
  border-left: 4px solid #433e7e;
  padding-left: 14px;
  margin-bottom: 24px;
}

.offers-heading-wrap h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1f2333;
  margin: 0 0 4px;
}

.offers-heading-wrap p {
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

/* Service filter dropdown */
.offers-filter {
  margin-bottom: 24px;
}

.offers-filter select {
  border: 1px solid #e0e0e6;
  border-radius: 10px;
  padding: 12px 40px 12px 16px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #433e7e;
  background: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23433e7e' stroke-width='3'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  width: 100%;
  max-width: 260px;
}

.offers-filter select:focus {
  outline: none;
  border-color: #433e7e;
}

/* Offer card */
.offer-card {
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  cursor: default;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.offer-card:hover {
  box-shadow: 0 8px 20px rgba(67, 62, 126, 0.12);
  transform: translateY(-2px);
}

.offer-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.offer-icon {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #433e7e;
}

.offer-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.offer-promo-tag {
  background: #efefef;
  color: #1f2333;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 6px 12px;
  border-radius: 3px;
}

.offer-cashback {
  font-weight: 700;
  font-size: 15px;
  color: #1f2333;
  margin-bottom: 8px;
}

.offer-title {
  font-weight: 700;
  font-size: 17px;
  color: #1f2333;
  margin-bottom: 10px;
  line-height: 1.35;
}

.offer-desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.offer-desc .read-more-link {
  color: #433e7e;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Offer Details Modal ===== */
.offer-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.offer-modal-overlay.show {
  display: flex;
}

.offer-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  animation: offerModalPop 0.3s ease;
}

@keyframes offerModalPop {
  from {
    transform: scale(0.94);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.offer-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #eee;
}

.offer-modal-header h5 {
  margin: 0;
  font-weight: 700;
  color: #1f2333;
  font-size: 17px;
}

.offer-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
}

.offer-modal-body {
  padding: 30px 28px;
  text-align: center;
}

.offer-modal-icon {
  width: 70px;
  height: 70px;
  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 50px;
  color: #433e7e;
}

.offer-modal-title {
  font-weight: 700;
  font-size: 19px;
  color: #1f2333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.offer-modal-promo {
  display: inline-block;
  background: #f1eefb;
  border: 1px solid #433e7e;
  border-radius: 10px;
  padding: 10px 20px;
  margin-bottom: 22px;
}

.offer-modal-promo .label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #433e7e;
  margin-bottom: 2px;
}

.offer-modal-promo .code {
  font-size: 18px;
  font-weight: 700;
  color: #433e7e;
  letter-spacing: 1px;
}

.offer-modal-text {
  background: #f8f8fa;
  border-radius: 10px;
  padding: 16px 18px;
  color: #4b4f5d;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 22px;
}

.offer-modal-close-btn {
  width: 100%;
  background: #433e7e;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.offer-modal-close-btn:hover {
  background: #322d63;
}

@media (max-width: 767px) {
  .offer-modal-body {
    padding: 24px 18px;
  }
}
