/* style/promotions.css */

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

.page-promotions {
  color: var(--color-text-main); /* Default text color for dark background */
  background-color: var(--color-background); /* Ensure consistency with body background */
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--button-gradient);
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--color-text-main);
}

.page-promotions__text-block a {
  color: var(--color-secondary);
  text-decoration: underline;
}

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

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

.page-promotions__main-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__description {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--color-text-main);
  border: none;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  margin-left: 20px;
}

.page-promotions__btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-main);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 60px 0;
  background-color: var(--color-background);
  color: var(--color-text-main);
}

/* Categories Section */
.page-promotions__categories-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

.page-promotions__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__category-card {
  background-color: var(--color-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

.page-promotions__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-promotions__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-promotions__card-link {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

/* Featured Promotions Section */
.page-promotions__featured-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

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

.page-promotions__promotion-item {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--color-text-main);
}

.page-promotions__promotion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promotion-item .page-promotions__card-image {
  height: 250px;
}

.page-promotions__item-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.page-promotions__item-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-promotions__item-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promotions__item-date {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.page-promotions__item-button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

/* Claim Guide Section */
.page-promotions__claim-guide {
  padding: 60px 0;
  background-color: var(--color-background);
  color: var(--color-text-main);
}

.page-promotions__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-promotions__guide-item {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

.page-promotions__guide-item strong {
  color: var(--color-primary);
}

.page-promotions__guide-item a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 30px;
}

.page-promotions__terms-item {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.page-promotions__terms-item a {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--color-background);
  color: var(--color-text-main);
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-main);
  cursor: pointer;
  background-color: var(--color-card-bg);
  border-bottom: 1px solid var(--color-divider);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--color-deep-green);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-left: 15px;
  line-height: 1;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom-color: transparent;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 0 25px 18px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

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

/* Hide default details marker */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.page-promotions__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: var(--color-deep-green);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(32px, 4.5vw, 56px);
  }
  .page-promotions__description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
  .page-promotions__categories-grid,
  .page-promotions__featured-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__main-title {
    font-size: clamp(28px, 6vw, 48px);
  }
  .page-promotions__description {
    font-size: clamp(15px, 3vw, 18px);
  }
  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-promotions__btn-secondary {
    margin-left: 10px;
  }

  .page-promotions__section-title {
    font-size: clamp(24px, 5vw, 36px);
    margin-bottom: 20px;
  }

  .page-promotions__text-block,
  .page-promotions__guide-item,
  .page-promotions__terms-item {
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-promotions__card-title {
    font-size: 1.3rem;
  }
  .page-promotions__card-text {
    font-size: 0.95rem;
  }
  .page-promotions__item-title {
    font-size: 1.4rem;
  }
  .page-promotions__item-text {
    font-size: 0.95rem;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-secondary {
    margin-left: 0;
  }

  /* Mobile responsive images/videos/buttons - MUST HAVE !important */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }
  .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 {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}