/* style/khuynmi.css */

/* --- General Styles --- */
.page-khuynmi {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f8f8; /* Light background for the main content area */
}

/* --- Section Styling --- */
.page-khuynmi__section {
  padding: 60px 20px;
  margin-bottom: 20px;
  background-color: #ffffff; /* Default section background */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

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

.page-khuynmi__section-title {
  font-size: 2.5em;
  color: #C91F17; /* Main brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-khuynmi__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333;
}

/* --- Hero Section --- */
.page-khuynmi__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #B71C1C; /* Deep Red background for hero section */
  color: #FFF5E1; /* Light text for dark background */
  text-align: center;
}

.page-khuynmi__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
}

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

.page-khuynmi__hero-content {
  padding: 40px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any background elements */
}

.page-khuynmi__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size for H1 */
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-khuynmi__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFF5E1; /* Light text for dark background */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- CTA Button --- */
.page-khuynmi__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
  color: #7A0E0E; /* Deep Red text for button for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuynmi__cta-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-khuynmi__cta-button--centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 350px; /* Limit width for centered button */
}

.page-khuynmi__cta-button--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

/* --- Dark Background Sections --- */
.page-khuynmi__dark-bg {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom text color for dark background */
  box-shadow: none; /* Remove shadow for dark sections */
}

.page-khuynmi__dark-bg .page-khuynmi__section-title {
  color: #FFD86A; /* Gold title on dark background */
}

.page-khuynmi__dark-bg .page-khuynmi__text-block,
.page-khuynmi__dark-bg .page-khuynmi__list-description,
.page-khuynmi__dark-bg .page-khuynmi__list-title {
  color: #FFF5E1;
}

.page-khuynmi__dark-bg .page-khuynmi__text-block a,
.page-khuynmi__dark-bg .page-khuynmi__list-item a {
  color: #F4D34D; /* Gold links on dark background */
  text-decoration: underline;
}

.page-khuynmi__dark-bg .page-khuynmi__text-block a:hover,
.page-khuynmi__dark-bg .page-khuynmi__list-item a:hover {
  color: #FFCC66;
}


/* --- Featured Promotions Grid --- */
.page-khuynmi__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-khuynmi__promotion-card {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1; /* Text Main color */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-khuynmi__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-khuynmi__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-khuynmi__promotion-card .page-khuynmi__card-title {
  font-size: 1.6em;
  color: #FFD86A; /* Gold title for cards */
  padding: 20px 20px 10px;
  margin: 0;
  font-weight: bold;
}

.page-khuynmi__promotion-card .page-khuynmi__card-description {
  font-size: 1em;
  padding: 0 20px 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-khuynmi__promotion-card .page-khuynmi__cta-button {
  margin: 0 20px 20px;
  padding: 10px 20px;
  font-size: 1em;
  align-self: flex-start; /* Align button to start within card */
  color: #7A0E0E; /* Deep Red text for button */
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

/* --- How to Claim Section --- */
.page-khuynmi__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuynmi__steps-list .page-khuynmi__list-item {
  background-color: #fdfdfd;
  border-left: 5px solid #C91F17;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-khuynmi__steps-list .page-khuynmi__list-title {
  font-size: 1.4em;
  color: #C91F17;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuynmi__steps-list .page-khuynmi__list-description {
  font-size: 1em;
  color: #555555;
}

.page-khuynmi__steps-list .page-khuynmi__list-description a {
  color: #E53935; /* Accent color for links */
  text-decoration: underline;
}

.page-khuynmi__steps-list .page-khuynmi__list-description a:hover {
  color: #C91F17;
}

/* --- Terms & Conditions Section --- */
.page-khuynmi__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-khuynmi__terms-list .page-khuynmi__list-item {
  background-color: #D32F2F; /* Card BG color for list items */
  border-left: 5px solid #F2B544; /* Gold border */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-khuynmi__terms-list .page-khuynmi__list-title {
  font-size: 1.4em;
  color: #FFD86A; /* Gold title for list items */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-khuynmi__terms-list .page-khuynmi__list-description {
  font-size: 1em;
  color: #FFF5E1; /* Light text for dark background */
}

.page-khuynmi__terms-list .page-khuynmi__list-description a {
  color: #F4D34D; /* Gold links on dark background */
  text-decoration: underline;
}

.page-khuynmi__terms-list .page-khuynmi__list-description a:hover {
  color: #FFCC66;
}

/* --- FAQ Section --- */
.page-khuynmi__faq-list {
  margin-top: 30px;
}

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

.page-khuynmi__faq-item[open] {
  border-color: #C91F17;
}

.page-khuynmi__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #C91F17;
  cursor: pointer;
  background-color: #fefefe;
  transition: background-color 0.3s ease;
  list-style: none; /* For details tag */
}

.page-khuynmi__faq-question:hover {
  background-color: #fff0f0;
}

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

.page-khuynmi__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E53935;
  transition: transform 0.3s ease;
}

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

.page-khuynmi__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
}

/* --- Images responsiveness --- */
.page-khuynmi img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-khuynmi__section-title {
    font-size: 2em;
  }
  .page-khuynmi__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-khuynmi__section {
    padding: 40px 15px;
  }
  .page-khuynmi__hero-content {
    padding: 30px 15px 40px;
  }
  .page-khuynmi__main-title {
    font-size: clamp(2em, 8vw, 3em);
  }
  .page-khuynmi__hero-description {
    font-size: 1em;
  }
  .page-khuynmi__cta-button {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  .page-khuynmi__promotion-grid {
    grid-template-columns: 1fr;
  }
  .page-khuynmi__promotion-card .page-khuynmi__card-title {
    font-size: 1.4em;
  }
  .page-khuynmi__promotion-card .page-khuynmi__card-description {
    font-size: 0.95em;
  }
  .page-khuynmi__steps-list .page-khuynmi__list-title,
  .page-khuynmi__terms-list .page-khuynmi__list-title {
    font-size: 1.2em;
  }
  .page-khuynmi__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile specific image, video, button responsiveness */
  .page-khuynmi img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuynmi__section,
  .page-khuynmi__card,
  .page-khuynmi__container,
  .page-khuynmi__promotion-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Reset padding for container within section to avoid double padding */
  .page-khuynmi__section > .page-khuynmi__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-khuynmi__hero-section {
    padding-top: 10px !important;
  }

  /* Button responsiveness */
  .page-khuynmi__cta-button,
  .page-khuynmi a[class*="button"],
  .page-khuynmi a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-khuynmi__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-khuynmi__section-title {
    font-size: 1.8em;
  }
  .page-khuynmi__hero-content {
    padding: 20px 10px 30px;
  }
  .page-khuynmi__main-title {
    font-size: clamp(1.8em, 10vw, 2.5em);
  }
  .page-khuynmi__cta-button {
    font-size: 1em;
    padding: 10px 20px;
  }
}

/* Ensure no filter is used on images */
.page-khuynmi img {
  filter: none !important;
}

/* Content area image size lower limit check */
.page-khuynmi .page-khuynmi__hero-image,
.page-khuynmi .page-khuynmi__card-image {
  /* These are large images, so their display size will be > 200px.
     No explicit width/height < 200px is set here. */
}