/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không được thêm lại vào đây */
.page-promotions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Enforce image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  background-color: #f0f8ff; /* Light background for hero section */
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px; /* Space between image and content */
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above any potential background effects */
  padding: 0 15px;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size, not fixed large */
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promotions__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555555;
}

/* General Section Styling */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

/* Featured Promotions */
.page-promotions__featured-promotions {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-promotions__promotion-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

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

.page-promotions__card-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  overflow: hidden;
}

.page-promotions__card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #666666;
  margin-bottom: 25px;
}

/* Promotion Categories */
.page-promotions__promotion-categories {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background with brand color */
  color: #FFFFFF; /* White text for dark background */
}

.page-promotions__promotion-categories .page-promotions__section-title,
.page-promotions__promotion-categories .page-promotions__section-description {
  color: #FFFFFF; /* Ensure titles and descriptions are white */
}

.page-promotions__category-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: left;
}

.page-promotions__category-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-promotions__category-list li::before {
  content: '✔';
  color: #FFFFFF;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How to Claim */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: #f0f8ff; /* Light background */
}

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

.page-promotions__step-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-promotions__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #666666;
}

/* Terms & CTA */
.page-promotions__terms-cta {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background with brand color */
  color: #FFFFFF; /* White text for dark background */
}

.page-promotions__terms-cta .page-promotions__section-title,
.page-promotions__terms-cta .page-promotions__section-description {
  color: #FFFFFF; /* Ensure titles and descriptions are white */
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Contact CTA */
.page-promotions__contact-cta {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
}

/* Button Styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f8ff;
  color: #26A9E0;
  border-color: #26A9E0;
}

/* Special button for Login, using custom color */
.page-promotions__login-btn {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-promotions__login-btn:hover {
  background-color: #cc6a00;
  border-color: #cc6a00;
}

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

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

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

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

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

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

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__featured-promotions,
  .page-promotions__promotion-categories,
  .page-promotions__how-to-claim,
  .page-promotions__terms-cta,
  .page-promotions__contact-cta {
    padding: 60px 0;
  }

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

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

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

  .page-promotions__category-list {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-promotions__step-title {
    font-size: 1.2em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  /* Mobile responsive images/videos/buttons - IMPORTANT */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__card-image-wrapper,
  .page-promotions__container,
  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__cta-buttons,
  .page-promotions__promotion-card,
  .page-promotions__step-card,
  .page-promotions__category-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__login-btn,
  .page-promotions a[class*="button"],
  .page-promotions 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;
  }

  /* Specific padding for sections to account for overall mobile padding */
  .page-promotions__hero-content,
  .page-promotions__promotion-card .page-promotions__card-content,
  .page-promotions__step-card {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Color Contrast Enforcement - for light-bg and dark-bg sections */
.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
}

/* Ensure all links within content have good contrast */
.page-promotions a:not([class*="btn"]) {
  color: #26A9E0; /* Use brand color for links */
  text-decoration: underline;
}

.page-promotions a:not([class*="btn"]):hover {
  color: #1a8ccb;
}