/* style/khuyn-mi.css */

:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-light: #FFFFFF;
  --text-dark: #333333;
  --bg-light: #F0F2F5;
  --bg-dark: #1A2E44;
  --border-color: #E0E0E0;
}

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

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

.page-khuyn-mi-heading {
  font-size: 3em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuyn-mi-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.page-khuyn-mi-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-khuyn-mi-button:hover {
  background: #FFC107; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-small-button {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-khuyn-mi-cta-button {
  font-size: 1.3em;
  padding: 18px 40px;
}

.page-khuyn-mi-light-text {
  color: var(--text-light);
}

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

/* Hero Section */
.page-khuyn-mi .hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
  padding: 80px 0;
  color: var(--text-light);
  text-align: center;
}

.page-khuyn-mi .hero-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-khuyn-mi .hero-content {
  flex: 1;
  text-align: left;
}

.page-khuyn-mi-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--secondary-color);
  text-align: left;
}

.page-khuyn-mi-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #E0E0E0;
  text-align: left;
}

.page-khuyn-mi .hero-image-wrapper {
  flex: 1;
  max-width: 50%;
}

.page-khuyn-mi-hero-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Promotion Categories Section */
.page-khuyn-mi .promotion-categories-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-khuyn-mi .categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-khuyn-mi .category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyn-mi .category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-khuyn-mi-card-img {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-khuyn-mi-card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyn-mi-card-link {
  color: var(--primary-color);
  text-decoration: none;
}

.page-khuyn-mi-card-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-khuyn-mi-card-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Promotion Detail Section */
.page-khuyn-mi .promotion-detail-section {
  padding: 80px 0;
}

.page-khuyn-mi .promotion-card-large {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  overflow: hidden;
}

.page-khuyn-mi .promotion-card-large.page-khuyn-mi-reverse {
  flex-direction: row-reverse;
}

.page-khuyn-mi-promotion-img {
  width: 50%;
  height: 400px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 12px 0 0 12px;
}

.page-khuyn-mi .promotion-card-large.page-khuyn-mi-reverse .page-khuyn-mi-promotion-img {
  border-radius: 0 12px 12px 0;
}

.page-khuyn-mi-promotion-content {
  width: 50%;
  padding: 40px;
}

.page-khuyn-mi-promo-title {
  font-size: 2.5em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuyn-mi-promo-text {
  font-size: 1.1em;
  color: var(--text-dark);
  margin-bottom: 25px;
}

.page-khuyn-mi-promo-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-khuyn-mi-promo-features li {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.page-khuyn-mi-feature-icon {
  color: var(--secondary-color);
  font-size: 1.2em;
  margin-right: 10px;
  font-weight: bold;
}

.page-khuyn-mi-action-button {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* Special Events Section */
.page-khuyn-mi .special-events-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-khuyn-mi .events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.page-khuyn-mi .event-card {
  background-color: var(--bg-dark);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyn-mi .event-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-khuyn-mi .event-card .page-khuyn-mi-card-img {
  height: 250px; /* Larger image for event cards */
}

.page-khuyn-mi .event-card .page-khuyn-mi-card-title {
  color: var(--secondary-color);
}

.page-khuyn-mi .event-card .page-khuyn-mi-card-text {
  color: #CCCCCC;
}

/* How To Claim Section */
.page-khuyn-mi .how-to-claim-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-khuyn-mi .step-item {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyn-mi .step-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyn-mi-icon-number {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary-color);
}

.page-khuyn-mi-step-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-khuyn-mi-step-text {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Terms & Conditions Section */
.page-khuyn-mi .terms-conditions-section {
  padding: 80px 0;
}

.page-khuyn-mi-terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px auto;
  max-width: 900px;
}

.page-khuyn-mi-terms-list li {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  line-height: 1.5;
}

.page-khuyn-mi-list-icon {
  color: var(--secondary-color);
  font-size: 0.8em;
  margin-right: 15px;
  margin-top: 5px;
}

/* FAQ Section */
.page-khuyn-mi .faq-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

.page-khuyn-mi .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 20px;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
  transition: max-height 0.4s ease-in, padding 0.4s ease-in;
}

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

.faq-answer p {
  margin: 0;
  color: var(--text-dark);
  font-size: 1em;
}

/* Call to Action Bottom Section */
.page-khuyn-mi .cta-bottom-section {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-dark) 100%);
  color: var(--text-light);
  text-align: center;
}

.page-khuyn-mi .cta-bottom-section .page-khuyn-mi-heading {
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-khuyn-mi .cta-bottom-section .page-khuyn-mi-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #E0E0E0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuyn-mi-heading {
    font-size: 2.5em;
  }
  .page-khuyn-mi-title {
    font-size: 3em;
  }
  .page-khuyn-mi-subtitle {
    font-size: 1.1em;
  }
  .page-khuyn-mi .hero-container {
    flex-direction: column;
    text-align: center;
  }
  .page-khuyn-mi .hero-content {
    text-align: center;
  }
  .page-khuyn-mi .hero-image-wrapper {
    max-width: 80%;
    margin-top: 40px;
  }
  .page-khuyn-mi-promo-title {
    font-size: 2em;
  }
  .page-khuyn-mi .promotion-card-large, .page-khuyn-mi .promotion-card-large.page-khuyn-mi-reverse {
    flex-direction: column;
  }
  .page-khuyn-mi-promotion-img,
  .page-khuyn-mi-promotion-content {
    width: 100%;
  }
  .page-khuyn-mi-promotion-img {
    border-radius: 12px 12px 0 0;
    height: 300px;
  }
  .page-khuyn-mi .promotion-card-large.page-khuyn-mi-reverse .page-khuyn-mi-promotion-img {
    border-radius: 12px 12px 0 0;
  }
  .page-khuyn-mi-promotion-content {
    padding: 30px;
  }
  .page-khuyn-mi-cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi-heading {
    font-size: 2em;
    margin-bottom: 20px;
  }
  .page-khuyn-mi-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-khuyn-mi-title {
    font-size: 2.5em;
  }
  .page-khuyn-mi-subtitle {
    font-size: 1em;
  }
  .page-khuyn-mi-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-khuyn-mi .hero-section,
  .page-khuyn-mi .promotion-categories-section,
  .page-khuyn-mi .promotion-detail-section,
  .page-khuyn-mi .special-events-section,
  .page-khuyn-mi .how-to-claim-section,
  .page-khuyn-mi .terms-conditions-section,
  .page-khuyn-mi .faq-section,
  .page-khuyn-mi .cta-bottom-section {
    padding: 50px 0;
  }
  .page-khuyn-mi .categories-grid,
  .page-khuyn-mi .events-grid,
  .page-khuyn-mi .steps-grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi-card-img {
    height: 180px;
  }
  .page-khuyn-mi-promo-title {
    font-size: 1.8em;
  }
  .page-khuyn-mi-promotion-img {
    height: 250px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 1.8em;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi-title {
    font-size: 2em;
  }
  .page-khuyn-mi-subtitle {
    font-size: 0.9em;
  }
  .page-khuyn-mi-cta-button {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-khuyn-mi-promo-title {
    font-size: 1.5em;
  }
  .page-khuyn-mi-promotion-img {
    height: 200px;
  }
}