/* style/promotions.css */

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF; /* White text on primary background */
  text-align: center;
  overflow: hidden; /* Prevent image overflow */
  min-height: 500px;
}

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

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

.page-promotions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover the entire area */
  opacity: 0.3; /* Subtle background image */
  position: absolute;
  top: 0;
  left: 0;
}

/* General Section Styling */
.page-promotions__section {
  padding: 80px 20px;
  text-align: center;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Primary color for titles on light background */
}

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

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

.page-promotions__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
}

.page-promotions__card--dark {
  background-color: #26A9E0; /* Primary color for dark cards */
  color: #FFFFFF; /* White text on dark cards */
}

.page-promotions__card--dark .page-promotions__card-title {
  color: #FFFFFF;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Primary color for card titles on light background */
}

.page-promotions__card--dark .page-promotions__card-title {
  color: #FFFFFF; /* White titles on dark cards */
}

.page-promotions__card-text {
  flex-grow: 1; /* Allow text to take up available space */
  margin-bottom: 20px;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
}

.page-promotions__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0; /* Primary color for secondary action */
  border: 2px solid #26A9E0;
}

.page-promotions__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Background colors for sections */
.page-promotions__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-promotions__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #FFFFFF; /* White titles on dark background */
}

.page-promotions__dark-bg .page-promotions__section-description {
  color: #f0f0f0;
}

/* Event Cards */
.page-promotions__event-card {
  display: flex;
  align-items: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  overflow: hidden;
  text-align: left;
  color: #333333;
}

.page-promotions__event-image {
  width: 40%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__event-content {
  padding: 30px;
  width: 60%;
}

.page-promotions__event-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__event-text {
  margin-bottom: 20px;
}

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

.page-promotions__step-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-promotions__step-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-promotions__step-text {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Terms & Conditions List */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__terms-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: #FFFFFF;
  font-size: 1.05em;
}

.page-promotions__terms-item a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-promotions__terms-item a:hover {
  text-decoration: none;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f9f9f9;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #26A9E0;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-promotions__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

.page-promotions__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

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

  .page-promotions__event-card {
    flex-direction: column;
  }

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

  .page-promotions__event-image {
    height: 300px;
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is applied for mobile */
  .page-promotions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-promotions__card-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__event-card,
  .page-promotions__step-item,
  .page-promotions__terms-list,
  .page-promotions__faq-list,
  .page-promotions__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Images responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Buttons responsive */
  .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;
  }

  .page-promotions__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
  }

  .page-promotions__event-image {
    height: auto;
  }

  .page-promotions__event-content {
    padding: 20px;
  }

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