/* style/beginner-guide.css */

/* Base Styles & Typography */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-beginner-guide__subtitle {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 20px;
}

.page-beginner-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: justify;
}

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

/* Section Styles */
.page-beginner-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #017439, #005f2f);
  color: #FFFFFF;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content clears fixed header */
  position: relative;
  overflow: hidden;
}

.page-beginner-guide__hero-content {
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.page-beginner-guide__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for main title */
  font-weight: 900;
}

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

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

.page-beginner-guide__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #C30808;
  box-sizing: border-box;
}

.page-beginner-guide__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-beginner-guide__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  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, transform 0.3s ease;
  border: 2px solid #017439;
  box-sizing: border-box;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-beginner-guide__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: brightness(0.8); /* Allow brightness filter for background image */
}

.page-beginner-guide__content-section,
.page-beginner-guide__game-types-section,
.page-beginner-guide__video-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__cta-section {
  padding: 60px 0;
}

.page-beginner-guide__dark-section {
  background-color: #017439;
  color: #FFFFFF;
}

.page-beginner-guide__dark-section .page-beginner-guide__section-title {
  color: #FFFFFF;
}

.page-beginner-guide__dark-section .page-beginner-guide__text-block {
  color: #f0f0f0;
}

.page-beginner-guide__guide-section {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
}

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

.page-beginner-guide__guide-item {
  background-color: #005f2f;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  color: #FFFFFF;
}

.page-beginner-guide__guide-item:hover {
  transform: translateY(-10px);
}

.page-beginner-guide__guide-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

.page-beginner-guide__guide-subtitle {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-beginner-guide__guide-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-beginner-guide__guide-button {
  margin-top: auto; /* Push button to bottom */
}

.page-beginner-guide__game-types-section {
  background-color: #f8f8f8;
}

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

.page-beginner-guide__game-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-beginner-guide__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-height: 200px;
  min-width: 200px;
}

.page-beginner-guide__game-title {
  font-size: 1.5em;
  color: #017439;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-beginner-guide__game-title a {
  color: inherit;
  text-decoration: none;
}

.page-beginner-guide__game-title a:hover {
  text-decoration: underline;
}

.page-beginner-guide__game-description {
  font-size: 1em;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-beginner-guide__game-button {
  margin: 0 20px 20px;
  text-align: center;
  display: block;
}

.page-beginner-guide__promo-section {
  text-align: center;
  padding: 80px 20px;
}

.page-beginner-guide__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  min-height: 200px;
  min-width: 200px;
}

.page-beginner-guide__video-section {
  text-align: center;
}

.page-beginner-guide__video-wrapper {
  max-width: 800px;
  margin: 40px auto 20px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-beginner-guide__video-caption {
  font-style: italic;
  color: #555555;
  margin-bottom: 30px;
  font-size: 0.95em;
}

.page-beginner-guide__faq-section {
  background-color: #f8f8f8;
}

.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

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

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

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

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for content */
  padding: 15px 25px;
}

.page-beginner-guide__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-beginner-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 3em;
  }
  .page-beginner-guide__section-title {
    font-size: 2em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1.1em;
  }
  .page-beginner-guide__guide-steps,
  .page-beginner-guide__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-beginner-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-beginner-guide__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-beginner-guide__main-title {
    font-size: 2.5em;
  }
  .page-beginner-guide__hero-description {
    font-size: 1em;
  }
  .page-beginner-guide__hero-buttons,
  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-beginner-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-beginner-guide__container {
    padding: 0 15px;
  }
  .page-beginner-guide__guide-item,
  .page-beginner-guide__game-card {
    padding: 20px;
  }
  .page-beginner-guide__guide-image,
  .page-beginner-guide__game-image,
  .page-beginner-guide__promo-image,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }
  .page-beginner-guide__content-section,
  .page-beginner-guide__guide-section,
  .page-beginner-guide__game-types-section,
  .page-beginner-guide__promo-section,
  .page-beginner-guide__video-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__cta-section {
    padding: 40px 0;
  }
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
    overflow: hidden !important;
  }
  .page-beginner-guide__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-beginner-guide__faq-answer {
    padding: 10px 20px;
  }
  .page-beginner-guide__hero-image-wrapper {
    display: none; /* Hide background image on small screens for better performance */
  }
  .page-beginner-guide__guide-steps,
  .page-beginner-guide__game-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .page-beginner-guide__main-title {
    font-size: 2em;
  }
  .page-beginner-guide__section-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__hero-description {
    font-size: 0.9em;
  }
}