/* style/promotions.css */

/* Base styles */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

/* Sections */
.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__dark-bg {
  background-color: #002060;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__medium-bg {
  background-color: #FFD700;
  color: #333333;
}

.page-promotions__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: inherit;
}

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

/* Hero Section */
.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

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

.page-promotions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-promotions__btn-primary {
  background-color: #FFD700;
  color: #002060;
  border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
  background-color: #ffffff;
  color: #002060;
}

.page-promotions__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Promotions Grid */
.page-promotions__promotions-grid {
  padding-bottom: 80px;
}

.page-promotions__grid-container {
  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: #fefefe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.6em;
  margin-top: 0;
  margin-bottom: 15px;
  color: #002060;
  line-height: 1.3;
}

.page-promotions__card-title a {
  text-decoration: none;
  color: inherit;
}

.page-promotions__card-title a:hover {
  color: #FFD700;
}

.page-promotions__card-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* Why Choose Section */
.page-promotions__why-choose .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__why-choose .page-promotions__section-description {
  color: #f0f0f0;
}

.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.page-promotions__feature-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__feature-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #002060;
  cursor: pointer;
  background-color: #e9ecef;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #dee2e6;
}

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

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

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

/* Bottom CTA Section */
.page-promotions__cta-bottom {
  padding: 80px 20px;
}

.page-promotions__cta-bottom .page-promotions__cta-title {
  font-size: 3em;
  color: #002060;
  margin-bottom: 20px;
}

.page-promotions__cta-bottom .page-promotions__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    min-height: 600px;
  }
  .page-promotions__main-title {
    font-size: 3em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
  .page-promotions__card-title {
    font-size: 1.4em;
  }
  .page-promotions__feature-title {
    font-size: 1.6em;
  }
  .page-promotions__cta-bottom .page-promotions__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__hero-section {
    min-height: 500px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-promotions__main-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }
  .page-promotions__grid-container,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__promo-card,
  .page-promotions__feature-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__promo-image {
    height: 200px;
  }
  .page-promotions__card-content,
  .page-promotions__feature-item,
  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }
  .page-promotions__faq-question {
    font-size: 1.1em;
  }
  .page-promotions__cta-bottom .page-promotions__cta-title {
    font-size: 2em;
  }
  .page-promotions__cta-bottom .page-promotions__cta-description {
    font-size: 1em;
  }
  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all image containers are responsive */
  .page-promotions__hero-image-wrapper,
  .page-promotions__grid-container,
  .page-promotions__promo-card,
  .page-promotions__card-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Specific padding for sections to avoid content touching edges */
  .page-promotions__section,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding-left: 15px;
    padding-right: 15px;
  }
}