/* style/promotions.css */

:root {
  --vnbet-green-primary: #11A84E;
  --vnbet-green-secondary: #22C768;
  --vnbet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --vnbet-card-bg: #11271B;
  --vnbet-background: #08160F;
  --vnbet-text-main: #F2FFF6;
  --vnbet-text-secondary: #A7D9B8;
  --vnbet-border: #2E7A4E;
  --vnbet-glow: #57E38D;
  --vnbet-gold: #F2C14E;
  --vnbet-divider: #1E3A2A;
  --vnbet-deep-green: #0A4B2C;
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 60px; /* Adjusted padding-top to 10px */
  text-align: center;
  overflow: hidden;
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: var(--vnbet-text-main);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--vnbet-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: var(--vnbet-text-secondary);
}

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

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

.page-promotions__btn-primary {
  background: var(--vnbet-button-gradient);
  color: #ffffff; /* Always white for primary button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--vnbet-gold);
  border: 2px solid var(--vnbet-gold);
}

.page-promotions__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  color: var(--vnbet-gold);
}

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

.page-promotions__dark-section {
  background-color: var(--vnbet-deep-green);
  color: var(--vnbet-text-main);
}

.page-promotions__light-bg {
  background-color: var(--vnbet-card-bg);
  color: var(--vnbet-text-main);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--vnbet-gold);
}

.page-promotions__section-intro {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--vnbet-text-secondary);
}

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

.page-promotions__card-grid--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-promotions__card {
  background-color: var(--vnbet-card-bg); /* Card BG from custom colors */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--vnbet-text-main);
  border: 1px solid var(--vnbet-border); /* Border from custom colors */
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--vnbet-gold);
}

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--vnbet-text-secondary);
  flex-grow: 1;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-promotions__list-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--vnbet-text-main);
  margin-bottom: 5px;
  margin-top: 15px;
}

.page-promotions__list li p {
  font-size: 0.95rem;
  color: var(--vnbet-text-secondary);
  margin-bottom: 10px;
}

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

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__terms-list li {
  background-color: var(--vnbet-card-bg);
  border: 1px solid var(--vnbet-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--vnbet-text-main);
}

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

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

.page-promotions__faq-item {
  background-color: var(--vnbet-card-bg);
  border: 1px solid var(--vnbet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--vnbet-text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--vnbet-text-main);
  position: relative;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--vnbet-text-main);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--vnbet-gold);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--vnbet-text-secondary);
  line-height: 1.7;
}

/* Text colors from custom palette */
.page-promotions__text-main {
  color: var(--vnbet-text-main);
}

.page-promotions__text-secondary {
  color: var(--vnbet-text-secondary);
}

.page-promotions__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__card-grid--two-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  .page-promotions__hero-section {
    padding: 10px 15px 40px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-promotions__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-promotions__card-grid,
  .page-promotions__card-grid--two-cols,
  .page-promotions__event-grid,
  .page-promotions__reason-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__card {
    padding: 25px;
  }

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

  .page-promotions__card-title {
    font-size: 1.4rem;
  }

  .page-promotions__list-item-title {
    font-size: 1.1rem;
  }

  .page-promotions__terms-list li {
    padding: 20px;
  }

  .page-promotions__faq-question {
    padding: 18px 20px;
    font-size: 1rem;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Mobile responsive image & container rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__hero-image-wrapper,
  .page-promotions__hero-content,
  .page-promotions__cta-buttons,
  .page-promotions__card-grid,
  .page-promotions__card-grid--two-cols,
  .page-promotions__event-grid,
  .page-promotions__terms-list,
  .page-promotions__reason-cards,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right are already set for sections/cards etc. */
    /* For direct image containers without padding, ensure they don't overflow */
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }
}