/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #0a0a0a; /* Body background from shared.css */
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-on-dark); /* Default text color for the page content, assuming dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

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

.page-promotions__hero-content {
  width: 100%;
  max-width: 1000px;
  margin-top: -80px; /* Adjust to slightly overlap the image, but not cover text */
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  background: rgba(38, 169, 224, 0.9); /* Slightly transparent primary color */
  color: var(--text-on-dark);
  z-index: 10; /* Ensure it's above the image, but not overlaying text */
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-on-dark);
}

.page-promotions__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-on-dark);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
  box-sizing: border-box;
}

.page-promotions__dark-bg {
  background: var(--primary-color);
  color: var(--text-on-dark);
}

.page-promotions__light-bg {
  background: var(--secondary-color);
  color: var(--text-on-light);
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-promotions__section-description {
  font-size: 1.05em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Why Choose Section */
.page-promotions__why-choose .page-promotions__section-title,
.page-promotions__why-choose .page-promotions__section-description {
  color: var(--text-on-light);
}

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

.page-promotions__feature-item {
  background: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: var(--text-on-light);
}

.page-promotions__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Promo Categories Section */
.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: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-on-dark);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--text-on-dark);
}

.page-promotions__promo-card p {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-description {
  color: var(--text-on-light);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background: #f8f8f8;
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: var(--text-on-light);
  border-left: 4px solid var(--primary-color);
}

.page-promotions__terms-list li strong {
  color: var(--primary-color);
}

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

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  color: var(--text-on-dark);
  position: relative;
  padding-top: 60px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: var(--text-on-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: var(--text-on-dark);
}

.page-promotions__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-description {
  color: var(--text-on-light);
}

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

.page-promotions__faq-item {
  background: #f8f8f8;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-on-light);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-color);
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--login-color);
}

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--text-on-light);
  background: #f0f0f0;
}

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

.page-promotions__btn-primary {
  background: var(--login-color); /* Use login color for primary action */
  color: var(--text-on-dark);
  border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
  background: darken(var(--login-color), 10%);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
}

/* Call to Action Section */
.page-promotions__call-to-action .page-promotions__section-title,
.page-promotions__call-to-action .page-promotions__section-description {
  color: var(--text-on-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    border-radius: 8px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-promotions__intro-text {
    font-size: 1em;
  }

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

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-promotions__section-description {
    margin-bottom: 30px;
  }

  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__card-title {
    font-size: 1.4em;
  }

  .page-promotions__terms-list li,
  .page-promotions__faq-item {
    padding: 15px 20px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__step-item {
    padding-top: 50px;
  }

  .page-promotions__step-number {
    width: 45px;
    height: 45px;
    font-size: 1.5em;
  }

  /* Mobile specific image, video, button adaptations */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-promotions__video-section {
    padding-top: 10px !important;
  }
}