/* style/promotions.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --btn-register-bg: #C30808;
  --btn-register-text: #FFFF00;
  --body-bg: #000;
}

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

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
  min-height: 500px;
  overflow: hidden;
  background-color: var(--primary-color);
  color: var(--text-light);
}

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

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let background color show */
  z-index: 1;
}

.page-promotions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--btn-register-text); /* Using yellow for main title for impact */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-promotions__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Colors based on section background */
.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__sub-title {
  color: var(--primary-color);
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 1.1em;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-promotions__btn-primary {
  background-color: var(--btn-register-bg); /* Register button color */
  color: var(--btn-register-text); /* Register button text color */
  box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-promotions__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(195, 8, 8, 0.6);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.3em;
}

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

.page-promotions__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-promotions__card-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-primary,
.page-promotions__card .page-promotions__btn-secondary {
  margin-top: auto;
  width: auto;
}

/* Two Column Grid */
.page-promotions__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.page-promotions__grid-two-columns--reversed {
  direction: rtl; /* For image-text reversal */
}

.page-promotions__grid-two-columns--reversed > * {
  direction: ltr; /* Reset text direction */
}

.page-promotions__content-block {
  padding: 20px 0;
}

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

.page-promotions__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-promotions__game-offers-grid .page-promotions__card {
  padding: 25px;
}

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

.page-promotions__game-offers-grid .page-promotions__btn-primary {
  margin: 5px;
}

/* List Styling */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
}

.page-promotions__list-item strong {
  color: var(--btn-register-text); /* Highlight important terms */
}

.page-promotions__steps-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__steps-list .page-promotions__list-item {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  border-left: none;
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 80px;
}

.page-promotions__steps-list .page-promotions__list-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-promotions__steps-list .page-promotions__sub-title {
  color: var(--primary-color);
  margin-top: 0;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: var(--text-light);
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  transition: transform 0.3s ease;
  color: var(--btn-register-text);
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: var(--text-light);
}

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

/* Call to Action Section */
.page-promotions__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__cta-section .page-promotions__section-title {
  color: var(--btn-register-text); /* Yellow for CTA title */
}

.page-promotions__cta-section .page-promotions__description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 3em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }

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

  .page-promotions__grid-two-columns--reversed {
    direction: ltr; /* Remove reversal for smaller screens */
  }

  .page-promotions__grid-two-columns--reversed > * {
    direction: ltr;
  }

  .page-promotions__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

  .page-promotions__main-title {
    font-size: 2.2em;
  }

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
  }

  .page-promotions__sub-title {
    font-size: 1.5em;
  }

  .page-promotions__card-grid,
  .page-promotions__game-offers-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}