/* style/promotions.css */
/* Body background is #0a0a0a (dark), so text should be light. */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --login-color: #EA7C07;
  --background-white: #FFFFFF;
  --background-dark: #0a0a0a;
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
  overflow: hidden;
  border-radius: 10px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: var(--secondary-color); /* Light text on dark background */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for responsive */
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-outline {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
}

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

.page-promotions__btn-primary:hover {
  background-color: #1e87bb; /* Darken primary color */
  border-color: #1e87bb;
}

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

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

.page-promotions__btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
}

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

.page-promotions__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-promotions__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--light-text-color);
}

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

.page-promotions__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--secondary-color); /* Light text on dark background */
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-promotions__section-description {
  font-size: 1em;
  color: var(--light-text-color);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-promotions__promo-card,
.page-promotions__step-card,
.page-promotions__advantage-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: var(--light-text-color); /* Light text on card background */
}

.page-promotions__promo-card-title,
.page-promotions__step-title,
.page-promotions__advantage-title {
  font-size: 1.5em;
  color: var(--primary-color); /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__promo-card-text,
.page-promotions__step-text,
.page-promotions__advantage-text {
  font-size: 0.95em;
  color: var(--light-text-color);
  margin-bottom: 20px;
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--light-text-color); /* Light text on FAQ card background */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color); /* Brand color for FAQ questions */
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--light-text-color);
  margin-left: 15px;
}

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

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: var(--light-text-color);
  line-height: 1.5;
}

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

/* Ensure summary marker is hidden for details tag */
.page-promotions__faq-item summary {
  list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

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

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

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-outline {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-promotions__section {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

  .page-promotions__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card,
  .page-promotions__step-card,
.page-promotions__advantage-card {
    padding: 25px;
  }

  .page-promotions__promo-card-title,
  .page-promotions__step-title,
  .page-promotions__advantage-title {
    font-size: 1.3em;
  }

  .page-promotions__content-image {
    margin: 30px auto;
  }

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

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

  /* Mobile image and container responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__advantages-grid,
  .page-promotions__faq-list,
  .page-promotions__promo-card,
  .page-promotions__step-card,
  .page-promotions__advantage-card,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding adjustment for container, as it's often the main wrapper */
  .page-promotions__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Resetting padding for direct children of container to ensure proper content alignment */
  .page-promotions__container > * {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Exception for grids inside container, they manage their own spacing */
  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__advantages-grid,
  .page-promotions__faq-list {
    padding-left: 0;
    padding-right: 0;
  }

  /* Video section top padding, shared.css body handles header offset */
  .page-promotions__hero-section {
    padding-top: 10px !important;
  }
}

/* Ensure content area images are at least 200px */
.page-promotions__content-area img,
.page-promotions__promo-card img,
.page-promotions__step-card img,
.page-promotions__advantage-card img {
  min-width: 200px;
  min-height: 200px;
}