/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure body background is dark */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Ensure page content starts below fixed header */
.page-promotions__hero-section {
  padding-top: 120px; /* Adjust based on actual header height */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0a40 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-promotions__main-title {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-promotions__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__btn--large {
  padding: 18px 50px;
  font-size: 20px;
}

.page-promotions__section-title {
  font-size: 38px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-description {
  font-size: 17px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__text-dark {
  color: var(--text-dark);
}

.page-promotions__featured-promotions,
.page-promotions__how-to-claim,
.page-promotions__why-ax88,
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

.page-promotions__promotion-categories,
.page-promotions__terms-conditions,
.page-promotions__news-updates {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-promotions__grid--small {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__card {
  background: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

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

.page-promotions__card--small {
  background: var(--card-bg-light);
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-promotions__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__card-link {
  text-decoration: none;
  color: inherit;
}

.page-promotions__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--primary-color);
}

.page-promotions__card--small .page-promotions__card-title {
  color: var(--secondary-color);
}

.page-promotions__card-text {
  font-size: 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  margin-top: auto;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card--small .page-promotions__card-button {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-promotions__card--small .page-promotions__card-button:hover {
  background: #000066;
}

.page-promotions__category-item {
  margin-bottom: 60px;
}

.page-promotions__category-title {
  font-size: 32px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-promotions__category-text {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  counter-reset: step-counter;
}

.page-promotions__steps-list li {
  background: var(--card-bg-dark);
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-left: 80px;
  color: var(--text-light);
}

.page-promotions__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 25px;
  top: 30px;
  background: var(--primary-color);
  color: var(--secondary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 16px;
  color: var(--text-light);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
}

.page-promotions__terms-item {
  background: var(--card-bg-light);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-light);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--card-bg-dark);
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #000066;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-light);
}

.page-promotions__faq-question:hover {
  background: #000066;
  border-color: #00004d;
}

.page-promotions__faq-question:active {
  background: #00004d;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
  color: var(--text-light);
}

/* Why AX88 Bet Section */
.page-promotions__feature-card {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
}

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

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

.page-promotions__feature-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__feature-text {
  font-size: 16px;
  color: var(--text-light);
}

/* News & Updates Section */
.page-promotions__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-promotions__blog-item {
  background: var(--card-bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.page-promotions__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-promotions__blog-content {
  padding: 25px;
  color: var(--text-dark);
}

.page-promotions__blog-item-title {
  font-size: 20px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
  color: var(--secondary-color);
}

.page-promotions__blog-item-excerpt {
  font-size: 15px;
  margin-bottom: 15px;
  color: #555;
}

.page-promotions__blog-item-date {
  font-size: 14px;
  color: #888;
  display: block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 42px;
  }
  .page-promotions__section-title {
    font-size: 34px;
  }
  .page-promotions__category-title {
    font-size: 28px;
  }
  .page-promotions__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-promotions__grid--small {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 100px !important; /* Mobile header adjustment */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-container,
  .page-promotions__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  .page-promotions__btn--large {
    padding: 15px 30px !important;
    font-size: 18px !important;
  }

  .page-promotions__section-title {
    font-size: 28px;
  }

  .page-promotions__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-promotions__featured-promotions,
  .page-promotions__promotion-categories,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__faq-section,
  .page-promotions__why-ax88,
  .page-promotions__news-updates {
    padding: 50px 0;
  }

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__grid--small {
    grid-template-columns: 1fr;
  }

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

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

  .page-promotions__card-title {
    font-size: 18px;
  }

  .page-promotions__card-text {
    font-size: 14px;
  }

  .page-promotions__card-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .page-promotions__category-title {
    font-size: 24px;
  }

  .page-promotions__category-text {
    font-size: 15px;
  }

  .page-promotions__steps-list li {
    padding: 20px 20px 20px 60px;
  }

  .page-promotions__steps-list li::before {
    width: 30px;
    height: 30px;
    font-size: 18px;
    left: 15px;
    top: 20px;
  }

  .page-promotions__step-title {
    font-size: 20px;
  }

  .page-promotions__step-description {
    font-size: 15px;
  }

  .page-promotions__terms-item {
    font-size: 15px;
    padding: 15px;
  }

  .page-promotions__faq-question {
    padding: 15px;
  }

  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__feature-card {
    padding: 25px;
  }

  .page-promotions__feature-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-promotions__feature-title {
    font-size: 20px;
  }

  .page-promotions__feature-text {
    font-size: 15px;
  }

  .page-promotions__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__blog-image {
    height: 160px;
  }

  .page-promotions__blog-item-title {
    font-size: 18px;
  }

  .page-promotions__blog-item-excerpt,
  .page-promotions__blog-item-date {
    font-size: 14px;
  }

  /* Image and Video responsive styles */
  .page-promotions img,
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific override for .page-promotions__cta-buttons to handle flex column on mobile */
  .page-promotions__cta-buttons {
    flex-direction: column !important;
    align-items: center !important;
  }
  .page-promotions__cta-buttons .page-promotions__cta-button {
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }
}