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

/* Base styling for the promotions page */
.page-promotions {
  background-color: var(--bg-color, #0D0E12); /* Fallback to custom background if --bg-color is not defined */
  color: #FFF3E6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Fixed header spacing - body handles padding-top, first section uses small top padding */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Center content vertically if space allows */
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden; /* Ensure no content spills */
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Blend card BG and main BG */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.7); /* Slightly darken image for text readability */
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: #FFF3E6;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.2em;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Custom button color */
  color: #FFF3E6; /* Text Main color */
  border: none;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-promotions__btn-secondary {
  background: #17191F; /* Card BG color */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Auxiliary color border */
}

.page-promotions__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  border-color: #FFA53A;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-promotions__section {
  padding: 60px 20px;
  background-color: #0D0E12; /* Background color for sections */
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__intro-section {
  padding-top: 10px; /* Small top padding for subsequent sections */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #FFA53A; /* Auxiliary color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  color: #FFB04D; /* Glow color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__list-item {
  margin-bottom: 10px;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

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

.page-promotions__card {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px #FFB04D; /* Glow on hover */
}

.page-promotions__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #FFA53A; /* Auxiliary color for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  color: #FFF3E6; /* Text Main color */
  margin-bottom: 20px;
}

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

.page-promotions__faq-item {
  background-color: #17191F; /* Card BG color */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF3E6; /* Text Main color */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  cursor: pointer;
  background-color: #17191F; /* Card BG color */
  transition: background-color 0.3s ease;
  list-style: none; /* For <summary> */
}

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

.page-promotions__faq-question:hover {
  background-color: #2a2d38; /* Slightly darker on hover */
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFB04D; /* Glow color */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #FFF3E6; /* Text Main color */
  max-height: 0; /* For JS based FAQ */
  overflow: hidden; /* For JS based FAQ */
  transition: max-height 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 1000px; /* Large enough for content, for <details> native */
  transition: max-height 0.5s ease-in;
}

.page-promotions__faq-item.active .page-promotions__faq-answer { /* For JS based FAQ */
  max-height: 1000px !important;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__sub-title {
    font-size: 1.3em;
  }

  .page-promotions__text-block,
  .page-promotions__list-item,
  .page-promotions__card-text,
  .page-promotions__faq-answer p {
    font-size: 0.95em;
  }

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card {
    padding: 20px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important; /* Enforce minimum size */
  }

  /* All containers with images/videos/buttons must have these */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-promotions__section-title {
    font-size: 1.5em;
  }

  .page-promotions__sub-title {
    font-size: 1.2em;
  }

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