/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__section-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__section-title {
  font-size: clamp(2.2rem, 3.5vw, 3.2rem); /* Use clamp for H2 */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__section-description,
.page-promotions__text-block {
  font-size: 1.1rem;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 20px auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  background-color: #0a0a0a; /* Dark background for hero */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-promotions__hero-content {
  max-width: 900px;
  color: #ffffff;
}

.page-promotions__main-title {
  font-size: clamp(2.8rem, 5vw, 3.8rem); /* Use clamp for H1 */
  font-weight: 900;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-promotions__subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1a8ac7;
  border-color: #1a8ac7;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-promotions__btn-large {
  padding: 18px 35px;
  font-size: 1.2rem;
}

/* Video Section */
.page-promotions__video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #1e1e1e; /* Light background for contrast */
  color: #ffffff;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto;
  border-radius: 8px;
}

.page-promotions__video-wrapper a {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 60px 20px;
  background-color: #121212; /* Another light background for contrast */
  color: #ffffff;
}

/* Types Section */
.page-promotions__types-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #121212; /* Light background for card content */
  color: #ffffff;
}

.page-promotions__promo-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__promo-card-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How to Join Section */
.page-promotions__how-to-join-section {
  padding: 60px 20px;
  background-color: #1e1e1e; /* Light background */
  color: #ffffff;
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-card {
  background-color: #121212;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-promotions__terms-list {
  list-style: disc inside;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
  font-size: 1.1rem;
  color: #f0f0f0;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 20px;
  background-color: #1e1e1e; /* Light background */
  color: #ffffff;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-promotions__faq-item {
  background-color: #121212;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #121212;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__cta-section {
  padding: 80px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-promotions__cta-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__cta-section .page-promotions__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  }

  .page-promotions__subtitle {
    font-size: 1.1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(2rem, 3.8vw, 2.8rem);
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 30px 15px;
  }
  
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(2.2rem, 6vw, 2.8rem); /* Adjust H1 for smaller screens */
  }

  .page-promotions__subtitle {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
  }

  .page-promotions__section-description,
  .page-promotions__text-block,
  .page-promotions__terms-list,
  .page-promotions__promo-card-text,
  .page-promotions__step-text,
  .page-promotions__faq-answer p {
    font-size: 0.95rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* Image Responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video Responsive */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video section top padding for mobile */
  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  .page-promotions__promo-card-image {
    height: 180px;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .page-promotions__btn-large {
    font-size: 1.1rem;
    padding: 15px 25px;
  }

  .page-promotions__hero-section,
  .page-promotions__video-section,
  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__how-to-join-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 30px 15px;
  }

  .page-promotions__promo-card-title,
  .page-promotions__step-title {
    font-size: 1.4rem;
  }
}