/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color-page: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --border-color: #e0e0e0;
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body padding-top handles header offset */
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

.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: 20px;
  margin-top: -100px; /* Adjust to pull content up slightly over the image, but not overlap text on image */
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
  border-radius: 10px;
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--primary-color);
  margin-bottom: 15px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  color: var(--text-color-dark);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border: 2px solid var(--primary-color);
}

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

.page-promotions__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--background-color-page);
  color: var(--text-color-dark);
}

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

.page-promotions__sub-section-title {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

.page-promotions__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-promotions__promo-card {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-promotions__list-items {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
  font-size: 1.1rem;
  color: var(--text-color-dark);
}

.page-promotions__list-items li {
  margin-bottom: 10px;
}

.page-promotions__list-items li strong {
  color: var(--primary-color);
}

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

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-dark);
}

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
}

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

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

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  margin-left: 10px;
  color: var(--primary-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-color-dark);
}

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

.page-promotions__cta-buttons--bottom {
  margin-top: 40px;
}

/* Dark background section for contrast */
.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-promotions__dark-section .page-promotions__main-title,
.page-promotions__dark-section .page-promotions__hero-description {
  color: var(--text-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

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

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

  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-promotions__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-promotions__sub-section-title {
    font-size: 1.5rem;
  }

  .page-promotions__text-block {
    font-size: 1rem;
  }

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

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__card-description {
    font-size: 0.95rem;
  }

  .page-promotions__list-items {
    font-size: 1rem;
    margin-left: 15px;
  }

  .page-promotions__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

  .page-promotions__faq-answer {
    padding: 15px;
    font-size: 0.95rem;
  }

  /* Mobile responsive images */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive video (if any) */
  .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,
  .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;
    overflow: hidden !important;
  }
  
  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Ensure images don't have filters */
.page-promotions img {
  filter: none !important;
}