/* style/newbie-guide.css */
:root {
  --jl7-primary-color: #F2C14E;
  --jl7-secondary-color: #FFD36B;
  --jl7-card-bg: #111111;
  --jl7-background-color: #0A0A0A;
  --jl7-text-main: #FFF6D6;
  --jl7-border-color: #3A2A12;
  --jl7-glow-color: #FFD36B;
  --jl7-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-newbie-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--jl7-text-main); /* Default text color for the page */
  background-color: var(--jl7-background-color); /* Matches body background if not overridden by shared.css */
}

/* Ensure the first section has padding-top to clear fixed header */
.page-newbie-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop: Default 120px if --header-offset is not set */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

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

.page-newbie-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image slightly for text contrast */
}

.page-newbie-guide__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

.page-newbie-guide__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-newbie-guide__hero-description {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-newbie-guide__hero-cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

.page-newbie-guide__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: bold;
  color: var(--jl7-secondary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-newbie-guide__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: bold;
  color: var(--jl7-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-newbie-guide__text-block {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--jl7-text-main);
}

.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

.page-newbie-guide__btn-primary {
  background: var(--jl7-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-newbie-guide__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
  opacity: 0.9;
}

.page-newbie-guide__btn-secondary {
  background: transparent;
  color: var(--jl7-primary-color);
  border: 2px solid var(--jl7-primary-color);
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-newbie-guide__btn-secondary:hover {
  background: var(--jl7-primary-color);
  color: var(--jl7-background-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-newbie-guide__cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-newbie-guide__cta-buttons--centered {
  justify-content: center;
}

.page-newbie-guide__list {
  list-style-type: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--jl7-text-main);
}

.page-newbie-guide__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-newbie-guide__list--icons {
  list-style-type: none;
  padding: 0;
  margin-left: 0;
}

.page-newbie-guide__list--icons .page-newbie-guide__list-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: var(--jl7-card-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--jl7-border-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide__icon {
  font-size: 2.5rem;
  color: var(--jl7-secondary-color);
  flex-shrink: 0;
}

.page-newbie-guide__list-text .page-newbie-guide__sub-title {
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--jl7-primary-color);
}

.page-newbie-guide__list-text p {
  font-size: 1rem;
  color: var(--jl7-text-main);
  margin-bottom: 0;
}

.page-newbie-guide__dark-section {
  background-color: var(--jl7-card-bg);
  color: var(--jl7-text-main);
}

.page-newbie-guide__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

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

.page-newbie-guide__image-text-block .page-newbie-guide__content-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

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

.page-newbie-guide__grid-layout--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-newbie-guide__card {
  background-color: var(--jl7-card-bg);
  border: 1px solid var(--jl7-border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--jl7-text-main);
}

.page-newbie-guide__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-newbie-guide__card-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--jl7-primary-color);
  margin-bottom: 15px;
}

.page-newbie-guide__card-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--jl7-text-main);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-newbie-guide__card-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--jl7-button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  margin-top: auto;
}

.page-newbie-guide__card-link:hover {
  opacity: 0.9;
}

/* FAQ Section */
.page-newbie-guide__faq-section {
  background-color: var(--jl7-background-color);
  padding: 80px 0;
}

.page-newbie-guide__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-newbie-guide__faq-item {
  background: var(--jl7-card-bg);
  border: 1px solid var(--jl7-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: var(--jl7-card-bg);
  color: var(--jl7-text-main);
  font-weight: bold;
  font-size: 1.15rem;
  transition: background 0.3s ease;
}

.page-newbie-guide__faq-question:hover {
  background: rgba(var(--jl7-primary-color), 0.1);
}

.page-newbie-guide__faq-title {
  margin: 0;
  color: var(--jl7-primary-color);
  font-size: 1.15rem;
  flex-grow: 1;
}

.page-newbie-guide__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--jl7-secondary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-toggle {
  transform: rotate(0deg); /* '+' becomes '-' */
}

.page-newbie-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--jl7-text-main);
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px;
}

.page-newbie-guide__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-newbie-guide__image-text-block {
    flex-direction: column;
    text-align: center;
  }

  .page-newbie-guide__image-text-block--reverse {
    flex-direction: column-reverse;
  }

  .page-newbie-guide__image-text-block .page-newbie-guide__content-image {
    max-width: 100%;
  }

  .page-newbie-guide__grid-layout--two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-newbie-guide__hero-section {
    padding-top: var(--header-offset, 100px) !important; /* Mobile: default 100px if --header-offset is not set */
    min-height: 450px;
  }

  .page-newbie-guide__hero-content-wrapper {
    padding: 20px 15px;
  }

  .page-newbie-guide__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-newbie-guide__hero-description {
    font-size: clamp(0.9rem, 3vw, 1rem);
  }

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

  .page-newbie-guide__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-newbie-guide__sub-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .page-newbie-guide__text-block,
  .page-newbie-guide__list-item,
  .page-newbie-guide__card-description,
  .page-newbie-guide__faq-answer p {
    font-size: 15px;
  }

  /* Images responsive */
  .page-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__container,
  .page-newbie-guide__image-wrapper,
  .page-newbie-guide__image-text-block,
  .page-newbie-guide__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-newbie-guide__cta-button,
  .page-newbie-guide__btn-primary,
  .page-newbie-guide__btn-secondary,
  .page-newbie-guide a[class*="button"],
  .page-newbie-guide a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-newbie-guide__cta-buttons,
  .page-newbie-guide__button-group,
  .page-newbie-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;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  .page-newbie-guide__list--icons .page-newbie-guide__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-newbie-guide__icon {
    margin-bottom: 10px;
  }

  .page-newbie-guide__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-newbie-guide__faq-title {
    font-size: 1rem;
  }

  .page-newbie-guide__faq-toggle {
    font-size: 1.5rem;
  }

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

  .page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

/* Global image size constraint check */
.page-newbie-guide__content-image, .page-newbie-guide__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no filter is applied to images */
.page-newbie-guide img {
  filter: none; /* Explicitly remove any default filters */
}

/* Color contrast safety for various elements */
.page-newbie-guide p, .page-newbie-guide li, .page-newbie-guide__card-description {
  color: var(--jl7-text-main); /* #FFF6D6 on #0A0A0A or #111111 */
}

.page-newbie-guide__hero-title, .page-newbie-guide__hero-description {
  color: #ffffff; /* White on a darkened hero image */
}

.page-newbie-guide__section-title {
  color: var(--jl7-secondary-color); /* #FFD36B on #0A0A0A or #111111 */
}

.page-newbie-guide__sub-title, .page-newbie-guide__card-title, .page-newbie-guide__faq-title {
  color: var(--jl7-primary-color); /* #F2C14E on #0A0A0A or #111111 */
}

.page-newbie-guide__card-link {
  color: #ffffff; /* White on gradient button */
}

.page-newbie-guide__btn-primary {
  color: #ffffff; /* White on gradient button */
}

.page-newbie-guide__btn-secondary {
  color: var(--jl7-primary-color); /* #F2C14E on transparent/dark background */
}

/* Ensuring content area images are not too small by CSS */
.page-newbie-guide .page-newbie-guide__image-text-block img,
.page-newbie-guide .page-newbie-guide__grid-layout img {
  width: 100%; /* Default to 100% width of its container */
  height: auto; /* Maintain aspect ratio */
  min-width: 200px; /* Enforce minimum display width */
  min-height: 200px; /* Enforce minimum display height for square images or for general safety */
}

@media (max-width: 768px) {
  .page-newbie-guide .page-newbie-guide__image-text-block img,
  .page-newbie-guide .page-newbie-guide__grid-layout img {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}