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

.page-promotions {
  background-color: var(--promotions-background);
  color: var(--promotions-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

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

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for aesthetic */
  text-align: center;
  background-color: var(--promotions-card-bg);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  padding: 30px 20px 0;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--promotions-gold-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  color: var(--promotions-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  background: var(--promotions-button-gradient);
  color: var(--promotions-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 button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__cta-button--wide {
    width: 100%;
    max-width: 400px;
    margin: 20px auto 0 auto;
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--promotions-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1rem;
  color: var(--promotions-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Card Styles */
.page-promotions__card {
  background-color: var(--promotions-card-bg);
  border: 1px solid var(--promotions-border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--promotions-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

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

.page-promotions__card-title {
  font-size: 1.4rem;
  color: var(--promotions-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-promotions__btn-secondary {
  display: inline-block;
  background-color: var(--promotions-deep-green);
  color: var(--promotions-text-main);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
  border: 1px solid var(--promotions-border-color);
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--promotions-primary-color);
}

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

/* Featured Promotions */
.page-promotions__featured-promos {
  background-color: var(--promotions-deep-green);
  color: var(--promotions-text-main);
}

.page-promotions__promo-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: var(--promotions-card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-item:last-child {
  margin-bottom: 0;
}

.page-promotions__promo-item--reverse {
  flex-direction: row-reverse;
}

.page-promotions__promo-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__promo-content {
  flex: 1;
  max-width: 50%;
}

.page-promotions__promo-title {
  font-size: 1.8rem;
  color: var(--promotions-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__promo-text {
  font-size: 1rem;
  color: var(--promotions-text-secondary);
  margin-bottom: 25px;
}

/* Guide Section */
.page-promotions__guide-section {
  background-color: var(--promotions-background);
}

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

.page-promotions__guide-card {
  text-align: left;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--promotions-card-bg);
  color: var(--promotions-text-main);
}

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

.page-promotions__faq-item {
  background-color: var(--promotions-background);
  border: 1px solid var(--promotions-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

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

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

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

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

/* CTA Banner */
.page-promotions__cta-banner {
  background-color: var(--promotions-deep-green);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
  text-align: left;
}

.page-promotions__cta-banner-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__cta-banner-content {
  flex: 1;
  max-width: 50%;
}

.page-promotions__cta-banner-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--promotions-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__cta-banner-description {
  font-size: 1rem;
  color: var(--promotions-text-secondary);
  margin-bottom: 30px;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  background-color: var(--promotions-background);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__promo-item {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__promo-item--reverse {
    flex-direction: column;
  }

  .page-promotions__promo-image,
  .page-promotions__promo-content {
    max-width: 100%;
  }

  .page-promotions__cta-banner {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__cta-banner-image,
  .page-promotions__cta-banner-content {
    max-width: 100%;
  }
}

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

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

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

  .page-promotions__hero-description {
    font-size: 0.95rem;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 300px !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

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

  .page-promotions__card {
    padding: 20px;
  }

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

  .page-promotions__card-text {
    font-size: 0.85rem;
  }

  .page-promotions__btn-secondary {
    padding: 8px 15px;
    font-size: 0.85rem;
  }

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

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

  .page-promotions__promo-text {
    font-size: 0.9rem;
  }

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

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

  .page-promotions__cta-banner-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

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

  /* Mobile specific image/video/container responsiveness */
  .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__hero-image-wrapper,
  .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; /* Ensure no overflow */
  }

  /* Buttons specific mobile styles */
  .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, .page-promotions__button-group, .page-promotions__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Adjust padding for specific sections if needed */
  .page-promotions__hero-section,
  .page-promotions__cta-banner {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__hero-content,
  .page-promotions__cta-banner-content {
      padding-left: 15px;
      padding-right: 15px;
  }
}

/* Dark background text color override */
.page-promotions__dark-bg {
  color: var(--promotions-text-main);
}

.page-promotions__light-bg {
    color: var(--promotions-text-main);
}