/* style/promotions.css */
.page-promotions {
  color: #ffffff; /* Text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 60px;
}

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

.page-promotions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-promotions__hero-content {
  z-index: 1;
  max-width: 900px;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Section Titles */
.page-promotions__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

/* Text Blocks */
.page-promotions__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

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

.page-promotions__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white background for cards */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(1, 116, 57, 0.5); /* Border with brand color */
}

.page-promotions__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-promotions__card-description {
  color: #f0f0f0;
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Buttons */
.page-promotions__btn-primary {
  display: inline-block;
  background: #017439; /* Brand green */
  color: #ffffff; /* White text for contrast */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-promotions__btn-primary:hover {
  background: #005a2e;
}

.page-promotions__btn-register,
.page-promotions__btn-login {
  display: inline-block;
  background: #C30808; /* Register/Login red */
  color: #000000; /* Black text for WCAG AA contrast on #C30808 (5.9:1) */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-promotions__btn-register:hover,
.page-promotions__btn-login:hover {
  background: #a30606;
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 50px;
  padding-bottom: 50px;
}

/* List styles */
.page-promotions__list {
  list-style: disc inside;
  color: #f0f0f0;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-promotions__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-promotions__list li strong {
  color: #017439;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(1, 116, 57, 0.5);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  background: #017439; /* Brand color for summary */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  color: #FFFFFF;
}

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
}

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

/* Details element specific styling */
details > summary {
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* Global image styles */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }
  .page-promotions__hero-title {
    font-size: 2.2em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-promotions__text-block,
  .page-promotions__list li,
  .page-promotions__card-description {
    font-size: 0.95em;
  }
  .page-promotions__card-title {
    font-size: 1.4em;
  }
  .page-promotions__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-register,
  .page-promotions__btn-login {
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-promotions__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image, video, button, and container responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
    margin-bottom: 10px; /* Add margin for stacked buttons */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container,
  .page-promotions__container,
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 1.8em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-register,
  .page-promotions__btn-login {
    padding: 10px 15px;
    font-size: 0.95em;
  }
}