/* style/promotions.css */

:root {
  --page-promotions-primary-color: #11A84E;
  --page-promotions-secondary-color: #22C768;
  --page-promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-card-bg: #11271B;
  --page-promotions-background: #08160F;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border-color: #2E7A4E;
  --page-promotions-glow-color: #57E38D;
  --page-promotions-gold-color: #F2C14E;
  --page-promotions-divider-color: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
}

.page-promotions {
  background-color: var(--page-promotions-background); /* Deep Green */
  color: var(--page-promotions-text-main); /* Light Green/White */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--page-promotions-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__description {
  font-size: 1.1em;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-text-main);
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px var(--page-promotions-glow-color);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-promotions-glow-color);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-text-main);
  border: 2px solid var(--page-promotions-border-color);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-small {
  padding: 8px 20px;
  font-size: 0.95em;
}

.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--page-promotions-background);
  color: var(--page-promotions-text-main);
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--page-promotions-gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

.page-promotions__text-block {
  font-size: 1.05em;
  margin-bottom: 25px;
  color: var(--page-promotions-text-secondary);
  text-align: justify;
}

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

.page-promotions__promo-card {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--page-promotions-text-main);
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 1.6em;
  color: var(--page-promotions-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 0.95em;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__steps-list,
.page-promotions__conditions-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-promotions__steps-list li,
.page-promotions__conditions-list li {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--page-promotions-text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__steps-list li strong,
.page-promotions__conditions-list li strong {
  color: var(--page-promotions-gold-color);
  font-size: 1.1em;
  display: block;
  margin-bottom: 10px;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-promotions-gold-color);
  cursor: pointer;
  outline: none;
  user-select: none;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--page-promotions-text-secondary);
  border-top: 1px solid var(--page-promotions-divider-color);
  margin-top: 10px;
  padding-top: 15px;
}

.page-promotions__cta-section {
  background-color: var(--page-promotions-deep-green);
  padding: 80px 20px;
  text-align: center;
  color: var(--page-promotions-text-main);
  border-top: 2px solid var(--page-promotions-border-color);
  border-bottom: 2px solid var(--page-promotions-border-color);
}

.page-promotions__cta-title {
  font-size: clamp(2em, 3.5vw, 3em);
  color: var(--page-promotions-gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__cta-description {
  font-size: 1.2em;
  color: var(--page-promotions-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-promotions__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.page-promotions__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: var(--page-promotions-text-main);
  background: var(--page-promotions-button-gradient);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px var(--page-promotions-glow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--page-promotions-glow-color);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-promotions__promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-promotions__promo-card {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-promotions__content-area {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.95em;
  }

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

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

  .page-promotions__card-title {
    font-size: 1.4em;
  }

  .page-promotions__card-description {
    font-size: 0.9em;
  }

  .page-promotions__steps-list li,
  .page-promotions__conditions-list li {
    padding: 18px 20px;
    font-size: 0.95em;
  }

  .page-promotions__steps-list li strong,
  .page-promotions__conditions-list li strong {
    font-size: 1em;
  }

  .page-promotions__faq-item summary {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-promotions__faq-answer {
    font-size: 0.95em;
    padding: 0 20px 18px;
  }

  .page-promotions__cta-section {
    padding: 60px 15px;
  }

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

  .page-promotions__cta-description {
    font-size: 1em;
  }

  .page-promotions__floating-buttons {
    flex-direction: row;
    width: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 15px;
    background-color: var(--page-promotions-card-bg);
    border-top: 1px solid var(--page-promotions-border-color);
    justify-content: space-around;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  }

  .page-promotions__floating-btn {
    width: 48%; /* Adjust for 2 buttons */
    height: 45px;
    font-size: 1em;
    border-radius: 8px;
    box-shadow: none;
  }

  .page-promotions__floating-btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Ensure images and containers are fully responsive */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__hero-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }
  .page-promotions__cta-buttons {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-promotions__floating-buttons {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}