/* style/promotions.css */

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

.page-promotions {
  background-color: var(--af88-deep-green); /* Body background is dark, use light text */
  color: var(--af88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: var(--af88-text-main);
  margin-bottom: 20px;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-promotions__intro-text {
  font-size: 1.1em;
  color: var(--af88-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrapping for buttons */
  word-wrap: break-word; /* Allow text wrapping for buttons */
}

.page-promotions__btn-primary {
  background: var(--af88-button-gradient);
  color: var(--af88-text-main);
  border: none;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--af88-glow);
  border: 2px solid var(--af88-glow);
  padding: 10px 20px;
  border-radius: 5px;
}

.page-promotions__btn-secondary:hover {
  background-color: var(--af88-glow);
  color: var(--af88-deep-green);
}

.page-promotions__section {
  padding: 80px 0;
  text-align: center;
}

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

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--af88-gold);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--af88-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-promotions__card {
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--af88-text-main);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--af88-gold);
  margin-bottom: 10px;
}

.page-promotions__card-text {
  font-size: 0.95em;
  color: var(--af88-text-secondary);
}

.page-promotions__feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-promotions__feature-card {
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions__feature-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.page-promotions__feature-content {
  padding: 30px;
}

.page-promotions__feature-title {
  font-size: 1.8em;
  color: var(--af88-gold);
  margin-bottom: 15px;
}

.page-promotions__feature-text {
  font-size: 1em;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
}

.page-promotions__promo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-item {
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__promo-content {
  padding: 30px;
  width: 100%;
}

.page-promotions__promo-title {
  font-size: 1.6em;
  color: var(--af88-gold);
  margin-bottom: 10px;
}

.page-promotions__promo-text {
  font-size: 0.95em;
  color: var(--af88-text-secondary);
  margin-bottom: 20px;
}

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

.page-promotions__guide-item {
  background-color: var(--af88-card-bg);
  border: 1px solid var(--af88-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__guide-step-title {
  font-size: 1.4em;
  color: var(--af88-glow);
  margin-bottom: 10px;
}

.page-promotions__guide-step-text {
  font-size: 1em;
  color: var(--af88-text-secondary);
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: var(--af88-deep-green);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--af88-gold);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--af88-glow);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--af88-text-secondary);
  line-height: 1.6;
}

.page-promotions__download-cta-section {
  padding: 60px 0;
  background-color: var(--af88-card-bg);
}

/* Responsive Styles */
@media (min-width: 769px) {
  .page-promotions__feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-promotions__promo-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-promotions__promo-item {
    flex-direction: row;
    text-align: left;
  }
  .page-promotions__promo-image {
    width: 40%;
    height: auto;
  }
  .page-promotions__promo-content {
    width: 60%;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__hero-content {
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-promotions__intro-text {
    font-size: 1em;
  }

  .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;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .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__section {
    padding: 40px 0;
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__card-grid,
  .page-promotions__feature-grid,
  .page-promotions__promo-list {
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__feature-card,
  .page-promotions__promo-item {
    padding: 20px;
  }

  .page-promotions__card-image,
  .page-promotions__feature-image,
  .page-promotions__promo-image,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__feature-card,
  .page-promotions__promo-item {
    flex-direction: column;
  }

  .page-promotions__promo-image {
    height: 200px;
  }

  .page-promotions__promo-content {
    padding: 20px;
    width: 100%;
  }

  .page-promotions__guide-item,
  .page-promotions__faq-item {
    padding: 15px;
  }

  .page-promotions__guide-step-title,
  .page-promotions__faq-question {
    font-size: 1.1em;
  }

  .page-promotions__guide-step-text,
  .page-promotions__faq-answer {
    font-size: 0.9em;
  }

  /* Ensure all video elements and containers are responsive */
  .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;
  }
}