/* style/beginner-guide.css */

/* Variables */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-beginner-guide {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-dark); /* Ensure text contrast with body bg */
}

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

.page-beginner-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-beginner-guide__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

.page-beginner-guide__hero-content {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  max-width: 900px;
}

.page-beginner-guide__main-title {
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-beginner-guide__description {
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 1.1em;
}

.page-beginner-guide__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-beginner-guide__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__cta-button--secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  box-shadow: none;
}

.page-beginner-guide__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__intro-section,
.page-beginner-guide__step-section,
.page-beginner-guide__faq-section,
.page-beginner-guide__conclusion-section {
  padding: 60px 0;
}

.page-beginner-guide__section-title {
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2em;
  font-weight: bold;
}

.page-beginner-guide__step-card {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__step-card:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-beginner-guide__card-image {
  flex: 1 1 50%;
  min-width: 300px;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-beginner-guide__card-content {
  flex: 1 1 50%;
  padding: 30px;
  box-sizing: border-box;
}

.page-beginner-guide__card-title {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-beginner-guide__step-card p {
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-beginner-guide__step-card ul,
.page-beginner-guide__step-card ol {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-beginner-guide__step-card ul li,
.page-beginner-guide__step-card ol li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.page-beginner-guide__step-card strong {
  color: var(--text-main);
}

.page-beginner-guide__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-main);
}

.page-beginner-guide__dark-bg .page-beginner-guide__section-title {
  color: var(--text-main);
}

.page-beginner-guide__dark-bg .page-beginner-guide__step-card {
  background-color: var(--card-bg);
}

.page-beginner-guide__faq-list {
  margin-top: 30px;
}

.page-beginner-guide__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-beginner-guide__faq-question:hover {
  background-color: var(--deep-green);
}

.page-beginner-guide__faq-qtext {
  flex-grow: 1;
}

.page-beginner-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-beginner-guide__faq-item[open] .page-beginner-guide__faq-toggle {
  color: var(--text-main);
}

.page-beginner-guide__faq-answer {
  padding: 0 20px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 2.5em;
  }
  .page-beginner-guide__section-title {
    font-size: 1.8em;
  }
  .page-beginner-guide__card-title {
    font-size: 1.3em;
  }
}

@media (max-width: 768px) {
  .page-beginner-guide__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-beginner-guide__main-title {
    font-size: 2em;
  }
  .page-beginner-guide__description {
    font-size: 1em;
  }
  .page-beginner-guide__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-beginner-guide__cta-button + .page-beginner-guide__cta-button {
    margin-top: 15px;
  }
  .page-beginner-guide__section-title {
    font-size: 1.5em;
  }
  .page-beginner-guide__step-card {
    flex-direction: column !important;
  }
  .page-beginner-guide__card-image,
  .page-beginner-guide__card-content {
    flex: 1 1 100%;
    min-width: unset;
  }
  .page-beginner-guide__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-beginner-guide__container,
  .page-beginner-guide__intro-section,
  .page-beginner-guide__step-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__conclusion-section,
  .page-beginner-guide__step-card,
  .page-beginner-guide__card-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-beginner-guide__step-card ul,
  .page-beginner-guide__step-card ol {
    margin-left: 0;
    padding-left: 20px;
  }
  .page-beginner-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-beginner-guide__hero-image-wrapper {
    max-height: 300px;
  }
  .page-beginner-guide__hero-content {
    margin-top: 20px;
  }
  .page-beginner-guide__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}