/* style/promotions.css */

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

.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-bg-body); /* Default background color for the page */
  line-height: 1.6;
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
  border-radius: 8px;
}

.page-promotions__main-title {
  color: var(--color-gold);
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  color: var(--color-text-main);
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
}

.page-promotions__btn-primary {
  display: inline-block;
  background: var(--btn-gradient);
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-section,
.page-promotions__guide-section,
.page-promotions__benefits-section,
.page-promotions__cta-final-section {
  padding: 60px 0;
  background-color: var(--color-bg-body);
  color: var(--color-text-main);
}

.page-promotions__types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--color-bg-card);
  color: var(--color-text-main);
}

.page-promotions__section-title {
  color: var(--color-gold);
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--color-primary);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--color-text-secondary);
}

.page-promotions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Adjust max-width for video */
  margin: 40px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.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(--color-bg-body);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

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

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

.page-promotions__card-description {
  color: var(--color-text-secondary);
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-promotions__btn-secondary:hover {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(var(--color-primary), 0.4);
}

.page-promotions__guide-list,
.page-promotions__terms-list,
.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__guide-list li,
.page-promotions__terms-list li,
.page-promotions__benefits-list li {
  background-color: var(--color-bg-card);
  border-left: 5px solid var(--color-primary);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--color-text-secondary);
  position: relative;
  counter-increment: list-counter;
}

.page-promotions__guide-list li::before {
  content: counter(list-counter);
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-gold);
  color: var(--color-bg-body);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1em;
}

.page-promotions__list-item-title {
  color: var(--color-text-main);
  font-size: 1.1em;
  display: block;
  margin-bottom: 5px;
}

.page-promotions__benefits-image {
  width: 100%;
  height: auto;
  max-width: 1000px;
  margin: 40px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__faq-item {
  background-color: var(--color-bg-body);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--color-text-main);
  font-weight: 600;
  font-size: 1.1em;
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  background-color: var(--color-deep-green);
  border-bottom-color: var(--color-primary);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    max-width: 700px;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 4.5vw, 2.8em);
  }
  .page-promotions__hero-description {
    font-size: clamp(0.9em, 1.4vw, 1.1em);
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__hero-image {
    max-height: 400px;
  }
  .page-promotions__hero-content {
    margin-top: 20px;
    padding: 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-promotions__hero-description {
    font-size: clamp(0.9em, 2.5vw, 1em);
  }
  .page-promotions__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__benefits-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

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

  .page-promotions__video-wrapper {
    margin: 20px auto;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

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

  .page-promotions__card-description {
    font-size: 0.9em;
  }

  .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 0.95em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__guide-list li,
  .page-promotions__terms-list li,
  .page-promotions__benefits-list li {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-promotions__guide-list li::before {
    left: -10px;
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  .page-promotions__list-item-title {
    font-size: 1em;
  }

  .page-promotions__benefits-image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    padding: 10px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6em, 7vw, 2em);
  }
  .page-promotions__hero-description {
    font-size: 0.85em;
  }
  .page-promotions__promo-card {
    padding: 15px;
  }
  .page-promotions__card-title {
    font-size: 1.2em;
  }
  .page-promotions__guide-list li,
  .page-promotions__terms-list li,
  .page-promotions__benefits-list li {
    padding: 10px 15px;
  }
  .page-promotions__faq-question {
    padding: 12px 15px;
  }
  .page-promotions__faq-answer {
    padding: 12px 15px;
  }
}