/* style/promotions.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần lặp lại ở đây */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --login-button-color: #EA7C07;
  --background-light: #f8f9fa; /* Light background for sections */
  --background-dark: #2a2a2a; /* Dark background for sections */
  --border-color: #e0e0e0;
}

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: var(--secondary-color); /* Default light background for the page main */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--background-dark); /* Dark background for hero */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height on desktop */
}

.page-promotions__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 30px 20px 0;
  color: var(--text-light); /* Light text on dark hero background */
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width for flex-wrap */
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for mobile */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  text-align: center;
}

.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: #208ac2; /* Darker primary on hover */
  border-color: #208ac2;
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* General Section Styles */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-dark);
}

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

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

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

.page-promotions__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
}

/* Introduction Section */
.page-promotions__introduction-section {
  padding-top: 40px;
}

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

.page-promotions__feature-list li {
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dark);
}

.page-promotions__feature-icon {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* Featured Promotions */
.page-promotions__featured-section .page-promotions__section-title {
  color: var(--text-light);
}

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

.page-promotions__promotion-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.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.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-width: unset;
  align-self: flex-start; /* Align to start of card content */
}

/* Promotion Categories */
.page-promotions__category-block {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
}

.page-promotions__category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-promotions__category-image {
  width: 100%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-promotions__btn-group-horizontal {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 25px;
}

/* VIP Section */
.page-promotions__vip-section .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__vip-section .page-promotions__text-block {
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__vip-section .page-promotions__btn-primary {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

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

.page-promotions__steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  font-size: 1.1rem;
  color: var(--text-dark);
  text-align: left;
}

.page-promotions__step-number {
  flex-shrink: 0;
  width: 35px;
  height: 35px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f0f8ff; /* Light background for question */
  border-bottom: 1px solid var(--border-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form an X */
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: var(--text-dark);
}

.page-promotions__faq-answer p {
  margin: 0;
}

/* Final CTA Section */
.page-promotions__final-cta-section .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__final-cta-section .page-promotions__text-block {
  color: var(--text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-promotions__final-cta-section .page-promotions__cta-buttons {
  margin-top: 0;
}

.page-promotions__btn-login {
  background-color: var(--login-button-color);
  border-color: var(--login-button-color);
  color: var(--text-light);
}

.page-promotions__btn-login:hover {
  background-color: #c06306;
  border-color: #c06306;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-promotions__hero-content {
    padding-top: 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .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;
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container,
  .page-promotions__category-block,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__container {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: 2rem;
    margin-bottom: 25px;
  }

  .page-promotions__category-title {
    font-size: 1.6rem;
  }

  .page-promotions__text-block,
  .page-promotions__feature-list li,
  .page-promotions__steps-list li,
  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    font-size: 1rem;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}