/* style/promotions.css */

:root {
  --q99-primary-color: #26A9E0;
  --q99-secondary-color: #FFFFFF;
  --q99-login-color: #EA7C07;
  --q99-text-dark: #333333;
  --q99-text-light: #ffffff;
  --q99-bg-light: #FFFFFF;
  --q99-bg-dark-section: #26A9E0;
  --header-offset: 122px; /* Default for body padding, if not provided by shared */
}

/* Base styles for the page, assuming body has a dark background from shared.css */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--q99-text-light); /* Default text color for page content on dark body background */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  color: var(--q99-primary-color); /* Default for light backgrounds */
}

.page-promotions__description {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--q99-text-dark); /* Default for light backgrounds */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

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

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

.page-promotions__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--q99-text-light);
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--q99-secondary-color);
}

.page-promotions__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  line-height: 1.5;
  color: var(--q99-secondary-color);
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

.page-promotions__btn-tertiary {
  background-color: var(--q99-primary-color);
  color: var(--q99-secondary-color);
  border: 2px solid var(--q99-primary-color);
  padding: 10px 20px;
  font-size: 16px;
}

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

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

/* Overview Section */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: var(--q99-bg-light);
  color: var(--q99-text-dark);
}

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

/* Featured Promotions Section */
.page-promotions__featured-promotions {
  padding: 80px 0;
  background-color: var(--q99-bg-dark-section); /* Use primary color as dark background */
  color: var(--q99-text-light);
}

.page-promotions__featured-promotions .page-promotions__section-title {
  color: var(--q99-secondary-color);
}

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

.page-promotions__promo-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark bg */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__promo-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--q99-text-light);
}

.page-promotions__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: var(--q99-secondary-color);
}

.page-promotions__promo-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--q99-secondary-color);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--q99-bg-light);
  color: var(--q99-text-dark);
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--q99-primary-color);
}

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

.page-promotions__step-item {
  background-color: #f0f8ff; /* Light background for steps */
  border-left: 5px solid var(--q99-primary-color);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--q99-text-dark);
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--q99-primary-color);
}

.page-promotions__step-item p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--q99-text-dark);
}

.page-promotions__step-item a {
  color: var(--q99-primary-color);
  text-decoration: underline;
}

.page-promotions__step-item a:hover {
  color: darken(var(--q99-primary-color), 10%);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--q99-bg-dark-section);
  color: var(--q99-text-light);
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--q99-secondary-color);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  color: var(--q99-secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-item[open] > .page-promotions__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--q99-secondary-color);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--q99-secondary-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
  color: var(--q99-secondary-color);
}

/* CTA Banner Section */
.page-promotions__cta-banner {
  padding: 80px 0;
  background-color: var(--q99-bg-light);
  color: var(--q99-text-dark);
  text-align: center;
}

.page-promotions__cta-banner .page-promotions__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-promotions__cta-content {
  max-width: 800px;
  color: var(--q99-text-dark);
}

.page-promotions__cta-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--q99-primary-color);
}

.page-promotions__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--q99-text-dark);
}

.page-promotions__cta-image-wrapper {
  width: 100%;
  max-width: 600px;
}

.page-promotions__cta-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    max-width: 80%;
  }
}

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

  .page-promotions__hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 20px;
    max-width: 100%;
  }

  .page-promotions__hero-image-wrapper {
    max-height: 400px;
  }

  .page-promotions__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }

  .page-promotions__subtitle {
    font-size: clamp(16px, 3vw, 20px);
  }

  .page-promotions__overview-section,
  .page-promotions__featured-promotions,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__cta-banner {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

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

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

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary,
  .page-promotions__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* Mobile image responsiveness */
  .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__cta-buttons,
  .page-promotions__hero-image-wrapper,
  .page-promotions__cta-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  
  /* Ensure text on promo card is readable */
  .page-promotions__promo-description {
    font-size: 15px;
  }

  /* FAQ specific mobile adjustments */
  .page-promotions__faq-question {
    font-size: 16px;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(24px, 8vw, 32px);
  }

  .page-promotions__subtitle {
    font-size: clamp(15px, 4vw, 18px);
  }

  .page-promotions__cta-buttons {
    gap: 10px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary {
    font-size: 15px !important;
    padding: 10px 15px !important;
  }

  .page-promotions__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 30px;
  }

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

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

  .page-promotions__cta-title {
    font-size: clamp(24px, 6vw, 32px);
  }
}