/* style/newbie-guide.css */

/* Base styles for the newbie guide page */
.page-newbie-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

/* Header offset for fixed header */
.page-newbie-guide__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Section styling */
.page-newbie-guide__section {
  padding: 60px 20px;
  text-align: center;
}

.page-newbie-guide__dark-section {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff; /* White text for dark background */
}

.page-newbie-guide__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

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

.page-newbie-guide__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit color from section (white for dark, dark for light) */
}

.page-newbie-guide__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-newbie-guide__text-center {
  text-align: center;
}

/* Hero Section */
.page-newbie-guide__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: relative;
  overflow: hidden;
  padding-bottom: 60px; /* Adjust as needed */
}

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

.page-newbie-guide__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Make background image subtle */
}

.page-newbie-guide__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-newbie-guide__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-newbie-guide__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

/* Buttons */
.page-newbie-guide__btn-primary,
.page-newbie-guide__btn-secondary,
.page-newbie-guide__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-newbie-guide__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-newbie-guide__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

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

.page-newbie-guide__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-newbie-guide__btn-link {
  background: none;
  border: none;
  color: #26A9E0;
  padding: 0;
  font-size: 1em;
  text-decoration: underline;
}

.page-newbie-guide__btn-link:hover {
  color: #1a8cc7;
}

.page-newbie-guide__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-newbie-guide__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-newbie-guide__cta-buttons-wrapper {
  margin-top: 50px;
}

.page-newbie-guide__cta-buttons-final {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Card Grid */
.page-newbie-guide__card-grid,
.page-newbie-guide__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-newbie-guide__card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  box-sizing: border-box;
  color: #333333; /* Dark text for white background */
}

.page-newbie-guide__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-newbie-guide__card-image,
.page-newbie-guide__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves as a block element */
}

.page-newbie-guide__card-title,
.page-newbie-guide__promotion-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-newbie-guide__card-title a,
.page-newbie-guide__promotion-title a {
  color: #26A9E0; /* Primary brand color for links */
  text-decoration: none;
}

.page-newbie-guide__card-title a:hover,
.page-newbie-guide__promotion-title a:hover {
  text-decoration: underline;
  color: #1a8cc7;
}

.page-newbie-guide__card-description,
.page-newbie-guide__promotion-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* Ordered List (Steps) */
.page-newbie-guide__ordered-list {
  list-style: none;
  counter-reset: step-counter;
  text-align: left;
  max-width: 900px;
  margin: 50px auto 0 auto;
  padding: 0;
}

.page-newbie-guide__ordered-list li {
  position: relative;
  padding: 20px 0 20px 80px;
  margin-bottom: 20px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.page-newbie-guide__ordered-list li:last-child {
  border-bottom: none;
}

.page-newbie-guide__ordered-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: #ffffff;
  color: #26A9E0;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-newbie-guide__list-item-title {
  font-size: 1.8em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-newbie-guide__ordered-list p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-newbie-guide__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-newbie-guide__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

.page-newbie-guide__faq-question:hover {
  background-color: #f0f0f0;
}

.page-newbie-guide__faq-question h3 {
  margin: 0;
  color: #26A9E0; /* Primary color for question titles */
}

.page-newbie-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-newbie-guide__faq-item.active .page-newbie-guide__faq-toggle {
  transform: rotate(45deg); /* For '+' to 'x' effect */
  content: "−"; /* Visually changed by JS */
}

.page-newbie-guide__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

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

.page-newbie-guide__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-newbie-guide__hero-title {
    font-size: 3em;
  }
  .page-newbie-guide__hero-description {
    font-size: 1.2em;
  }
  .page-newbie-guide__section-title {
    font-size: 2em;
  }
  .page-newbie-guide__ordered-list li {
    padding-left: 70px;
  }
  .page-newbie-guide__ordered-list li::before {
    width: 45px;
    height: 45px;
    font-size: 1.5em;
  }
  .page-newbie-guide__list-item-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-newbie-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header spacing for mobile */
  .page-newbie-guide__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-newbie-guide__hero-section {
    min-height: 400px;
  }
  .page-newbie-guide__hero-content {
    padding: 15px;
  }
  .page-newbie-guide__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-newbie-guide__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-newbie-guide__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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; /* Ensure padding for text */
    padding-right: 15px; /* Ensure padding for text */
  }
  .page-newbie-guide__cta-buttons-final {
    flex-direction: column;
    gap: 15px;
  }
  .page-newbie-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-newbie-guide__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-newbie-guide__card-grid,
  .page-newbie-guide__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-newbie-guide__card {
    padding: 20px;
  }
  .page-newbie-guide__card-image,
  .page-newbie-guide__promotion-image {
    height: 180px; /* Slightly smaller for mobile */
  }
  .page-newbie-guide__card-title,
  .page-newbie-guide__promotion-title {
    font-size: 1.3em;
  }

  .page-newbie-guide__ordered-list {
    margin-top: 30px;
  }
  .page-newbie-guide__ordered-list li {
    padding: 15px 0 15px 60px;
    margin-bottom: 15px;
  }
  .page-newbie-guide__ordered-list li::before {
    width: 40px;
    height: 40px;
    font-size: 1.3em;
  }
  .page-newbie-guide__list-item-title {
    font-size: 1.3em;
  }
  .page-newbie-guide__ordered-list p {
    font-size: 1em;
  }

  .page-newbie-guide__faq-list {
    margin-top: 30px;
  }
  .page-newbie-guide__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-newbie-guide__faq-toggle {
    font-size: 1.3em;
  }
  .page-newbie-guide__faq-answer {
    padding: 0 20px;
  }
  .page-newbie-guide__faq-item.active .page-newbie-guide__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  /* Mobile image responsiveness */
  .page-newbie-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-newbie-guide__hero-image-wrapper,
  .page-newbie-guide__card-image,
  .page-newbie-guide__promotion-image,
  .page-newbie-guide__container,
  .page-newbie-guide__section,
  .page-newbie-guide__card,
  .page-newbie-guide__promotion-card,
  .page-newbie-guide__faq-list,
  .page-newbie-guide__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }
}

/* Ensure content area does not cause horizontal scroll */
.page-newbie-guide {
  overflow-x: hidden;
}