/* =========================================
   REWARDS SECTION
========================================= */

.rewards_section {
  position: relative;
  overflow: hidden;
  background: #f7f7f5;
  color: #111;
  padding: 130px 30px 110px;
}

/* =========================================
   HEADER
========================================= */

.rewards_section .rewards_header {
  margin-bottom: 80px;
}

/* =========================================
   CARDS GRID
========================================= */

.rewards_section .rewards_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* =========================================
   CARD
========================================= */

.rewards_section .reward_card {
  position: relative;
  min-height: 450px;
  padding: 32px;
  background: #fff;
  border: 1px solid #dedede;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  box-shadow: 2px 2px 20px -5px #000 !important;
  box-shadow: none;
  box-shadow: 0;
}

.rewards_section .reward_card_visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animated top border */

.rewards_section .reward_card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 0;

  width: 0;
  height: 3px;

  background: #111;

  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.rewards_section .reward_card:hover::before {
  width: 100%;
}

/* Background hover animation */

.rewards_section .reward_card::after {
  content: "";

  position: absolute;

  width: 220px;
  height: 220px;

  right: -100px;
  bottom: -100px;

  border-radius: 50%;

  background: #111;

  transform: scale(0);

  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  pointer-events: none;
}

.rewards_section .reward_card:hover::after {
  transform: scale(1);
}

/* =========================================
   CARD TOP
========================================= */

.rewards_section .reward_card_top {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rewards_section .reward_card_number {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;

  color: #999;
}

.rewards_section .reward_icon {
  width: 54px;
  height: 54px;

  border: 1px solid #111;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;

  transition:
    background 0.4s ease,
    color 0.4s ease,
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rewards_section .reward_card:hover .reward_icon {
  background: #111;
  color: #fff;

  transform: rotate(10deg) scale(1.08);
}

/* =========================================
   CARD CONTENT
========================================= */

.rewards_section .reward_card_content {
  position: relative;
  z-index: 2;

  margin-top: auto;
  margin-bottom: 40px;
}

.rewards_section .reward_card_content h3 {
  margin: 0 0 18px;

  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.12em;
}

.rewards_section .reward_value {
  margin-bottom: 15px;

  font-family: Georgia, "Times New Roman", serif;

  font-size: clamp(58px, 6vw, 88px);
  line-height: 0.9;

  letter-spacing: -0.06em;

  font-weight: 400;

  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rewards_section .reward_card:hover .reward_value {
  transform: translateX(8px);
}

.rewards_section .reward_card_content p {
  max-width: 320px;

  margin: 0;

  font-size: 12px;
  line-height: 1.7;

  color: #777;

  transition: color 0.4s ease;
}

.rewards_section .reward_card:hover .reward_card_content p {
  color: #ccc;
}

/* =========================================
   CARD FOOTER
========================================= */

.rewards_section .reward_card_footer {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding-top: 18px;

  border-top: 1px solid #e5e5e5;

  font-size: 9px;
  font-weight: 700;

  letter-spacing: 0.15em;

  transition: border-color 0.4s ease;
}

.rewards_section .reward_card:hover .reward_card_footer {
  border-color: #444;
}

.rewards_section .reward_arrow {
  font-size: 18px;

  transition:
    transform 0.4s ease,
    color 0.4s ease;
}

.rewards_section .reward_card:hover .reward_arrow {
  color: #fff;
  transform: translate(4px, -4px);
}

/* =========================================
   BOTTOM MESSAGE
========================================= */

.rewards_section .rewards_bottom {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-top: 55px;

  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 1s ease 0.8s,
    transform 1s ease 0.8s;
}

.rewards_visible .rewards_bottom {
  opacity: 1;
  transform: translateY(0);
}

.rewards_section .rewards_bottom span {
  width: 45px;
  height: 1px;
  background: #111;
}

.rewards_section .rewards_bottom p {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;

  font-size: 17px;
  font-style: italic;

  color: #555;
}

/* =========================================
   TABLET
========================================= */

@media (min-width: 768px) and (max-width: 991px) {
  .rewards_section {
    padding: 80px 25px;
  }

  .rewards_section .rewards_header {
    margin-bottom: 55px;
  }

  .rewards_section .rewards_grid {
    /* grid-template-columns: 1fr; */
    gap: 10px;
  }

  .rewards_section .reward_card {
    min-height: 390px;
  }

  .rewards_section .reward_value {
    font-size: 72px;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .rewards_section {
    padding: 64px 25px;
  }

  .rewards_section .rewards_header {
    margin-bottom: 45px;
  }

  .rewards_section .rewards_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .rewards_section .reward_card {
    min-height: 390px;
    padding: 25px;
  }

  .rewards_section .reward_value {
    font-size: 65px;
  }

  .rewards_section .reward_card_content {
    margin: 30px 0;
  }

  .rewards_section .reward_icon {
    width: 48px;
    height: 48px;
  }

  .rewards_section .rewards_bottom {
    margin-top: 40px;
  }

  .rewards_section .rewards_bottom p {
    font-size: 14px;
  }

  .rewards_section .reward_card::before {
    width: 100%;
  }

  .rewards_section .reward_card::after {
    transform: scale(1);
  }

  .rewards_section .reward_arrow {
    color: #fff;
  }
}

/* =========================================
   MOBILE
========================================= */

@media (min-width: 0px) and (max-width: 575.98px) {
  .rewards_section {
    padding: 75px 0 65px;
  }

  .rewards_section .rewards_header {
    margin-bottom: 45px;
  }

  .rewards_section .rewards_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rewards_section .reward_card {
    min-height: 390px;
    padding: 25px;
  }

  .rewards_section .reward_value {
    font-size: 65px;
  }

  .rewards_section .reward_card_content {
    margin: 30px 0;
  }

  .rewards_section .reward_icon {
    width: 48px;
    height: 48px;
  }

  .rewards_section .rewards_bottom {
    margin-top: 40px;
  }

  .rewards_section .rewards_bottom p {
    font-size: 14px;
  }

  .rewards_section .reward_card::before {
    width: 100%;
  }

  .rewards_section .reward_card::after {
    transform: scale(1);
  }

  .rewards_section .reward_arrow {
    color: #fff;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  .rewards_section *,
  .rewards_section *::before,
  .rewards_section *::after {
    transition: none !important;
    animation: none !important;
  }

  .rewards_section .reward_card,
  .rewards_heading_wrap,
  .rewards_section .rewards_bottom,
  .rewards_bg_text {
    opacity: 1;
    transform: none;
  }
}
