/* style/promotions.css */
.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f8f8; /* Light background for the page content */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background: linear-gradient(135deg, #FF4500, #1E90FF); /* Brand colors for hero background */
    color: #ffffff;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
}

.page-promotions__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-promotions__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold-like color for CTA for better contrast and appeal */
    color: #333333;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.page-promotions__cta-button:hover {
    background: #FFA500;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 300px; /* Limit width for center button */
  width: 100%;
  text-align: center;
}


/* General Section Styling */
.page-promotions__section {
    padding: 80px 20px;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.page-promotions__section:last-of-type {
  margin-bottom: 0;
}

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

.page-promotions__section-title {
    font-size: 2.5em;
    color: #1E90FF; /* Auxiliary color for section titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    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: #FF4500;
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Feature Cards (Overview Section) */
.page-promotions__overview-section {
  background-color: #f0f8ff; /* Light blue background for overview */
}

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

.page-promotions__card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-promotions__card-title {
    font-size: 1.5em;
    color: #FF4500;
    margin-bottom: 15px;
}

.page-promotions__card p {
    color: #666666;
    margin-bottom: 25px;
}

.page-promotions__card-button {
    display: inline-block;
    padding: 10px 25px;
    background: #1E90FF;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease;
}

.page-promotions__card-button:hover {
    background: #007bff;
}

/* Dark background section */
.page-promotions__dark-section {
  background: #1E90FF; /* Auxiliary color as dark background */
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title::after {
  background: #FF4500;
}

.page-promotions__dark-section .page-promotions__text-block {
  color: #f0f0f0;
}

/* Content Grid (New Member, Cashback VIP) */
.page-promotions__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 50px;
}

.page-promotions__content-grid--reverse {
  grid-template-columns: 1fr 1fr; /* Default order */
}

.page-promotions__image-wrapper {
  text-align: center;
}

.page-promotions__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__text-content {
  text-align: left;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  color: #FF4500;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-promotions__dark-section .page-promotions__sub-title {
  color: #FFD700; /* Gold for titles on dark background */
}

.page-promotions__text-content p {
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

/* Game Offers Section */
.page-promotions__game-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__game-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-promotions__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-promotions__game-card-title {
  font-size: 1.4em;
  color: #1E90FF;
  margin-bottom: 15px;
}

/* How to Claim Section */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-promotions__step-card {
  background: #fdfdfd;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #eee;
  position: relative;
  overflow: hidden;
}

.page-promotions__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FF4500;
  margin-bottom: 15px;
  display: block;
  opacity: 0.7;
}

.page-promotions__step-title {
  font-size: 1.6em;
  color: #1E90FF;
  margin-bottom: 15px;
}

.page-promotions__image-wrapper--center {
  margin: 50px auto;
  max-width: 800px;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: #f0f8ff; /* Light background for FAQ */
  padding-bottom: 80px;
}

.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;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important as required */
  padding: 20px 15px !important; /* 🚨 Using !important as required */
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #FF4500; /* Brand color for active toggle */
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* News Section */
.page-promotions__news-section {
  background-color: #1E90FF; /* Auxiliary color as dark background */
  color: #ffffff;
}

.page-promotions__news-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__news-section .page-promotions__section-title::after {
  background: #FF4500;
}

.page-promotions__news-section .page-promotions__text-block {
  color: #f0f0f0;
}

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

.page-promotions__news-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__news-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-promotions__news-card-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-promotions__news-card-title a {
  color: #FFD700; /* Gold for news titles on dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__news-card-title a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-promotions__news-excerpt {
  color: #e0e0e0;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-promotions__news-date {
  font-size: 0.85em;
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 3em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-promotions__content-grid--reverse {
        grid-template-columns: 1fr; /* Reset order for mobile */
    }
    .page-promotions__text-content {
        text-align: center;
    }
    .page-promotions__image-wrapper {
        order: -1; /* Image first on mobile */
    }
    .page-promotions__content-grid--reverse .page-promotions__image-wrapper {
        order: 0; /* Image last for reversed grid on mobile */
    }
}