/* style/promo.css */

/* Variables for consistency */
:root {
  --nustar-primary: #F2C14E;
  --nustar-secondary: #FFD36B;
  --nustar-bg-dark: #0A0A0A;
  --nustar-card-bg: #111111;
  --nustar-text-main: #FFF6D6;
  --nustar-border: #3A2A12;
  --nustar-glow: #FFD36B;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-promo {
  font-family: Arial, sans-serif;
  color: var(--nustar-text-main); /* Default text color for dark background */
  background-color: var(--nustar-bg-dark); /* Ensure consistency */
  line-height: 1.6;
}

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

/* Text Contrast Fix for sections with lighter backgrounds */
.page-promo__light-bg .page-promo__text-contrast-fix,
.page-promo__light-bg .page-promo__section-title,
.page-promo__light-bg .page-promo__section-description {
  color: #333333; /* Dark text for light backgrounds */
}

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

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

.page-promo__video-link {
  display: block;
  width: 100%;
  height: 100%;
}

.page-promo__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken video for text readability */
}

.page-promo__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
  color: var(--nustar-text-main); /* Light text over dark video */
}

.page-promo__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: var(--nustar-secondary);
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size for H1 */
}

.page-promo__lead-text {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

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

/* Buttons */
.page-promo__btn-primary,
.page-promo__btn-secondary {
  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;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promo__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  transform: translateY(-2px);
}

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

.page-promo__btn-secondary:hover {
  background-color: rgba(255, 211, 107, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-promo__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--nustar-secondary);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.3);
}

.page-promo__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--nustar-text-main);
}

/* Card Styles */
.page-promo__card {
  background: var(--nustar-card-bg);
  border: 1px solid var(--nustar-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--nustar-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promo__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-promo__card-image {
  width: 100%;
  max-width: 400px; /* Example max-width, HTML width/height is 400x300 */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-promo__card-title {
  font-size: 1.8rem;
  color: var(--nustar-secondary);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promo__card-text {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Welcome Bonus Section */
.page-promo__welcome-bonus,
.page-promo__vip-program,
.page-promo__payment-security,
.page-promo__faq-section {
  background-color: var(--nustar-bg-dark);
  color: var(--nustar-text-main);
}

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

/* Ongoing Promotions Section */
.page-promo__ongoing-promotions,
.page-promo__game-categories,
.page-promo__responsible-gaming,
.page-promo__final-cta {
  background-color: #f8f8f8; /* Lighter background for contrast */
  color: #333333;
}

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

.page-promo__promo-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-promo__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-promo__promo-image {
  width: 100%;
  max-width: 400px; /* Example max-width, HTML width/height is 400x225 */
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-promo__promo-title {
  font-size: 1.6rem;
  color: var(--nustar-primary);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promo__promo-text {
  font-size: 0.95rem;
  flex-grow: 1;
}

.page-promo__button-container {
  text-align: center;
  margin-top: 50px;
}

/* VIP Program Section */
.page-promo__vip-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Game Categories Section */
.page-promo__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.page-promo__category-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__category-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--nustar-primary);
}

.page-promo__category-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}

.page-promo__category-name {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.page-promo__category-promo-text {
  font-size: 0.85rem;
  color: var(--nustar-primary);
  font-weight: bold;
}

/* Payment & Security Section */
.page-promo__payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promo__payment-item {
  background: var(--nustar-card-bg);
  border: 1px solid var(--nustar-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  color: var(--nustar-text-main);
}

.page-promo__payment-logo {
  max-width: 150px; /* Example max-width, HTML width/height is 150x90 */
  height: auto;
  margin-bottom: 15px;
}

.page-promo__payment-text {
  font-size: 1rem;
}

/* Responsible Gaming Section */
.page-promo__responsible-gaming {
  padding: 60px 20px;
}

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

.page-promo__faq-item {
  background: var(--nustar-card-bg);
  border: 1px solid var(--nustar-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: var(--nustar-card-bg);
  color: var(--nustar-text-main);
  font-weight: bold;
  font-size: 1.15rem;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: rgba(255, 211, 107, 0.05);
}

.page-promo__faq-title {
  margin: 0;
  color: var(--nustar-text-main);
}

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

.page-promo__faq-item.active .page-promo__faq-toggle {
  transform: rotate(45deg);
}

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

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

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

/* Final CTA Section */
.page-promo__final-cta {
  padding: 80px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promo__main-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
  }

  .page-promo__section-title {
    font-size: 2rem;
  }
}

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

  .page-promo__hero-section {
    padding-bottom: 40px;
    min-height: 450px;
  }

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

  .page-promo__lead-text {
    font-size: 1rem;
  }

  .page-promo__cta-buttons {
    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;
  }

  .page-promo__cta-buttons,
  .page-promo__button-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-promo__container {
    padding: 30px 15px;
  }

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

  .page-promo__card {
    padding: 20px;
  }

  .page-promo__card-title {
    font-size: 1.5rem;
  }

  .page-promo__promo-item {
    padding: 20px;
  }

  .page-promo__promo-title {
    font-size: 1.4rem;
  }

  .page-promo__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .page-promo__category-item {
    padding: 15px 10px;
  }

  .page-promo__category-name {
    font-size: 1rem;
  }

  .page-promo__category-promo-text {
    font-size: 0.8rem;
  }

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

  .page-promo__payment-logo {
    max-width: 120px;
  }

  .page-promo__faq-question {
    padding: 18px 20px;
    font-size: 1.05rem;
  }

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

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

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

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

  /* Video responsive */
  .page-promo__video-wrapper,
  .page-promo__video-link,
  .page-promo__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Adjust height dynamically */
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promo__video-section {
    padding-top: 10px !important;
  }
}