/* style/promotions.css */

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

/* Base Styles - Dark Theme */
.page-promotions {
  background-color: var(--bm66-background);
  color: var(--bm66-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: var(--bm66-background);
  color: var(--bm66-text-main);
}

.page-promotions__light-bg {
  background-color: #111;
  color: var(--bm66-text-main);
}

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

.page-promotions__section-title {
  font-size: clamp(2em, 2.5vw, 2.8em);
  color: var(--bm66-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 3.5vw, 3.8em); /* Use clamp for H1 */
  color: var(--bm66-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__description,
.page-promotions__text-block {
  font-size: 1.1em;
  color: var(--bm66-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--bm66-button-gradient);
  color: var(--bm66-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--bm66-secondary-color);
  border: 2px solid var(--bm66-secondary-color);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 0; /* Image takes full width, content overlays */
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text contrast */
  min-height: 200px; /* Min image size */
}

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  padding: 20px;
  max-width: 90%;
  box-sizing: border-box;
}

/* Why Choose Section */
.page-promotions__why-choose {
  background-color: var(--bm66-deep-green);
}

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

.page-promotions__feature-item {
  background-color: var(--bm66-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--bm66-border-color);
}

.page-promotions__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
  object-fit: cover;
}

.page-promotions__feature-title {
  font-size: 1.5em;
  color: var(--bm66-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__feature-description {
  color: var(--bm66-text-secondary);
  font-size: 0.95em;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--bm66-background);
}

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

.page-promotions__step-item {
  background-color: var(--bm66-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--bm66-border-color);
}

.page-promotions__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background: var(--bm66-button-gradient);
  color: var(--bm66-text-main);
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: var(--bm66-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-description {
  color: var(--bm66-text-secondary);
  font-size: 0.95em;
}

/* Promotion Types Section */
.page-promotions__promotion-types {
  background-color: var(--bm66-deep-green);
}

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

.page-promotions__promo-card {
  background-color: var(--bm66-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--bm66-border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__promo-title {
  font-size: 1.4em;
  color: var(--bm66-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__promo-description {
  color: var(--bm66-text-secondary);
  font-size: 0.95em;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__promo-btn {
  width: 100%;
  margin-top: auto; /* Push button to bottom */
}

/* Featured Promotions Section */
.page-promotions__featured-promotions {
  background-color: var(--bm66-background);
}

.page-promotions__promo-list {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-item {
  background-color: var(--bm66-card-bg);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  border: 1px solid var(--bm66-border-color);
}

.page-promotions__promo-list-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-promotions__promo-content {
  padding: 30px;
  flex-grow: 1;
  width: 100%;
  box-sizing: border-box;
}

.page-promotions__promo-list-title {
  font-size: 1.6em;
  color: var(--bm66-gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__promo-list-description {
  color: var(--bm66-text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
}

.page-promotions__promo-list-btn {
  width: auto;
  align-self: flex-start;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--bm66-deep-green);
}

.page-promotions__faq-list {
  margin-top: 40px;
  text-align: left;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  color: var(--bm66-gold-color);
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

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

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  color: var(--bm66-text-secondary);
  font-size: 0.95em;
  border-top: 1px solid var(--bm66-divider-color);
}

/* CTA Bottom Section */
.page-promotions__cta-bottom {
  background-color: var(--bm66-background);
  padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-promotions__hero-content {
    max-width: 95%;
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.8em, 2.5vw, 2.5em);
  }

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

  .page-promotions__promo-list-image {
    border-radius: 12px 12px 0 0;
  }
}

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

  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }

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

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

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

  .page-promotions__feature-icon,
  .page-promotions__promo-image,
  .page-promotions__promo-list-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__features-grid,
  .page-promotions__steps-grid,
  .page-promotions__promo-cards-grid,
  .page-promotions__promo-list,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
  }

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

  .page-promotions__promo-list-title {
    font-size: 1.4em;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.6em, 8vw, 2em) !important;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-promotions__cta-buttons {
    gap: 10px;
  }
}

/* Ensure color contrast for dark background */
.page-promotions h1, .page-promotions h2, .page-promotions h3 {
  color: var(--bm66-gold-color);
}

.page-promotions p, .page-promotions li, .page-promotions__description,
.page-promotions__text-block, .page-promotions__feature-description,
.page-promotions__step-description, .page-promotions__promo-description,
.page-promotions__promo-list-description, .page-promotions__faq-answer {
  color: var(--bm66-text-secondary);
}

.page-promotions__btn-primary {
  color: var(--bm66-text-main);
}

.page-promotions__btn-secondary {
  color: var(--bm66-secondary-color);
}

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

/* No CSS filters for images */
.page-promotions img {
  filter: none; /* Ensure no filters are applied */
}