/* style/khuyen-mai.css */

:root {
  --page-khuyen-mai-primary-color: #C91F17;
  --page-khuyen-mai-secondary-color: #E53935;
  --page-khuyen-mai-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --page-khuyen-mai-card-bg: #D32F2F;
  --page-khuyen-mai-background: #B71C1C;
  --page-khuyen-mai-text-main: #FFF5E1;
  --page-khuyen-mai-border-color: #F2B544;
  --page-khuyen-mai-glow-color: #FFCC66;
  --page-khuyen-mai-gold-color: #F4D34D;
  --page-khuyen-mai-deep-red: #7A0E0E;
}

.page-khuyen-mai {
  background-color: var(--page-khuyen-mai-background);
  color: var(--page-khuyen-mai-text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

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

/* HERO Section */
.page-khuyen-mai__hero-section {
  padding-top: 10px; /* Relies on body padding-top from shared.css */
  padding-bottom: 60px;
  background-color: var(--page-khuyen-mai-background);
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-khuyen-mai__hero-content {
  flex: 1;
  min-width: 300px;
}

.page-khuyen-mai__hero-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--page-khuyen-mai-text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuyen-mai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__hero-cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-khuyen-mai__hero-image {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-khuyen-mai__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons */
.page-khuyen-mai__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

.page-khuyen-mai__cta-button--primary {
  background: var(--page-khuyen-mai-button-gradient);
  color: var(--page-khuyen-mai-deep-red); /* Dark text for contrast on gold gradient */
  border: 2px solid var(--page-khuyen-mai-gold-color);
  box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
}

.page-khuyen-mai__cta-button--primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 211, 77, 0.6);
}

.page-khuyen-mai__cta-button--secondary {
  background-color: transparent;
  color: var(--page-khuyen-mai-gold-color);
  border: 2px solid var(--page-khuyen-mai-gold-color);
}

.page-khuyen-mai__cta-button--secondary:hover {
  background-color: var(--page-khuyen-mai-gold-color);
  color: var(--page-khuyen-mai-deep-red);
  transform: translateY(-2px);
}

.page-khuyen-mai__cta-button--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

.page-khuyen-mai__cta-button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* General Content Sections */
.page-khuyen-mai__intro-section,
.page-khuyen-mai__promo-types-section,
.page-khuyen-mai__guide-section,
.page-khuyen-mai__terms-section,
.page-khuyen-mai__faq-section,
.page-khuyen-mai__conclusion-section {
  padding: 60px 0;
  background-color: var(--page-khuyen-mai-background);
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__intro-title,
.page-khuyen-mai__promo-types-title,
.page-khuyen-mai__guide-title,
.page-khuyen-mai__terms-title,
.page-khuyen-mai__faq-title,
.page-khuyen-mai__conclusion-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-khuyen-mai-gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__intro-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: var(--page-khuyen-mai-text-main);
}

/* Promo Cards Grid */
.page-khuyen-mai__promo-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-khuyen-mai__promo-card {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__promo-card:hover {
  transform: translateY(-5px);
}

.page-khuyen-mai__promo-card img {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__promo-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-khuyen-mai-gold-color);
}

.page-khuyen-mai__promo-card-description {
  font-size: 1em;
  margin-bottom: 25px;
  color: var(--page-khuyen-mai-text-main);
  flex-grow: 1;
}

/* Guide Section */
.page-khuyen-mai__guide-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--page-khuyen-mai-text-main);
}

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

.page-khuyen-mai__guide-step {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-khuyen-mai__guide-step img {
  max-width: 100%;
  height: auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__guide-step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--page-khuyen-mai-gold-color);
}

.page-khuyen-mai__guide-step-description {
  font-size: 1em;
  margin-bottom: 25px;
  color: var(--page-khuyen-mai-text-main);
  flex-grow: 1;
}

/* Terms Section */
.page-khuyen-mai__terms-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__terms-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__terms-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--page-khuyen-mai-gold-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: var(--page-khuyen-mai-text-main);
  font-size: 1em;
}

/* FAQ Section */
.page-khuyen-mai__faq-items {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: var(--page-khuyen-mai-card-bg);
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--page-khuyen-mai-gold-color);
  cursor: pointer;
  list-style: none; /* For details summary */
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-khuyen-mai__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__faq-answer p {
  margin: 0;
}

/* Conclusion Section */
.page-khuyen-mai__conclusion-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--page-khuyen-mai-gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-khuyen-mai__conclusion-text {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--page-khuyen-mai-text-main);
}

.page-khuyen-mai__conclusion-section .page-khuyen-mai__cta-button {
  margin: 0 auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__hero-title {
    font-size: clamp(2em, 3.5vw, 2.8em);
  }
  .page-khuyen-mai__intro-title,
  .page-khuyen-mai__promo-types-title,
  .page-khuyen-mai__guide-title,
  .page-khuyen-mai__terms-title,
  .page-khuyen-mai__faq-title,
  .page-khuyen-mai__conclusion-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important; /* Rely on body padding-top from shared.css */
    padding-bottom: 40px;
  }

  .page-khuyen-mai__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    gap: 20px;
  }

  .page-khuyen-mai__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-khuyen-mai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
}