/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
  --login-button-color: #EA7C07;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--bg-light); /* Assuming body background is light */
}

.page-promotions__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom */
  text-align: center;
  background-color: var(--bg-dark); /* Brand color for hero */
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__main-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-light);
}

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

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  text-align: center;
  max-width: 100%;
}

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

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

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

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

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

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

.page-promotions__content-area {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
}

.page-promotions__content-area:nth-of-type(even) {
  flex-direction: row-reverse;
}

.page-promotions__text-block {
  flex: 1;
}

.page-promotions__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-promotions__section-title + .page-promotions__text-block {
  margin-top: 0; /* Adjust if first text block follows title */
}

.page-promotions__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-promotions__dark-bg {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--text-light);
}

.page-promotions__dark-bg p {
  color: var(--text-light);
}

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

.page-promotions__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-dark);
  background-color: var(--secondary-color);
  border-top: none;
}

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

  .page-promotions__hero-section {
    padding: 10px 15px 40px; /* Adjusted padding for mobile */
  }

  .page-promotions__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
  }

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

  .page-promotions__section {
    padding: 40px 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .page-promotions__content-area {
    flex-direction: column;
    gap: 30px;
  }

  .page-promotions__content-area:nth-of-type(even) {
    flex-direction: column;
  }

  .page-promotions__text-block,
  .page-promotions__image-wrapper {
    width: 100%;
    min-width: unset; /* Remove min-width for mobile */
  }

  .page-promotions__content-image,
  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-promotions__faq-section {
    padding: 40px 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

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