/* style/promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --background-light: #FFFFFF;
  --background-dark: #26A9E0;
  --login-color: #EA7C07;
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Ensure it doesn't exceed original size */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  max-width: 800px;
  color: var(--text-light);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-promotions__hero-description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--text-light);
}

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

.page-promotions__btn {
  display: inline-block;
  padding: 12px 25px;
  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; /* Break long words */
  max-width: 100%;
  box-sizing: border-box;
}

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

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

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

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

.page-promotions__btn--small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-promotions__btn--large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

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

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

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-promotions__intro-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-promotions__types-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__types-section .page-promotions__section-title {
  color: var(--text-light);
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
  height: 100%;
  box-sizing: border-box;
}

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

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-promotions__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__terms-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-promotions__accordion-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f9f9f9;
  user-select: none;
}

.page-promotions__accordion-question .page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__accordion-item.active .page-promotions__accordion-question .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 25px;
}

.page-promotions__accordion-item.active .page-promotions__accordion-answer {
  max-height: 500px; /* Sufficiently large to show content */
  padding-bottom: 25px;
}

.page-promotions__accordion-answer p {
  font-size: 1rem;
  color: var(--text-dark);
  margin: 0;
}

/* Details/Summary specific styles for native FAQ */
.page-promotions__faq-item[open] .page-promotions__faq-question .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-item summary {
  list-style: none;
}

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

.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 15px 25px 25px;
  max-height: none; /* Let browser handle height when open */
  transition: none; /* No JS transition for native details */
}

.page-promotions__guide-section {
  background-color: #f5f5f5;
  color: var(--text-dark);
}

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

.page-promotions__step-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  box-sizing: border-box;
}

.page-promotions__step-image {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-promotions__step-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-promotions__why-choose-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-promotions__why-choose-section .page-promotions__section-title {
  color: var(--text-light);
}

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

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  box-sizing: border-box;
  color: var(--text-light);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 100px;
  min-height: 100px;
}

.page-promotions__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-promotions__feature-text {
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-promotions__faq-section {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-promotions__cta-final-section {
  background-color: var(--background-dark);
  color: var(--text-light);
  text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title {
  color: var(--text-light);
}

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

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

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }

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

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

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 30px;
  }

  .page-promotions__hero-image {
    height: 300px; /* Adjust height for smaller screens */
  }

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

  .page-promotions__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__grid, .page-promotions__steps-grid, .page-promotions__features-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card-image, .page-promotions__step-image, .page-promotions__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset;
    min-height: unset;
  }

  .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__accordion-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__accordion-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-promotions__accordion-answer {
    padding: 0 20px;
  }

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

  .page-promotions__cta-final-section .page-promotions__btn {
    width: auto !important; /* Allow button to shrink if text is short */
    max-width: 100% !important;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
  }

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

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