/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Ensure it matches shared.css */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  background-color: #000080; /* Auxiliary color for a strong header */
  color: #ffffff;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

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

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

/* Video Section */
.page-promotions__video-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  text-align: center;
  background-color: var(--bg-dark); /* Dark background for consistency */
  color: #f0f0f0;
}

.page-promotions__video-section .page-promotions__section-title {
  color: #FFD700;
  margin-bottom: 40px;
}

.page-promotions__video-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-promotions__video {
  display: block;
  width: 100%;
  height: auto;
}

.page-promotions__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

/* General Content Area */
.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #ffffff; /* Light background for main content */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #000080;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 20px;
}

/* Grid Container for cards */
.page-promotions__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions__card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

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

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

/* Promotion List (alternating layout) */
.page-promotions__promo-list {
  margin-bottom: 60px;
}

.page-promotions__promo-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  background-color: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-promotions__promo-item:nth-child(even) {
  flex-direction: row-reverse;
  background-color: #fff8e1;
}

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

.page-promotions__promo-content {
  flex: 1;
  max-width: 50%;
}

.page-promotions__promo-title {
  font-size: 2em;
  color: #000080;
  margin-bottom: 15px;
}

.page-promotions__promo-text {
  font-size: 1.1em;
  color: #444444;
  margin-bottom: 20px;
}

.page-promotions__promo-features li {
  list-style-type: disc;
  margin-left: 20px;
  color: #555555;
  margin-bottom: 5px;
}

/* Detailed Promotions */
.page-promotions__detailed-promos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions__promo-detail-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px; /* Ensure cards have some height */
}

.page-promotions__promo-detail-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 15px;
}

.page-promotions__promo-detail-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
  margin-bottom: 60px;
}

.page-promotions__term-item {
  background-color: #f9f9f9;
  border-left: 5px solid #FFD700;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-promotions__term-title {
  font-size: 1.6em;
  color: #000080;
  margin-bottom: 10px;
}

.page-promotions__term-text {
  font-size: 1em;
  color: #555555;
}

/* How-to Guide */
.page-promotions__how-to-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.page-promotions__guide-step {
  background-color: #f0f8ff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
}

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

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

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

.page-promotions__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-promotions__faq-q-title {
  margin: 0;
  color: #000080;
  font-size: 1em;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  color: #FFD700;
  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;
  background-color: #f5f5f5;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-promotions__faq-a-text {
  color: #555555;
  font-size: 1em;
  margin: 0;
}

/* Call to Action Section */
.page-promotions__cta-section {
  background-color: #000080; /* Auxiliary color for a strong CTA */
  color: #ffffff;
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
}

.page-promotions__cta-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Buttons */
.page-promotions__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #000080;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD700;
}

.page-promotions__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  color: #000050;
}

.page-promotions__btn-secondary {
  display: inline-block;
  background-color: #000080;
  color: #FFD700;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #000080;
}

.page-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
  transform: translateY(-2px);
  border-color: #FFD700;
}

/* --- Responsive Design --- */

/* Tablet styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }

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

  .page-promotions__promo-item {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__promo-item:nth-child(even) {
    flex-direction: column;
  }

  .page-promotions__promo-image,
  .page-promotions__promo-content {
    max-width: 100%;
  }
}

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

  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  /* Ensure button containers also adapt */
  .page-promotions__cta-section .page-promotions__btn-primary {
    margin-left: auto;
    margin-right: auto;
  }

  .page-promotions__video-section {
    padding: 30px 15px;
  }

  .page-promotions__video,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__content-area {
    padding: 20px 15px;
  }

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

  .page-promotions__grid-container,
  .page-promotions__detailed-promos,
  .page-promotions__how-to-guide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-item {
    padding: 20px;
    gap: 20px;
  }

  .page-promotions__promo-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

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

  .page-promotions__card,
  .page-promotions__promo-detail-card,
  .page-promotions__guide-step,
  .page-promotions__term-item,
  .page-promotions__faq-item {
    padding: 20px;
  }

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

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

  .page-promotions__cta-title {
    font-size: 2em;
  }

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

  /* Image responsiveness for all images in content area */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-item,
  .page-promotions__detailed-promos,
  .page-promotions__terms-conditions,
  .page-promotions__how-to-guide,
  .page-promotions__faq-container,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}