/* style/promotions.css */
:root {
  --primary-color: #0A192F;
  --secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f1f3f5;
  --border-color: #e0e0e0;
}

.page-promotions {
  color: var(--text-dark);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* Fixed navigation bar spacing */
.page-promotions__hero-intro-section {
  padding-top: 180px; /* Desktop: Adjust based on fixed header height */
}

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

.page-promotions__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

.page-promotions__subsection-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-promotions__white-text {
  color: var(--text-light);
}

.page-promotions__bold-text {
  font-weight: bold;
}

.page-promotions__gold-text {
  color: var(--secondary-color);
}

/* Hero Intro Section */
.page-promotions__hero-intro-section {
  background: linear-gradient(135deg, var(--primary-color), #2a416b);
  padding-bottom: 80px;
  text-align: center;
  color: var(--text-light);
}

.page-promotions__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-promotions__hero-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-promotions__light-bg {
  background-color: var(--background-light);
  padding: 60px 0;
}

.page-promotions__dark-bg {
  background-color: var(--primary-color);
  padding: 60px 0;
}

/* Content Images */
.page-promotions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-promotions__promo-card {
  background: var(--text-light);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-card-image {
  max-width: 100%; /* Ensure image fits card */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area, crop if necessary */
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

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

.page-promotions__promo-card p {
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
}

.page-promotions__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-1px);
}

.page-promotions__btn-secondary--gold {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.page-promotions__btn-secondary--gold:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-promotions__card-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: auto; /* Push buttons to bottom */
}

/* Checklist Styles */
.page-promotions__checklist {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__checklist li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-dark);
}

.page-promotions__checklist-icon {
  color: #28a745; /* Green checkmark */
  font-weight: bold;
  margin-right: 10px;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.page-promotions__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__tips-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  font-size: 17px;
  color: var(--text-light);
}

.page-promotions__tips-list .page-promotions__checklist-icon {
  color: var(--secondary-color); /* Gold lightbulb */
}

/* FAQ Section */
.page-promotions__faq-section {
  padding-bottom: 80px;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #f9f9f9;
  color: var(--text-dark);
  font-size: 15px;
  line-height: 1.7;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--text-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X for active */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 40px;
  }
  .page-promotions__section-title {
    font-size: 28px;
  }
  .page-promotions__subsection-title {
    font-size: 22px;
  }
  .page-promotions__promo-card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-intro-section {
    padding-top: 160px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__hero-title {
    font-size: 32px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
  }

  .page-promotions__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .page-promotions__section-title {
    font-size: 24px;
    margin-bottom: 30px;
    margin-top: 40px;
  }

  .page-promotions__subsection-title {
    font-size: 20px;
  }

  .page-promotions__light-bg, .page-promotions__dark-bg {
    padding: 40px 0;
  }

  .page-promotions__promo-grid, .page-promotions__featured-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__promo-card-image {
    height: 160px;
  }

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__promo-card p {
    font-size: 14px;
  }

  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    padding: 10px 20px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-promotions__checklist li, .page-promotions__tips-list li {
    font-size: 15px;
  }

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

  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  /* Mobile image responsive optimization */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}