/* style/promotions.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-background: #0a0a0a; /* From body background */
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --login-color: #EA7C07;
}

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

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--login-color); /* Using login color for primary action */
  color: var(--secondary-color);
  border: 2px solid var(--login-color);
}

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

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

.page-promotions__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

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

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

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

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section background */
}

.page-promotions__text-block {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: inherit;
}

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

.page-promotions__feature-item {
  background: rgba(var(--primary-color-rgb, 38, 169, 224), 0.1);
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: var(--dark-text-color);
}

.page-promotions__dark-bg .page-promotions__feature-item {
  background: rgba(255, 255, 255, 0.08);
  color: var(--light-text-color);
}

.page-promotions__feature-icon {
  width: 200px; /* Min size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-promotions__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

.page-promotions__feature-description {
  font-size: 1rem;
  color: inherit;
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-promotions__light-bg .page-promotions__promo-card {
  background: var(--secondary-color);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  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: 600;
  margin-bottom: 10px;
  color: inherit;
}

.page-promotions__card-description {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
  align-self: flex-start; /* Align button to start */
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-promotions__step-item {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--dark-text-color);
}

.page-promotions__step-number {
  width: 50px;
  height: 50px;
  line-height: 50px;
  background: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.page-promotions__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: inherit;
}

.page-promotions__step-description {
  font-size: 1rem;
  color: inherit;
}

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

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  overflow: hidden;
  color: var(--light-text-color);
}

.page-promotions__light-bg .page-promotions__faq-item {
  border-color: #e0e0e0;
  color: var(--dark-text-color);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  transition: background 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions__light-bg .page-promotions__faq-question {
  background: #f9f9f9;
}

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

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

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--light-text-color);
}

.page-promotions__light-bg .page-promotions__faq-answer {
  color: var(--dark-text-color);
}

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

/* Ensure links within FAQ answers are visible */
.page-promotions__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: darken(var(--primary-color), 10%);
}

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

  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

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

  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

  .page-promotions__container {
    padding: 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 25px;
  }

  .page-promotions__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

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

  .page-promotions__promo-image {
    height: 200px;
  }

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

  .page-promotions__card-description {
    font-size: 0.9rem;
  }

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

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

  .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__promo-card,
  .page-promotions__feature-item,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-promotions__hero-image-wrapper, .page-promotions__promo-card {
    padding-left: 0;
    padding-right: 0;
  }

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

  .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;
  }
}

/* Helper for darkening colors (simulate SASS darken) */
:root {
  --primary-color-rgb: 38, 169, 224; /* RGB for #26A9E0 */
  --login-color-rgb: 234, 124, 7; /* RGB for #EA7C07 */
}

/* Fallback for darken function - not direct CSS */
/* The darken() function is conceptual for AI to understand color manipulation. */
/* Actual CSS would need pre-calculated values or a CSS custom property approach */