/* style/promotions.css */

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

  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--bg-color); /* Default background for the page */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.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.1em;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-promotions__main-title {
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient);
  color: var(--text-main);
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

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

/* --- Offers Section --- */
.page-promotions__offers-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

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

.page-promotions__offer-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__offer-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

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

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-promotions__cashback-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__cashback-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__item-title {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-promotions__item-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- VIP Section --- */
.page-promotions__vip-section {
  padding: 60px 0;
  background-color: var(--deep-green);
}

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

.page-promotions__vip-benefit-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.page-promotions__vip-benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

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

.page-promotions__benefit-description {
  font-size: 1em;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-promotions__cta-button--secondary {
  background: none;
  border: 2px solid var(--gold-color);
  color: var(--gold-color);
  box-shadow: none;
  margin-top: 30px;
}

.page-promotions__cta-button--secondary:hover {
  background: var(--gold-color);
  color: var(--bg-color);
  box-shadow: 0 0 15px var(--gold-color);
}

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

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

.page-promotions__event-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

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

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

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

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

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

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

.page-promotions__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

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

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

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

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

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

.page-promotions__cta-button--large {
  padding: 18px 40px;
  font-size: 1.4em;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__hero-description {
    font-size: 1.1em;
  }

  .page-promotions__offer-card, .page-promotions__vip-benefit-card, .page-promotions__event-card {
    padding: 20px;
  }

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

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

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

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

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

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__text-block, .page-promotions__card-description, .page-promotions__item-description, .page-promotions__benefit-description, .page-promotions__faq-answer p {
    font-size: 0.95em;
    line-height: 1.6;
  }

  .page-promotions__offers-section, .page-promotions__cashback-section, .page-promotions__vip-section, .page-promotions__events-section, .page-promotions__terms-section, .page-promotions__faq-section, .page-promotions__final-cta-section {
    padding: 40px 0;
  }

  .page-promotions__offer-grid, .page-promotions__vip-benefits-grid, .page-promotions__event-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__offer-image, .page-promotions__event-image {
    height: 180px;
  }

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

  /* Force responsive images, videos, buttons */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section, .page-promotions__card, .page-promotions__container, .page-promotions__offer-card, .page-promotions__vip-benefit-card, .page-promotions__event-card, .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }
  
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-promotions__cta-button, .page-promotions__cta-button--small, .page-promotions__cta-button--secondary, .page-promotions__cta-button--large {
    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__offer-card .page-promotions__cta-button,
  .page-promotions__event-card .page-promotions__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions__hero-content {
    padding: 0 15px;
  }
}

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

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

  .page-promotions__faq-question {
    font-size: 1em;
  }

  .page-promotions__faq-answer p {
    font-size: 0.9em;
  }
}