@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900");

:root {
  --primary: #ff724c;
  --gray: #f2f4f8;
  --secondary: #2a2c41;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--gray);
  margin: 2rem;
  margin-top: 0;
  margin-bottom: 0;
}
.navbar {
  background-color: var(--gray);
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  font-family: "League Spartan", sans-serif;
  font-size: 18px;
}

@media screen and (max-width: 992px) {
  .navbar-nav {
    gap: 0.5rem;
  }
}

.navbar-nav .nav-link {
  color: #343a40;
  font-weight: 500;
}

.navbar-nav .nav-link:hover {
  color: #000;
}

.btn-affiliate {
  border: 2px solid var(--primary);
  color: black;
  background-color: var(--primary);
  border-radius: 6px;
}

.btn-donate {
  background-color: var(--primary);
  border-radius: 10px;
}
.btn-donate:hover {
  background-color: var(--primary);
  color: white;
}

.button-container {
  border: 2px solid var(--primary);
  border-radius: 10px;
  padding: 0.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}

.button-container:hover {
  background-color: var(--primary);
  cursor: pointer;
}

.bg-frame {
  background-image: url("img/frame_69.png");
  background-size: 80%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
}

.info-cards {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  width: 80%;
  padding: 1.5rem;
  margin: 0.25rem;
}

@media screen and (max-width: 992px) {
  .bg-frame {
    background-size: 95%;
    background-position: 50% 10%;
  }

  .province {
    max-width: 300;
  }
}

.txt-primary {
  color: var(--primary);
}

.banner {
  background-color: var(--gray);
  padding: clamp(0.5rem, 2.5vw, 2rem);
  width: 30%;
  border-bottom-right-radius: 60px;
}

.banner-text {
  font-size: clamp(0.5rem, 2.5vw, 2rem);
  font-family: "League Spartan", sans-serif;
  font-weight: 700;
}

.associate-box {
  background-color: var(--secondary);
  padding: 2rem;
  border-radius: 15px;
}

.cal-usage-box {
  background-color: white;
  padding: 1.5rem;
  border-radius: 60px;
}

.cal-usage-card {
  height: 240px;
  width: 205px;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative; /* For proper overlay positioning */
  border-radius: 10px; /* Ensuring the card has rounded corners */
  overflow: hidden; /* To prevent the overlay from overflowing */
}

.cal-usage-card span {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  z-index: 1; /* Keep original text above the background */
  transition: opacity 0.3s ease; /* Smooth fade-out of original text */
}

.cal-usage-card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px; /* Rounded corners for the overlay */
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 0.5rem;
}

.cal-usage-card:hover .overlay {
  opacity: 1; /* Show the overlay on hover */
  font-weight: 600;
}

.cal-usage-card:hover span {
  opacity: 0; /* Hide the original text on hover */
}

.cal-usage-card.card-1 {
  background-image: url("img/Image_111.png");
}
.cal-usage-card.card-2 {
  background-image: url("img/Image_222.png");
}
.cal-usage-card.card-3 {
  background-image: url("img/Image_999.png");
}
.cal-usage-card.card-4 {
  background-image: url("img/Image_888.png");
}
.cal-usage-card.card-5 {
  background-image: url("img/Image_666.png");
}
.cal-usage-card.card-6 {
  background-image: url("img/Image_555.png");
}
.cal-usage-card.card-7 {
  background-image: url("img/Image_444.png");
}

.footer {
  margin-right: -1.25rem !important;
  margin-left: -1.25rem !important;
}

.footer-content {
  background-color: var(--secondary);
  margin-top: 5rem;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  padding: 2rem;
}

.copyright {
  background-color: var(--primary);
  padding: 0.5rem;
}

.footer-section-underline {
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-color: var(--primary);
}

.footer-section-underline ~ span {
  line-height: 2rem;
}

.press-box {
  background-color: var(--secondary);
  padding: 2rem;
  border-top-left-radius: 60px;
  border-bottom-left-radius: 60px;
  margin-right: -2rem !important;
}

