/* style/index-how-to-join.css */

/* Base styles for the page content, ensuring text visibility on dark body background */
.page-index-how-to-join {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Shared container for content width */
.page-index-how-to-join__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section spacing */
.page-index-how-to-join__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-how-to-join__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-index-how-to-join__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-index-how-to-join__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles header offset, small top padding for visual */
  background: #0a0a0a; /* Dark background to blend with body */
}

.page-index-how-to-join__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
}

.page-index-how-to-join__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-how-to-join__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
}

.page-index-how-to-join__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-index-how-to-join__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index-how-to-join__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-index-how-to-join__btn-primary,
.page-index-how-to-join__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-how-to-join__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-index-how-to-join__btn-primary:hover {
  background: #1e87c6;
  border-color: #1e87c6;
}

.page-index-how-to-join__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index-how-to-join__btn-secondary:hover {
  background: #e0e0e0;
  color: #1e87c6;
}

.page-index-how-to-join__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

/* Background colors for sections */
.page-index-how-to-join__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-index-how-to-join__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-index-how-to-join__light-bg .page-index-how-to-join__section-title {
  color: #26A9E0;
}

.page-index-how-to-join__light-bg .page-index-how-to-join__section-description,
.page-index-how-to-join__light-bg .page-index-how-to-join__feature-text {
  color: #555555;
}

/* Feature Grid */
.page-index-how-to-join__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-how-to-join__feature-item {
  background: rgba(38, 169, 224, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-how-to-join__feature-item .page-index-how-to-join__feature-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-how-to-join__feature-item .page-index-how-to-join__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Step-by-Step Guide */
.page-index-how-to-join__step-by-step {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  margin-top: 40px;
  text-align: left;
}

.page-index-how-to-join__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-how-to-join__step-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index-how-to-join__step-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  display: block;
}

.page-index-how-to-join__step-text {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
}

.page-index-how-to-join__cta-area {
  margin-top: 60px;
  padding: 40px;
  background: #26A9E0;
  border-radius: 10px;
  color: #ffffff;
}

.page-index-how-to-join__cta-heading {
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-how-to-join__cta-text {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Game Categories */
.page-index-how-to-join__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-how-to-join__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  background: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-index-how-to-join__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index-how-to-join__game-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-index-how-to-join__game-name {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
}

.page-index-how-to-join__view-all-games {
  margin-top: 40px;
}

/* Security Section */
.page-index-how-to-join__security-section .page-index-how-to-join__section-title {
  color: #26A9E0;
}

.page-index-how-to-join__security-section .page-index-how-to-join__section-description {
  color: #f0f0f0;
}

.page-index-how-to-join__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-how-to-join__security-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-how-to-join__security-heading {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-how-to-join__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-index-how-to-join__security-banner {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  margin-top: 50px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-index-how-to-join__faq-section .page-index-how-to-join__section-title {
  color: #26A9E0;
}

.page-index-how-to-join__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index-how-to-join__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-index-how-to-join__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #f0f0f0;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-index-how-to-join__faq-question::-webkit-details-marker {
  display: none;
}

.page-index-how-to-join__faq-question:hover {
  background-color: #e0e0e0;
}

.page-index-how-to-join__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-index-how-to-join__faq-item[open] .page-index-how-to-join__faq-toggle {
  transform: rotate(45deg);
}

.page-index-how-to-join__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Final CTA Section */
.page-index-how-to-join__cta-final-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-index-how-to-join__cta-final-section .page-index-how-to-join__section-title {
  color: #26A9E0;
}

.page-index-how-to-join__cta-final-section .page-index-how-to-join__section-description {
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-how-to-join__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-index-how-to-join__section-title {
    font-size: 2.2em;
  }

  .page-index-how-to-join__cta-heading {
    font-size: 2em;
  }

  .page-index-how-to-join__feature-item,
  .page-index-how-to-join__security-item {
    padding: 25px;
  }
}

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

  .page-index-how-to-join__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-how-to-join__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-index-how-to-join__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-index-how-to-join__intro-text {
    font-size: 1em;
  }

  .page-index-how-to-join__section {
    padding: 40px 0;
  }

  .page-index-how-to-join__section-title {
    font-size: 1.8em;
  }

  .page-index-how-to-join__section-description {
    font-size: 0.95em;
  }

  .page-index-how-to-join__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-how-to-join__btn-primary,
  .page-index-how-to-join__btn-secondary,
  .page-index-how-to-join a[class*="button"],
  .page-index-how-to-join 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-index-how-to-join__cta-buttons,
  .page-index-how-to-join__button-group,
  .page-index-how-to-join__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: 10px;
  }

  .page-index-how-to-join__feature-grid,
  .page-index-how-to-join__game-categories,
  .page-index-how-to-join__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-how-to-join__step-item {
    padding: 20px;
  }

  .page-index-how-to-join__step-title {
    font-size: 1.6em;
  }

  .page-index-how-to-join__step-text {
    font-size: 0.95em;
  }

  .page-index-how-to-join__cta-area {
    padding: 30px 20px;
  }

  .page-index-how-to-join__cta-heading {
    font-size: 1.8em;
  }

  .page-index-how-to-join__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-index-how-to-join__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Image responsiveness */
  .page-index-how-to-join img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-how-to-join__section,
  .page-index-how-to-join__card,
  .page-index-how-to-join__container,
  .page-index-how-to-join__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}