/* style/promotions.css */

/* Base styles for the page content area */
.page-promotions {
  background-color: var(--bg-color, #08160F); /* Default to #08160F if --bg-color is not set */
  color: var(--text-main, #F2FFF6); /* Default to #F2FFF6 for main text */
  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;
  display: flex;
  flex-direction: column; /* Ensure image-then-text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #08160F; /* Match body background */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -80px; /* Overlap slightly for visual effect, but text is below image */
  position: relative;
  z-index: 1; /* Ensure content is above any background elements */
  background-color: rgba(17, 39, 27, 0.9); /* Card BG with slight transparency */
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-promotions__main-title {
  font-size: 2.8em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: #A7D9B8;
  margin-bottom: 30px;
}

/* Common Section Styling */
.page-promotions__intro-section,
.page-promotions__promotion-types-section,
.page-promotions__terms-conditions-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A; /* Divider color */
}

.page-promotions__intro-section {
  background-color: #08160F;
}

.page-promotions__section-title {
  font-size: 2.2em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #11A84E; /* Primary color */
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.05em;
  color: #A7D9B8; /* Secondary text color */
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__promotion-card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Lists */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-promotions__list--ordered {
  list-style-type: decimal;
  padding-left: 20px;
}

.page-promotions__list-item {
  font-size: 1.05em;
  color: #A7D9B8;
  margin-bottom: 10px;
  padding-left: 10px;
  position: relative;
}

.page-promotions__list-item:not(.page-promotions__list--ordered .page-promotions__list-item)::before {
  content: '✔';
  color: #11A84E; /* Primary color */
  position: absolute;
  left: -10px;
  top: 0;
  font-weight: bold;
}

.page-promotions__list-item strong {
  color: #F2FFF6; /* Main text color */
}

/* Call to Action Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Main text color for button */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.page-promotions__cta-button--hero {
  margin-top: 30px;
  font-size: 1.2em;
  padding: 15px 30px;
}

.page-promotions__cta-button--card {
  margin-top: auto; /* Push button to bottom of card */
}

.page-promotions__cta-button--bottom {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #F2FFF6;
  font-weight: bold;
  cursor: pointer;
  background-color: #0A4B2C; /* Deep Green for question background */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #11A84E; /* Primary color on hover */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #F2C14E; /* Gold color for toggle */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-promotions__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1em;
  color: #A7D9B8;
  background-color: #11271B; /* Card BG */
  border-top: 1px solid #1E3A2A;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

.page-promotions__faq-answer .page-promotions__cta-button {
  margin-top: 15px;
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.5em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-promotions__main-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-button--hero {
    font-size: 1.1em;
    padding: 12px 25px;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__text-block,
  .page-promotions__list-item,
  .page-promotions__card-description {
    font-size: 0.95em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__promotion-card-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

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

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__promotion-card,
  .page-promotions__faq-item,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container,
  .page-promotions__intro-section,
  .page-promotions__promotion-types-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
  
  /* Mobile button responsiveness */
  .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 {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }

  .page-promotions__hero-section {
    padding-left: 0 !important; /* Remove padding from hero section itself */
    padding-right: 0 !important;
  }
  .page-promotions__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }
  .page-promotions__hero-content {
    margin-top: -40px;
  }
}