.hero-index {
  color: white;
  border-bottom: 1px solid var(--accent);
}

.hero-index p {
  max-width: 460px;
}

.hero-margin-left {
  margin-left: 28px;
}

.video-container {
  position: relative;
  max-width: 500px;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
}

.video-poster {
  width: 100%;
}

.video-play-btn {
  position: absolute;
  left: calc(50% - 30px);
  top: calc(50% - 30px);
  width: 60px;
}

.sub-hero {
  background-color: var(--primary-dark);
  min-height: 180px;
  width: 100%;
  color: white;
  padding: 2em 0;
}

.sub-hero .value {
  font-size: 50px;
}

.sub-hero .description {
  font-size: 14px;
  max-width: 160px;
  margin: 0 auto;
}

.products-section .background {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 517px;
  overflow: hidden;
  position: relative;
  margin-top: -369px;
}

.products-section .cards-container {
  display: flex;
  gap: 40px;
}

.products-section .card-product {
  border-radius: 15px;
  width: 100%;
  max-width: 375px;
  display: block;
  padding: 0;
  text-align: center;
  z-index: 5;
}

.products-section .card-header {
  position: relative;
  height: 375px;
  width: 375px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.products-section .card-body {
  background: none;
  color: white;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.5) inset;
  border-radius: 0 0 15px 15px;
  padding: 30px;
  padding-top: 20px;
  box-sizing: border-box;
  min-height: 372px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.products-section .card-body p {
  flex: 1;
}

.products-section .card-title {
  font-size: 35px;
  font-weight: bold;
}

/* ==== Learning zone ==== */

.learning-zone {
  background-image: url("../assets/bg-learning.png");
  background-position: center;
  position: relative;
  color: white;
  padding: 5em 0;
  padding-bottom: 10em;
}

.learning-zone-container {
  position: relative;
  z-index: 3;
}

.learning-zone-container h2 {
  color: white;
  margin-bottom: 70px;
}

.learning-text {
  color: var(--accent);
  font-size: 50px;
  font-weight: bold;
  margin-bottom: 16px;
}

/* ==== End learning zone ==== */

/* ==== Reviews ==== */

.review-card {
  background-color: white;
  color: var(--primary);
  padding: 2em 4em;
  padding-top: 0;
  border-radius: 15px;
  margin-top: 80px;
  font-size: 14px;
  min-width: 256px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.review-card.primary {
  background-color: var(--primary);
  color: white;
}

.review-photo {
  border-radius: 100px;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-bottom: 24px;
}

.review-text {
  margin: 0;
}

.review-body {
  display: flex;
  gap: 14px;
  flex-direction: column;
}

.primary .review-separator {
  height: 3px;
  background-color: #7d51ff;
}

.review-separator {
  height: 3px;
  background-color: #eaeaea;
}

.review-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.review-name {
  font-weight: bold;
}

.review-subname {
  font-size: 10px;
}

.review-stars {
  margin-left: auto;
  white-space: nowrap;
}
/* == End Reviews == */

@media only screen and (max-width: 880px) {
  .hero-index {
    height: auto;
    text-align: center;
  }
}

@media only screen and (max-width: 1240px) {
  .products-section {
    background-color: white;
  }

  .products-section .background {
    display: none;
  }

  .products-section .cards-container {
    flex-direction: column;
    gap: 0;
  }

  .products-section .card-product {
    max-width: 100%;
  }

  .products-section .card-header {
    display: none;
  }

  .products-section .card-body {
    padding: 20px;
    padding-top: 10px;
    border-radius: 0;
    min-height: 300px;
    background-image: url("../assets/pulse-bot.png");
    background-size: cover;
    position: relative;
  }

  .products-section .card-body * {
    z-index: 5;
  }

  .products-section .card-body:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    backdrop-filter: blur(10px); /* Add this line */
  }

  .products-section .card-title {
    font-size: 30px;
  }
}

.discount-number {
  background-color: var(--primary-dark);
  color: white;
  position: absolute;
  left: calc(50% + 120px);
  top: -50px;
  padding: 10px 28px;
}

@media only screen and (max-width: 500px) {
  .discount-number {
    position: static;
  }
}
