/* style/promotions.css */
:root {
  --primary-color: #007bff; /* Deep Blue */
  --secondary-color: #ffc107; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f8f9fa;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
  --card-bg-light: #ffffff;
  --border-color: #2a2a2a;
}

/* 🚨 Fixed Nav Bar Spacing - Desktop */
.page-promotions__spacing-top {
  padding-top: 10px; /* Adjust based on actual fixed header height */
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from body, but reinforce */
}

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

.page-promotions__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-promotions__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-promotions__hero-section {
  padding: 80px 0 60px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:bg:kv99,khuyen_mai,hero_bg]');
  background-size: cover;
  background-position: center;
  border-bottom: 5px solid var(--secondary-color);
}

.page-promotions__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-light);
}

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

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-image {
  max-width: 80%;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
  padding-top: 60px; /* Ensure spacing for sections */
}

.page-promotions__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.page-promotions__current-offers {
  padding: 60px 0;
}

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

.page-promotions__offer-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__offer-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__offer-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions__offer-excerpt {
  font-size: 1em;
  color: var(--text-light);
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-promotions__offer-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}

.page-promotions__offer-button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__how-to-claim {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-promotions__step-item {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid var(--border-color);
}

.page-promotions__step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--bg-dark);
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin: -60px auto 20px; /* Position above card */
  border: 4px solid var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions__step-description {
  font-size: 1em;
  color: var(--text-light);
}

.page-promotions__step-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: var(--secondary-color);
}

.page-promotions__terms-conditions {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

.page-promotions__terms-list {
  list-style: disc;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 40px;
  color: var(--text-dark);
}

.page-promotions__terms-item {
  margin-bottom: 10px;
  line-height: 1.8;
}

.page-promotions__terms-item a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__terms-item a:hover {
  color: var(--secondary-color);
}

.page-promotions__fine-print {
  text-align: center;
  font-style: italic;
  margin-top: 30px;
  color: #666;
  font-size: 0.9em;
}

.page-promotions__why-choose {
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

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

.page-promotions__advantage-item {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-promotions__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-promotions__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  /* No filter to change color */
}

.page-promotions__advantage-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__advantage-text {
  font-size: 1em;
  color: var(--text-light);
}

.page-promotions__final-cta {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

/* 🚨 Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__offers-grid,
  .page-promotions__steps-list,
  .page-promotions__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile Spacing */
  .page-promotions__spacing-top {
    padding-top: 10px !important; /* Adjust for mobile fixed header */
  }

  .page-promotions__hero-section {
    padding: 60px 0 40px;
  }
  .page-promotions__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }
  .page-promotions__cta-button {
    width: 100%;
    max-width: 300px; /* Limit width to look better on very narrow screens */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal;
    word-wrap: break-word;
  }
  
  /* 🚨 Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-image {
    max-width: 95%;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    padding-top: 40px;
  }
  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__offers-grid,
  .page-promotions__steps-list,
  .page-promotions__advantages-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__offer-card,
  .page-promotions__step-item,
  .page-promotions__advantage-item {
    padding: 25px;
  }
  .page-promotions__offer-image {
    height: 180px;
    margin-bottom: 20px;
  }
  .page-promotions__offer-title {
    font-size: 1.4em;
  }
  .page-promotions__offer-excerpt {
    font-size: 0.95em;
  }
  .page-promotions__offer-button {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin: -50px auto 15px;
  }
  .page-promotions__step-title {
    font-size: 1.3em;
  }
  .page-promotions__step-description {
    font-size: 0.9em;
  }
  .page-promotions__terms-list {
    padding-left: 25px;
    font-size: 0.95em;
  }
  .page-promotions__advantage-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  .page-promotions__advantage-title {
    font-size: 1.3em;
  }
  .page-promotions__advantage-text {
    font-size: 0.9em;
  }
  
  /* 🚨 Ensure all containers containing images/buttons are responsive */
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__current-offers,
  .page-promotions__how-to-claim,
  .page-promotions__terms-conditions,
  .page-promotions__why-choose,
  .page-promotions__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Additional button responsive styles */
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  
  .page-promotions__cta-button {
    width: 100%; /* Force buttons to take full width of their container */
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
}