/* style/promotions.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A1A1A; /* Dark Grey */
  --text-color-dark-bg: #ffffff; /* White text for dark backgrounds */
  --text-color-light-bg: #333333; /* Dark text for light backgrounds */
  --background-dark: #121212; /* Body background from shared.css */
  --card-bg-dark-theme: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark bg */
  --border-color-dark-theme: rgba(255, 255, 255, 0.15);
  --button-hover-dark: #ccad00;
}

.page-promotions {
  background-color: var(--background-dark);
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 120px; /* Adjust for fixed header */
}

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

.page-promotions__hero-section {
  background: url('[GALLERY:bg:pg999,promotions,hero_banner]') no-repeat center center/cover;
  padding: 100px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.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__main-title {
  font-size: 3.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

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

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

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

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--text-color-dark-bg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-promotions__why-choose-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__final-cta-section {
  padding: 60px 0;
}

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

.page-promotions__feature-item {
  background-color: var(--card-bg-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-theme);
}

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

.page-promotions__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px var(--primary-color));
}

.page-promotions__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__feature-text {
  font-size: 1em;
  color: var(--text-color-dark-bg);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg-dark-theme);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark-theme);
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-promotions__promo-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__promo-text {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__cta-button--small {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 25px;
  align-self: flex-start;
}

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

.page-promotions__step-item {
  background-color: var(--card-bg-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color-dark-theme);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 1em;
  color: var(--text-color-dark-bg);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__cta-button--step {
  padding: 10px 25px;
  font-size: 0.9em;
  border-radius: 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--step:hover {
  background-color: var(--button-hover-dark);
  border-color: var(--button-hover-dark);
  transform: translateY(-3px);
}

.page-promotions__terms-list {
  list-style: disc inside;
  color: var(--text-color-dark-bg);
  font-size: 1.05em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  padding-left: 20px;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__responsible-gambling {
  font-style: italic;
  text-align: center;
  color: var(--primary-color);
  font-size: 1.1em;
  margin-top: 30px;
}

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

.page-promotions__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-theme);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--card-bg-dark-theme);
  color: var(--primary-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary-color);
}

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

.page-promotions__faq-toggle {
  font-size: 2em;
  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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.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 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color-dark-bg);
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px dashed var(--border-color-dark-theme);
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
}

.page-promotions__final-cta-section {
  text-align: center;
  background-color: #0d0d00; /* Slightly different dark background */
  padding: 80px 0;
}

.page-promotions__cta-button--large {
  padding: 18px 50px;
  font-size: 1.3em;
  border-radius: 60px;
  margin-top: 40px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__cta-button--large:hover {
  background-color: var(--button-hover-dark);
  border-color: var(--button-hover-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: 100px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__hero-section {
    padding: 60px 0;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__cta-button {
    width: 100%;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    margin-top: 40px;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-promotions__why-choose-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 40px 0;
  }
  .page-promotions__feature-item,
  .page-promotions__promo-card,
  .page-promotions__step-item {
    padding: 20px;
  }
  .page-promotions__feature-icon {
    width: 60px;
    height: 60px;
  }
  .page-promotions__feature-title,
  .page-promotions__promo-title,
  .page-promotions__step-title {
    font-size: 1.3em;
  }
  .page-promotions__promo-image {
    height: 150px;
  }
  .page-promotions__cta-button--small {
    align-self: stretch;
    width: 100%;
  }
  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-promotions__cta-button--step {
    width: 100%;
  }
  .page-promotions__terms-list {
    font-size: 0.95em;
    padding-left: 15px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 1.1em;
  }
  .page-promotions__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-promotions__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
    margin-top: 30px;
  }

  /* Image responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__hero-section,
  .page-promotions__why-choose-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section,
  .page-promotions__container,
  .page-promotions__features-grid,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__promo-card,
  .page-promotions__feature-item,
  .page-promotions__step-item,
  .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; /* Ensure no overflow */
  }
   /* Adjust specific padding for sections where it might be too much */
  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-section .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__cta-button {
    font-size: 0.95em;
    padding: 10px 20px !important;
  }
  .page-promotions__feature-title,
  .page-promotions__promo-title,
  .page-promotions__step-title {
    font-size: 1.2em;
  }
  .page-promotions__faq-question h3 {
    font-size: 1em;
  }
  .page-promotions__faq-toggle {
    font-size: 1.5em;
  }
  .page-promotions__cta-button--large {
    font-size: 1em;
    padding: 12px 25px;
  }
}