/* style/khuyn-mi.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #B22222; /* Firebrick */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-dark: #1a1a1a;
  --bg-light: #f5f5f5;
  --card-bg: #2a2a2a;
  --border-color: #444444;
}

.page-khuyn-mi {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

.page-khuyn-mi h1, .page-khuyn-mi h2, .page-khuyn-mi h3 {
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyn-mi h1 {
  font-size: 2.8em;
  text-align: center;
  color: var(--text-light);
}

.page-khuyn-mi h2 {
  font-size: 2.2em;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-khuyn-mi h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 20px;
}

.page-khuyn-mi p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-khuyn-mi ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-khuyn-mi ul li {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-khuyn-mi a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-khuyn-mi a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

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

/* Hero Banner */
.page-khuyn-mi__hero-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #8b0000 100%); /* Darker red gradient */
  padding: 80px 0;
  text-align: center;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.page-khuyn-mi__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-khuyn-mi__hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-khuyn-mi__hero-image-wrapper {
  width: 90%;
  max-width: 900px;
  margin-top: 30px;
}

.page-khuyn-mi__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuyn-mi__cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--bg-dark);
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi__cta-button:hover {
  background-color: #FFC107; /* Slightly brighter gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.page-khuyn-mi__cta-button--small {
  padding: 10px 25px;
  font-size: 1em;
}

/* Sections */
.page-khuyn-mi__section {
  padding: 60px 0;
}

.page-khuyn-mi__section:nth-of-type(even) {
  background-color: var(--bg-light);
}

.page-khuyn-mi__section:nth-of-type(odd) {
  background-color: #fcfcfc;
}

/* Welcome Offers Grid */
.page-khuyn-mi__welcome-offers {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-khuyn-mi__welcome-offers h2 {
  color: var(--primary-color);
}

.page-khuyn-mi__welcome-offers p {
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-khuyn-mi__offer-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyn-mi__offer-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.page-khuyn-mi__offer-card h3 {
  color: var(--primary-color);
  font-size: 1.8em;
  margin-bottom: 15px;
}

.page-khuyn-mi__offer-card p, .page-khuyn-mi__offer-card ul li {
  color: #bbbbbb;
  text-align: left;
}

.page-khuyn-mi__offer-card ul {
  text-align: left;
  margin-left: 0;
  padding-left: 20px;
  list-style-type: '⚡ ';
}

.page-khuyn-mi__offer-card .page-khuyn-mi__cta-button {
  margin-top: 25px;
  width: fit-content;
  align-self: center;
}

/* Daily Offers */
.page-khuyn-mi__daily-offers h2 {
  color: var(--secondary-color);
}

.page-khuyn-mi__daily-offers p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-khuyn-mi__content-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-khuyn-mi__content-block:last-child {
  margin-bottom: 0;
}

.page-khuyn-mi__content-block--reversed {
  flex-direction: row-reverse;
}

.page-khuyn-mi__content-block .page-khuyn-mi__content-image {
  flex: 1;
  min-width: 300px;
  height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-khuyn-mi__content-block div {
  flex: 2;
}

.page-khuyn-mi__content-block h3 {
  text-align: left;
}

/* Game Specific Offers */
.page-khuyn-mi__game-specific-offers {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-khuyn-mi__game-specific-offers h2 {
  color: var(--primary-color);
}

.page-khuyn-mi__game-specific-offers p {
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-khuyn-mi__game-offer-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-khuyn-mi__game-offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-khuyn-mi__game-offer-card h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-khuyn-mi__game-offer-card p {
  color: #bbbbbb;
  text-align: center;
  flex-grow: 1;
}

.page-khuyn-mi__game-offer-card .page-khuyn-mi__card-image {
  height: 180px;
}

.page-khuyn-mi__game-offer-card .page-khuyn-mi__cta-button {
  margin-top: 20px;
  width: fit-content;
  align-self: center;
}

/* VIP Program */
.page-khuyn-mi__vip-program h2 {
  color: var(--secondary-color);
}

.page-khuyn-mi__vip-program p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-khuyn-mi__vip-program .page-khuyn-mi__content-block h3 {
  text-align: left;
}

/* How to Claim */
.page-khuyn-mi__how-to-claim {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-khuyn-mi__how-to-claim h2 {
  color: var(--primary-color);
}

.page-khuyn-mi__how-to-claim p {
  color: #cccccc;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-khuyn-mi__step-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-top: 60px;
}

.page-khuyn-mi__step-card .page-khuyn-mi__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--bg-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 0 0 5px var(--card-bg);
}

.page-khuyn-mi__step-card h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-khuyn-mi__step-card p {
  color: #bbbbbb;
  text-align: center;
}

.page-khuyn-mi__step-card a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-khuyn-mi__step-card a:hover {
  color: #FFC107;
}

.page-khuyn-mi__how-to-claim .page-khuyn-mi__cta-button {
  margin-top: 50px;
}

/* FAQ Section */
.page-khuyn-mi__faq {
  background-color: var(--bg-light);
}

.page-khuyn-mi__faq h2 {
  color: var(--secondary-color);
}

.faq-list {
  margin-top: 40px;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  color: var(--text-dark);
  font-size: 1.25em;
  flex-grow: 1;
  text-align: left;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  color: var(--text-dark);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px 25px;
  border-top: 1px solid #e0e0e0;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer p {
  margin: 0;
  font-size: 1.05em;
}

/* Conclusion */
.page-khuyn-mi__conclusion {
  background: linear-gradient(135deg, #B22222, #8b0000);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

.page-khuyn-mi__conclusion-content {
  max-width: 900px;
}

.page-khuyn-mi__conclusion h2 {
  color: var(--primary-color);
  font-size: 2.5em;
}

.page-khuyn-mi__conclusion p {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #eeeeee;
}

.page-khuyn-mi__conclusion .page-khuyn-mi__cta-button {
  background-color: var(--primary-color);
  color: var(--bg-dark);
}

.page-khuyn-mi__conclusion .page-khuyn-mi__cta-button:hover {
  background-color: #FFC107;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyn-mi h1 {
    font-size: 2.4em;
  }
  .page-khuyn-mi h2 {
    font-size: 2em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.4em;
  }
  .page-khuyn-mi__content-block {
    flex-direction: column;
    text-align: center;
  }
  .page-khuyn-mi__content-block--reversed {
    flex-direction: column;
  }
  .page-khuyn-mi__content-block .page-khuyn-mi__content-image {
    width: 80%;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-khuyn-mi__content-block h3 {
    text-align: center;
  }
  .page-khuyn-mi__offer-card ul {
    padding-left: 15px;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi__hero-banner {
    padding: 60px 0;
  }
  .page-khuyn-mi h1 {
    font-size: 2em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.3em;
  }
  .page-khuyn-mi p {
    font-size: 1em;
  }
  .page-khuyn-mi__hero-content p {
    font-size: 1.1em;
  }
  .page-khuyn-mi__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-khuyn-mi__section {
    padding: 40px 0;
  }
  .page-khuyn-mi__container {
    padding: 0 15px;
  }
  .page-khuyn-mi__offer-grid, .page-khuyn-mi__game-offer-grid, .page-khuyn-mi__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuyn-mi__offer-card, .page-khuyn-mi__game-offer-card, .page-khuyn-mi__step-card {
    padding: 20px;
  }
  .page-khuyn-mi__card-image, .page-khuyn-mi__content-block .page-khuyn-mi__content-image {
    height: 150px;
    width: 100%;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-khuyn-mi__conclusion h2 {
    font-size: 2em;
  }
  .page-khuyn-mi__conclusion p {
    font-size: 1.1em;
  }
  .page-khuyn-mi__step-card {
    padding-top: 50px;
  }
  .page-khuyn-mi__step-card .page-khuyn-mi__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi h1 {
    font-size: 1.8em;
  }
  .page-khuyn-mi h2 {
    font-size: 1.6em;
  }
  .page-khuyn-mi h3 {
    font-size: 1.2em;
  }
  .page-khuyn-mi__hero-content p {
    font-size: 1em;
  }
  .page-khuyn-mi__cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-khuyn-mi__card-image {
    height: 120px;
  }
  .page-khuyn-mi__content-block .page-khuyn-mi__content-image {
    height: 180px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}