.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Ensure body background is respected */
}

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Adjust as needed */
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--background, #08160F);
}

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

.page-beginner-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the image to make text readable */
}

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(8, 22, 15, 0.7); /* Semi-transparent dark background for text */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__main-title {
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-beginner-guide__hero-description {
  color: var(--text-secondary, #A7D9B8);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-beginner-guide__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* Ensure white text for button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  color: var(--primary-color, #11A84E);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color, #11A84E);
  cursor: pointer;
}

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--primary-color, #11A84E);
  color: #ffffff;
}

.page-beginner-guide__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

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

.page-beginner-guide__section-title {
  color: var(--gold, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5em;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.page-beginner-guide__sub-title {
  color: var(--text-main, #F2FFF6);
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.page-beginner-guide__sub-title--faq {
  text-align: center;
  margin-top: 50px;
}

.page-beginner-guide__text-block {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-beginner-guide__text-block--small {
  font-size: 0.95em;
}

.page-beginner-guide__highlight-text {
  color: var(--gold, #F2C14E);
  font-weight: bold;
}

.page-beginner-guide__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary, #A7D9B8);
}

.page-beginner-guide__list--ordered {
  list-style-type: decimal;
}

.page-beginner-guide__list-item {
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
}

.page-beginner-guide__image-and-text {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-beginner-guide__image-and-text--reverse {
  flex-direction: row-reverse;
}

.page-beginner-guide__image-and-text .page-beginner-guide__content-image {
  flex: 1;
  max-width: 50%;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__image-and-text .page-beginner-guide__text-content {
  flex: 1;
  max-width: 50%;
}

.page-beginner-guide__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 20px;
  margin-bottom: 20px;
}

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

.page-beginner-guide__product-card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
}

.page-beginner-guide__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__product-title {
  color: var(--text-main, #F2FFF6);
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.page-beginner-guide__product-title a:hover {
  color: var(--gold, #F2C14E);
}

.page-beginner-guide__product-description {
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 25px;
  min-height: 60px; /* Ensure consistent height */
}

.page-beginner-guide__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-beginner-guide__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-beginner-guide__faq-item[open] {
  background-color: var(--deep-green, #0A4B2C);
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
  font-size: 1.1em;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--gold, #F2C14E);
  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 20px 20px 20px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
  line-height: 1.7;
}

/* Background color specific classes */
.page-beginner-guide__dark-bg {
  background-color: var(--background, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-beginner-guide__card-bg {
  background-color: var(--card-bg, #11271B);
  color: var(--text-secondary, #A7D9B8);
}

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

  .page-beginner-guide__main-title {
    font-size: 2.2em;
  }

  .page-beginner-guide__section-title {
    font-size: 2em;
  }

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

  .page-beginner-guide__image-and-text {
    flex-direction: column;
  }

  .page-beginner-guide__image-and-text .page-beginner-guide__content-image,
  .page-beginner-guide__image-and-text .page-beginner-guide__text-content {
    max-width: 100%;
  }

  .page-beginner-guide__grid-container {
    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 {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-beginner-guide__hero-content {
    padding: 15px;
  }

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

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

  .page-beginner-guide__btn-primary {
    padding: 12px 25px;
    font-size: 0.95em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-beginner-guide__container {
    padding: 0 15px;
  }

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

  .page-beginner-guide__sub-title {
    font-size: 1.3em;
  }

  .page-beginner-guide__text-block {
    font-size: 0.95em;
  }

  .page-beginner-guide__list-item {
    font-size: 0.95em;
  }

  .page-beginner-guide__image-and-text {
    flex-direction: column;
    gap: 20px;
  }

  .page-beginner-guide__image-and-text .page-beginner-guide__content-image,
  .page-beginner-guide__image-and-text .page-beginner-guide__text-content {
    max-width: 100%;
    width: 100%;
  }

  .page-beginner-guide__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-beginner-guide__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-beginner-guide__product-description {
    min-height: auto; /* Allow height to adjust on mobile */
  }

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

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

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

  /* Ensure all video elements are responsive */
  .page-beginner-guide video,
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers mobile adaptation */
  .page-beginner-guide__video-section,
  .page-beginner-guide__video-container,
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button containers mobile adaptation */
  .page-beginner-guide__cta-buttons,
  .page-beginner-guide__button-group,
  .page-beginner-guide__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-beginner-guide__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}