/* style/promotions.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa; /* Assuming body background is light for content areas */
  --background-dark: #26A9E0;
  --button-login: #EA7C07; /* From custom color rules */
  --color-black: #000000; /* From custom color rules */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stack image and content vertically */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px; /* General padding */
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background-color: var(--color-black); /* Dark background for hero to contrast image */
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1920px; /* Max width for large screens */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 8px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-light); /* Light text on dark hero background */
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color); /* White for contrast */
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
}

/* General Sections */
.page-promotions__overview-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section {
  padding: 80px 20px;
  background-color: var(--background-light); /* Light background for these sections */
  color: var(--text-dark);
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__cta-final-section {
  padding: 80px 20px;
  background-color: var(--background-dark); /* Primary color as dark background */
  color: var(--text-light); /* Light text for these sections */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-promotions__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: var(--text-light); /* Light text on dark card background */
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-promotions__card-description {
  font-size: 0.95rem;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
}

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

.page-promotions__step-item {
  background: var(--secondary-color); /* White background for steps */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: var(--text-dark); /* Dark text on white background */
  text-align: center;
}

.page-promotions__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__step-description {
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-promotions__step-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__step-description a:hover {
  text-decoration: underline;
}

/* Terms and Conditions */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  font-size: 1rem;
}

.page-promotions__terms-item {
  margin-bottom: 10px;
  line-height: 1.6;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background: var(--secondary-color); /* White background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark); /* Dark text on white background */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-bottom: 1px solid #e0e0e0;
  user-select: none; /* Prevent text selection on click */
  list-style: none; /* For details/summary */
}

/* Hide default marker for <details> */
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-promotions__faq-item summary {
  list-style: none;
}


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

.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); /* Rotate '+' to 'x' or just change to '-' */
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark); /* Dark text for answer */
}

/* Call to Action Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-promotions__btn-primary {
  background: var(--button-login); /* Login color for primary CTA */
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background: #c76500; /* Slightly darker orange */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
  }
  .page-promotions__hero-content {
    max-width: 700px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-promotions__hero-description {
    font-size: 1.05rem;
  }
  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  /* Global responsive for images, videos, buttons */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .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 */
  }

  /* Specific elements */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
    padding-bottom: 40px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-promotions__promo-card {
    padding: 25px;
  }
  .page-promotions__promo-image {
    height: auto; /* Allow auto height on mobile */
  }

  .page-promotions__step-item {
    padding: 25px;
  }

  /* Button responsive adaptation */
  .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; /* Add padding to button content itself */
    padding-right: 15px;
    margin-bottom: 10px; /* Space between stacked buttons */
  }

  /* If multiple buttons in a row, stack them */
  .page-promotions__cta-container {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Space between buttons */
  }
  .page-promotions__promo-card .page-promotions__cta-button {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure full width button in card */
  }
}