/* style/promotions.css */

/* Base styles for the page content, considering body background is #121212 (dark) */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for content inside container */
  box-sizing: border-box;
}

/* Colors for sections based on light/dark background */
.page-promotions__dark-bg {
  background-color: rgba(38, 169, 224, 0.15); /* A subtle dark blue tint from brand color */
  color: #ffffff;
}

.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow from image */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 20px; /* Space between image and content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above any potential background */
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promotions__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't make button overflow */
  max-width: 100%; /* Ensure button is responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-promotions__cta-center {
  margin-top: 40px;
}

/* Section Titles and Text */
.page-promotions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-promotions__light-bg .page-promotions__section-title {
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-promotions__dark-bg .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__text-block {
  font-size: 1.05em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__light-bg .page-promotions__text-block {
  color: #555555;
}

.page-promotions__dark-bg .page-promotions__text-block {
  color: #e0e0e0;
}

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

.page-promotions__card {
  background-color: #f8f8f8; /* Light background for cards on light section */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333; /* Dark text for card content */
  box-sizing: border-box;
}

.page-promotions__welcome-bonus .page-promotions__card {
  background-color: #ffffff; /* Ensure cards are white on light background section */
  border: 1px solid #e0e0e0;
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Make description take available space */
}

/* Feature List (for daily offers) */
.page-promotions__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  box-sizing: border-box;
}

.page-promotions__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-promotions__feature-description {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* VIP Club Section */
.page-promotions__vip-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__vip-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
  box-sizing: border-box;
}

.page-promotions__vip-image {
  width: 100%;
  height: 180px; /* Fixed height for VIP images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__vip-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-promotions__vip-description {
  font-size: 1em;
  color: #555555;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Subtle background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  box-sizing: border-box;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly darker on hover */
  transition: background-color 0.3s ease;
  color: #ffffff;
  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;
  color: #ffffff;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
  max-height: 0; /* Hidden by default for JS version */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding-top: 10px;
}

.page-promotions__faq-answer p {
  margin: 0;
  color: #e0e0e0;
}

.page-promotions__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  text-decoration: none;
}

/* Final CTA Section */
.page-promotions__cta-final-content {
  padding: 60px 15px;
}

.page-promotions__cta-final .page-promotions__section-title {
  color: #26A9E0;
}

.page-promotions__cta-final .page-promotions__text-block {
  color: #555555;
}

/* Links within text */
.page-promotions a {
  color: #26A9E0;
  text-decoration: none;
}

.page-promotions a:hover {
  text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

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

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

  .page-promotions__description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%; /* Ensure button container fills width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    font-size: 1em !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__card-grid,
  .page-promotions__feature-list,
  .page-promotions__vip-features {
    grid-template-columns: 1fr; /* Single column layout for cards on mobile */
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__feature-item,
  .page-promotions__vip-item {
    padding: 25px;
  }

  .page-promotions__card-image,
  .page-promotions__vip-image {
    height: 180px; /* Adjust height for mobile */
  }

  /* All images must be responsive and not overflow */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All video elements must be responsive and not overflow */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons must be responsive */
  .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; /* Ensure content has side padding */
    padding-right: 15px; /* Ensure content has side padding */
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Adjust padding for hero section on mobile */
  .page-promotions__hero-section {
    padding: 10px 0 40px; /* Adjust padding for mobile hero */
  }
  .page-promotions__hero-content {
    padding: 0 15px; /* Add side padding to hero content */
  }

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

/* Ensure links within text blocks have proper contrast on dark background */
.page-promotions__dark-bg a {
  color: #26A9E0; /* Brand color for links on dark background */
}

.page-promotions__light-bg a {
  color: #26A9E0; /* Brand color for links on light background */
}