/* style/promotions.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-dark: #0a0a0a; /* From shared.css body background */
  --login-button-color: #EA7C07;
}

/* Base styles for page-promotions content */
.page-promotions {
  color: var(--text-color-light); /* Dark body background #0a0a0a, so use light text */
  background-color: var(--background-dark);
  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 {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-light);
}

/* Hero Section */
.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;
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0)); /* Gradient for text readability */
  color: var(--text-color-light);
  text-align: center;
  transform: translateY(0%); /* Ensure content is below image, not overlapping */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

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

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

.page-promotions__btn-primary:hover {
  background-color: #1a8ccb;
  border-color: #1a8ccb;
}

.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(--secondary-color);
}

.page-promotions__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Intro Section */
.page-promotions__intro-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

/* Featured Promos Section */
.page-promotions__featured-promos {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--text-color-light);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  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.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-promotions__card-list li {
  margin-bottom: 8px;
}

.page-promotions__cta-section {
  margin-top: 60px;
  padding: 40px;
  background: rgba(38, 169, 224, 0.2); /* Light primary color background */
  border-radius: 10px;
}

.page-promotions__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  font-weight: 500;
  color: var(--text-color-light);
}

/* Guide Section */
.page-promotions__guide-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

.page-promotions__guide-image {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
}

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

.page-promotions__guide-list li {
  background: rgba(255, 255, 255, 0.08); /* Lighter background for list items */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-color-light);
}

.page-promotions__guide-list li strong {
  color: var(--primary-color);
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

/* Terms Section */
.page-promotions__terms-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

.page-promotions__terms-list li {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid var(--primary-color);
  border-radius: 8px;
  font-size: 1.1em;
  color: var(--text-color-light);
}

.page-promotions__terms-list li strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--secondary-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none; /* For details/summary */
}

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

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

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

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

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  text-align: left;
  color: var(--text-color-light);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  padding-bottom: 80px;
}

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

  .page-promotions__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-promotions__hero-description {
    font-size: 1.1em;
  }

  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

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

  .page-promotions__hero-content {
    position: relative; /* Change to relative to avoid overlay issues on small screens */
    background: none;
    padding: 20px;
    gap: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 10px;
    position: static; /* Remove absolute positioning */
    transform: none;
  }

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    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; 
  }

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

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

  .page-promotions__promo-card {
    margin-bottom: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

  .page-promotions__card-title {
    font-size: 1.4em;
  }

  .page-promotions__guide-list li,
  .page-promotions__terms-list li,
  .page-promotions__faq-question,
  .page-promotions__faq-answer {
    font-size: 1em;
    padding: 15px;
  }

  /* Mobile image and video specific overrides */
  .page-promotions img {
    max-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 handles --header-offset, this is for visual spacing */
  }
  
  /* Video (if any) */
  .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;
  }
}

/* Ensure contrast for text on card backgrounds */
.page-promotions__dark-bg {
  color: var(--text-color-light); /* Deep dark background requires light text */
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white to ensure contrast on main dark body */
}

.page-promotions__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color); /* Button text always white for primary */
  border: 2px solid transparent;
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Button text uses primary color for contrast */
  border: 2px solid var(--primary-color);
}

/* Ensure no filter is used on images */
.page-promotions img {
  filter: none; /* Explicitly remove any potential filters */
}