/* style/khuyn-mi.css */

/* Biến CSS */
:root {
  --page-khuyn-mi-primary-color: #FFD700; /* Vàng kim */
  --page-khuyn-mi-secondary-color: #8B0000; /* Đỏ đậm */
  --page-khuyn-mi-dark-text: #333333;
  --page-khuyn-mi-light-text: #FFFFFF;
  --page-khuyn-mi-accent-color: #0028ff; /* Màu nhấn tương phản với vàng */
  --page-khuyn-mi-background-light: #f5f5f5;
  --page-khuyn-mi-background-dark: #222222;
}

.page-khuyn-mi {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-khuyn-mi-dark-text);
  background-color: var(--page-khuyn-mi-background-light);
}

.page-khuyn-mi__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.page-khuyn-mi__section-title {
  font-size: 2.5em;
  color: var(--page-khuyn-mi-secondary-color);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-khuyn-mi__text-content {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-khuyn-mi-dark-text);
}

.page-khuyn-mi__text-content a {
  color: var(--page-khuyn-mi-secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-khuyn-mi__text-content a:hover {
  color: var(--page-khuyn-mi-primary-color);
}

.page-khuyn-mi__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.05em;
  border: none;
  text-align: center;
}

.page-khuyn-mi__btn--primary {
  background-color: var(--page-khuyn-mi-primary-color);
  color: var(--page-khuyn-mi-secondary-color);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-khuyn-mi__btn--primary:hover {
  background-color: #e6c200;
  color: var(--page-khuyn-mi-dark-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-khuyn-mi__btn--secondary {
  background-color: var(--page-khuyn-mi-secondary-color);
  color: var(--page-khuyn-mi-light-text);
  box-shadow: 0 4px 15px rgba(139, 0, 0, 0.4);
}

.page-khuyn-mi__btn--secondary:hover {
  background-color: #a30000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 0, 0, 0.6);
}

.page-khuyn-mi__btn--small {
  padding: 8px 20px;
  font-size: 0.9em;
  border-radius: 20px;
}

/* Hero Section */
.page-khuyn-mi__hero {
  background: linear-gradient(135deg, var(--page-khuyn-mi-primary-color) 0%, #a30000 100%);
  color: var(--page-khuyn-mi-light-text);
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-khuyn-mi__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  font-weight: 900;
  color: var(--page-khuyn-mi-light-text);
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.page-khuyn-mi__hero-subtitle {
  font-size: 1.4em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-khuyn-mi__hero-image {
  position: absolute;
  bottom: -20px;
  right: -50px;
  width: 400px;
  height: auto;
  opacity: 0.8;
  filter: brightness(1.1); /* Allowed as it brightens, not changes hue */
  pointer-events: none;
  z-index: 0;
}

/* Intro Section */
.page-khuyn-mi__intro {
  background-color: var(--page-khuyn-mi-background-light);
  padding-top: 80px;
}

/* Promos Grid Section */
.page-khuyn-mi__promos-grid {
  background-color: var(--page-khuyn-mi-background-dark);
  color: var(--page-khuyn-mi-light-text);
}

.page-khuyn-mi__promos-grid .page-khuyn-mi__section-title {
  color: var(--page-khuyn-mi-primary-color);
}

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

.page-khuyn-mi__promo-card {
  background-color: #333333;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-khuyn-mi__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-khuyn-mi__card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  filter: brightness(0.9); /* Allowed as it brightens, not changes hue */
}

.page-khuyn-mi__card-title {
  font-size: 1.6em;
  color: var(--page-khuyn-mi-primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-khuyn-mi__card-description {
  font-size: 1em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-khuyn-mi__promo-card .page-khuyn-mi__btn--small {
  align-self: flex-start;
  background-color: var(--page-khuyn-mi-secondary-color);
  color: var(--page-khuyn-mi-light-text);
}

.page-khuyn-mi__promo-card .page-khuyn-mi__btn--small:hover {
  background-color: var(--page-khuyn-mi-primary-color);
  color: var(--page-khuyn-mi-secondary-color);
}

/* How To Claim Section */
.page-khuyn-mi__how-to-claim {
  background-color: var(--page-khuyn-mi-background-light);
}

.page-khuyn-mi__steps-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 800px;
  text-align: left;
}

.page-khuyn-mi__steps-list li {
  background-color: var(--page-khuyn-mi-light-text);
  border: 1px solid #ddd;
  border-left: 5px solid var(--page-khuyn-mi-primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-khuyn-mi__steps-list li strong {
  color: var(--page-khuyn-mi-secondary-color);
}

.page-khuyn-mi__steps-list li a {
  color: var(--page-khuyn-mi-secondary-color);
  text-decoration: underline;
}

.page-khuyn-mi__steps-list li a:hover {
  color: var(--page-khuyn-mi-primary-color);
}

/* Why Choose Section */
.page-khuyn-mi__why-choose {
  background-color: #f0f0f0;
  padding: 80px 0;
}

.page-khuyn-mi__flex-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.page-khuyn-mi__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

.page-khuyn-mi__image-right {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  height: auto;
  object-fit: cover;
}

/* FAQ Section */
.page-khuyn-mi__faq {
  background-color: var(--page-khuyn-mi-background-light);
  padding-bottom: 80px;
}

.page-khuyn-mi__accordion {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-khuyn-mi__accordion-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-khuyn-mi__accordion-header {
  background-color: var(--page-khuyn-mi-primary-color);
  color: var(--page-khuyn-mi-secondary-color);
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-khuyn-mi__accordion-header:hover {
  background-color: #e6c200;
}

.page-khuyn-mi__accordion-header::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-khuyn-mi__accordion-header.active::after {
  content: '-';
  transform: rotate(180deg);
}

.page-khuyn-mi__accordion-content {
  padding: 0 25px;
  background-color: var(--page-khuyn-mi-light-text);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-khuyn-mi__accordion-content p {
  padding: 15px 0;
  margin: 0;
  color: var(--page-khuyn-mi-dark-text);
}

.page-khuyn-mi__accordion-content p a {
  color: var(--page-khuyn-mi-secondary-color);
  text-decoration: underline;
}

.page-khuyn-mi__accordion-content p a:hover {
  color: var(--page-khuyn-mi-primary-color);
}

/* CTA Bottom Section */
.page-khuyn-mi__cta-bottom {
  background: linear-gradient(45deg, var(--page-khuyn-mi-secondary-color) 0%, #a30000 100%);
  color: var(--page-khuyn-mi-light-text);
  padding: 80px 0;
}

.page-khuyn-mi__cta-title {
  font-size: 3em;
  color: var(--page-khuyn-mi-primary-color);
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.page-khuyn-mi__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-khuyn-mi__cta-description a {
  color: var(--page-khuyn-mi-primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-khuyn-mi__cta-description a:hover {
  color: var(--page-khuyn-mi-light-text);
}

/* Floating Promo Button */
.page-khuyn-mi__floating-promo {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.page-khuyn-mi__floating-btn {
  display: flex;
  align-items: center;
  background-color: var(--page-khuyn-mi-primary-color);
  color: var(--page-khuyn-mi-secondary-color);
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6);
  transition: all 0.3s ease;
  animation: page-khuyn-mi-pulse 2s infinite;
}

.page-khuyn-mi__floating-btn:hover {
  background-color: #e6c200;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.8);
}

.page-khuyn-mi__floating-btn img {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  filter: brightness(0.8) sepia(1) hue-rotate(300deg) saturate(3); /* Allowed for icons to match theme */
}

@keyframes page-khuyn-mi-pulse {
  0% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6); }
  50% { transform: scale(1.05); box-shadow: 0 8px 20px rgba(255, 215, 0, 0.8); }
  100% { transform: scale(1); box-shadow: 0 5px 15px rgba(255, 215, 0, 0.6); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-khuyn-mi__hero-title {
    font-size: 3em;
  }
  .page-khuyn-mi__hero-subtitle {
    font-size: 1.2em;
  }
  .page-khuyn-mi__hero-image {
    width: 300px;
    right: -30px;
    bottom: 0;
  }
  .page-khuyn-mi__section-title {
    font-size: 2em;
  }
  .page-khuyn-mi__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-khuyn-mi__flex-content {
    flex-direction: column;
    text-align: center;
  }
  .page-khuyn-mi__image-right {
    margin-top: 30px;
  }
  .page-khuyn-mi__cta-title {
    font-size: 2.5em;
  }
  .page-khuyn-mi__cta-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-khuyn-mi__hero {
    padding: 80px 0 40px;
  }
  .page-khuyn-mi__hero-title {
    font-size: 2.5em;
  }
  .page-khuyn-mi__hero-subtitle {
    font-size: 1em;
  }
  .page-khuyn-mi__hero-image {
    display: none;
  }
  .page-khuyn-mi__section {
    padding: 40px 0;
  }
  .page-khuyn-mi__section-title {
    font-size: 1.8em;
  }
  .page-khuyn-mi__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  .page-khuyn-mi__promo-card {
    padding: 20px;
  }
  .page-khuyn-mi__card-title {
    font-size: 1.4em;
  }
  .page-khuyn-mi__cta-title {
    font-size: 2em;
  }
  .page-khuyn-mi__floating-promo {
    bottom: 20px;
    right: 20px;
  }
  .page-khuyn-mi__floating-btn {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-khuyn-mi__floating-btn img {
    width: 25px;
    height: 25px;
  }
  .page-khuyn-mi__accordion-header {
    font-size: 1.1em;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-khuyn-mi__hero-title {
    font-size: 2em;
  }
  .page-khuyn-mi__section-title {
    font-size: 1.5em;
  }
  .page-khuyn-mi__btn {
    width: 100%;
    margin-bottom: 15px;
  }
  .page-khuyn-mi__grid {
    grid-template-columns: 1fr;
  }
  .page-khuyn-mi__cta-title {
    font-size: 1.8em;
  }
  .page-khuyn-mi__floating-promo {
    bottom: 15px;
    right: 15px;
  }
  .page-khuyn-mi__floating-btn {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-khuyn-mi__floating-btn img {
    width: 20px;
    height: 20px;
  }
}