/* style/promo.css */
/* body already has padding-top: var(--header-offset); do not apply to page-promo__hero-section */

:root {
  --promo-primary-color: #F2C14E;
  --promo-secondary-color: #FFD36B;
  --promo-background-dark: #0A0A0A;
  --promo-card-bg: #111111;
  --promo-text-main: #FFF6D6;
  --promo-border-color: #3A2A12;
  --promo-glow-color: #FFD36B;
  --promo-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-promo {
  font-family: Arial, sans-serif;
  color: var(--promo-text-main); /* Default text color for dark background */
  background-color: var(--promo-background-dark);
  line-height: 1.6;
}

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

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
}

.page-promo__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-promo__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-promo__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  margin-top: 20px; /* Space from top */
}

.page-promo__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
  color: var(--promo-text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promo__subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-promo__btn-primary {
  background: var(--promo-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promo__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-promo__btn-secondary {
  background: #ffffff;
  color: var(--promo-primary-color);
  border: 2px solid var(--promo-primary-color);
}

.page-promo__btn-secondary:hover {
  background: var(--promo-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-promo__section {
  padding: 60px 0;
  text-align: center;
}

.page-promo__dark-section {
  background-color: var(--promo-background-dark);
  color: var(--promo-text-main);
}

.page-promo__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--promo-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promo__section-description {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Card Grid */
.page-promo__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo__card {
  background-color: var(--promo-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--promo-border-color);
}

.page-promo__card-title {
  font-size: 1.5rem;
  color: var(--promo-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__card p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-promo__text-link {
  color: var(--promo-secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Pushes link to bottom */
  display: inline-block;
}

.page-promo__text-link:hover {
  color: var(--promo-primary-color);
  text-decoration: underline;
}

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

.page-promo__promo-card {
  background-color: var(--promo-card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--promo-border-color);
}

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

.page-promo__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 250px); /* Adjust height based on image */
}

.page-promo__promo-title {
  font-size: 1.4rem;
  color: var(--promo-primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__promo-text {
  font-size: 0.95rem;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take up available space */
}

/* Game Categories */
.page-promo__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-promo__category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--promo-text-main);
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-promo__category-item:hover {
  transform: translateY(-5px);
  color: var(--promo-primary-color);
}

.page-promo__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  display: block;
}

.page-promo__category-link {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
}

.page-promo__category-link:hover {
  text-decoration: underline;
}

.page-promo__sub-section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--promo-secondary-color);
  margin-top: 50px;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-promo__list {
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 20px;
}

.page-promo__list-item {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
  list-style-type: disc;
}

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

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

.page-promo__step-card {
  background-color: var(--promo-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--promo-border-color);
}

.page-promo__step-number {
  font-size: 2.5rem;
  color: var(--promo-primary-color);
  font-weight: bold;
  margin-bottom: 15px;
}

.page-promo__step-title {
  font-size: 1.3rem;
  color: var(--promo-secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__step-text {
  font-size: 0.95rem;
  color: #e0e0e0;
}

.page-promo__cta-area {
  margin-top: 50px;
}

/* Media Partners Grid */
.page-promo__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(167px, 1fr)); /* Fixed width for partner items */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
}

.page-promo__partner-item {
  background-color: var(--promo-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 167px; /* Fixed width */
  height: 127px; /* Fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--promo-border-color);
}

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

/* FAQ Section */
.page-promo__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-promo__faq-item {
  background-color: var(--promo-card-bg);
  border: 1px solid var(--promo-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: #2a2a2a;
}

.page-promo__faq-title {
  font-size: 1.15rem;
  color: var(--promo-text-main);
  margin: 0;
  font-weight: bold;
}

.page-promo__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--promo-primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-promo__faq-item.active .page-promo__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for minus sign */
}

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

.page-promo__faq-answer p {
  font-size: 1rem;
  color: #e0e0e0;
  margin: 0;
  line-height: 1.6;
}

/* Final CTA Section */
.page-promo__cta-final {
  padding-top: 80px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--promo-background-dark) 0%, #1a1a1a 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promo {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promo__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-promo__hero-content-wrapper {
    padding: 30px 15px;
    margin-top: 10px;
  }

  .page-promo__main-title {
    font-size: 2.2rem;
  }

  .page-promo__subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promo__btn-primary,
  .page-promo__btn-secondary,
  .page-promo a[class*="button"],
  .page-promo a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    text-align: center;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-promo__cta-buttons,
  .page-promo__button-group,
  .page-promo__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promo__section {
    padding: 40px 0;
  }

  .page-promo__section-title {
    font-size: 1.8rem;
  }

  .page-promo__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-promo__grid-2-cols,
  .page-promo__promotions-grid,
  .page-promo__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px;
  }

  .page-promo__card,
  .page-promo__promo-card,
  .page-promo__step-card {
    padding: 25px;
  }

  .page-promo__promo-image {
    height: 200px;
  }

  .page-promo__promo-content {
    height: calc(100% - 200px);
  }

  .page-promo__game-categories {
    gap: 15px;
    padding: 0 15px;
  }

  .page-promo__list {
    padding-left: 25px;
    padding-right: 15px;
  }

  .page-promo__faq-list {
    padding: 0 15px;
  }

  .page-promo__faq-question {
    padding: 15px 20px;
  }

  .page-promo__faq-title {
    font-size: 1rem;
  }

  .page-promo__faq-answer {
    padding: 0 20px;
  }

  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 20px 15px 20px;
  }

  .page-promo__partners-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    padding: 0 15px;
  }

  .page-promo__partner-item {
    width: 140px;
    height: 107px; /* Maintain aspect ratio */
  }

  /* Ensure all images are responsive */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-promo__section,
  .page-promo__card,
  .page-promo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific override for hero content wrapper to allow side padding */
  .page-promo__hero-content-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-promo__hero-image {
    filter: brightness(0.5); /* Slightly darker for mobile readability */
  }
}

@media (max-width: 480px) {
  .page-promo__main-title {
    font-size: 1.8rem;
  }

  .page-promo__section-title {
    font-size: 1.5rem;
  }

  .page-promo__step-number {
    font-size: 2rem;
  }
}