/* style/khuyen-mai.css */
.page-khuyen-mai {
  background-color: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-khuyen-mai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  text-align: center;
}

.page-khuyen-mai__hero-image-wrapper {
  margin-bottom: 20px;
}

.page-khuyen-mai__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-khuyen-mai__hero-content {
  padding: 0 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFB04D; /* Glow color for main title */
}

.page-khuyen-mai__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-khuyen-mai__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-khuyen-mai__btn-full-width {
  width: 100%;
  display: block;
  text-align: center;
}

.page-khuyen-mai__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: #FFB04D; /* Glow color for section titles */
}

.page-khuyen-mai__description-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #FFF3E6;
  text-align: justify;
}

.page-khuyen-mai__promotions-overview-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
}

.page-khuyen-mai__guide-box {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #0D0E12;
}

.page-khuyen-mai__guide-grid {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-khuyen-mai__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 12px);
  text-decoration: none;
  color: #FFF3E6;
  text-align: center;
  display: block;
  position: relative;
  transition: transform 0.3s ease;
}

.page-khuyen-mai__guide-card:hover {
  transform: translateY(-10px);
}

.page-khuyen-mai__guide-card img {
  width: 100%;
  height: 350px; /* Fixed height for vertical image */
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #A84F0C; /* Border color */
  display: block;
}

.page-khuyen-mai__guide-card--pos-1, .page-khuyen-mai__guide-card--pos-5 {
  padding-top: 50px;
}

.page-khuyen-mai__guide-card--pos-2, .page-khuyen-mai__guide-card--pos-4 {
  padding-top: 25px;
}

.page-khuyen-mai__home-content-box {
  max-width: 90%;
  margin: 0 auto 40px auto;
  padding: 30px;
  border: 5px solid #A84F0C; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px #FFB04D; /* Glow color */
  background-color: #17191F; /* Card BG */
  height: 700px;
  overflow-y: auto;
  box-sizing: border-box;
}

.page-khuyen-mai__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar */
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-track {
  background: #0D0E12;
  border-radius: 10px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-thumb {
  background: #A84F0C;
  border-radius: 10px;
}

.page-khuyen-mai__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #FFA53A;
}

.page-khuyen-mai__content-main-title {
  font-size: clamp(1.6em, 3vw, 2.2em);
  font-weight: 600;
  margin-bottom: 25px;
  color: #FFA53A;
}

.page-khuyen-mai__content-subtitle {
  font-size: clamp(1.3em, 2.5vw, 1.8em);
  font-weight: 500;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #FF8C1A;
}

.page-khuyen-mai__home-content-box p,
.page-khuyen-mai__home-content-box li {
  color: #FFF3E6;
  margin-bottom: 10px;
  text-align: justify;
}

.page-khuyen-mai__home-content-box ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-khuyen-mai__home-content-box a {
  color: #FFA53A;
  text-decoration: none;
}

.page-khuyen-mai__home-content-box a:hover {
  text-decoration: underline;
}

.page-khuyen-mai__blog-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
}

.page-khuyen-mai__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.page-khuyen-mai__blog-card {
  background-color: #0D0E12;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid #A84F0C;
}

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

.page-khuyen-mai__blog-card-link {
  text-decoration: none;
  color: #FFF3E6;
  display: block;
}

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

.page-khuyen-mai__blog-card-content {
  padding: 15px;
}

.page-khuyen-mai__blog-card-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFA53A;
}

.page-khuyen-mai__blog-card-date {
  font-size: 0.9em;
  color: #A84F0C;
  margin-bottom: 10px;
}

.page-khuyen-mai__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFF3E6;
}

.page-khuyen-mai__blog-cta {
  text-align: center;
  margin-top: 40px;
}

.page-khuyen-mai__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-khuyen-mai__btn-secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12;
}

.page-khuyen-mai__faq-section {
  padding: 40px 0;
  margin-bottom: 40px;
  background-color: #0D0E12;
}

.page-khuyen-mai__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-khuyen-mai__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-khuyen-mai__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #FFA53A;
  font-size: 1.1em;
  position: relative;
  list-style: none;
}

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

.page-khuyen-mai__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FF8C1A;
  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 15px 20px;
  color: #FFF3E6;
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
}

.page-khuyen-mai__cta-section {
  padding: 50px 0;
  text-align: center;
  background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%);
  border-radius: 8px;
  margin-bottom: 40px;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-khuyen-mai__cta-section .page-khuyen-mai__description-text {
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* General image responsive styles */
.page-khuyen-mai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-khuyen-mai__container {
    padding: 15px;
  }

  .page-khuyen-mai__guide-card {
    flex: 0 0 calc(33.333% - 10px);
    max-width: calc(33.333% - 10px);
  }

  .page-khuyen-mai__home-content-box {
    max-width: 95%;
    padding: 25px;
  }

  .page-khuyen-mai__blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-khuyen-mai__hero-section {
    padding-top: 10px !important;
  }

  .page-khuyen-mai__main-title {
    font-size: 2em;
  }

  .page-khuyen-mai__intro-text {
    font-size: 1em;
  }

  .page-khuyen-mai__btn-primary,
  .page-khuyen-mai__btn-secondary,
  .page-khuyen-mai a[class*="button"],
  .page-khuyen-mai 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-khuyen-mai__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-khuyen-mai__guide-card {
    padding-top: 0 !important; /* Reset specific padding for mobile */
    flex: none;
    max-width: none;
  }

  .page-khuyen-mai__guide-card--pos-1, .page-khuyen-mai__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-khuyen-mai__guide-card--pos-3, .page-khuyen-mai__guide-card--pos-4, .page-khuyen-mai__guide-card--pos-5 {
    grid-column: span 2;
  }

  .page-khuyen-mai__guide-card img {
    width: 100%;
    height: auto; /* Allow height to adjust */
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
  }

  .page-khuyen-mai__home-content-box {
    max-width: 100%;
    height: auto; /* Full content visible */
    overflow-y: visible; /* No scrollbar */
    padding: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-khuyen-mai__home-content-inner {
    height: auto;
    overflow-y: visible;
    padding-right: 0; /* Remove scrollbar padding */
  }

  .page-khuyen-mai__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-khuyen-mai__blog-card-image {
    height: 150px;
  }

  .page-khuyen-mai__blog-card-title {
    font-size: 1.1em;
  }

  .page-khuyen-mai__section-title {
    font-size: 1.8em;
  }

  .page-khuyen-mai__content-main-title {
    font-size: 1.5em;
  }

  .page-khuyen-mai__content-subtitle {
    font-size: 1.2em;
  }

  .page-khuyen-mai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-khuyen-mai__hero-image-wrapper,
  .page-khuyen-mai__promotions-overview-section,
  .page-khuyen-mai__guide-box,
  .page-khuyen-mai__blog-section,
  .page-khuyen-mai__faq-section,
  .page-khuyen-mai__cta-section,
  .page-khuyen-mai__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-khuyen-mai__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-khuyen-mai__faq-answer {
    padding: 0 15px 12px 15px;
  }
}

@media (max-width: 480px) {
  .page-khuyen-mai__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__guide-grid {
    grid-template-columns: 1fr;
  }

  .page-khuyen-mai__guide-card--pos-1,
  .page-khuyen-mai__guide-card--pos-2,
  .page-khuyen-mai__guide-card--pos-3,
  .page-khuyen-mai__guide-card--pos-4,
  .page-khuyen-mai__guide-card--pos-5 {
    grid-column: span 1;
  }
}