/* style/beginners-guide.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color: #000000; /* Body background from shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg-dark: rgba(255, 255, 255, 0.1);
}

.page-beginners-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* To ensure text is visible on dark body background */
  background-color: var(--background-color);
}

.page-beginners-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: var(--text-light);
}

.page-beginners-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for aesthetic */
  margin-bottom: 30px;
}

.page-beginners-guide__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-beginners-guide__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary-color);
  line-height: 1.2;
}

.page-beginners-guide__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--secondary-color);
}

.page-beginners-guide__intro-video-section {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--text-light);
}

.page-beginners-guide__video-container {
  width: 100%; /* desktop must have width: 100% */
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-beginners-guide__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 600;
  margin-bottom: 25px;
  color: var(--primary-color);
  text-align: center;
}

.page-beginners-guide__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-beginners-guide__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-beginners-guide__video-cta {
  margin-top: 20px;
}

.page-beginners-guide__content-section {
  padding: 50px 20px;
  color: var(--text-light);
}

.page-beginners-guide__container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-beginners-guide__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-beginners-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-beginners-guide__list-item {
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-beginners-guide__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-beginners-guide__btn-primary,
.page-beginners-guide__btn-secondary {
  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;
  margin: 10px;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginners-guide__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-beginners-guide__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-beginners-guide__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-beginners-guide__btn-secondary:hover {
  background-color: lighten(var(--primary-color), 40%);
  color: var(--secondary-color);
}

/* Override for specific login button color */
.page-beginners-guide__btn-primary[style*="background-color: #EA7C07"] {
  background-color: var(--login-color) !important;
  border-color: var(--login-color) !important;
}

.page-beginners-guide__btn-primary[style*="background-color: #EA7C07"]:hover {
  background-color: darken(#EA7C07, 10%) !important;
  border-color: darken(#EA7C07, 10%) !important;
}

.page-beginners-guide__faq-section {
  padding: 50px 20px;
  color: var(--text-light);
}

.page-beginners-guide__faq-list {
  margin-top: 30px;
}

.page-beginners-guide__faq-item {
  background-color: var(--card-bg-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-beginners-guide__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.05);
}

.page-beginners-guide__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-beginners-guide__faq-qtext {
  flex-grow: 1;
}

.page-beginners-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-beginners-guide__faq-item[open] .page-beginners-guide__faq-toggle {
  transform: rotate(45deg);
}

.page-beginners-guide__faq-answer {
  padding: 15px 25px 20px;
  font-size: 0.95em;
  color: var(--text-light);
}

.page-beginners-guide__cta-section {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-light);
}

.page-beginners-guide__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-beginners-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-beginners-guide__hero-section,
  .page-beginners-guide__intro-video-section,
  .page-beginners-guide__content-section,
  .page-beginners-guide__faq-section,
  .page-beginners-guide__cta-section {
    padding: 30px 15px;
  }

  .page-beginners-guide__hero-content,
  .page-beginners-guide__video-container,
  .page-beginners-guide__container {
    padding-left: 0;
    padding-right: 0;
  }

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

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

  .page-beginners-guide__section-title {
    font-size: 1.5em;
  }

  .page-beginners-guide__sub-title {
    font-size: 1.2em;
  }

  .page-beginners-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginners-guide__section,
  .page-beginners-guide__card,
  .page-beginners-guide__container,
  .page-beginners-guide__video-section,
  .page-beginners-guide__video-container,
  .page-beginners-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-beginners-guide__video-section {
    padding-top: 10px !important;
  }

  .page-beginners-guide video,
  .page-beginners-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginners-guide__cta-button,
  .page-beginners-guide__btn-primary,
  .page-beginners-guide__btn-secondary,
  .page-beginners-guide a[class*="button"],
  .page-beginners-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;
    margin: 10px 0;
  }

  .page-beginners-guide__button-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-beginners-guide__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-beginners-guide__faq-answer {
    padding: 10px 20px 15px;
  }
}