/* style/promo.css */

:root {
  --nustargame-primary: #F2C14E;
  --nustargame-secondary: #FFD36B;
  --nustargame-card-bg: #111111;
  --nustargame-background: #0A0A0A;
  --nustargame-text-main: #FFF6D6;
  --nustargame-border: #3A2A12;
  --nustargame-glow: #FFD36B;
  --header-offset: 120px; /* Default for promo page, can be overridden by shared */
}

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

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

.page-promo__section {
  padding: 60px 0;
  text-align: center;
}

.page-promo__heading {
  font-size: 2.8em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--nustargame-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-promo__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--nustargame-text-main);
}

.page-promo__card {
  background: var(--nustargame-card-bg);
  border: 1px solid var(--nustargame-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--nustargame-text-main);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.page-promo__btn-primary,
.page-promo__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promo__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for contrast on gold gradient */
  border: none;
}

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

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

.page-promo__btn-secondary:hover {
  background: var(--nustargame-primary);
  color: var(--nustargame-card-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
}

/* Hero Section */
.page-promo__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  padding-bottom: 60px;
  background: var(--nustargame-background);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promo__hero-image-container {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-promo__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promo__hero-content {
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
}

.page-promo__hero-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Use clamp for H1 */
  font-weight: 800;
  color: var(--nustargame-primary);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-promo__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--nustargame-text-main);
}

.page-promo__hero-cta {
  margin-top: 20px;
}

/* Why Choose Section */
.page-promo__why-choose-section {
  background-color: var(--nustargame-background);
}

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

.page-promo__feature-item {
  padding: 25px;
}

.page-promo__feature-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 15px;
  filter: drop-shadow(0 0 5px var(--nustargame-glow)); /* Example of allowed filter for glow effect */
  min-width: 30px; /* Allowed small icon size */
  min-height: 30px; /* Allowed small icon size */
}

.page-promo__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--nustargame-secondary);
}

.page-promo__feature-text {
  font-size: 0.95em;
  color: var(--nustargame-text-main);
}

/* Current Promos Section */
.page-promo__current-promos-section {
  background-color: var(--nustargame-background);
}

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

.page-promo__promo-card {
  text-align: left;
  padding: 0; /* Card content will have padding */
  overflow: hidden;
}

.page-promo__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: block;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promo__promo-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-promo__promo-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--nustargame-primary);
}

.page-promo__promo-description {
  font-size: 1em;
  color: var(--nustargame-text-main);
  flex-grow: 1;
}

/* How to Claim Section */
.page-promo__how-to-claim-section {
  background-color: var(--nustargame-background);
}

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

.page-promo__step-item {
  padding: 30px;
}

.page-promo__step-number {
  font-size: 3em;
  font-weight: 800;
  color: var(--nustargame-secondary);
  margin-bottom: 15px;
  line-height: 1;
}

.page-promo__step-title {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--nustargame-primary);
  margin-bottom: 10px;
}

.page-promo__step-description {
  font-size: 0.95em;
  color: var(--nustargame-text-main);
}

.page-promo__claim-cta {
  margin-top: 50px;
}

/* Featured Games Section */
.page-promo__featured-games-section {
  background-color: var(--nustargame-background);
}

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

.page-promo__game-card {
  padding: 0;
  text-align: left;
  overflow: hidden;
}

.page-promo__game-image {
  width: 100%;
  height: 200px; /* Consistent height for game cards */
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-promo__game-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--nustargame-primary);
  margin-top: 15px;
  padding: 0 25px;
}

.page-promo__game-description {
  font-size: 0.95em;
  color: var(--nustargame-text-main);
  margin-bottom: 20px;
  padding: 0 25px;
  flex-grow: 1;
}

.page-promo__game-card .page-promo__btn-secondary {
  margin: 0 25px 25px 25px;
  width: calc(100% - 50px);
}

