/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-promotions__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
}

.page-promotions__section-title--white {
  color: #ffffff;
}

.page-promotions__sub-title {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__text-block {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #f0f0f0; /* Slightly off-white for readability */
}

.page-promotions__description {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-promotions__description--white {
  color: #ffffff;
}

.page-promotions__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-promotions__list--white {
  color: #ffffff;
}

.page-promotions__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 20px 60px; /* Small top padding, body handles header offset */
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: 20px;
  cursor: pointer;
}

.page-promotions__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1e87c2;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Brand color for text */
  border: 2px solid #26A9E0;
  margin-left: 15px;
}

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-promotions__btn-tertiary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
  padding: 10px 20px;
  margin-top: 15px;
}

.page-promotions__btn-tertiary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Promotions Categories Section */
.page-promotions__categories-section {
  padding: 60px 20px;
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Guide Section */
.page-promotions__guide-section {
  padding: 60px 20px;
  background-color: #1a1a1a; /* Another shade of dark for visual separation */
  color: #f0f0f0;
}

.page-promotions__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-image {
  width: 150px;
  height: 112px; /* Maintain aspect ratio (4:3) */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-promotions__step-text {
  font-size: 0.95rem;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Terms Section */
.page-promotions__terms-section {
  padding: 60px 20px;
  background-color: #0a0a0a; /* Darkest background */
  color: #ffffff;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 20px;
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

/* Conclusion Section */
.page-promotions__conclusion-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Brand color background for strong CTA */
  color: #ffffff;
  text-align: center;
}

.page-promotions__conclusion-section .page-promotions__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-promotions__conclusion-section .page-promotions__description {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-promotions__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 25px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-promotions__section-title {
    font-size: 2rem;
  }

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

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

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

  .page-promotions__hero-section {
    min-height: 450px;
    padding: 10px 15px 40px; /* Adjust padding for mobile */
  }

  .page-promotions__hero-content {
    padding: 20px;
    margin: 0 15px; /* Add horizontal margin */
  }

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

  .page-promotions__description {
    font-size: 1rem;
  }

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 0.95rem;
    margin-left: 0; /* Remove margin-left for stacked buttons */
    width: 100% !important; /* Ensure full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__btn-secondary {
    margin-top: 15px;
  }

  .page-promotions__button-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-promotions__container,
  .page-promotions__card-grid,
  .page-promotions__guide-steps,
  .page-promotions__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-promotions__step-image {
    width: 120px;
    height: 90px;
  }

  .page-promotions__step-title {
    font-size: 1.1rem;
  }

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

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

  /* Mobile image and video responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    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__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__video-section {
    padding-top: 10px !important;
  }

  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Content area image size limit */
  .page-promotions__hero-image,
  .page-promotions__card-image,
  .page-promotions__step-image {
    min-width: 200px !important; /* Enforce minimum size for content images */
    min-height: 150px !important; /* Adjust min-height as needed, e.g., 200px for square */
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

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

  .page-promotions__card-grid {
    gap: 20px;
  }
}