/* style/promotions.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #1A1A1A;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000000;
  --background-light-card: rgba(255, 255, 255, 0.1);
  --border-color: rgba(255, 255, 255, 0.2);
}

.page-promotions {
  color: var(--text-light); /* Body background is dark, so use light text */
  background-color: var(--background-dark);
  padding-top: 120px; /* Adjust for fixed header */
}

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

/* Hero Section */
.page-promotions__hero-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(26, 26, 26, 0.8)), url('[GALLERY:promotion:moto88,hero_background,golden_light]') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--primary-color);
}

.page-promotions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-promotions__hero-section > .page-promotions__container {
  position: relative;
  z-index: 2;
}

.page-promotions__main-title {
  font-size: 3.5em;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title .highlight {
  color: var(--primary-color);
}

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

.page-promotions__subtitle .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px 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__cta-button--primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

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

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

.page-promotions__cta-button--secondary:hover {
  background-color: #2a2a2a;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-promotions__promotions-overview-section,
.page-promotions__vip-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__responsible-gaming-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

.page-promotions__section-description .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-promotions__grid-item {
  background-color: var(--background-light-card);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__grid-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__grid-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-promotions__grid-item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__grid-item-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.5;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__grid-item-text .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__grid-item-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__grid-item-button:hover {
  background-color: #e0c200;
  transform: translateY(-2px);
}

/* VIP Section */
.page-promotions__vip-section {
  background-color: rgba(255, 215, 0, 0.05);
  padding-bottom: 80px;
}

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

.page-promotions__vip-feature-item {
  background-color: var(--background-light-card);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-promotions__vip-feature-item:hover {
  transform: translateY(-5px);
}

.page-promotions__vip-feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.page-promotions__vip-feature-item h3 {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__vip-feature-item p {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
}

.page-promotions__vip-feature-item p .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__vip-cta-text {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-top: 50px;
  line-height: 1.6;
}

.page-promotions__vip-cta-text .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Why Choose Section */
.page-promotions__advantages-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-promotions__advantages-list li {
  background-color: var(--background-light-card);
  border-left: 5px solid var(--primary-color);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: flex-start;
  gap: 15px;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-promotions__advantage-icon {
  font-size: 1.5em;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.page-promotions__advantage-title {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-bottom: 5px;
  display: block;
}

.page-promotions__advantages-list li .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsible Gaming Section */
.page-promotions__responsible-gaming-section {
  background-color: rgba(26, 26, 26, 0.8);
  padding-bottom: 80px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

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

.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 20px;
  opacity: 0;
  color: #cccccc;
  line-height: 1.6;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large value for content */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-answer p .highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 215, 0, 0.08);
  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: rgba(255, 215, 0, 0.15);
}

.page-promotions__faq-question:active {
  background: rgba(255, 215, 0, 0.2);
}

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

.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 {
  color: var(--text-light);
  transform: rotate(180deg);
}

/* General Image styles for responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
  }
  .page-promotions__hero-section {
    padding: 60px 0;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
  }
  .page-promotions__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-promotions__promotions-overview-section,
  .page-promotions__vip-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__responsible-gaming-section {
    padding: 40px 0;
  }
  .page-promotions__grid-item {
    padding: 20px;
  }
  .page-promotions__grid-item-image {
    height: 180px;
  }
  .page-promotions__grid-item-title {
    font-size: 1.3em;
  }
  .page-promotions__grid-item-text {
    font-size: 0.9em;
  }
  .page-promotions__grid-item-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-promotions__vip-features {
    gap: 20px;
  }
  .page-promotions__vip-feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-promotions__vip-feature-item h3 {
    font-size: 1.2em;
  }
  .page-promotions__vip-feature-item p {
    font-size: 0.9em;
  }
  .page-promotions__advantages-list li {
    padding: 15px 20px;
    font-size: 0.9em;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-promotions__advantage-icon {
    font-size: 1.2em;
  }
  .page-promotions__advantage-title {
    font-size: 1.1em;
  }
  .page-promotions__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-question h3 {
    font-size: 1em;
  }
  .page-promotions__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promotions-overview-section,
  .page-promotions__vip-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__responsible-gaming-section,
  .page-promotions__grid,
  .page-promotions__grid-item,
  .page-promotions__vip-features,
  .page-promotions__vip-feature-item,
  .page-promotions__advantages-list,
  .page-promotions__advantages-list li,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__hero-section {
    padding: 40px 0;
  }
  .page-promotions__grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__vip-features {
    grid-template-columns: 1fr;
  }
}