/* style/promo.css */
:root {
  --jiliok-primary: #F2C14E;
  --jiliok-secondary: #FFD36B;
  --jiliok-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --jiliok-card-bg: #111111;
  --jiliok-bg: #0A0A0A;
  --jiliok-text-main: #FFF6D6;
  --jiliok-border: #3A2A12;
  --jiliok-glow: #FFD36B;
}

/* Assume body background is dark from shared.css (var(--bg-color)) */
.page-promo {
  font-family: 'Arial', sans-serif;
  color: var(--jiliok-text-main); /* Light text for dark background */
  line-height: 1.6;
  background-color: var(--jiliok-bg); /* Explicitly set page background to match theme */
}

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

.page-promo__section {
  padding: 60px 0;
  text-align: center;
}

.page-promo__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;
  overflow: hidden;
  color: var(--jiliok-text-main);
}

.page-promo__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  overflow: hidden;
}

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

.page-promo__hero-content {
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 10; /* Ensure content is above image if any layering issue */
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  text-align: center;
}

.page-promo__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--jiliok-secondary);
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-promo__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promo__btn-primary {
  display: inline-block;
  background: var(--jiliok-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
  border: none;
  cursor: pointer;
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-promo__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--jiliok-secondary);
  border: 2px solid var(--jiliok-secondary);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.page-promo__btn-secondary:hover {
  background-color: var(--jiliok-secondary);
  color: var(--jiliok-bg);
  transform: translateY(-2px);
}

.page-promo__btn-large {
  padding: 18px 40px;
  font-size: 1.3rem;
}

.page-promo__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--jiliok-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promo__section-intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--jiliok-text-main);
}

.page-promo__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-promo__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-promo__content-grid--reverse .page-promo__text-block {
  order: 2;
}

.page-promo__content-grid--reverse .page-promo__image-block {
  order: 1;
}

.page-promo__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--jiliok-secondary);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promo__image-block {
  text-align: center;
}

.page-promo__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promo__card {
  background: var(--jiliok-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--jiliok-border);
  color: var(--jiliok-text-main);
}

.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

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

.page-promo__card-description {
  font-size: 1rem;
  color: var(--jiliok-text-main);
  margin-bottom: 20px;
}

.page-promo__faq-section {
  background-color: var(--jiliok-card-bg);
  padding: 60px 0;
}

.page-promo__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-promo__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--jiliok-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--jiliok-primary);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-promo__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--jiliok-secondary);
  transition: transform 0.3s ease;
}

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

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: var(--jiliok-text-main);
  font-size: 1rem;
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px 25px 25px;
}

.page-promo__faq-answer p {
  margin: 0;
}

.page-promo__cta-final {
  padding: 80px 0;
  background-color: var(--jiliok-bg);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-promo__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-promo__content-grid--reverse .page-promo__text-block {
    order: unset; /* Reset order for mobile */
  }
  .page-promo__content-grid--reverse .page-promo__image-block {
    order: unset;
  }
  .page-promo__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promo__section {
    padding: 40px 0;
  }
  .page-promo__main-title {
    font-size: 2.2rem;
  }
  .page-promo__hero-description {
    font-size: 1rem;
  }
  .page-promo__btn-primary, .page-promo__btn-secondary, .page-promo__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    font-size: 1rem !important;
  }
  .page-promo__hero-content .page-promo__btn-primary {
    max-width: 300px !important;
    margin: 0 auto;
  }
  .page-promo__text-block a[class*="btn"] {
    max-width: 250px !important;
    margin: 20px auto 0 auto;
  }
  .page-promo__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-promo__card {
    padding: 20px;
  }
  .page-promo__card-image {
    height: 160px;
  }
  .page-promo__section-title {
    font-size: 1.8rem;
  }
  .page-promo__section-intro {
    font-size: 0.95rem;
  }
  .page-promo__sub-title {
    font-size: 1.3rem;
  }
  .page-promo__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__hero-section,
  .page-promo__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promo__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-promo__hero-content {
    margin-top: 20px;
  }
  .page-promo__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-promo__faq-answer {
    padding: 0 20px;
  }
  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 15px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-promo__main-title {
    font-size: 1.8rem;
  }
  .page-promo__section-title {
    font-size: 1.6rem;
  }
  .page-promo__card-image {
    height: 140px;
  }
}