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

.page-blog-bongx9-code-newbie-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--bongx9-text-main); /* Default text color for the page */
  background-color: var(--bongx9-background); /* Page background from custom colors */
}

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

/* Hero Section */
.page-blog-bongx9-code-newbie-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--bongx9-deep-green);
}

.page-blog-bongx9-code-newbie-guide__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-blog-bongx9-code-newbie-guide__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-blog-bongx9-code-newbie-guide__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-blog-bongx9-code-newbie-guide__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em);
  font-weight: 700;
  color: var(--bongx9-gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Content Sections */
.page-blog-bongx9-code-newbie-guide__content-section {
  padding: 60px 0;
}

.page-blog-bongx9-code-newbie-guide__dark-bg {
  background-color: var(--bongx9-card-bg);
  color: var(--bongx9-text-main);
}

.page-blog-bongx9-code-newbie-guide__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--bongx9-primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog-bongx9-code-newbie-guide__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--bongx9-gold-color);
  border-radius: 2px;
}

.page-blog-bongx9-code-newbie-guide__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--bongx9-gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog-bongx9-code-newbie-guide__text-block {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--bongx9-text-secondary);
}

.page-blog-bongx9-code-newbie-guide__unordered-list,
.page-blog-bongx9-code-newbie-guide__ordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
  color: var(--bongx9-text-secondary);
}

.page-blog-bongx9-code-newbie-guide__unordered-list li,
.page-blog-bongx9-code-newbie-guide__ordered-list li {
  margin-bottom: 10px;
  color: var(--bongx9-text-secondary);
}

.page-blog-bongx9-code-newbie-guide__unordered-list li strong,
.page-blog-bongx9-code-newbie-guide__ordered-list li strong {
  color: var(--bongx9-text-main);
}

/* Image with text block layout */
.page-blog-bongx9-code-newbie-guide__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

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

.page-blog-bongx9-code-newbie-guide__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog-bongx9-code-newbie-guide__text-content {
  flex: 1;
  max-width: 50%;
}

.page-blog-bongx9-code-newbie-guide__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 40px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Buttons */
.page-blog-bongx9-code-newbie-guide__cta-button,
.page-blog-bongx9-code-newbie-guide__btn-primary,
.page-blog-bongx9-code-newbie-guide__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-blog-bongx9-code-newbie-guide__cta-button,
.page-blog-bongx9-code-newbie-guide__btn-primary {
  background: var(--bongx9-button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-bongx9-code-newbie-guide__cta-button:hover,
.page-blog-bongx9-code-newbie-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog-bongx9-code-newbie-guide__btn-secondary {
  background-color: transparent;
  color: var(--bongx9-gold-color);
  border-color: var(--bongx9-gold-color);
}

.page-blog-bongx9-code-newbie-guide__btn-secondary:hover {
  background-color: var(--bongx9-gold-color);
  color: var(--bongx9-background);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog-bongx9-code-newbie-guide__cta-button--large {
  padding: 15px 35px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-blog-bongx9-code-newbie-guide__faq-section {
  padding: 60px 0;
}

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

.page-blog-bongx9-code-newbie-guide__faq-item {
  background-color: var(--bongx9-card-bg);
  border: 1px solid var(--bongx9-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: var(--bongx9-text-main);
}

.page-blog-bongx9-code-newbie-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--bongx9-gold-color);
  cursor: pointer;
  background-color: var(--bongx9-deep-green);
  border-bottom: 1px solid var(--bongx9-border-color);
  list-style: none; /* For details/summary */
}

.page-blog-bongx9-code-newbie-guide__faq-item[open] > .page-blog-bongx9-code-newbie-guide__faq-question {
  border-bottom: 1px solid var(--bongx9-border-color);
}

.page-blog-bongx9-code-newbie-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-bongx9-code-newbie-guide__faq-qtext {
  flex-grow: 1;
}

.page-blog-bongx9-code-newbie-guide__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-blog-bongx9-code-newbie-guide__faq-answer {
  padding: 20px 25px;
  font-size: 0.95em;
  color: var(--bongx9-text-secondary);
  background-color: var(--bongx9-card-bg);
}

/* CTA Banner */
.page-blog-bongx9-code-newbie-guide__cta-banner {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--bongx9-deep-green);
  border-top: 1px solid var(--bongx9-divider-color);
}

.page-blog-bongx9-code-newbie-guide__cta-title {
  font-size: 2.5em;
  color: var(--bongx9-gold-color);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog-bongx9-code-newbie-guide__cta-description {
  font-size: 1.2em;
  color: var(--bongx9-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-bongx9-code-newbie-guide__hero-image-wrapper {
    max-width: 900px;
  }
  .page-blog-bongx9-code-newbie-guide__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-blog-bongx9-code-newbie-guide__section-title {
    font-size: 2em;
  }
  .page-blog-bongx9-code-newbie-guide__image-text-block {
    flex-direction: column;
    text-align: center;
  }
  .page-blog-bongx9-code-newbie-guide__image-content,
  .page-blog-bongx9-code-newbie-guide__text-content {
    max-width: 100%;
  }
  .page-blog-bongx9-code-newbie-guide__image-text-block--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-blog-bongx9-code-newbie-guide {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-blog-bongx9-code-newbie-guide__hero-section {
    padding-bottom: 30px;
  }
  .page-blog-bongx9-code-newbie-guide__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-blog-bongx9-code-newbie-guide__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-blog-bongx9-code-newbie-guide__description {
    font-size: 1em;
  }
  .page-blog-bongx9-code-newbie-guide__content-section {
    padding: 40px 0;
  }
  .page-blog-bongx9-code-newbie-guide__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-blog-bongx9-code-newbie-guide__sub-title {
    font-size: 1.4em;
  }
  .page-blog-bongx9-code-newbie-guide__text-block {
    font-size: 0.95em;
  }
  .page-blog-bongx9-code-newbie-guide__cta-button,
  .page-blog-bongx9-code-newbie-guide__btn-primary,
  .page-blog-bongx9-code-newbie-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog-bongx9-code-newbie-guide__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-blog-bongx9-code-newbie-guide__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }
  .page-blog-bongx9-code-newbie-guide__cta-banner {
    padding: 60px 20px;
  }
  .page-blog-bongx9-code-newbie-guide__cta-title {
    font-size: 2em;
  }
  .page-blog-bongx9-code-newbie-guide__cta-description {
    font-size: 1em;
  }
  /* All images and their containers must be responsive */
  .page-blog-bongx9-code-newbie-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog-bongx9-code-newbie-guide__section,
  .page-blog-bongx9-code-newbie-guide__card,
  .page-blog-bongx9-code-newbie-guide__container,
  .page-blog-bongx9-code-newbie-guide__hero-section,
  .page-blog-bongx9-code-newbie-guide__hero-image-wrapper,
  .page-blog-bongx9-code-newbie-guide__image-text-block,
  .page-blog-bongx9-code-newbie-guide__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-blog-bongx9-code-newbie-guide__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-blog-bongx9-code-newbie-guide__image-text-block {
    flex-direction: column;
    gap: 20px;
  }
  .page-blog-bongx9-code-newbie-guide__image-text-block--reverse {
    flex-direction: column;
  }
  .page-blog-bongx9-code-newbie-guide__cta-banner .page-blog-bongx9-code-newbie-guide__cta-button {
    margin-bottom: 0; /* Remove extra margin on last button */
  }
}