/* ==========================================================================
   DIGIMOZO - REWARDS PAGE STYLESHEET
   100% Matching Figma Design:
   Playfair Display serif headings with italic teal em,
   Refined cards, Reward Universe tabs, Audience cards,
   Trade & Channel cards, Fulfilment process, Case studies slider & FAQ.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,500;1,600;1,700&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

.rewards-page-v2 {
  padding-top: calc(var(--nav-height, 72px) + 36px);
  padding-bottom: 100px;
  background-color: #FAFCFB;
  color: #111A18;
  overflow-x: hidden;
}

.rew-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography & Tag Styles */
.rew-tag {
  display: inline-block;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00BFA5;
  margin-bottom: 16px;
}

.rew-heading {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  color: #111A18;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.rew-heading em {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-style: italic;
  font-weight: 700;
  color: #00BFA5;
  display: inline;
}

.rew-subheading {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15.5px;
  line-height: 1.65;
  color: #475551;
  max-width: 580px;
  margin-bottom: 16px;
}

.rew-subtext {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13px;
  line-height: 1.5;
  color: #71847E;
  margin-bottom: 28px;
}

/* Buttons */
.rew-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #00BFA5;
  color: #FFFFFF !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 191, 165, 0.25);
  border: 1px solid transparent;
}

.rew-btn-primary:hover {
  background-color: #00A892;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 191, 165, 0.35);
}

.rew-btn-primary span:last-child {
  transition: transform 0.2s ease;
}

.rew-btn-primary:hover span:last-child {
  transform: translateX(3px);
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.rew-hero-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  margin-bottom: 100px;
}

.rew-hero-content {
  max-width: 580px;
}

.rew-hero-media {
  position: relative;
  width: 100%;
}

.rew-hero-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 16px 36px -10px rgba(18, 95, 80, 0.12);
  display: block;
  background: #EAEFEA;
}

/* ==========================================================================
   2. OUR REWARD UNIVERSE SECTION
   ========================================================================== */
.rew-universe-section {
  margin-bottom: 110px;
}

.rew-universe-header {
  margin-bottom: 32px;
}

.rew-tabs-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 36px;
  scrollbar-width: none;
}

.rew-tabs-nav::-webkit-scrollbar {
  display: none;
}

.rew-tab-btn {
  white-space: nowrap;
  background: #FFFFFF;
  border: 1px solid #E1E8E4;
  color: #2D3D38;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rew-tab-btn:hover {
  border-color: #00BFA5;
  color: #00BFA5;
}

.rew-tab-btn.active {
  background: #00BFA5;
  color: #FFFFFF !important;
  border-color: #00BFA5;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 191, 165, 0.28);
}

.rew-universe-card {
  background: #FFFFFF;
  border: 1px solid #E5EBE8;
  border-radius: 32px;
  padding: 40px;
  box-shadow: 0 12px 36px rgba(18, 95, 80, 0.04);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.rew-exp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rew-exp-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #111A18;
}

.rew-exp-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rew-exp-item:hover img {
  transform: scale(1.05);
}

.rew-exp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.rew-exp-pill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(17, 26, 24, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif !important;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  z-index: 2;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s ease;
}

.rew-exp-item:hover .rew-exp-pill {
  background: rgba(0, 191, 165, 0.9);
  border-color: #00BFA5;
}

.rew-exp-details {
  display: flex;
  flex-direction: column;
}

.rew-exp-tag {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #00BFA5;
  margin-bottom: 12px;
}

.rew-exp-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 32px;
  font-weight: 700;
  color: #111A18;
  margin-bottom: 14px;
  line-height: 1.2;
}

.rew-exp-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #475551;
  margin-bottom: 26px;
}

.rew-exp-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rew-exp-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rew-exp-feature-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E6F8F5;
  color: #00BFA5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rew-exp-feature-icon svg {
  width: 15px;
  height: 15px;
}

.rew-exp-feature-text {
  font-size: 13.5px;
  font-weight: 500;
  color: #2D3D38;
  line-height: 1.45;
}

/* ==========================================================================
   3. REWARDS BY AUDIENCE SECTION
   ========================================================================== */
.rew-audience-section {
  margin-bottom: 110px;
}

.rew-audience-header {
  margin-bottom: 36px;
}

.rew-audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rew-audience-card {
  background: #FFFFFF;
  border: 1px solid #E5EBE8;
  border-radius: 24px;
  padding: 14px 14px 24px 14px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(18, 95, 80, 0.03);
}

.rew-audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(18, 95, 80, 0.08);
  border-color: #D1DED8;
}

.rew-audience-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #EAEFEA;
}

.rew-audience-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.rew-audience-card:hover .rew-audience-img-wrap img {
  transform: scale(1.04);
}

.rew-audience-body {
  padding: 0 8px;
}

.rew-audience-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  color: #111A18;
  margin-bottom: 8px;
  line-height: 1.35;
}

.rew-audience-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #5A6E68;
}

/* ==========================================================================
   4. FOR TRADE & CHANNEL SECTION
   ========================================================================== */
.rew-trade-section {
  margin-bottom: 110px;
}

.rew-trade-header {
  margin-bottom: 36px;
}

.rew-trade-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rew-trade-card {
  background: #FFFFFF;
  border: 1px solid #E5EBE8;
  border-radius: 20px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(18, 95, 80, 0.02);
}

