/* style/beginner-guide.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho main hoặc các section đầu tiên */
.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for visual spacing */
  text-align: center;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
}

.page-beginner-guide__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-beginner-guide__intro-text {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.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: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-beginner-guide__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-beginner-guide__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-beginner-guide__btn-secondary {
  background: #08160F;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-beginner-guide__btn-secondary:hover {
  background: #11271B; /* Card BG */
  transform: translateY(-2px);
}

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

.page-beginner-guide__dark-bg {
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__light-bg {
  background-color: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}

.page-beginner-guide__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
}

.page-beginner-guide__section-description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-beginner-guide__text-block {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-width: 900px;
  margin: 20px auto;
  text-align: left;
}

.page-beginner-guide__text-block a {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-beginner-guide__text-center {
  text-align: center;
}

.page-beginner-guide__step-cards,
.page-beginner-guide__product-grid,
.page-beginner-guide__promo-grid,
.page-beginner-guide__safety-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
}

.page-beginner-guide__card,
.page-beginner-guide__promo-card,
.page-beginner-guide__safety-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #2E7A4E; /* Border */
}

.page-beginner-guide__card-image,
.page-beginner-guide__promo-image,
.page-beginner-guide__safety-image {
  width: 100%;
  max-width: 400px; /* Recommended for content images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-beginner-guide__card-title,
.page-beginner-guide__promo-title,
.page-beginner-guide__safety-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-beginner-guide__card-title a,
.page-beginner-guide__promo-title a,
.page-beginner-guide__safety-title a {
  color: #F2FFF6;
  text-decoration: none;
}

.page-beginner-guide__card-title a:hover,
.page-beginner-guide__promo-title a:hover,
.page-beginner-guide__safety-title a:hover {
  color: #57E38D; /* Glow */
}

.page-beginner-guide__card-text,
.page-beginner-guide__promo-text,
.page-beginner-guide__safety-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-beginner-guide__faq-section {
  text-align: left;
}

.page-beginner-guide__faq-list {
  max-width: 900px;
  margin: 40px auto;
  border-top: 1px solid #1E3A2A; /* Divider */
}

.page-beginner-guide__faq-item {
  background-color: #08160F;
  border-bottom: 1px solid #1E3A2A; /* Divider */
  margin-bottom: 0;
}

.page-beginner-guide__faq-item summary {
  display: block;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  position: relative;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

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

.page-beginner-guide__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-answer {
  max-height: 500px; /* Arbitrary large value to allow content to show */
  padding-top: 10px;
}

/* Ensure color contrast for specific backgrounds */
.page-beginner-guide__dark-bg h2, .page-beginner-guide__dark-bg h3 {
  color: #F2C14E;
}

.page-beginner-guide__light-bg h2, .page-beginner-guide__light-bg h3 {
  color: #F2C14E;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-content {
    padding: 0 15px;
  }
  .page-beginner-guide__section {
    padding: 60px 15px;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-beginner-guide__intro-text,
  .page-beginner-guide__section-description,
  .page-beginner-guide__text-block,
  .page-beginner-guide__card-text,
  .page-beginner-guide__promo-text,
  .page-beginner-guide__safety-text,
  .page-beginner-guide__faq-answer p {
    font-size: 1rem;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-beginner-guide__btn-primary,
  .page-beginner-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  .page-beginner-guide__section,
  .page-beginner-guide__hero-section {
    padding: 40px 15px;
  }

  .page-beginner-guide__steps-section .page-beginner-guide__card,
  .page-beginner-guide__product-grid .page-beginner-guide__card,
  .page-beginner-guide__promo-grid .page-beginner-guide__promo-card,
  .page-beginner-guide__safety-points .page-beginner-guide__safety-item {
    padding: 20px;
  }

  .page-beginner-guide__card-image,
  .page-beginner-guide__promo-image,
  .page-beginner-guide__safety-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-beginner-guide__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__card,
  .page-beginner-guide__promo-card,
  .page-beginner-guide__safety-item,
  .page-beginner-guide__steps-section,
  .page-beginner-guide__products-section,
  .page-beginner-guide__promotions-section,
  .page-beginner-guide__safety-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0;
    margin-right: 0;
  }

  .page-beginner-guide__steps-section .page-beginner-guide__card,
  .page-beginner-guide__product-grid .page-beginner-guide__card,
  .page-beginner-guide__promo-grid .page-beginner-guide__promo-card,
  .page-beginner-guide__safety-points .page-beginner-guide__safety-item {
    margin-left: auto;
    margin-right: auto;
  }

  .page-beginner-guide__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .page-beginner-guide__faq-answer {
    padding: 0 20px 15px 20px;
  }
}