/* style/khuynmi.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-khuynmi {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Assuming body background is light from shared.css */
  background-color: var(--page-bg);
}

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

/* HERO Section */
.page-khuynmi__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: var(--primary-color);
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-khuynmi__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8);
}

.page-khuynmi__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  padding: 40px 20px;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-khuynmi__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-khuynmi__hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.page-khuynmi__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* General Section Styles */
.page-khuynmi__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-khuynmi__section-description {
  font-size: 1.1rem;
  color: var(--text-main);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

/* Promotions Overview Section */
.page-khuynmi__promotions-overview-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

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

.page-khuynmi__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-khuynmi__promo-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-khuynmi__promo-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-khuynmi__promo-card-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 25px;
  padding: 0 20px;
}

.page-khuynmi__promo-card-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__promo-card-button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Special Events Section */
.page-khuynmi__special-events-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-khuynmi__event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-khuynmi__event-card {
  display: flex;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-khuynmi__event-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-khuynmi__event-card-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-khuynmi__event-card-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-khuynmi__event-card-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-khuynmi__event-card-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 25px;
}

.page-khuynmi__event-card-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__event-card-button:hover {
  opacity: 0.9;
  transform: scale(1.05);
}

/* Guide Section */
.page-khuynmi__guide-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

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

.page-khuynmi__step-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-khuynmi__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--button-gradient);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-khuynmi__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-khuynmi__step-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
}

.page-khuynmi__step-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-khuynmi__step-text a:hover {
  text-decoration: underline;
}

.page-khuynmi__terms-box {
  background-color: #f0f8ff; /* Light blue background for terms */
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  margin-top: 60px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-khuynmi__terms-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
}

.page-khuynmi__terms-list {
  list-style: disc;
  padding-left: 25px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.8;
}

.page-khuynmi__terms-list li strong {
  color: var(--text-black);
}

/* Why Choose Us Section */
.page-khuynmi__why-choose-us-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-khuynmi__advantage-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-khuynmi__advantage-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-khuynmi__advantage-text {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  padding: 0 20px;
}

.page-khuynmi__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

.page-khuynmi__cta-button--large {
  padding: 18px 40px;
  font-size: 1.25rem;
  border-radius: 10px;
}

/* FAQ Section */
.page-khuynmi__faq-section {
  padding: 60px 0 80px 0;
  background-color: var(--page-bg);
}

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

.page-khuynmi__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: #fcfdff;
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-khuynmi__faq-item[open] > .page-khuynmi__faq-question {
  background-color: #e6f0ff;
  border-bottom: 1px solid var(--border-color);
}

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

.page-khuynmi__faq-question .page-khuynmi__faq-qtext {
  flex-grow: 1;
}

.page-khuynmi__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-khuynmi__faq-item[open] .page-khuynmi__faq-toggle {
  content: '−';
}

.page-khuynmi__faq-answer {
  padding: 20px 25px 25px 25px;
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.7;
  background-color: var(--card-bg);
}

/* Responsive Styles */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-khuynmi__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-khuynmi__hero-description {
    font-size: 1.1rem;
  }

  .page-khuynmi__section-title {
    font-size: 2rem;
  }

  .page-khuynmi__event-card-content {
    padding: 30px;
  }

  .page-khuynmi__event-card-title {
    font-size: 1.6rem;
  }

  .page-khuynmi__terms-box {
    padding: 30px;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO Section */
  .page-khuynmi__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-khuynmi__hero-content {
    padding: 20px 15px;
  }

  .page-khuynmi__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-khuynmi__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-khuynmi__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* General Image & Container */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-khuynmi__container,
  .page-khuynmi__promo-grid,
  .page-khuynmi__event-grid,
  .page-khuynmi__guide-steps,
  .page-khuynmi__advantages-grid,
  .page-khuynmi__faq-list,
  .page-khuynmi__terms-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Promotions Overview Section */
  .page-khuynmi__promotions-overview-section {
    padding: 40px 0;
  }

  .page-khuynmi__section-title {
    font-size: 1.8rem;
    padding-top: 20px;
    margin-bottom: 15px;
  }

  .page-khuynmi__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-khuynmi__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-khuynmi__promo-card-image {
    height: 200px;
  }

  .page-khuynmi__promo-card-title {
    font-size: 1.4rem;
  }

  .page-khuynmi__promo-card-text {
    font-size: 0.9rem;
  }

  /* Special Events Section */
  .page-khuynmi__special-events-section {
    padding: 40px 0;
  }

  .page-khuynmi__event-card {
    flex-direction: column !important;
  }

  .page-khuynmi__event-card-image {
    width: 100%;
    height: 250px;
  }

  .page-khuynmi__event-card-content {
    width: 100%;
    padding: 25px;
  }

  .page-khuynmi__event-card-title {
    font-size: 1.5rem;
  }

  .page-khuynmi__event-card-text {
    font-size: 0.95rem;
  }

  /* Guide Section */
  .page-khuynmi__guide-section {
    padding: 40px 0;
  }

  .page-khuynmi__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-khuynmi__step-item {
    padding: 25px;
  }

  .page-khuynmi__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-khuynmi__step-title {
    font-size: 1.2rem;
  }

  .page-khuynmi__step-text {
    font-size: 0.9rem;
  }

  .page-khuynmi__terms-box {
    padding: 30px 20px;
    margin-top: 40px;
  }

  .page-khuynmi__terms-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .page-khuynmi__terms-list {
    font-size: 0.9rem;
    padding-left: 20px;
  }

  /* Why Choose Us Section */
  .page-khuynmi__why-choose-us-section {
    padding: 40px 0;
  }

  .page-khuynmi__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-khuynmi__advantage-image {
    height: 180px;
  }

  .page-khuynmi__advantage-title {
    font-size: 1.4rem;
  }

  .page-khuynmi__advantage-text {
    font-size: 0.9rem;
  }

  .page-khuynmi__cta-bottom {
    margin-top: 40px;
  }

  .page-khuynmi__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1rem;
  }

  /* FAQ Section */
  .page-khuynmi__faq-section {
    padding: 40px 0 60px 0;
  }

  .page-khuynmi__faq-list {
    margin-top: 30px;
  }

  .page-khuynmi__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-khuynmi__faq-toggle {
    font-size: 1.5rem;
  }

  .page-khuynmi__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}