/* style/promotions.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Màu sắc cơ bản */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa; /* Assuming a light body background from shared.css */
  --login-color: #EA7C07; /* Màu cho nút Đăng nhập/Đăng ký */
  --black-color: #000000;
}

.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-light); /* Default background for main content */
}

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

.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;
}

.page-promotions__hero-content {
  max-width: 900px;
  width: 100%;
  text-align: center;
  padding: 40px 20px 0;
  box-sizing: border-box;
  color: var(--text-dark);
}

.page-promotions__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-promotions__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to container */
}

.page-promotions__btn-primary {
  background-color: var(--login-color); /* Sử dụng màu Đăng nhập */
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
  background-color: #d16b06; /* Darker shade of #EA7C07 */
  border-color: #d16b06; /* Darker shade of #EA7C07 */
}

.page-promotions__btn-secondary {
  background-color: var(--secondary-color);
  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 Styling */
.page-promotions__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: var(--secondary-color); /* Default white background for sections */
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__section:last-of-type {
  border-bottom: none;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__content-area {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-promotions__content-area--center {
  text-align: center;
}

.page-promotions__content-area p {
  margin-bottom: 15px;
}

.page-promotions__content-area a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-promotions__content-area a:hover {
  text-decoration: underline;
}

.page-promotions__list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-promotions__list-item {
  margin-bottom: 10px;
}

.page-promotions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* Promotions Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__promo-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

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

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-promotions__card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 20px;
  flex-grow: 1; /* Ensures description takes available space */
}

.page-promotions__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 20px;
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #1e87bb; /* Darker shade of #26A9E0 */
}

/* How to Claim Steps */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-promotions__step-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.page-promotions__step-item:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--background-light);
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #eaf7ff; /* Lighter shade of primary */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  font-size: 1.1em;
}

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

/* Styling for details tag */
.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

.page-promotions__faq-item summary {
  list-style: none; /* Remove default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

/* Bottom CTA Section */
.page-promotions__cta-bottom {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__cta-bottom .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__cta-bottom .page-promotions__description {
  color: var(--text-light);
  margin-bottom: 40px;
}

.page-promotions__cta-bottom .page-promotions__btn-primary {
  background-color: var(--login-color); /* Sử dụng màu Đăng nhập */
  border-color: var(--login-color);
}

.page-promotions__cta-bottom .page-promotions__btn-primary:hover {
  background-color: #d16b06; /* Darker shade of #EA7C07 */
  border-color: #d16b06; /* Darker shade of #EA7C07 */
}

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

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

/* Responsive styles */
@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  /* Containers for images, videos, buttons */
  .page-promotions__hero-image-wrapper,
  .page-promotions__section,
  .page-promotions__promo-grid,
  .page-promotions__promo-card,
  .page-promotions__content-area,
  .page-promotions__cta-buttons,
  .page-promotions__faq-list,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  /* Hero Section specific */
  .page-promotions__hero-section {
    padding: 10px 0 40px; /* Adjust padding for mobile */
  }

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

  .page-promotions__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
    margin-bottom: 15px;
  }

  .page-promotions__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Buttons */
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    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; /* Add padding to buttons themselves */
    padding-right: 15px;
  }

  /* Sections */
  .page-promotions__section {
    padding: 40px 15px;
  }

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

  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column for promo cards */
    gap: 20px;
  }

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

  .page-promotions__card-title {
    font-size: 1.2em;
    margin: 15px 15px 8px;
  }

  .page-promotions__card-description {
    padding: 0 15px;
  }

  .page-promotions__card-button {
    width: calc(100% - 30px);
    margin: 15px;
    padding: 10px 15px;
  }

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

  .page-promotions__faq-qtext {
    font-size: 1em;
  }

  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
  }

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

  /* Video section top padding, body already handles header offset */
  .page-promotions__video-section {
    padding-top: 10px !important;
  }
}