/* App Section */
.page-promo__app-section {
  background-color: var(--nustargame-background);
}

.page-promo__app-content-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-promo__app-text-content {
  flex: 1;
}

.page-promo__app-image-container {
  flex: 1;
  max-width: 50%;
}

.page-promo__app-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-promo__app-cta {
  margin-top: 30px;
}

/* FAQ Section */
.page-promo__faq-section {
  background-color: var(--nustargame-background);
}

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

.page-promo__faq-item {
  margin-bottom: 20px;
  text-align: left;
  padding: 0; /* Inner elements will have padding */
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly lighter background for question */
  border-bottom: 1px solid var(--nustargame-border);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.page-promo__faq-item:not(.active) .page-promo__faq-question {
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.page-promo__faq-question h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--nustargame-primary);
  margin: 0;
}

.page-promo__faq-toggle {
  font-size: 1.8em;
  color: var(--nustargame-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;
  background-color: var(--nustargame-card-bg);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.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 {
  font-size: 1em;
  color: var(--nustargame-text-main);
  margin: 0;
}

/* CTA Section */
.page-promo__cta-section {
  background-color: var(--nustargame-background);
  padding-bottom: 80px;
}

.page-promo__cta-content {
  max-width: 900px;
}

.page-promo__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promo__heading {
    font-size: 2.2em;
  }
  .page-promo__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-promo__promo-image {
    height: 220px;
  }
  .page-promo__app-content-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .page-promo__app-image-container {
    max-width: 80%;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-promo {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promo__section {
    padding: 40px 0;
  }
  .page-promo__heading {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-promo__text-block {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* HERO Section */
  .page-promo__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: Ensure content is not hidden */
    padding-bottom: 40px;
  }
  .page-promo__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-promo__hero-description {
    font-size: 1.1em;
    padding: 0 15px;
  }

  /* Cards and Grids */
  .page-promo__features-grid,
  .page-promo__promo-grid,
  .page-promo__steps-grid,
  .page-promo__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-promo__card {
    padding: 20px;
  }
  .page-promo__promo-image {
    height: 180px;
    min-width: 200px !important;
    min-height: 180px !important;
  }
  .page-promo__promo-content,
  .page-promo__game-title,
  .page-promo__game-description,
  .page-promo__game-card .page-promo__btn-secondary {
    padding: 0 20px;
  }
  .page-promo__game-card .page-promo__btn-secondary {
    width: calc(100% - 40px);
  }

  /* App Section */
  .page-promo__app-image-container {
    max-width: 100%;
    padding: 0 15px;
  }

  /* FAQ Section */
  .page-promo__faq-list {
    margin-top: 30px;
    padding: 0 15px;
  }
  .page-promo__faq-question {
    padding: 15px 20px;
  }
  .page-promo__faq-question h3 {
    font-size: 1.1em;
  }
  .page-promo__faq-answer {
    padding: 0 20px;
  }
  .page-promo__faq-item.active .page-promo__faq-answer {
    padding: 10px 20px 20px 20px;
  }

  /* CTA Buttons */
  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    padding: 0 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;
  }

  /* Image Responsive */
  .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-container,
  .page-promo__app-image-container,
  .page-promo__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content area images minimum size check */
  .page-promo__hero-image,
  .page-promo__promo-image,
  .page-promo__game-image,
  .page-promo__app-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
  /* Exception for small icons */
  .page-promo__feature-icon {
    min-width: 30px !important;
    min-height: 30px !important;
  }
}

@media (max-width: 480px) {
  .page-promo__heading {
    font-size: 1.5em;
  }
  .page-promo__hero-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-promo__hero-description {
    font-size: 1em;
  }
  .page-promo__promo-image {
    height: 150px;
  }
  .page-promo__promo-title {
    font-size: 1.4em;
  }
  .page-promo__step-number {
    font-size: 2.5em;
  }
  .page-promo__step-title {
    font-size: 1.4em;
  }
}