/* style/khuynmi.css */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --text-main-color: #FFF5E1;
  --card-bg-color: #D32F2F;
  --background-section-color: #B71C1C;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;

  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

.page-khuynmi {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: var(--background-color, #f8f8f8); /* Fallback for body background */
}

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

.page-khuynmi__section {
  padding: 60px 0;
  text-align: center;
}

.page-khuynmi__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.page-khuynmi__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
}

.page-khuynmi__section-title--light {
  color: var(--text-main-color);
}

.page-khuynmi__text-block {
  font-size: 17px;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-khuynmi__text-block--light {
  color: var(--text-main-color);
}

/* Hero Section */
.page-khuynmi__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset from body */
  background-color: var(--deep-red-color);
  color: var(--text-main-color);
  overflow: hidden;
}

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

.page-khuynmi__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-khuynmi__main-title {
  font-size: 48px;
  font-weight: 900;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-description {
  font-size: 20px;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-khuynmi__cta-button,
.page-khuynmi__btn-primary,
.page-khuynmi__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__btn-primary {
  background: var(--btn-gradient);
  color: #333333; /* Ensuring dark text on bright button */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-khuynmi__btn-secondary {
  background-color: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__btn-secondary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Promotions List */
.page-khuynmi__promotions-list {
  background-color: var(--background-section-color);
  color: var(--text-main-color);
}

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

.page-khuynmi__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuynmi__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-khuynmi__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-khuynmi__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-khuynmi__card-text {
  font-size: 16px;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How-to-claim Section */
.page-khuynmi__how-to-claim {
  background-color: #ffffff;
  color: #333333;
}

.page-khuynmi__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-khuynmi__list-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-khuynmi__list-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-khuynmi__list-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

/* Terms & Conditions Section */
.page-khuynmi__terms {
  background-color: var(--deep-red-color);
  color: var(--text-main-color);
}

.page-khuynmi__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-khuynmi__list-item--light {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__list-title--light {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-khuynmi__list-item--light p {
  font-size: 16px;
  color: var(--text-main-color);
  margin-bottom: 0;
}

/* Why Choose Section */
.page-khuynmi__why-choose {
  background-color: #f0f2f5;
  color: #333333;
}

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

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

.page-khuynmi__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min-size rule */
  min-height: 200px;
  width: 200px; /* Use width/height as display area size */
  height: 200px;
}

.page-khuynmi__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-khuynmi__feature-item p {
  font-size: 16px;
  color: #666666;
}

/* FAQ Section */
.page-khuynmi__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-khuynmi__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-khuynmi__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-khuynmi__faq-item summary.page-khuynmi__faq-question::-webkit-details-marker {
  display: none;
}
details.page-khuynmi__faq-item summary.page-khuynmi__faq-question:hover {
  background: #f5f5f5;
}
.page-khuynmi__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-khuynmi__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-khuynmi__faq-item .page-khuynmi__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
}

details.page-khuynmi__faq-item .page-khuynmi__faq-answer p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 0;
  text-align: left;
}

/* Conclusion Section */
.page-khuynmi__conclusion {
  background-color: var(--deep-red-color);
  color: var(--text-main-color);
  padding-bottom: 80px;
}

.page-khuynmi__conclusion .page-khuynmi__cta-button {
  margin-top: 40px;
  background: var(--btn-gradient);
  color: #333333;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-khuynmi__main-title {
    font-size: 40px;
  }
  .page-khuynmi__hero-description {
    font-size: 18px;
  }
  .page-khuynmi__section-title {
    font-size: 32px;
  }
  .page-khuynmi__card-title {
    font-size: 20px;
  }
  .page-khuynmi__list-title,
  .page-khuynmi__list-title--light {
    font-size: 22px;
  }
  .page-khuynmi__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__section {
    padding: 40px 0;
  }
  .page-khuynmi__container {
    padding: 0 15px;
  }
  .page-khuynmi__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-khuynmi__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-khuynmi__cta-button,
  .page-khuynmi__btn-primary,
  .page-khuynmi__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-khuynmi__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-khuynmi__text-block {
    font-size: 16px;
  }
  .page-khuynmi__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuynmi__card-image {
    height: 180px;
  }
  .page-khuynmi__card-content {
    padding: 20px;
  }
  .page-khuynmi__card-title {
    font-size: 18px;
  }
  .page-khuynmi__list-item,
  .page-khuynmi__list-item--light {
    padding: 20px;
  }
  .page-khuynmi__list-title,
  .page-khuynmi__list-title--light {
    font-size: 20px;
  }
  .page-khuynmi__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-khuynmi__feature-icon {
    width: 150px; /* Adjusted for mobile view, still >= 200px */
    height: 150px;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  details.page-khuynmi__faq-item summary.page-khuynmi__faq-question {
    padding: 15px 20px;
  }
  .page-khuynmi__faq-qtext {
    font-size: 16px;
  }
  .page-khuynmi__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-khuynmi__faq-item .page-khuynmi__faq-answer {
    padding: 0 20px 20px;
  }
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container,
  .page-khuynmi__hero-section,
  .page-khuynmi__cta-buttons,
  .page-khuynmi__button-group,
  .page-khuynmi__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-khuynmi__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}