/* style/promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #1a1a1a;
}

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

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

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

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

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, add small top padding here */
  overflow: hidden;
  min-height: 500px;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive font size */
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  margin: 10px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--login-color); /* Login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

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

/* Promotion Grid */
.page-promotions__promotion-overview .page-promotions__section-title,
.page-promotions__promotion-overview .page-promotions__section-description {
  color: var(--text-dark);
}

.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(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--text-dark);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  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.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-promotions__featured-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-promotions__featured-image {
  flex: 1;
  max-width: 50%;
  border-radius: 12px;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
}

.page-promotions__featured-text {
  flex: 1;
  max-width: 50%;
  color: var(--text-light);
}

.page-promotions__featured-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

/* Why Choose Section */
.page-promotions__why-choose .page-promotions__section-title {
  color: var(--text-dark);
}

.page-promotions__advantage-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__advantage-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: var(--text-dark);
}

.page-promotions__advantage-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__advantage-description {
  font-size: 0.95em;
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
  color: var(--text-dark);
}

.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 #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: none;
}

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

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
}

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

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

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
  .page-promotions__section-title {
    font-size: 2em;
  }

  .page-promotions__hero-section {
    min-height: 400px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

  .page-promotions__featured-content {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__featured-image,
  .page-promotions__featured-text {
    max-width: 100%;
  }
}

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

  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }

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

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

  /* Mobile image adaptation */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video adaptation - not used in this page, but included for robustness */
  .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;
  }
  
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button adaptation */
  .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;
    margin: 10px 0; /* Stack buttons vertically */
  }
  
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden !important;
  }

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

  .page-promotions__featured-content {
    gap: 20px;
  }

  .page-promotions__container,
  .page-promotions__section-description,
  .page-promotions__intro-text {
    padding: 0 15px;
  }

  .page-promotions__promotion-card,
  .page-promotions__advantage-item,
  .page-promotions__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

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