/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

/* Fixed navigation bar spacing for content below */
.page-promotions__hero-section {
  /* Hero section is at the very top, so no explicit padding-top needed for fixed header interaction */
  /* It will naturally push content down */
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background: #1A202C;
}

.page-promotions__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-promotions__hero-image {
  width: 100%;
  margin: 0;
}

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

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

/* Section Headings */
.page-promotions__main-heading {
  font-size: 38px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-promotions__section-heading {
  font-size: 32px;
  color: #FFD700;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 600;
  line-height: 1.3;
}

/* Paragraphs */
.page-promotions__paragraph {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Text Links */
.page-promotions__text-link {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

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

/* Buttons */
.page-promotions__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-promotions__btn-primary {
  display: inline-block;
  background: #FFD700;
  color: #1A202C;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-promotions__btn-secondary {
  display: inline-block;
  background: #1A202C;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

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

/* Section backgrounds and text colors */
.page-promotions__dark-section {
  background: #1A202C;
  color: #ffffff;
}

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

.page-promotions__light-bg .page-promotions__section-heading,
.page-promotions__light-bg .page-promotions__card-title {
  color: #1A202C;
}

.page-promotions__light-bg .page-promotions__highlight {
  color: #1A202C;
}

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

.page-promotions__card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-promotions__card-image-wrapper {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  overflow: hidden;
}

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

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #1A202C;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: justify;
}

.page-promotions__card .page-promotions__btn-secondary {
  align-self: flex-start;
  margin-top: auto; /* Push button to the bottom */
}

/* Lists */
.page-promotions__list,
.page-promotions__numbered-list,
.page-promotions__advantages-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding: 0;
}

.page-promotions__numbered-list {
  list-style-type: decimal;
}

.page-promotions__list-item {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

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

.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 from blocking click event */
  color: #1A202C;
}

.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 event */
  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(180deg);
}

.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 25px;
  opacity: 0;
  background: #ffffff;
  color: #333333;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, large enough value */
  padding: 20px 25px !important;
  opacity: 1;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #333333;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__container {
    padding: 30px 15px;
  }
  .page-promotions__main-heading {
    font-size: 32px;
  }
  .page-promotions__section-heading {
    font-size: 28px;
  }
  .page-promotions__paragraph,
  .page-promotions__list-item,
  .page-promotions__card-text {
    font-size: 16px;
  }
  .page-promotions__card-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* Mobile image responsive adaptation */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__introduction-section,
  .page-promotions__offers-section,
  .page-promotions__terms-section,
  .page-promotions__guide-section,
  .page-promotions__faq-section,
  .page-promotions__why-choose-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__container {
    padding: 20px 10px;
  }
  .page-promotions__main-heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-promotions__section-heading {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-promotions__paragraph,
  .page-promotions__list-item,
  .page-promotions__card-text {
    font-size: 15px;
  }
  .page-promotions__card-title {
    font-size: 18px;
  }
  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card-image-wrapper {
    height: 200px;
  }
  .page-promotions__card-content {
    padding: 20px;
  }
  .page-promotions__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-promotions__btn-secondary {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px 20px !important;
  }
  .page-promotions__list,
  .page-promotions__numbered-list,
  .page-promotions__advantages-list {
    margin-left: 20px;
  }
  .page-promotions__list-item {
    margin-bottom: 8px;
  }
}

/* Ensure contrast for specific elements in dark/light sections */
.page-promotions__dark-section .page-promotions__paragraph,
.page-promotions__dark-section .page-promotions__list-item {
  color: #ffffff;
}

.page-promotions__light-bg .page-promotions__paragraph,
.page-promotions__light-bg .page-promotions__list-item {
  color: #333333;
}

.page-promotions__light-bg .page-promotions__text-link {
  color: #1A202C;
}

.page-promotions__light-bg .page-promotions__text-link:hover {
  color: #000000;
}

.page-promotions__light-bg .page-promotions__btn-secondary {
  background: #FFD700;
  color: #1A202C;
  border-color: #FFD700;
}

.page-promotions__light-bg .page-promotions__btn-secondary:hover {
  background-color: #e6c200;
  color: #1A202C;
  border-color: #e6c200;
}