/* style/beginner-guide.css */

/* Base styles for the page content, ensuring proper text color for dark body background */
.page-beginner-guide {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-beginner-guide__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #017439; /* Brand primary color for hero background */
  text-align: center;
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
}

.page-beginner-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: #ffffff;
}

.page-beginner-guide__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
}

.page-beginner-guide__intro-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-beginner-guide__section {
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

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

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

.page-beginner-guide__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from section background */
}

.page-beginner-guide__section-title.page-beginner-guide__dark-bg h2 {
    color: #FFFF00;
}

.page-beginner-guide__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-beginner-guide__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Step Cards */
.page-beginner-guide__steps-section .page-beginner-guide__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.page-beginner-guide__step-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  color: #333333;
}

.page-beginner-guide__step-card .page-beginner-guide__image-content {
    margin-top: 20px;
    margin-bottom: 20px;
}

.page-beginner-guide__step-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #017439;
}

.page-beginner-guide__step-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
  text-align: left;
}

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

/* Tips Section */
.page-beginner-guide__tips-section {
  background-color: #017439;
  color: #ffffff;
}

.page-beginner-guide__tips-list {
  list-style-type: disc;
  padding-left: 25px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-beginner-guide__tips-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-beginner-guide__tips-list strong {
    color: #FFFF00;
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  background-color: #f0f2f5;
  color: #333333;
}

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

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

.page-beginner-guide__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-beginner-guide__faq-item summary:hover {
  background-color: #f5f5f5;
}

.page-beginner-guide__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit */
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #017439;
  margin-left: 15px;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  color: #C30808;
}

.page-beginner-guide__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Final CTA Section */
.page-beginner-guide__cta-final {
  padding: 100px 20px;
  background-color: #017439;
  color: #ffffff;
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-beginner-guide__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-beginner-guide__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

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

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

  .page-beginner-guide__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-beginner-guide__main-title {
    font-size: 2em; /* Adjust H1 for mobile */
  }

  .page-beginner-guide__intro-description {
    font-size: 1em;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    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: 1em;
  }

  .page-beginner-guide__section {
    padding: 50px 0;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-beginner-guide__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-beginner-guide__steps-section .page-beginner-guide__container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-beginner-guide__step-card {
    padding: 25px;
  }

  .page-beginner-guide__step-title {
    font-size: 1.5em;
  }

  /* All images responsive */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers responsive */
  .page-beginner-guide__hero-image-wrapper,
  .page-beginner-guide__image-content,
  .page-beginner-guide__card,
  .page-beginner-guide__section,
  .page-beginner-guide__container,
  .page-beginner-guide__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

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

  .page-beginner-guide__cta-final {
    padding: 60px 15px;
  }
}