/* style/promotions.css */

/* Root variables for consistent spacing and colors if needed, but primarily use BEM classes */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
  --gradient-button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-promotions {
  font-family: 'Arial', sans-serif; /* Or a suitable Vietnamese-friendly font */
  background-color: var(--color-background); /* Dark background */
  color: var(--color-text-main); /* Light text for contrast */
  line-height: 1.6;
  padding-bottom: 50px; /* Some padding at the bottom */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden; /* Ensure no overflow */
  background-color: var(--color-deep-green); /* Fallback background */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1; /* Ensure image is below text if text were to overlap */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, may crop */
  filter: brightness(0.7); /* Slightly darken image for better text contrast if needed, but not changing color */
}

.page-promotions__hero-content {
  position: relative; /* Relative positioning for normal flow */
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over the image if desired, but not overlapping text */
  background: var(--color-card-bg); /* Darker background for content box */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-50px); /* Lift the content box visually */
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  color: var(--color-gold); /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-button {
  display: inline-block;
  background: var(--gradient-button);
  color: var(--color-text-main);
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* General Section Styling */
.page-promotions__section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__text-block {
  font-size: 1.1rem;
  color: var(--color-text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

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

.page-promotions__promotion-card {
  background-color: var(--color-card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-title {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Make description take available space */
}

.page-promotions__cta-button--small {
  padding: 10px 20px;
  font-size: 1rem;
  align-self: center; /* Center button in card */
  margin-top: auto; /* Push button to bottom */
}


/* How-To Steps */
.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__list-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: var(--color-card-bg);
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-promotions__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-right: 20px;
  line-height: 1;
  min-width: 50px;
  text-align: center;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-promotions__step-content .page-promotions__step-title {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__step-content p {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

/* Terms & Conditions */
.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 20px;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.page-promotions__terms-list li strong {
  color: var(--color-primary);
}


/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  background-color: var(--color-card-bg);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(var(--color-primary), 0.1); /* Lighter hover */
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

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


.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--color-text-secondary);
  /* max-height: 0; */ /* Not needed for native <details> */
  /* overflow: hidden; */ /* Not needed for native <details> */
  /* transition: max-height 0.4s ease-out, padding 0.4s ease-out; */ /* Not needed for native <details> */
}

/* For native <details> element, these JS accordion styles are overridden by browser */
/* .page-promotions__faq-item[open] .page-promotions__faq-answer { */
  /* max-height: 500px; */ /* Adjust as needed for content, for JS based accordion */
  /* padding-top: 10px; */
/* } */


/* Final CTA Section */
.page-promotions__cta-section {
  background: linear-gradient(135deg, var(--color-deep-green), var(--color-primary));
  padding: 80px 0;
  text-align: center;
  border-radius: 0; /* No radius on section */
}

.page-promotions__cta-container {
  max-width: 900px;
}

.page-promotions__cta-title {
  color: var(--color-gold);
  margin-bottom: 25px;
  text-shadow: 0 0 12px rgba(242, 193, 78, 0.6);
}

.page-promotions__cta-description {
  font-size: 1.15rem;
  color: var(--color-text-main);
  margin-bottom: 40px;
}

.page-promotions__cta-button--final {
  padding: 18px 35px;
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--final:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -60px;
    transform: translateY(-40px);
    padding: 30px 20px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  }

  .page-promotions__section {
    padding: 50px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }

  .page-promotions__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

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

@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px;
  }

  /* Mobile-specific image rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
  }

  /* Mobile-specific video rules (if any) - not present in this content, but for completeness */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Mobile-specific button rules */
  .page-promotions__cta-button,
  .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; /* Add horizontal padding to buttons */
    text-align: center;
  }

  /* Button containers mobile adaptation */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 15px; /* Space between wrapped buttons */
    display: flex;
    flex-direction: column; /* Stack buttons vertically by default */
  }

  .page-promotions__hero-content {
    margin-top: -40px;
    transform: translateY(-20px);
    padding: 25px 15px;
  }

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

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

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 1rem;
  }

  .page-promotions__promotion-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

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

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

  .page-promotions__card-description {
    font-size: 0.95rem;
  }

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

  .page-promotions__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .page-promotions__step-number {
    font-size: 2rem;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-promotions__step-content .page-promotions__step-title {
    font-size: 1.1rem;
  }

  .page-promotions__step-content p {
    font-size: 0.9rem;
  }

  .page-promotions__terms-list {
    padding-left: 20px;
  }

  .page-promotions__terms-list li {
    font-size: 0.95rem;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-promotions__faq-toggle {
    font-size: 1.3rem;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-promotions__cta-section {
    padding: 60px 0;
  }

  .page-promotions__cta-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

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

  .page-promotions__cta-button--final {
    padding: 15px 25px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    margin-top: -30px;
    transform: translateY(-15px);
    padding: 20px 10px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-promotions__hero-description {
    font-size: 0.85rem;
  }
  .page-promotions__cta-button {
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  .page-promotions__list-item {
    padding: 15px;
  }
  .page-promotions__step-number {
    font-size: 1.8rem;
  }
  .page-promotions__step-content .page-promotions__step-title {
    font-size: 1.05rem;
  }
  .page-promotions__step-content p {
    font-size: 0.88rem;
  }
  .page-promotions__faq-question {
    font-size: 0.95rem;
  }
  .page-promotions__faq-answer {
    font-size: 0.9rem;
  }
  .page-promotions__cta-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
  .page-promotions__cta-description {
    font-size: 0.95rem;
  }
  .page-promotions__cta-button--final {
    padding: 12px 20px;
    font-size: 1.05rem;
  }
}