/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --cta-button-color: #EA7C07; /* Màu cho nút Đăng ký/Login */
  --border-color: #e0e0e0;
  --bg-light-gray: #f9f9f9;
}

/* Base styles for the page content */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is white, so text is dark */
  background-color: var(--secondary-color);
  padding-bottom: 60px; /* Ensure space before footer */
}

/* 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;
  /* body padding-top handles header offset, this is just for internal spacing */
  padding-top: 10px;
  background: linear-gradient(135deg, var(--primary-color), #4ac0f2); /* Gradient background for the section */
  color: var(--text-light);
  overflow: hidden; /* Ensure content doesn't overflow */
}

.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%; /* Ensure container takes full width up to max-width */
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px; /* Limit content width for better readability */
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  color: var(--text-light);
  /* No fixed font-size, rely on clamp from shared or default browser size */
}

.page-promotions__intro-text {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--cta-button-color); /* Use specific CTA color */
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  background: #d46c06; /* Slightly darker for hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-promotions__section {
  padding: 50px 20px;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
}

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

.page-promotions__container {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%; /* For mobile responsiveness */
}

.page-promotions__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-promotions__introduction p,
.page-promotions__how-to-claim p,
.page-promotions__safety p,
.page-promotions__tips p {
  font-size: 1.05em;
  margin-bottom: 1em;
  text-align: justify;
}

/* Card Grid for Promotion Types */
.page-promotions__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-promotions__card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px; /* Space for button */
  text-align: center;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px 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;
  color: var(--primary-color);
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-promotions__card p {
  font-size: 1em;
  color: var(--text-dark);
  padding: 0 15px;
  flex-grow: 1; /* Make paragraphs take up available space */
  text-align: justify;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: calc(100% - 30px); /* Account for padding */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary:hover {
  background: #1f8ec4;
}

/* Ordered List Styles (How to Claim) */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__step-list li {
  background: var(--bg-light-gray);
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  text-align: justify;
}

.page-promotions__step-list li strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 5px;
  font-size: 1.1em;
}

/* Unordered List Styles (Tips) */
.page-promotions__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__tip-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  text-align: justify;
}

.page-promotions__tip-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
}

/* FAQ Section */
.page-promotions__faq {
  background-color: var(--bg-light-gray);
}

.page-promotions__faq-list {
  margin-top: 30px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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;
  color: var(--text-dark);
}

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(--bg-light-gray);
}

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

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

details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 20px;
  background: var(--bg-light-gray);
  border-radius: 0 0 8px 8px;
  color: var(--text-dark);
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-promotions__main-title {
    font-size: 2em; /* Adjust H1 for mobile */
  }

  .page-promotions__intro-text {
    font-size: 1em;
  }

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

  .page-promotions__section {
    padding: 30px 15px;
  }

  .page-promotions__container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

  .page-promotions__btn-primary {
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    padding: 10px 15px;
    font-size: 0.9em;
  }

  .page-promotions__step-list li {
    padding: 15px;
    font-size: 0.95em;
  }

  .page-promotions__tip-list li {
    font-size: 0.95em;
    padding-left: 25px;
  }

  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-qtext {
    font-size: 1em;
  }
  .page-promotions__faq-toggle {
    font-size: 1.5em;
    width: 25px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 15px;
  }

  /* Image responsiveness for all img tags */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* Ensure no filter on images */
.page-promotions img {
  filter: none !important;
}

/* Ensure content area images are not too small by CSS */
.page-promotions__container img,
.page-promotions__card-image {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-promotions__container img,
  .page-promotions__card-image {
    min-width: unset;
    min-height: unset;
  }
}