/* style/promotions.css */

/* Base styles for the page-promotions scope */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
}

/* Ensure the first content module has top padding for fixed header */
.page-promotions__first-content-module {
  padding-top: 120px; /* Desktop padding */
}

@media (max-width: 768px) {
  .page-promotions__first-content-module {
    padding-top: 100px; /* Mobile padding */
  }
}

/* Sections */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

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

/* Hero Banner */
.page-promotions__hero-banner {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #1A202C, #2D3748);
  color: #ffffff;
}

.page-promotions__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  line-height: 1.2;
}

.page-promotions__hero-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

/* Section Titles and Intros */
.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
}

.page-promotions__section-intro {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section-outro {
  font-size: 16px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-promotions__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.page-promotions__btn--primary {
  background-color: #FFD700;
  color: #1A202C;
}

.page-promotions__btn--primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn--secondary {
  background-color: #1A202C;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-promotions__btn--secondary:hover {
  background-color: #2D3748;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn--link {
  background: none;
  color: #FFD700;
  padding: 10px 0;
  font-size: 16px;
  text-decoration: underline;
}

.page-promotions__btn--link:hover {
  color: #e6c200;
}

.page-promotions__btn--large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Text Highlight */
.page-promotions .text-highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Grid for Promotion Cards */
.page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__card {
  background-color: #2D3748;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-promotions__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-img {
  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: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-promotions__card-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

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

.page-promotions__step-card {
  background-color: #2D3748;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions__step-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.page-promotions__step-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-promotions__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-promotions__step-text {
  font-size: 15px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

/* List styles */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-promotions__list-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

/* FAQ container styles */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2D3748;
}

/* FAQ default state - answer hidden */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to contain any content */
  padding: 20px !important;
  opacity: 1;
  background: #1A202C;
  border-radius: 0 0 8px 8px;
}

/* Question styles */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #FFD700;
  border: 1px solid #FFD700;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #1A202C;
}

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

.page-promotions__faq-question:active {
  background: #d4b200;
}

/* Question title styles */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 tag from blocking click events */
  color: #1A202C;
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #1A202C;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #1A202C;
  transform: rotate(45deg); /* Rotate to form 'X' or '−' */
}

/* Advantages List */
.page-promotions__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-promotions__advantages-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__advantages-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-promotions__advantages-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-promotions__advantages-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #1A202C;
}

.page-promotions__advantages-text {
  font-size: 15px;
  color: #555555;
}

/* Call to Action Section */
.page-promotions__cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #FFD700, #e6c200);
  color: #1A202C;
}

.page-promotions__cta-title {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #1A202C;
}

.page-promotions__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 40px;
  }

  .page-promotions__section-title {
    font-size: 32px;
  }

  .page-promotions__cta-title {
    font-size: 36px;
  }

  .page-promotions__grid,
  .page-promotions__steps-grid,
  .page-promotions__advantages-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__hero-title {
    font-size: 32px;
  }

  .page-promotions__hero-description {
    font-size: 16px;
  }

  .page-promotions__section-title {
    font-size: 28px;
  }

  .page-promotions__section-intro,
  .page-promotions__section-outro {
    font-size: 15px;
  }

  .page-promotions__card-title {
    font-size: 20px;
  }

  .page-promotions__card-text {
    font-size: 14px;
  }

  .page-promotions__step-title {
    font-size: 18px;
  }

  .page-promotions__step-text {
    font-size: 14px;
  }

  .page-promotions__list-item {
    font-size: 14px;
    padding: 12px 15px;
  }

  .page-promotions__faq-question {
    padding: 15px;
  }
  
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }

  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__advantages-title {
    font-size: 18px;
  }

  .page-promotions__advantages-text {
    font-size: 14px;
  }

  .page-promotions__cta-title {
    font-size: 30px;
  }

  .page-promotions__cta-description {
    font-size: 16px;
  }

  .page-promotions__btn {
    padding: 12px 25px;
    font-size: 16px;
  }

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

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 28px;
  }

  .page-promotions__section-title {
    font-size: 24px;
  }

  .page-promotions__cta-title {
    font-size: 26px;
  }

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

  .page-promotions__card-img {
    height: 200px;
  }
}

/* Mobile image adaptation (MUST BE STRICTLY FOLLOWED) */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-banner,
  .page-promotions__step-card,
  .page-promotions__advantages-item,
  .page-promotions__faq-item,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Contrast Fixes */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}