/* style/promo.css */
/* Page-specific styles for the promo page */

/* Variables for colors */
:root {
  --niceph-primary: #F2C14E; /* Main brand color */
  --niceph-secondary: #FFD36B; /* Auxiliary brand color */
  --niceph-card-bg: #111111; /* Card background */
  --niceph-background: #0A0A0A; /* Page background */
  --niceph-text-main: #FFF6D6; /* Main text color for dark backgrounds */
  --niceph-border: #3A2A12; /* Border color */
  --niceph-glow: #FFD36B; /* Glow effect color */

  /* Header offset, derived from shared.css, default for safety */
  --header-offset: 120px; /* Default desktop header height */
}

.page-promo {
  font-family: Arial, sans-serif;
  color: var(--niceph-text-main); /* Light text on dark body background */
  background-color: var(--niceph-background);
  line-height: 1.6;
}

/* --- Hero Section --- */
.page-promo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-offset); /* Ensure content is not covered by fixed header */
  padding-bottom: 60px;
  overflow: hidden; /* For image overflow */
}

.page-promo__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of hero image */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Minimum height for hero image */
  filter: none !important; /* Ensure no image filters are used */
}

.page-promo__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 2;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -100px; /* Pull content slightly over image for visual interest, without actual overlap */
  background: rgba(17, 17, 17, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.page-promo__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  color: var(--niceph-secondary);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promo__hero-description {
  font-size: 1.15rem;
  color: var(--niceph-text-main);
  margin-bottom: 30px;
}

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

/* --- General Section Styling --- */
.page-promo__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-promo__section-title {
  font-size: 2.5rem;
  color: var(--niceph-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-promo__text-block {
  font-size: 1.1rem;
  color: var(--niceph-text-main);
  text-align: center;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.page-promo__btn-primary,
.page-promo__btn-secondary,
.page-promo a[class*="button"],
.page-promo a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-promo__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

.page-promo__btn-secondary:hover {
  background: var(--niceph-primary);
  color: var(--niceph-background);
}

/* Button containers for mobile */
.page-promo__hero-cta,
.page-promo__cta-buttons,
.page-promo__button-group,
.page-promo__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Dark Section Styling --- */
.page-promo__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  padding: 60px 0;
}

/* --- Offer Grid Section --- */
.page-promo__offers-section {
  padding: 60px 0;
  background-color: var(--niceph-background);
}

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

.page-promo__offer-card.page-promo__card {
  background-color: var(--niceph-card-bg); /* Card background */
  border: 1px solid var(--niceph-border); /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: var(--niceph-text-main); /* Text color for cards */
}

.page-promo__offer-card.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--niceph-glow);
}

.page-promo__offer-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
  filter: none !important; /* Ensure no image filters are used */
}

.page-promo__card-title {
  font-size: 1.8rem;
  color: var(--niceph-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__card-description {
  font-size: 1rem;
  color: var(--niceph-text-main);
  margin-bottom: 20px;
}

/* --- Get Started Section --- */
.page-promo__get-started-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

.page-promo__step-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promo__step-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: var(--niceph-text-main);
  text-align: left;
}

.page-promo__step-title {
  font-size: 1.5rem;
  color: var(--niceph-primary);
  margin-bottom: 15px;
}

.page-promo__step-item p {
  font-size: 1rem;
  margin-bottom: 10px;
}

.page-promo__step-item a {
  color: var(--niceph-secondary);
  text-decoration: none;
  font-weight: bold;
}

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

.page-promo__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Games Section --- */
.page-promo__games-section {
  padding: 60px 0;
  background-color: var(--niceph-background);
}

.page-promo__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.page-promo__category-card.page-promo__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--niceph-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 120px; /* Ensure cards have some height */
}

.page-promo__category-card.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4), 0 0 10px var(--niceph-glow);
}

.page-promo__category-icon {
  width: 30px; /* Allowed small icon size */
  height: 30px; /* Allowed small icon size */
  margin-bottom: 10px;
  object-fit: contain;
  filter: none !important; /* Ensure no image filters are used */
}

.page-promo__category-name {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--niceph-text-main);
}

/* --- Why Choose Section --- */
.page-promo__why-choose-section {
  background-color: #1a1a1a;
  padding: 60px 0;
}

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

.page-promo__advantage-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: var(--niceph-text-main);
  text-align: left;
}

.page-promo__advantage-title {
  font-size: 1.5rem;
  color: var(--niceph-secondary);
  margin-bottom: 10px;
}

/* --- FAQ Section --- */
.page-promo__faq-section {
  padding: 60px 0;
  background-color: var(--niceph-background);
}

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

.page-promo__faq-item {
  background-color: var(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly different background for question */
  color: var(--niceph-primary);
  font-weight: bold;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: #222222;
}

.page-promo__faq-title {
  margin: 0;
  color: inherit; /* Inherit color from question */
}

.page-promo__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--niceph-secondary);
}

.page-promo__faq-item.active .page-promo__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-promo__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--niceph-text-main);
  background-color: var(--niceph-card-bg);
}

.page-promo__faq-item.active .page-promo__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 25px;
}

.page-promo__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* --- Final CTA Section --- */
.page-promo__cta-final-section {
  background-color: #1a1a1a;
  padding: 60px 0;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promo__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-promo__section-title {
    font-size: 2rem;
  }
}

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

  /* Fixed header padding for mobile */
  .page-promo__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile header height */
  }

  .page-promo__hero-content {
    margin-top: -50px; /* Less overlap on mobile */
    padding: 20px 15px;
  }

  .page-promo__hero-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-promo__hero-description {
    font-size: 1rem;
  }

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

  .page-promo__btn-primary,
  .page-promo__btn-secondary,
  .page-promo a[class*="button"],
  .page-promo 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;
  }
  
  /* Buttons container for mobile */
  .page-promo__hero-cta,
  .page-promo__cta-buttons,
  .page-promo__button-group,
  .page-promo__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: 15px;
  }

  .page-promo__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promo__text-block {
    font-size: 0.95rem;
  }

  /* Images responsive for mobile */
  .page-promo img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promo__section,
  .page-promo__card,
  .page-promo__container,
  .page-promo__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promo__offer-grid,
  .page-promo__game-categories,
  .page-promo__advantage-list {
    grid-template-columns: 1fr;
  }

  .page-promo__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-promo__faq-answer {
    padding: 0 20px;
  }

  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 10px 20px 20px;
  }

  .page-promo__category-card.page-promo__card {
    flex-direction: row;
    justify-content: flex-start;
    gap: 15px;
    padding: 15px;
  }
  .page-promo__category-icon {
    margin-bottom: 0;
  }
}

/* General image size check to prevent small images */
.page-promo img:not(.page-promo__category-icon):not(.page-promo__partner-logo) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no image filters are used */
.page-promo img {
  filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-promo__hero-section img,
.page-promo__offers-section img,
.page-promo__get-started-section img,
.page-promo__games-section img,
.page-promo__why-choose-section img,
.page-promo__faq-section img,
.page-promo__cta-final-section img {
  /* This ensures that any image within these content sections does not get styled to be smaller than 200px */
  /* Actual display size will be handled by max-width: 100% and height: auto */
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
}
/* Re-apply max-width 100 for responsive, but ensure min-size is respected */
.page-promo__offer-image {
  max-width: 100%;
  height: auto;
}

/* Ensure content area images are at least 200px */
.page-promo__offer-image {
  min-width: 200px;
  min-height: 200px;
}