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

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

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: -80px; /* Overlap slightly with image for visual effect */
  padding: 0 20px;
  max-width: 900px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

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

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

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

/* Section common styles */
.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-promotions__dark-section {
  background-color: var(--deep-green-color);
  padding: 60px 0;
}

.page-promotions__overview-section {
  padding: 60px 0;
}

.page-promotions__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-promotions__text-content {
  flex: 1;
  color: var(--text-main-color);
}

.page-promotions__text-content p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--text-secondary-color);
}

.page-promotions__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Card Grid */
.page-promotions__cards-grid,
.page-promotions__features-grid,
.page-promotions__promo-cards-grid,
.page-promotions__vip-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card,
.page-promotions__promo-card,
.page-promotions__vip-benefit-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-promotions__card:hover,
.page-promotions__promo-card:hover,
.page-promotions__vip-benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__card-title,
.page-promotions__promo-card-title,
.page-promotions__feature-title,
.page-promotions__vip-card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-promotions__card-description,
.page-promotions__promo-card-description,
.page-promotions__feature-description,
.page-promotions__vip-card-description {
  font-size: 1em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* Features Grid (Cashback) */
.page-promotions__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Event Highlights */
.page-promotions__event-highlights {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__event-item {
  display: flex;
  gap: 30px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

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

.page-promotions__event-content {
  flex: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-promotions__event-title {
  font-size: 1.8em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-promotions__event-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
}

/* VIP Section */
.page-promotions__vip-benefit-card {
  padding: 30px;
}

/* Terms Section */
.page-promotions__terms-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-promotions__term-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 20px;
  color: var(--text-main-color);
}

.page-promotions__term-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--divider-color);
}

.page-promotions__faq-item {
  border-bottom: 1px solid var(--divider-color);
  color: var(--text-main-color);
  padding: 15px 0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main-color);
  padding: 10px 0;
}

.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;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  font-size: 1em;
  color: var(--text-secondary-color);
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 1.8;
}

/* Why Choose Section */
.page-promotions__why-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__why-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-main-color);
  position: relative;
  padding-left: 50px;
}

.page-promotions__why-item::before {
  content: '✅';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

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

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__cta-final .page-promotions__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__hero-content {
    margin-top: -60px;
  }

  .page-promotions__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__image-content {
    max-width: 80%;
  }

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

  .page-promotions__event-image {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -40px;
  }

  .page-promotions__main-title {
    font-size: 2em;
  }

  .page-promotions__subtitle {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding for buttons in mobile */
  }

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

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

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

  .page-promotions__image-content {
    max-width: 100%;
  }

  .page-promotions__cards-grid,
  .page-promotions__features-grid,
  .page-promotions__promo-cards-grid,
  .page-promotions__vip-benefits-grid,
  .page-promotions__terms-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-image,
  .page-promotions__promo-card-image {
    height: 180px;
  }

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

  .page-promotions__event-title {
    font-size: 1.5em;
  }

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

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

  .page-promotions__why-item {
    padding-left: 45px;
    font-size: 1em;
  }

  /* Mobile specific image and container overrides */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__container,
  .page-promotions__overview-section,
  .page-promotions__welcome-bonus-section,
  .page-promotions__cashback-section,
  .page-promotions__deposit-bonus-section,
  .page-promotions__special-events-section,
  .page-promotions__vip-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__why-choose-section,
  .page-promotions__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    margin-top: -30px;
  }

  .page-promotions__main-title {
    font-size: 1.8em;
  }

  .page-promotions__section-title {
    font-size: 1.6em;
  }

  .page-promotions__card-title,
  .page-promotions__promo-card-title,
  .page-promotions__feature-title,
  .page-promotions__vip-card-title {
    font-size: 1.3em;
  }

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