/* style/promotions.css */

/* Variables from color palette */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page, assuming dark body bg */
  background-color: var(--background-color); /* Page background */
  line-height: 1.6;
  padding-bottom: 60px; /* Space above footer */
}

.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; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-green); /* Fallback background if image fails */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-promotions__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  position: relative; /* Ensure content is above any background elements */
  z-index: 2;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--gold-color); /* Gold color for main title */
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Subtle glow */
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--background-color);
  transform: translateY(-2px);
}

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.4);
}

.page-promotions__text-block {
  font-size: 1.05em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-promotions__introduction {
  padding: 60px 0;
  background-color: var(--deep-green); /* Dark background */
  color: var(--text-main); /* Light text */
}

/* Promo Categories */
.page-promotions__promo-categories {
  padding: 60px 0;
  background-color: var(--background-color); /* Dark background */
}

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

.page-promotions__category-card {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main); /* Light text for card */
}

.page-promotions__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__category-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-promotions__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  flex-grow: 1;
}

/* Promo List */
.page-promotions__promo-list {
  padding: 60px 0;
  background-color: var(--deep-green); /* Dark background */
}

.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: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__promo-details {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--text-main); /* Light text for promo details */
}

.page-promotions__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-promotions__promo-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__promo-details .page-promotions__btn-primary {
  margin-top: auto; /* Push button to the bottom */
  width: 100%; /* Full width button in card */
}

/* Claim Guide Section */
.page-promotions__claim-guide {
  padding: 60px 0;
  background-color: var(--background-color); /* Dark background */
}

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

.page-promotions__guide-step {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  color: var(--text-main); /* Light text for guide step */
}

.page-promotions__guide-image {
  width: 100%;
  height: 180px;
  object-fit: contain; /* Use contain for guide images to show full content */
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-promotions__step-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

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

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green); /* Dark background */
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg); /* Dark card background */
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main); /* Light text for FAQ item */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> tag */
}

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--deep-green); /* Slightly darker when open */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Call to Action Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--background-color); /* Dark background */
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
  }
}

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

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

  /* Force responsive for images, videos, buttons */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* If any video exists */
  .page-promotions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-image {
    max-height: 300px;
  }
  .page-promotions__category-image,
  .page-promotions__promo-image,
  .page-promotions__guide-image {
    height: auto; /* Let height adjust naturally */
    min-height: 200px; /* Ensure minimum size */
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__introduction,
  .page-promotions__promo-categories,
  .page-promotions__promo-list,
  .page-promotions__claim-guide,
  .page-promotions__faq-section,
  .page-promotions__cta-section,
  .page-promotions__category-card,
  .page-promotions__promo-card,
  .page-promotions__guide-step,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles header offset, small decorative padding */
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

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

  /* Ensure content area images are not smaller than 200px */
  .page-promotions img:not(.page-promotions__hero-image) {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    padding: 30px 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
  }
  .page-promotions__section-title {
    font-size: clamp(1.4em, 6vw, 2em);
  }
  .page-promotions__category-grid,
  .page-promotions__promo-grid,
  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
  }
  .page-promotions__promo-details .page-promotions__btn-primary {
    padding: 12px 20px;
  }
}

/* Contrast Fixes (using dark background and light text for consistency) */
.page-promotions__dark-section {
  color: var(--text-main);
  background-color: var(--deep-green);
}

.page-promotions__light-bg {
  color: var(--text-main);
  background-color: var(--card-bg);
}

/* Ensure all images maintain minimum size in content areas */
.page-promotions__category-image,
.page-promotions__promo-image,
.page-promotions__guide-image {
  min-width: 200px;
  min-height: 200px;
}