/* style/promo.css */

/* Base styles for the promo page */
.page-promo {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  padding-bottom: 50px; /* Ensure space above footer */
}

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

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

.page-promo__section--dark {
  background-color: #111111; /* Card BG */
}

.page-promo__section--dark-bg {
  background-color: #0A0A0A; /* Background */
}

.page-promo__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #F2C14E; /* Primary color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-promo__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* 10px top padding for fixed header clearance */
  overflow: hidden;
  color: #FFF6D6;
}

.page-promo__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-promo__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-promo__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-promo__tagline {
  font-size: clamp(1.1em, 2vw, 1.4em);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF6D6;
}

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

.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.1em;
  transition: all 0.3s ease;
  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%); /* Button */
  color: #111111; /* Dark text for contrast */
  border: 2px solid transparent;
}

.page-promo__btn-primary:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E8B02A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-promo__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Primary color */
  border: 2px solid #F2C14E; /* Border */
}

.page-promo__btn-secondary:hover {
  background: #F2C14E; /* Primary color */
  color: #111111; /* Dark text for contrast */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-promo__promo-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-promo__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promo__card-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-promo__card-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promo__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button */
  color: #111111;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promo__card-button:hover {
  background: linear-gradient(180deg, #FFE080 0%, #E8B02A 100%);
  transform: translateY(-1px);
}

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

.page-promo__step-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-promo__step-title {
  font-size: 1.6em;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promo__step-description {
  font-size: 1em;
  color: #FFF6D6;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Game Categories */
.page-promo__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-promo__category-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFF6D6;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
}

.page-promo__category-item:hover {
  background-color: #3A2A12; /* Border color on hover */
  color: #F2C14E; /* Primary color */
  transform: translateY(-2px);
}

.page-promo__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.page-promo__category-name {
  font-size: 1.1em;
}

/* App CTA */
.page-promo__app-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-promo__app-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.page-promo__app-content {
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-promo__app-title {
  font-size: 2em;
  color: #FFD36B;
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-promo__app-description {
  font-size: 1.1em;
  color: #FFF6D6;
  margin-bottom: 20px;
}

/* Final CTA */
.page-promo__final-cta {
  padding: 80px 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #111111 100%); /* Subtle gradient */
}

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

.page-promo__blog-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-promo__blog-card .page-promo__card-image {
  height: 180px;
  margin-bottom: 15px;
}

.page-promo__blog-card .page-promo__card-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-promo__blog-card .page-promo__card-title a {
  color: #F2C14E;
  text-decoration: none;
}

.page-promo__blog-card .page-promo__card-title a:hover {
  text-decoration: underline;
}

.page-promo__card-meta {
  font-size: 0.9em;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-promo__blog-card .page-promo__card-description {
  font-size: 0.95em;
  color: #FFF6D6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-promo__blog-card .page-promo__card-button {
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-promo__view-all {
  margin-top: 40px;
}

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

.page-promo__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promo__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  color: #FFD36B; /* Auxiliary color */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promo__faq-question:hover {
  background-color: #3A2A12; /* Border color on hover */
}

.page-promo__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em; /* Keep h3 font size consistent within faq-question */
}

.page-promo__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #F2C14E; /* Primary color */
}

.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: #FFF6D6;
  font-size: 1em;
  text-align: justify;
}

.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-bottom: 0;
}

/* Footer CTA */
.page-promo__final-cta .page-promo__btn-primary {
  margin-top: 30px;
}

/* --- Responsive Design --- */

/* Mobile-first approach, specific overrides for larger screens */

/* All images base responsive style */
.page-promo img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-promo__hero-section {
    padding-top: 10px !important; /* Ensure small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-promo__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-promo__tagline {
    font-size: clamp(1em, 4vw, 1.2em);
  }

  .page-promo__section {
    padding: 40px 0;
  }

  .page-promo__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }

  .page-promo__text-block {
    font-size: 1em;
  }

  .page-promo__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .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__promo-grid,
  .page-promo__steps-grid,
  .page-promo__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-promo__promo-card,
  .page-promo__step-card,
  .page-promo__blog-card {
    padding: 20px;
  }

  .page-promo__card-image {
    height: 150px;
  }

  .page-promo__game-categories {
    flex-direction: column;
    align-items: stretch;
    padding: 0 15px;
  }

  .page-promo__category-item {
    justify-content: center;
    padding: 12px 20px;
  }

  .page-promo__app-cta {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-promo__app-image {
    max-width: 100%;
  }

  .page-promo__app-content {
    text-align: center;
    align-items: center;
    gap: 15px;
  }

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

  .page-promo__app-description {
    font-size: 1em;
  }

  .page-promo__faq-list {
    padding: 0 15px;
  }

  .page-promo__faq-question {
    padding: 15px 20px;
    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;
  }

  /* Ensure all content containers have proper padding and max-width */
  .page-promo__section,
  .page-promo__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Tablet/Medium screen adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-promo__container {
    padding: 0 30px;
  }

  .page-promo__section-title {
    font-size: clamp(2.2em, 3.5vw, 2.6em);
  }

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

  .page-promo__promo-grid,
  .page-promo__steps-grid,
  .page-promo__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-promo__app-cta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }

  .page-promo__app-image,
  .page-promo__app-content {
    max-width: 45%;
  }
}

/* Desktop specific styles */
@media (min-width: 1025px) {
  .page-promo__hero-section {
    padding-top: 10px; /* Small top padding */
  }

  .page-promo__app-cta {
    justify-content: space-between;
  }

  .page-promo__app-image {
    order: 1;
  }

  .page-promo__app-content {
    order: 2;
    text-align: left;
    align-items: flex-start;
  }

  .page-promo__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
  }

  .page-promo__hero-image {
    height: 100%;
    width: 100%;
  }

  .page-promo__hero-content {
    position: relative;
    z-index: 1;
    padding-top: 120px; /* Adjust as needed for visual balance */
    padding-bottom: 80px;
  }
}