/* style/guide.css */
.page-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css, assumed dark */
}

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

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

/* Top padding for the first section to clear fixed header */
.page-guide__intro-section {
  padding-top: calc(10px + var(--header-height, 70px)); /* Adjust 70px if header height is different */
  padding-bottom: 40px;
}

.page-guide__dark-section {
  background-color: #1A202C; /* Deep blue-black */
  color: #ffffff;
}

.page-guide__light-bg {
  background-color: #f8f9fa; /* Light grey for contrast sections */
  color: #333333;
}

.page-guide__main-title {
  font-size: 3.2em;
  font-weight: 700;
  text-align: center;
  color: #FF4500; /* Main brand color */
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-guide__light-bg .page-guide__section-title {
  color: #1A202C;
}

.page-guide__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 35px;
  margin-bottom: 20px;
  color: #ffd700; /* Gold accent */
}

.page-guide__light-bg .page-guide__sub-title {
  color: #1A202C;
}

.page-guide__intro-text, .page-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-guide__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-guide__ordered-list {
  list-style-type: decimal;
  margin-left: 25px;
  margin-bottom: 20px;
  font-size: 1.05em;
}

.page-guide__list-item {
  margin-bottom: 10px;
}

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

.page-guide__btn-primary,
.page-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 10px;
  cursor: pointer;
}

.page-guide__btn-primary {
  background-color: #FF4500; /* Main brand color */
  color: #ffffff;
  border: 2px solid #FF4500;
}

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

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

.page-guide__btn-secondary:hover {
  background-color: #FF4500;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-guide__text-link {
  color: #ffd700; /* Gold for emphasis */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-guide__text-link:hover {
  color: #ffcc00;
}

.page-guide__image-container {
  text-align: center;
  margin: 30px 0;
}

.page-guide__intro-image,
.page-guide__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* FAQ Styles */
.page-guide__faq-list {
  margin-top: 30px;
}

.page-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff; /* White background for FAQ items */
  color: #333333; /* Dark text for FAQ items */
}

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

.page-guide__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-guide__faq-question:active {
  background: #eeeeee;
}

.page-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-guide__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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-guide__faq-item.active .page-guide__faq-toggle {
  color: #FF4500;
  transform: rotate(180deg);
}

.page-guide__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;
  background: #f9f9f9;
  color: #333333;
  border-radius: 0 0 5px 5px;
}

.page-guide__faq-item.active .page-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-guide__main-title {
    font-size: 2.8em;
  }
  .page-guide__section-title {
    font-size: 2em;
  }
  .page-guide__sub-title {
    font-size: 1.6em;
  }
  .page-guide__intro-text, .page-guide__text-block, .page-guide__list-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-guide__intro-section {
    padding-top: calc(10px + var(--header-height-mobile, 60px)); /* Adjust 60px if mobile header height is different */
    padding-bottom: 30px;
  }
  .page-guide__section {
    padding: 40px 0;
  }
  .page-guide__container {
    padding: 0 15px;
  }
  .page-guide__main-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }
  .page-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-guide__sub-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-guide__intro-text, .page-guide__text-block, .page-guide__list-item {
    font-size: 0.95em;
  }
  .page-guide__btn-primary,
  .page-guide__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    margin: 8px;
  }
  .page-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-guide__faq-question h3 {
    font-size: 1em;
    width: calc(100% - 40px);
  }
  .page-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-guide__faq-answer {
    padding: 0 15px;
  }
  .page-guide__faq-item.active .page-guide__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and image containers are responsive */
  .page-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-guide__image-container,
  .page-guide__intro-section,
  .page-guide__section,
  .page-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* No logo-item in this page, so no need for specific exclusion */
}

@media (max-width: 480px) {
  .page-guide__main-title {
    font-size: 1.8em;
  }
  .page-guide__section-title {
    font-size: 1.6em;
  }
  .page-guide__sub-title {
    font-size: 1.2em;
  }
  .page-guide__btn-primary,
  .page-guide__btn-secondary {
    display: block;
    width: calc(100% - 20px);
    margin-left: auto;
    margin-right: auto;
  }
  .page-guide__faq-question h3 {
    font-size: 0.95em;
  }
}