/* style/promotions.css */

/* Custom Colors */
:root {
  --q99-bg-color: #08160F;
  --q99-card-bg: #11271B;
  --q99-text-main: #F2FFF6;
  --q99-text-secondary: #A7D9B8;
  --q99-border-color: #2E7A4E;
  --q99-glow-color: #57E38D;
  --q99-gold-color: #F2C14E;
  --q99-divider-color: #1E3A2A;
  --q99-deep-green: #0A4B2C;
  --q99-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions {
  color: var(--q99-text-main); /* Default text color for dark background */
  background-color: var(--q99-bg-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-spacing {
  padding: 60px 0;
}

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

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  margin-top: 30px;
  max-width: 900px;
}

.page-promotions__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--q99-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--q99-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Video Section */
.page-promotions__video-section {
  padding: 40px 0;
  padding-top: 10px; /* Small top padding */
  background-color: var(--q99-bg-color);
  text-align: center;
}

.page-promotions__video-container {
  width: 100%;
  max-width: 1000px; /* Desktop width for video */
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 10px;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

/* General Content */
.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--q99-text-main);
  text-align: center;
  margin-bottom: 20px;
}

.page-promotions__section-description {
  font-size: 1rem;
  color: var(--q99-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-promotions__sub-title {
  font-size: clamp(1.5rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--q99-text-main);
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-promotions__text-block {
  font-size: 1rem;
  color: var(--q99-text-secondary);
  margin-bottom: 20px;
}

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

.page-promotions__promotion-card {
  background-color: var(--q99-card-bg);
  border: 1px solid var(--q99-border-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__promotion-card-image {
  width: 100%;
  height: 250px;
  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: 1.4rem;
  font-weight: 600;
  color: var(--q99-text-main);
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  color: var(--q99-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  background: var(--q99-button-gradient);
  color: var(--q99-text-main);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Step List */
.page-promotions__step-list {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-promotions__step-item {
  position: relative;
  padding-left: 60px;
  margin-bottom: 30px;
  font-size: 1.05rem;
  color: var(--q99-text-secondary);
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--q99-deep-green);
  color: var(--q99-text-main);
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.2rem;
  border: 2px solid var(--q99-glow-color);
}

.page-promotions__step-item strong {
  color: var(--q99-text-main);
}

/* Benefits Section */
.page-promotions__benefits-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  flex: 1;
  min-width: 300px;
}

.page-promotions__benefits-item {
  background-color: var(--q99-card-bg);
  border: 1px solid var(--q99-border-color);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  color: var(--q99-text-secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__benefits-item strong {
  color: var(--q99-text-main);
  font-size: 1.1rem;
}

.page-promotions__benefits-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-promotions__faq-item {
  background-color: var(--q99-card-bg);
  border: 1px solid var(--q99-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  color: var(--q99-text-main);
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-item summary:hover {
  background-color: rgba(var(--q99-glow-color), 0.1);
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--q99-text-secondary);
  font-size: 0.95rem;
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__btn-primary {
  background: var(--q99-button-gradient);
  color: var(--q99-text-main);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--q99-glow-color);
  border: 2px solid var(--q99-glow-color);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(var(--q99-glow-color), 0.1);
  transform: translateY(-3px);
}

/* Final CTA Section */
.page-promotions__cta-final-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-promotions__cta-final-section .page-promotions__section-description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promotions__section-spacing {
    padding: 40px 0;
  }

  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__hero-title {
    font-size: 2.2rem;
  }

  .page-promotions__hero-subtitle {
    font-size: 0.95rem;
  }

  .page-promotions__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
  }

  .page-promotions__section-description {
    font-size: 0.9rem;
  }

  .page-promotions__sub-title {
    font-size: 1.3rem;
  }

  .page-promotions__text-block {
    font-size: 0.9rem;
  }

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

  .page-promotions__promotion-card-image {
    height: 200px;
  }

  .page-promotions__card-title {
    font-size: 1.2rem;
  }

  .page-promotions__card-text {
    font-size: 0.85rem;
  }

  .page-promotions__step-item {
    font-size: 0.95rem;
  }

  .page-promotions__benefits-content {
    flex-direction: column;
  }

  .page-promotions__benefits-item {
    padding: 15px;
  }

  .page-promotions__benefits-item strong {
    font-size: 1rem;
  }

  .page-promotions__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

  /* Mobile specific overrides for images, videos, buttons, and containers */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-promotions__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .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;
    text-align: center;
  }

  .page-promotions__hero-cta-group,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
}