/* style/guides.css */

/* Reset & Base Styles */
.page-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0d0d0d; /* Inherited from shared.css, ensure text contrast */
}

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

.page-guides__section {
  padding: 60px 0;
}

.page-guides__section:nth-child(odd) {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
}

.page-guides__section-title {
  font-size: 36px;
  color: #FFCC00; /* Auxiliary color for headings */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-guides__section-intro {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-guides__sub-title {
  font-size: 24px;
  color: #FFCC00;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-guides__list,
.page-guides__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-guides__ordered-list {
  list-style-type: decimal;
}

.page-guides__list li,
.page-guides__ordered-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-guides__note {
  font-style: italic;
  color: #cccccc;
  text-align: center;
  margin-top: 30px;
}

/* Buttons */
.page-guides__btn-primary,
.page-guides__btn-secondary,
.page-guides__hero-btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  font-size: 16px;
}

.page-guides__hero-btn {
  background-color: #FFCC00;
  color: #003366;
  border: 2px solid #FFCC00;
  font-size: 20px;
  padding: 15px 30px;
  margin-top: 30px;
}

.page-guides__hero-btn:hover {
  background-color: #e6b800;
  border-color: #e6b800;
}

.page-guides__btn-primary {
  background-color: #003366;
  color: #ffffff;
  border: 2px solid #003366;
}

.page-guides__btn-primary:hover {
  background-color: #004488;
  border-color: #004488;
}

.page-guides__btn-secondary {
  background-color: transparent;
  color: #FFCC00;
  border: 2px solid #FFCC00;
}

.page-guides__btn-secondary:hover {
  background-color: #FFCC00;
  color: #003366;
}

/* Hero Banner */
.page-guides__hero-banner {
  background: linear-gradient(135deg, #003366, #001a33);
  padding: 100px 0 80px; /* Adjusted padding-top for fixed header */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-guides__main-title {
  font-size: 48px;
  color: #FFCC00;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-guides__hero-description {
  font-size: 20px;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto 30px;
}

/* Guide Steps (Register Section) */
.page-guides__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-guides__step-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-guides__step-item:hover {
  transform: translateY(-5px);
}

.page-guides__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-guides__step-title {
  font-size: 22px;
  color: #FFCC00;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-guides__step-item p {
  color: #f0f0f0;
  font-size: 16px;
}

.page-guides__action-area {
  text-align: center;
  margin-top: 50px;
}

/* Deposit/Withdraw Guide Sections */
.page-guides__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-guides__guide-content--reverse {
  flex-direction: row-reverse;
}

.page-guides__text-block {
  flex: 1;
}

.page-guides__image-block {
  flex: 1;
  text-align: center;
}

.page-guides__content-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

/* App Download Section */
.page-guides__app-download-area {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-guides__download-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-guides__qr-code {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border: 5px solid #FFCC00;
  border-radius: 8px;
}

.page-guides__card-title {
  font-size: 20px;
  color: #FFCC00;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-guides__download-card p {
  color: #f0f0f0;
  font-size: 16px;
  margin-bottom: 20px;
}

/* Game Guide Section */
.page-guides__game-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-guides__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-guides__game-card:hover {
  transform: translateY(-5px);
}

.page-guides__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-guides__game-card .page-guides__card-title {
  margin-top: 15px;
  padding: 0 15px;
}

.page-guides__game-card p {
  color: #f0f0f0;
  font-size: 15px;
  padding: 0 15px 20px;
}

.page-guides__game-link {
  display: block;
  background-color: #003366;
  color: #ffffff;
  padding: 10px 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-guides__game-link:hover {
  background-color: #004488;
}

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

.page-guides__promo-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-guides__promo-card:hover {
  transform: translateY(-5px);
}

.page-guides__promo-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-guides__promo-card .page-guides__card-title {
  margin-top: 15px;
  padding: 0 15px;
}

.page-guides__promo-card p {
  color: #f0f0f0;
  font-size: 15px;
  padding: 0 15px 20px;
}

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

.page-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-guides__faq-item.active .page-guides__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #003366; /* Dark background for answer */
  border-radius: 0 0 5px 5px;
  color: #ffffff;
}

.page-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Darker background for question */
  border: 1px solid #333333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-guides__faq-question:hover {
  background: #2a2a2a;
  border-color: #444444;
}

.page-guides__faq-question:active {
  background: #333333;
}

.page-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFCC00; /* Auxiliary color for FAQ questions */
}

.page-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-guides__faq-item.active .page-guides__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-guides__section-title {
    font-size: 32px;
  }
  .page-guides__hero-banner {
    padding: 80px 0 60px;
  }
  .page-guides__main-title {
    font-size: 40px;
  }
  .page-guides__guide-content {
    flex-direction: column;
  }
  .page-guides__guide-content--reverse {
    flex-direction: column;
  }
  .page-guides__content-image {
    max-width: 100%;
  }
  .page-guides__text-block, .page-guides__image-block {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-guides {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-guides__hero-banner {
    padding: 100px 0 50px !important; /* Adjusted for mobile fixed header */
  }
  .page-guides__main-title {
    font-size: 32px;
  }
  .page-guides__hero-description {
    font-size: 16px;
  }
  .page-guides__hero-btn {
    font-size: 18px;
    padding: 12px 25px;
  }
  .page-guides__section {
    padding: 40px 0;
  }
  .page-guides__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-guides__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-guides__sub-title {
    font-size: 20px;
  }
  .page-guides__guide-steps,
  .page-guides__app-download-area,
  .page-guides__game-cards-grid,
  .page-guides__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-guides__step-item,
  .page-guides__download-card,
  .page-guides__game-card,
  .page-guides__promo-card {
    padding: 20px;
  }
  .page-guides__step-image,
  .page-guides__qr-code,
  .page-guides__content-image,
  .page-guides__game-image,
  .page-guides__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .page-guides__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-guides__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-guides__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-guides__faq-answer {
    padding: 0 15px;
  }
  .page-guides__faq-item.active .page-guides__faq-answer {
    padding: 15px !important;
  }
  .page-guides__container {
    padding: 0 15px;
  }
  /* Ensure all image containers are responsive */
  .page-guides__section,
  .page-guides__card,
  .page-guides__container,
  .page-guides__guide-steps,
  .page-guides__app-download-area,
  .page-guides__game-cards-grid,
  .page-guides__promo-cards-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-guides__guide-content .page-guides__image-block .page-guides__btn-secondary {
    width: 100%;
  }
}