/* style/beginner-guide.css */

/* Base styles for the beginner guide page */
.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff;
}

/* Fixed header offset */
.page-beginner-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset to the first section */
}

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

.page-beginner-guide__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-beginner-guide__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-beginner-guide__description,
.page-beginner-guide__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
}

.page-beginner-guide__text-block p {
  margin-bottom: 15px;
}

.page-beginner-guide__ordered-list {
  list-style-type: decimal;
  margin-left: 20px;
  padding-left: 0;
}

.page-beginner-guide__ordered-list li {
  margin-bottom: 10px;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color for dark background */
  padding-bottom: 60px;
}

.page-beginner-guide__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-beginner-guide__hero-section .page-beginner-guide__container {
  position: relative;
  z-index: 2;
}

.page-beginner-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.page-beginner-guide__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-beginner-guide__btn-primary:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-beginner-guide__cta-center {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Intro Section */
.page-beginner-guide__intro-section,
.page-beginner-guide__guide-section,
.page-beginner-guide__games-section,
.page-beginner-guide__tips-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__conclusion-section {
  padding: 80px 0;
}

.page-beginner-guide__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-beginner-guide__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-beginner-guide__dark-bg .page-beginner-guide__section-title,
.page-beginner-guide__dark-bg .page-beginner-guide__sub-title {
  color: #ffffff;
}

.page-beginner-guide__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.page-beginner-guide__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Video Section */
.page-beginner-guide__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-beginner-guide__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 4em;
  text-decoration: none;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-beginner-guide__video-wrapper:hover .page-beginner-guide__video-overlay-link {
  opacity: 1;
}

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

.page-beginner-guide__step-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-beginner-guide__step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-beginner-guide__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-beginner-guide__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-beginner-guide__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-beginner-guide__card-title {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  font-weight: bold;
}

.page-beginner-guide__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-beginner-guide__card-title a:hover {
  color: #1a7bb0;
}

.page-beginner-guide__card p {
  padding: 0 15px 20px;
  font-size: 0.95em;
  color: #555555;
}

/* Tips Section */
.page-beginner-guide__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-beginner-guide__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  color: #333333;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-question:hover {
  background-color: #f0f8ff;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 1.1em;
  color: #555555;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 20px 20px;
}

/* Conclusion Section */
.page-beginner-guide__conclusion-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-beginner-guide__content-grid {
    grid-template-columns: 1fr;
  }
  .page-beginner-guide__hero-title {
    font-size: 2.8em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }
  .page-beginner-guide__hero-title {
    font-size: 2.2em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__intro-section,
  .page-beginner-guide__guide-section,
  .page-beginner-guide__games-section,
  .page-beginner-guide__tips-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__conclusion-section {
    padding: 50px 0;
  }
  
  /* Mobile image responsive adaptation */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsive adaptation */
  .page-beginner-guide video,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* IMPORTANT: Video section padding-top for mobile */
  .page-beginner-guide__hero-section,
  .page-beginner-guide__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsive adaptation */
  .page-beginner-guide__cta-button,
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary,
  .page-beginner-guide a[class*="button"],
  .page-beginner-guide 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-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* Content containers for mobile padding */
  .page-beginner-guide__container,
  .page-beginner-guide__guide-steps,
  .page-beginner-guide__game-cards,
  .page-beginner-guide__tips-grid,
  .page-beginner-guide__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-beginner-guide__card-image {
    height: auto; /* Allow height to adjust for mobile */
  }
  .page-beginner-guide__card {
    margin-bottom: 20px;
  }
  .page-beginner-guide__faq-answer {
    padding: 0 15px;
  }
  .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    padding: 15px 15px 20px;
  }
}