:root {
  --primary-color: #017439; /* Tha Bet green */
  --secondary-color: #FFFFFF; /* White */
  --register-button-color: #C30808; /* Red for register/login */
  --login-button-color: #C30808; /* Red for register/login */
  --register-login-font-color: #FFFF00; /* Yellow font for register/login */
  --background-color: #FFFFFF; /* Page background */
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
}

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

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a9d68 100%); /* Green gradient */
  color: var(--text-color-light);
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--secondary-color);
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--register-button-color); /* Red for CTA */
  color: var(--register-login-font-color); /* Yellow font */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.3em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: 2px solid var(--register-login-font-color);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-promotions__cta-button:hover {
  background: #a90707; /* Darken red on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.page-promotions__section {
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__overview-section {
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

.page-promotions__welcome-section,
.page-promotions__cashback-section,
.page-promotions__vip-section,
.page-promotions__why-choose-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__deposit-section,
.page-promotions__events-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  background-color: var(--background-color);
  color: var(--text-color-dark);
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: inherit; /* Inherits from section background */
}

.page-promotions__section-description {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.7;
  color: inherit;
}

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

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

.page-promotions__card {
  background: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-promotions__card-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-promotions__text-block {
  max-width: 900px;
  margin: 40px auto;
  font-size: 1.1em;
  line-height: 1.7;
  color: inherit;
}

.page-promotions__image-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
  text-align: left;
}

.page-promotions__image-content--reverse {
  flex-direction: row-reverse;
}

.page-promotions__image-content .page-promotions__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-promotions__image-content .page-promotions__content-block {
  flex: 1;
  max-width: 50%;
  color: inherit;
}

.page-promotions__content-block-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: inherit;
}

.page-promotions__content-block p {
  margin-bottom: 20px;
  line-height: 1.7;
  font-size: 1em;
  color: inherit;
}

.page-promotions__btn-primary {
  background: var(--register-button-color);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-login-font-color);
}

.page-promotions__btn-primary:hover {
  background: #a90707;
}

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

.page-promotions__btn-secondary:hover {
  background: #e0f2e8;
  color: var(--primary-color);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-promotions__terms-list li {
  background: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__terms-list li strong {
  color: var(--primary-color);
  font-size: 1.1em;
}

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

.page-promotions__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--text-color-light);
}

.page-promotions__benefit-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-promotions__benefit-text {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-promotions__why-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-promotions__why-list li {
  background: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--secondary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.7;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-color-light);
}

.page-promotions__why-list li strong {
  color: var(--secondary-color);
  font-size: 1.1em;
}


/* FAQ Styles */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  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: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}