.press-card-container {
  overflow-x: scroll;
  scrollbar-width: none;
  display: flex;
  gap: 2rem;
}

.press-card {
  background-color: white;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: 30px;
  width: calc(
    100vw - 3rem
  ); /* Adjust card width to be slightly less than viewport width */
  min-width: 20rem;
}

.press-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary);
}

.page-header {
  background-color: var(--secondary);
  border-bottom-left-radius: 60px;
  margin-right: -2rem;
  margin-left: -2rem;
  padding: 1.5rem;
  text-align: center;
}

.affiliate-container {
  width: 65%;
  margin: auto;
}

.benefits-box {
  background-color: white;
  width: 75%;
  margin: auto;
  border-radius: 20px;
  padding: 3rem;

  ol {
    margin-left: -1rem;
  }

  ol li {
    margin-bottom: 1rem;
  }

  ol li::marker {
    font-weight: bold;
  }
}

@media screen and (max-width: 992px) {
  .benefits-box {
    width: 100%;
  }

  .affiliate-container {
    width: 80%;
  }
}

.complete-form-button {
  width: 25%;
}

@media screen and (max-width: 768px) {
  .complete-form-button {
    width: 70%;
  }
}

div .challenge-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.challenge-card {
  min-height: 9rem;
}

.radio-button {
  padding: 0.75rem;
  width: 7rem;
  text-align: center;
  border-radius: 20px;
  background-color: white;
  color: black;
  cursor: pointer;
  margin-right: 0.5rem;
  font-weight: 600;
}

.radio-button.active {
  background-color: var(--secondary);
  color: white;
}

.content-item {
  display: none;
  padding: 1rem;
}

.content-item.active {
  display: flex;
}

.card-board {
  background-color: transparent;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  width: 200px;
}
.card-board img {
  border-radius: 15px;
  width: 100%;
}
.card-board-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary);
  margin-top: 10px;
}
.card-board-name {
  background-color: var(--secondary);
  color: white;
  padding: 10px;
  border-radius: 10px;
  font-size: 18px;
  margin-top: -20px;
  display: inline-block;
}
.card-board-email {
  font-size: 16px;
  color: var(--secondary);
  margin-top: 10px;
}

.align-ms {
  justify-content: center;
}

.align-me {
  justify-content: center;
}

@media screen and (min-width: 768px) {
  .align-ms {
    justify-content: start;
  }

  .align-me {
    justify-content: end;
  }
}

.contact-section {
  padding: 50px;
}
.contact-info h2,
.contact-form h2 {
  font-weight: bold;
  color: var(--secondary);
}
.contact-info p,
.contact-info a {
  color: var(--secondary);
  font-size: 16px;
}
.contact-info a {
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
.contact-form input,
.contact-form textarea {
  border: 2px solid var(--primary);
  border-radius: 5px;
  padding: 10px;
  width: 100%;
  margin-bottom: 15px;
  background-color: transparent;
}
.contact-form button {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}
.contact-form button:hover {
  background-color: var(--primary);
}
.social-icons i {
  font-size: 30px;
  color: var(--primary);
  margin-right: 10px;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-1600px);
  }
}

.slider {
  height: 150px;
  margin: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.slider::before,
.slider::after {
  content: "";
  height: 150px;
  position: absolute;
  width: 100px;
  z-index: 2;
}
.slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}
.slider::before {
  left: 0;
  top: 0;
}
.slider .slide-track {
  animation: scroll 25s linear infinite;
  display: flex;
  width: 1500px;
}
.slider .slide {
  height: 2rem;
  width: 100%;
}

@media screen and (max-width: 550px) {
  .cal-usage-padding {
    padding: 1rem;
  }
}

@media screen and (min-width: 768px) {
  .cal-usage-padding {
    padding: 5rem;
  }
}

@media screen and (min-width: 992px) {
  .cal-usage-padding {
    padding: 7rem;
  }
}
