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

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  background-color: var(--background-color-page);
}

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

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
  display: block;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-color-light);
  max-width: 800px;
}

.page-promotions__description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-color-light);
  margin-bottom: 20px;
}

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

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

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

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

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

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

.page-promotions__intro-section,
.page-promotions__featured-offers,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: var(--background-color-page);
  color: var(--text-color-dark);
}

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

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

.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-promotions__intro-section .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__text-link:hover {
  color: darken(var(--primary-color), 10%);
}

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

.page-promotions__offer-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 450px; /* Ensure cards have similar height */
}

.page-promotions__offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

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

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__card-title a {
  color: inherit;
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  text-decoration: underline;
}

.page-promotions__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__guide-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
}

.page-promotions__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
}

.page-promotions__guide-list li {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
  position: relative;
  padding-left: 60px;
}

.page-promotions__guide-list li strong {
  color: var(--text-color-light);
}

.page-promotions__guide-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--button-login-color);
  color: var(--text-color-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9em;
}

.page-promotions__guide-list li a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-promotions__guide-list li a:hover {
  color: lighten(var(--secondary-color), 10%);
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  font-size: 1.05em;
  line-height: 1.8;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__why-choose-us {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
}

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

.page-promotions__why-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions__why-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__why-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color-light);
}

.page-promotions__why-description {
  font-size: 0.95em;
  line-height: 1.6;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #eaf6ff;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-dark);
  animation: fadein 0.3s ease-out;
}

.page-promotions__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-promotions__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
}

.page-promotions__cta-section .page-promotions__btn-primary,
.page-promotions__cta-section .page-promotions__btn-secondary {
  margin: 10px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    max-width: 700px;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__hero-content {
    padding: 15px;
  }
  .page-promotions__main-title {
    font-size: 1.8em;
  }
  .page-promotions__description {
    font-size: 1em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions__cta-section .page-promotions__btn-primary,
  .page-promotions__cta-section .page-promotions__btn-secondary {
    margin: 5px 0;
  }

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

  .page-promotions__intro-section,
  .page-promotions__featured-offers,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__why-choose-us,
  .page-promotions__faq-section,
  .page-promotions__cta-section {
    padding: 40px 0;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__text-block,
  .page-promotions__card-description,
  .page-promotions__guide-list li,
  .page-promotions__terms-list li,
  .page-promotions__why-description,
  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    font-size: 1em;
  }
  .page-promotions__offer-card {
    min-height: auto;
  }
  .page-promotions__guide-list li {
    padding-left: 50px;
  }
  .page-promotions__guide-list li::before {
    left: 15px;
    width: 25px;
    height: 25px;
    font-size: 0.8em;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__why-icon {
    width: 80px;
    height: 80px;
  }

  /* Mobile specific image adaptation */
  .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 {
    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 already handles --header-offset */
  }

  /* Video (if any) responsive rules */
  .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;
  }

  /* Buttons responsive rules */
  .page-promotions__cta-button,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Dark background color contrast fix */
.page-promotions__dark-bg .page-promotions__text-block,
.page-promotions__dark-bg .page-promotions__why-description {
  color: var(--text-color-light);
}
.page-promotions__dark-bg .page-promotions__section-title {
  color: var(--text-color-light);
}

/* Light background color contrast fix */
.page-promotions__light-bg .page-promotions__text-block,
.page-promotions__light-bg .page-promotions__card-description {
  color: var(--text-color-dark);
}
.page-promotions__light-bg .page-promotions__section-title {
  color: var(--primary-color);
}