/* style/khuyen-mai.css */
:root {
  --gamebet-primary: #F2C14E;
  --gamebet-secondary: #FFD36B;
  --gamebet-card-bg: #111111;
  --gamebet-bg: #0A0A0A;
  --gamebet-text-main: #FFF6D6;
  --gamebet-border: #3A2A12;
  --gamebet-glow: #FFD36B;
  --gamebet-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-khuyen-mai {
  font-family: 'Arial', sans-serif;
  color: var(--gamebet-text-main); /* Assuming dark body background, use light text */
  background-color: var(--gamebet-bg); /* Ensure page background is dark */
}

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

.page-khuyen-mai__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-khuyen-mai__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin: -100px auto 0; /* Pull content up slightly over the image for visual flow */
  background: rgba(17, 17, 17, 0.85); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.page-khuyen-mai__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--gamebet-secondary);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.7);
}

.page-khuyen-mai__hero-description {
  font-size: 1.1rem;
  color: var(--gamebet-text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-khuyen-mai__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: normal;
  box-sizing: border-box;
}

.page-khuyen-mai__btn-primary {
  background: var(--gamebet-btn-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-khuyen-mai__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-khuyen-mai__btn-secondary {
  background: transparent;
  color: var(--gamebet-secondary);
  border: 2px solid var(--gamebet-secondary);
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-khuyen-mai__btn-secondary:hover {
  background: var(--gamebet-secondary);
  color: var(--gamebet-card-bg); /* Dark text on hover for contrast */
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--gamebet-primary);
  text-align: center;
  margin-bottom: 30px;
  margin-top: 60px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-khuyen-mai__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--gamebet-text-main);
  text-align: justify;
}

.page-khuyen-mai__overview-section,
.page-khuyen-mai__promo-categories,
.page-khuyen-mai__how-to-claim,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__faq-section {
  padding: 40px 0;
  margin-bottom: 20px;
}

.page-khuyen-mai__promo-categories {
  background: var(--gamebet-card-bg);
  padding: 60px 0;
}

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

.page-khuyen-mai__promo-card {
  background: var(--gamebet-bg);
  border: 1px solid var(--gamebet-border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(242, 193, 78, 0.3);
}

.page-khuyen-mai__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-khuyen-mai__card-title {
  font-size: 1.5rem;
  color: var(--gamebet-primary);
  margin-bottom: 15px;
  padding: 0 15px;
  font-weight: bold;
}

.page-khuyen-mai__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gamebet-text-main);
  padding: 0 20px;
  margin-bottom: 25px;
  text-align: justify;
}

.page-khuyen-mai__btn-card {
  background: var(--gamebet-btn-gradient);
  color: #ffffff;
  padding: 12px 25px;
  font-size: 0.95rem;
  border-radius: 40px;
}

.page-khuyen-mai__btn-card:hover {
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

.page-khuyen-mai__how-to-claim-content {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 0 20px;
}

.page-khuyen-mai__steps {
  flex: 1;
}

.page-khuyen-mai__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-khuyen-mai__step-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 30px;
}

.page-khuyen-mai__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--gamebet-primary);
  color: var(--gamebet-card-bg);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-khuyen-mai__step-title {
  font-size: 1.3rem;
  color: var(--gamebet-secondary);
  margin-bottom: 10px;
}

.page-khuyen-mai__step-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gamebet-text-main);
}

.page-khuyen-mai__image-container {
  flex: 1;
  min-width: 400px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  border-radius: 15px;
  overflow: hidden;
}

.page-khuyen-mai__guide-image {
  width: 100%;
  height: auto;
  display: block;
}

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

.page-khuyen-mai__terms-item {
  background: var(--gamebet-card-bg);
  border-left: 4px solid var(--gamebet-primary);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gamebet-text-main);
}

.page-khuyen-mai__terms-item strong {
  color: var(--gamebet-primary);
}