.rew-trade-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 95, 80, 0.07);
  border-color: #D1DED8;
}

.rew-trade-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E6F8F5;
  color: #00BFA5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rew-trade-icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: #00BFA5;
}

.rew-trade-info {
  flex: 1;
}

.rew-trade-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  color: #111A18;
  margin-bottom: 6px;
  line-height: 1.35;
}

.rew-trade-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #5A6E68;
}

/* ==========================================================================
   5. REWARDS FULFILMENT SECTION
   ========================================================================== */
.rew-fulfil-section {
  margin-bottom: 110px;
}

.rew-fulfil-header {
  margin-bottom: 36px;
}

.rew-fulfil-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.rew-fulfil-card {
  background: #FFFFFF;
  border: 1px solid #E5EBE8;
  border-radius: 20px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(18, 95, 80, 0.02);
}

.rew-fulfil-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 95, 80, 0.07);
  border-color: #D1DED8;
}

.rew-fulfil-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #E6F8F5;
  color: #00BFA5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.rew-fulfil-icon-badge svg {
  width: 20px;
  height: 20px;
  stroke: #00BFA5;
}

.rew-fulfil-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 14.5px;
  font-weight: 700;
  color: #111A18;
  margin-bottom: 8px;
  line-height: 1.35;
}

.rew-fulfil-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #5A6E68;
}

/* ==========================================================================
   6. SEE REWARDS AT WORK (CASE STUDIES SLIDER)
   ========================================================================== */
.rew-case-section {
  margin-bottom: 110px;
}

.rew-case-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 20px;
}

.rew-case-slider-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0 16px;
}

.rew-case-slider-wrapper::-webkit-scrollbar {
  display: none;
}

.rew-case-slider-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  width: max-content !important;
}

.rew-case-card {
  position: relative;
  flex: 0 0 320px !important;
  width: 320px !important;
  max-width: 320px !important;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(18, 95, 80, 0.08);
  display: block;
  text-decoration: none;
  background: #111A18;
}

.rew-case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rew-case-card:hover img {
  transform: scale(1.05);
}

.rew-case-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.rew-case-tag-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.rew-case-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 22px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.rew-case-title {
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  flex: 1;
}

.rew-case-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rew-case-card:hover .rew-case-arrow {
  background: #00BFA5;
  border-color: #00BFA5;
  transform: translate(2px, -2px);
}

.rew-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

.rew-slider-btn {
  background: none;
  border: none;
  color: #00BFA5;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.rew-slider-btn:hover {
  transform: scale(1.15);
}

.rew-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rew-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D8E2DD;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rew-dot.active {
  background: #00BFA5;
  width: 20px;
  border-radius: 9999px;
}

/* ==========================================================================
   7. FAQ SECTION
   ========================================================================== */
.rew-faq-section {
  margin-bottom: 60px;
}

.rew-faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: flex-start;
}

.rew-faq-media {
  position: relative;
  width: 100%;
}

.rew-faq-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 36px;
  box-shadow: 0 16px 36px -10px rgba(18, 95, 80, 0.12);
  display: block;
  background: #EAEFEA;
}

.rew-faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rew-faq-item {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #E5EBE8;
  background: #FFFFFF;
  transition: all 0.25s ease;
}

.rew-faq-item.active {
  background: #00BFA5;
  border-color: #00BFA5;
  box-shadow: 0 8px 24px rgba(0, 191, 165, 0.25);
}

.rew-faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.rew-faq-question-text {
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #111A18;
  line-height: 1.4;
  margin: 0;
  transition: color 0.2s ease;
}

.rew-faq-item.active .rew-faq-question-text {
  color: #FFFFFF;
}

.rew-faq-toggle-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #A2B5AD;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5A6E68;
  transition: all 0.2s ease;
}

.rew-faq-toggle-icon svg {
  width: 14px;
  height: 14px;
}

.rew-faq-item.active .rew-faq-toggle-icon {
  border-color: rgba(255, 255, 255, 0.6);
  color: #FFFFFF;
  transform: rotate(180deg);
}

.rew-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease;
  padding: 0 24px;
}

.rew-faq-item.active .rew-faq-answer {
  max-height: 300px;
  padding: 0 24px 22px 24px;
}

.rew-faq-answer p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #475551;
}

.rew-faq-item.active .rew-faq-answer p {
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .rew-hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .rew-universe-card {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .rew-trade-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rew-fulfil-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .rew-case-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    max-width: 280px !important;
  }
  .rew-faq-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .rew-faq-media {
    max-width: 440px;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .rew-audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rew-fulfil-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .rewards-page-v2 {
    padding-top: calc(var(--nav-height, 72px) + 20px);
    padding-bottom: 60px;
  }
  .rew-container {
    padding: 0 16px;
  }
  .rew-heading {
    font-size: 32px;
  }
  .rew-universe-card {
    padding: 24px 18px;
    border-radius: 24px;
  }
  .rew-exp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .rew-audience-grid {
    grid-template-columns: 1fr;
  }
  .rew-trade-grid {
    grid-template-columns: 1fr;
  }
  .rew-fulfil-grid {
    grid-template-columns: 1fr;
  }
  .rew-case-card {
    flex: 0 0 82vw !important;
    width: 82vw !important;
    max-width: 82vw !important;
  }
  .rew-hero-image,
  .rew-faq-image {
    border-radius: 24px;
  }
}
