/* style/promotions.css */

/* Base styles for the page content, ensuring contrast with the dark body background */
.page-promotions {
  background-color: var(--background-color, #08160F); /* Fallback to custom background color if shared var not defined */
  color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Ensure images maintain aspect ratio and don't overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden; /* Ensure no overflow from image */
  background-color: var(--card-bg-color, #11271B);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and text content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

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

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.5rem;
  color: var(--gold-color, #F2C14E); /* Gold for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

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

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color, #11A84E); /* Primary color text for secondary button */
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(17, 168, 78, 0.1);
  color: var(--glow-color, #57E38D);
  border-color: var(--glow-color, #57E38D);
  transform: translateY(-2px);
}

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

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-promotions__promo-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
}

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

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

.page-promotions__card-title {
  font-size: 1.6rem;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-promotions__card-button {
  margin-top: auto; /* Push button to bottom */
  width: auto; /* Allow button to size naturally */
  align-self: center;
}

/* Guide Section */
.page-promotions__guide-section {
  padding: 60px 0;
  background-color: var(--deep-green-color, #0A4B2C); /* Use deep green for this section */
}

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

.page-promotions__guide-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease;
}

.page-promotions__guide-item:hover {
  transform: translateY(-5px);
}

.page-promotions__guide-title {
  font-size: 1.8rem;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__guide-description {
  font-size: 1.05rem;
  color: var(--text-secondary-color, #A7D9B8);
}

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

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

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 25px;
}

.page-promotions__terms-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__terms-title {
  font-size: 1.5rem;
  color: var(--primary-color, #11A84E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__terms-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--deep-green-color, #0A4B2C); /* Use deep green for this section */
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--primary-color, #11A84E);
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

/* Conclusion Section */
.page-promotions__conclusion-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background-color, #08160F);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: 2rem;
  }
}

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

  /* Images and their containers */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__guide-item,
  .page-promotions__terms-item,
  .page-promotions__faq-item,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__introduction-section,
  .page-promotions__promotion-types-section,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific sections' padding */
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
  .page-promotions__introduction-section,
  .page-promotions__promotion-types-section,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
  }

  .page-promotions__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important; /* Ensure buttons take full width */
  }

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__promo-image {
    height: 180px; /* Slightly smaller image height on mobile */
  }

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

  .page-promotions__guide-list,
  .page-promotions__terms-list {
    gap: 20px;
  }

  .page-promotions__guide-item,
  .page-promotions__terms-item {
    padding: 20px;
  }

  .page-promotions__guide-title {
    font-size: 1.5rem;
  }

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

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

/* Specific color definitions for global usage or when var() is not ideal */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --background-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Apply body background from root var if shared.css doesn't set it */
/* This is a fallback, ideally shared.css sets body background */
body {
    background-color: var(--background-color, #08160F);
}

/* Ensure color contrast for critical elements */
.page-promotions__text-block,
.page-promotions__hero-description,
.page-promotions__card-description,
.page-promotions__guide-description,
.page-promotions__terms-description,
.page-promotions__faq-answer {
  color: var(--text-secondary-color, #A7D9B8); /* Consistent secondary text color */
}

.page-promotions__main-title,
.page-promotions__section-title,
.page-promotions__card-title,
.page-promotions__guide-title,
.page-promotions__terms-title,
.page-promotions__faq-qtext {
  color: var(--text-main-color, #F2FFF6); /* Consistent main text color for titles */
}
/* Override specific titles for design aesthetic */
.page-promotions__section-title,
.page-promotions__card-title,
.page-promotions__faq-toggle {
    color: var(--gold-color, #F2C14E);
}
.page-promotions__guide-title {
    color: var(--gold-color, #F2C14E);
}
.page-promotions__terms-title,
.page-promotions__faq-qtext {
    color: var(--primary-color, #11A84E);
}
.page-promotions__btn-secondary {
    color: var(--primary-color, #11A84E);
}
.page-promotions__btn-secondary:hover {
    color: var(--glow-color, #57E38D);
}