:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --card-bg: #D32F2F;
  --background-color: #B71C1C; /* Body background */
  --text-main-color: #FFF5E1;
  --border-color: #F2B544;
  --glow-color: #FFCC66;
  --gold-color: #F4D34D;
  --deep-red-color: #7A0E0E;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Main text color for the page */
  background-color: var(--background-color); /* Matches body background */
  line-height: 1.6;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  text-shadow: 0 0 10px var(--glow-color);
}

.page-promotions__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--deep-red-color);
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.page-promotions__hero-image img:hover {
  transform: scale(1.02);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--gold-color);
  text-shadow: 0 0 15px var(--glow-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #1a1a1a; /* Dark text on gold button for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  white-space: normal;
  word-wrap: break-word;
}

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

/* Intro Section */
.page-promotions__intro-section {
  background: var(--deep-red-color);
  padding: 60px 0;
  color: var(--text-main-color);
}

/* Promotion Types Section */
.page-promotions__promotion-types-section {
  background: var(--background-color);
  padding: 60px 0;
}

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

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

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

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

.page-promotions__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-promotions__card-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
  padding: 12px 20px;
  font-size: 17px;
  text-align: center;
}

/* Benefits Section */
.page-promotions__benefits-section {
  background: var(--deep-red-color);
  padding: 60px 0;
  color: var(--text-main-color);
}

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

.page-promotions__benefit-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent background for contrast */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--primary-color);
}

.page-promotions__benefit-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-promotions__benefit-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* Terms and Conditions Section */
.page-promotions__terms-section {
  background: var(--background-color);
  padding: 60px 0;
  color: var(--text-main-color);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__terms-list li {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 15px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--border-color);
}

.page-promotions__list-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-promotions__terms-list li p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* Claim Guide Section */
.page-promotions__claim-guide-section {
  background: var(--deep-red-color);
  padding: 60px 0;
  color: var(--text-main-color);
}

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  margin-top: 30px;
}

.page-promotions__guide-list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-left: 80px;
  border-left: 5px solid var(--border-color);
}

.page-promotions__guide-list li::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 20px;
  top: 25px;
  background: var(--gold-color);
  color: #1a1a1a;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.page-promotions__guide-list li p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
}

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

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

details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: var(--deep-red-color);
}

.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 10px 10px;
}

details.page-promotions__faq-item .page-promotions__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
}

/* Latest News Section */
.page-promotions__latest-news-section {
  background: var(--deep-red-color);
  padding: 60px 0;
  color: var(--text-main-color);
}

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

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

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

.page-promotions__blog-card img {
  width: 100%;
  height: 220px; /* Consistent height for blog images */
  object-fit: cover;
  display: block;
}

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

.page-promotions__blog-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-promotions__blog-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__blog-title a:hover {
  color: var(--glow-color);
}

.page-promotions__blog-date {
  font-size: 14px;
  color: rgba(255, 245, 225, 0.7);
  margin-bottom: 15px;
}

.page-promotions__blog-excerpt {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__read-more {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--text-main-color);
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  align-self: flex-start;
}

.page-promotions__read-more:hover {
  background: var(--primary-color);
  transform: translateX(5px);
}

.page-promotions__button-group {
  text-align: center;
  margin-top: 50px;
}

/* Dark background text */
.page-promotions__dark-section {
  color: var(--text-main-color);
}

/* Light background text */
.page-promotions__light-bg {
  color: var(--text-main-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 30px;
  }
  .page-promotions__hero-description {
    font-size: 17px;
  }
  .page-promotions__cta-button {
    padding: 14px 35px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

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

  .page-promotions__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .page-promotions__text-block,
  .page-promotions__card-description,
  .page-promotions__benefit-item p,
  .page-promotions__terms-list li p,
  .page-promotions__guide-list li p,
  .page-promotions__blog-excerpt {
    font-size: 15px;
  }

  .page-promotions__promo-card img {
    
  }

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__benefit-title {
    font-size: 19px;
  }

  .page-promotions__terms-list li,
  .page-promotions__guide-list li {
    padding: 20px;
    padding-left: 65px;
  }

  .page-promotions__guide-list li::before {
    width: 40px;
    height: 40px;
    font-size: 12px;
    left: 15px;
    top: 20px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px 20px;
  }

  .page-promotions__faq-qtext {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  .page-promotions__blog-card img {
    
  }

  .page-promotions__blog-title {
    font-size: 19px;
  }

  .page-promotions__read-more {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all button containers are responsive */
  .page-promotions__button-group,
  .page-promotions__cta-buttons,
  .page-promotions__promo-card .page-promotions__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__button-group .page-promotions__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .page-promotions__promo-card .page-promotions__btn-primary {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  .page-promotions__promo-card {
    padding-bottom: 0; /* Remove padding to make button take full width */
  }

  .page-promotions__promo-card .page-promotions__btn-primary {
    margin: 0;
    border-radius: 0 0 10px 10px;
    border: none;
    border-top: 1px solid var(--border-color);
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 24px;
  }
  .page-promotions__section-title {
    font-size: 22px;
  }
  .page-promotions__hero-description {
    font-size: 15px;
  }
  .page-promotions__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
}