.page-khuyen-mai__link-text {
  color: var(--gamebet-secondary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-khuyen-mai__link-text:hover {
  color: #ffffff;
}

.page-khuyen-mai__faq-list {
  padding: 0 20px;
  max-width: 900px;
  margin: 30px auto 0;
}

.page-khuyen-mai__faq-item {
  background: var(--gamebet-card-bg);
  border: 1px solid var(--gamebet-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--gamebet-primary);
  background: var(--gamebet-bg);
  transition: background-color 0.3s ease;
}

.page-khuyen-mai__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-khuyen-mai__faq-item summary:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-khuyen-mai__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-khuyen-mai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gamebet-secondary);
}

.page-khuyen-mai__faq-item[open] .page-khuyen-mai__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-khuyen-mai__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gamebet-text-main);
  background: var(--gamebet-card-bg);
  border-top: 1px solid var(--gamebet-border);
}

.page-khuyen-mai__cta-section {
  padding: 60px 0;
  text-align: center;
  background: var(--gamebet-primary);
  color: #ffffff;
  box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title {
  color: #ffffff;
  text-shadow: none;
  margin-top: 0;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__text-block {
  color: #ffffff;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__btn-primary {
  background: #ffffff;
  color: var(--gamebet-primary);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.page-khuyen-mai__cta-section .page-khuyen-mai__btn-primary:hover {
  background: var(--gamebet-secondary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.6);
}

.page-khuyen-mai__cta-section .page-khuyen-mai__btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-khuyen-mai__cta-section .page-khuyen-mai__btn-secondary:hover {
  background: #ffffff;
  color: var(--gamebet-primary);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* General image responsiveness */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-khuyen-mai__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
  }

  .page-khuyen-mai__hero-image {
    object-fit: contain; /* Contain for mobile hero */
    height: auto;
    max-height: 300px;
  }

  .page-khuyen-mai__hero-content {
    margin-top: -50px;
    padding: 25px 15px;
  }

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

  .page-khuyen-mai__hero-description {
    font-size: 1rem;
  }

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

  .page-khuyen-mai__btn {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-khuyen-mai__section-title {
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-khuyen-mai__promo-categories {
    padding: 30px 0;
  }

  .page-khuyen-mai__card-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-khuyen-mai__promo-card {
    margin-bottom: 20px;
  }

  .page-khuyen-mai__card-image {
    height: 180px;
  }

  .page-khuyen-mai__card-title {
    font-size: 1.3rem;
  }

  .page-khuyen-mai__card-description {
    font-size: 0.9rem;
  }

  .page-khuyen-mai__how-to-claim-content {
    flex-direction: column;
    padding: 0 15px;
  }

  .page-khuyen-mai__image-container {
    min-width: unset;
    width: 100%;
    margin-top: 30px;
  }

  .page-khuyen-mai__step-item {
    padding-left: 40px;
    margin-bottom: 25px;
  }

  .page-khuyen-mai__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-khuyen-mai__step-title {
    font-size: 1.1rem;
  }

  .page-khuyen-mai__terms-list,
  .page-khuyen-mai__faq-list {
    padding: 0 15px;
  }

  .page-khuyen-mai__terms-item {
    font-size: 0.95rem;
    padding: 12px 15px;
  }

  .page-khuyen-mai__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-khuyen-mai__faq-answer {
    font-size: 0.95rem;
    padding: 12px 20px 15px;
  }

  .page-khuyen-mai__cta-section {
    padding: 40px 15px;
  }

  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__section,
  .page-khuyen-mai__card,
  .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__cta-button,
  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai a[class*="btn"] {
    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;
  }
  
  .page-khuyen-mai__cta-buttons,
  .page-khuyen-mai__button-group,
  .page-khuyen-mai__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-khuyen-mai__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 1024px) {
  .page-khuyen-mai__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-khuyen-mai__main-title {
    font-size: 3rem;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1.05rem;
  }

  .page-khuyen-mai__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-khuyen-mai__how-to-claim-content {
    flex-direction: column;
  }

  .page-khuyen-mai__image-container {
    min-width: unset;
    width: 100%;
    margin-top: 30px;
  }
}