/* style/beginner-guide.css */

/* Variables and General Styles */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #0a0a0a; /* From shared.css body background */
  --login-button-color: #EA7C07;
}

/* Base styles for the page content, ensuring contrast with dark body background */
.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark background */
  background-color: var(--background-dark); /* Ensure main content background is consistent or dark */
}

/* Container for main content areas */
.page-beginner-guide__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-beginner-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: var(--background-dark);
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-beginner-guide__main-title {
  color: var(--secondary-color);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-beginner-guide__hero-description {
  color: var(--secondary-color);
  font-size: 1.15rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons Group */
.page-beginner-guide__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-beginner-guide__cta-buttons--center {
  margin-top: 40px;
}

/* Buttons */
.page-beginner-guide__btn-primary,
.page-beginner-guide__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-beginner-guide__btn-primary:hover {
  background-color: #1e87b3;
  border-color: #1e87b3;
}

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

.page-beginner-guide__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Custom Login Button Color */
a[href*="redirect?plink_id="].page-beginner-guide__btn-primary {
  background-color: var(--login-button-color);
  border-color: var(--login-button-color);
}

a[href*="redirect?plink_id="].page-beginner-guide__btn-primary:hover {
  background-color: #c96706;
  border-color: #c96706;
}


/* Video Section */
.page-beginner-guide__intro-video-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--background-dark);
}

.page-beginner-guide__video-wrapper {
  width: 100%; /* Desktop width */
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-beginner-guide__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  background-color: #000;
  border-radius: 8px;
}

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

.page-beginner-guide__video-caption {
  font-style: italic;
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* Content Sections */
.page-beginner-guide__content-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

.page-beginner-guide__section-title {
  color: var(--primary-color);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__section-description {
  color: var(--secondary-color);
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-beginner-guide__sub-title {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__text-block {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* Image with text block */
.page-beginner-guide__image-text-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

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

.page-beginner-guide__image-text-block img {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsive */
  height: auto;
  display: block;
}

.page-beginner-guide__image-text-block .page-beginner-guide__text-content {
  flex: 2;
  min-width: 300px;
}

.page-beginner-guide__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-beginner-guide__list-item {
  color: var(--text-light);
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1.05rem;
}

.page-beginner-guide__list-item::before {
  content: "✅";
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  margin-top: 50px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for contrast */
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.page-beginner-guide__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  padding: 10px 0;
  list-style: none; /* For <summary> tag */
}

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

.page-beginner-guide__faq-qtext {
  flex-grow: 1;
  color: var(--secondary-color);
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-beginner-guide__faq-answer {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  padding-top: 10px;
  padding-bottom: 10px;
}

.page-beginner-guide__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-beginner-guide__conclusion-section {
  padding: 60px 0 80px 0;
  text-align: center;
  background-color: var(--background-dark);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__hero-image-wrapper {
    max-height: 500px;
  }
  .page-beginner-guide__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-beginner-guide__section-title {
    font-size: 2rem;
  }
  .page-beginner-guide__sub-title {
    font-size: 1.6rem;
  }
  .page-beginner-guide__image-text-block {
    flex-direction: column;
    gap: 30px;
  }
  .page-beginner-guide__image-text-block--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__container {
    padding: 0 15px; /* Add padding for mobile containers */
  }

  .page-beginner-guide__hero-section {
    padding-bottom: 40px;
  }

  .page-beginner-guide__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-beginner-guide__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px; /* Add padding to button group */
  }

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

  .page-beginner-guide__intro-video-section,
  .page-beginner-guide__content-section,
  .page-beginner-guide__conclusion-section {
    padding: 40px 0;
  }

  .page-beginner-guide__video-wrapper,
  .page-beginner-guide__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to video container */
    overflow: hidden !important;
  }
  
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginner-guide__section-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  .page-beginner-guide__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-beginner-guide__sub-title {
    font-size: 1.4rem;
    padding: 0 15px;
  }

  .page-beginner-guide__text-block {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-beginner-guide__image-text-block {
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-beginner-guide__image-text-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-beginner-guide__faq-section {
    padding: 20px;
    margin-top: 30px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-beginner-guide__faq-question {
    font-size: 1.05rem;
  }

  .page-beginner-guide__faq-answer {
    font-size: 0.9rem;
  }

  /* Ensure all content containers are constrained */
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Video section specific padding for mobile */
  .page-beginner-guide__intro-video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  /* Content area images must be responsive */
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Button groups in mobile */
  .page-beginner-guide__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Explicitly stack buttons */
  }
}