/* style/promotions.css */
/* BEM Naming: page-promotions__element-name */

/* Base styles for the page content, assuming a dark body background from shared.css */
/* Colors: Background: #08160F, Card BG: #11271B, Text Main: #F2FFF6, Text Secondary: #A7D9B8 */
.page-promotions {
  background-color: var(--bg-color, #08160F); /* Fallback to a dark color if --bg-color is not set */
  color: var(--text-main-color, #F2FFF6); /* Default text color for the main content area */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--deep-green-color, #0A4B2C); /* Use a dark green for hero background */
  overflow: hidden; /* Ensure no overflow issues */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button - General */
.page-promotions__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button: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__cta-button--small {
  padding: 12px 25px;
  font-size: 1rem;
  margin-top: 20px;
}

/* Section Titles */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--glow-color, #57E38D); /* Glow color */
  margin: 15px auto 0;
  border-radius: 2px;
}

/* General Text Blocks */
.page-promotions__text-block {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
}

/* Promotion List Section */
.page-promotions__promotions-list-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

.page-promotions__promotion-card {
  background-color: var(--card-bg-color, #11271B); /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 500px; /* Ensure cards have minimum height */
  color: var(--text-main-color, #F2FFF6); /* Ensure text is readable on card background */
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  padding: 20px 25px 10px;
  flex-grow: 0;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color, #A7D9B8);
  padding: 0 25px 20px;
  flex-grow: 1; /* Allow description to take up available space */
  text-align: justify;
}

.page-promotions__card-button {
  display: block;
  text-align: center;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 12px 20px;
  margin: 0 25px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  max-width: calc(100% - 50px); /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-promotions__section-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 40px;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-promotions__terms-item {
  background-color: var(--card-bg-color, #11271B);
  border-left: 5px solid var(--glow-color, #57E38D);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary-color, #A7D9B8);
  font-size: 0.95rem;
}

.page-promotions__terms-item strong {
  color: var(--text-main-color, #F2FFF6);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 5px;
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.page-promotions__steps-item {
  background-color: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-promotions__steps-title {
  font-size: 1.6rem;
  color: var(--glow-color, #57E38D); /* Use glow color for step titles */
  margin-bottom: 15px;
  position: relative;
  padding-left: 40px;
}

.page-promotions__steps-title::before {
  content: counter(step-counter); /* CSS counter for numbering */
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--glow-color, #57E38D);
  color: #08160F; /* Dark text on glow background */
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
}

.page-promotions__steps-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  text-align: justify;
  flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary-color, #A7D9B8);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-main-color, #F2FFF6);
  background-color: var(--deep-green-color, #0A4B2C); /* Slightly darker background for summary */
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2); /* Lighter hover for dark background */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 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);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: justify;
}

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

.page-promotions__faq-answer a {
  color: var(--glow-color, #57E38D);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

/* Global image styles to prevent small icons */
.page-promotions img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__promotion-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-promotions__cta-button,
  .page-promotions__cta-button--small,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important; /* Ensure block display for full width */
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.95rem;
  }

  .page-promotions__promotions-list-section,
  .page-promotions__terms-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section {
    padding: 40px 0;
  }

  .page-promotions__promotion-card-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__promotion-card {
    min-height: auto; /* Allow height to adjust on mobile */
  }

  .page-promotions__card-title {
    font-size: 1.3rem;
    padding: 15px 20px 8px;
  }

  .page-promotions__card-description {
    padding: 0 20px 15px;
  }

  .page-promotions__card-button {
    margin: 0 20px 20px;
    max-width: calc(100% - 40px) !important;
  }

  .page-promotions__terms-item {
    padding: 15px;
    font-size: 0.9rem;
  }

  .page-promotions__terms-item strong {
    font-size: 1rem;
  }

  .page-promotions__steps-title {
    font-size: 1.4rem;
    padding-left: 35px;
  }

  .page-promotions__steps-title::before {
    width: 28px;
    height: 28px;
    font-size: 1rem;
  }

  .page-promotions__steps-description {
    font-size: 0.9rem;
  }

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

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }

  /* Mobile images responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__introduction-section,
  .page-promotions__promotions-list-section,
  .page-promotions__terms-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

/* Ensure no filter is used on images */
.page-promotions img {
  filter: none;
}