/* style/blog-what-is-b888-code.css */

/* Root variables for colors */
:root {
  --page-bg-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-blog-what-is-b888-code {
  background-color: var(--page-bg-color); /* Matches Background color */
  color: var(--text-main-color); /* Matches Text Main color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-blog-what-is-b888-code__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, as body handles header offset */
  background-color: var(--card-bg-color);
  overflow: hidden;
}

.page-blog-what-is-b888-code__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-blog-what-is-b888-code__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-blog-what-is-b888-code__hero-content-wrapper {
  width: 100%;
  max-width: 1000px;
  padding: 40px 20px;
  text-align: center;
  background-color: var(--card-bg-color); /* Card BG */
  box-sizing: border-box;
  z-index: 1;
  color: var(--text-main-color);
}

.page-blog-what-is-b888-code__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--gold-color); /* Gold color for main title */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-blog-what-is-b888-code__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary-color); /* Text Secondary */
}

.page-blog-what-is-b888-code__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
  background-color: var(--page-bg-color); /* Ensure content area uses page background */
  color: var(--text-main-color);
}

.page-blog-what-is-b888-code__article {
  background-color: var(--card-bg-color); /* Card BG for article content */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color); /* Border color */
}

.page-blog-what-is-b888-code__section-title {
  font-size: 2.2em;
  color: var(--glow-color); /* Glow color for section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--divider-color); /* Divider color */\  padding-bottom: 10px;
}

.page-blog-what-is-b888-code__sub-title {
  font-size: 1.6em;
  color: var(--text-main-color); /* Text Main color */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-blog-what-is-b888-code__paragraph {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: var(--text-secondary-color); /* Text Secondary */
}

.page-blog-what-is-b888-code__list,
.page-blog-what-is-b888-code__ordered-list {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--text-secondary-color); /* Text Secondary */
}

.page-blog-what-is-b888-code__list-item {
  margin-bottom: 10px;
}

.page-blog-what-is-b888-code__list-item strong {
  color: var(--text-main-color);
}

.page-blog-what-is-b888-code__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  object-fit: cover;
}

.page-blog-what-is-b888-code__btn-primary,
.page-blog-what-is-b888-code__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-what-is-b888-code__btn-primary {
  background: var(--btn-gradient); /* Button gradient */
  color: var(--text-main-color); /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog-what-is-b888-code__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-what-is-b888-code__btn-secondary {
  background-color: transparent;
  color: var(--glow-color); /* Glow color */
  border: 2px solid var(--glow-color); /* Glow color border */
}

.page-blog-what-is-b888-code__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--page-bg-color); /* Page BG for contrast */
  transform: translateY(-2px);
}

.page-blog-what-is-b888-code__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* FAQ styles */
.page-blog-what-is-b888-code__faq-list {
  margin-top: 30px;
  background-color: var(--deep-green-color); /* Deep Green for FAQ background */
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.page-blog-what-is-b888-code__faq-item {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--divider-color); /* Divider color */
  padding-bottom: 15px;
}

.page-blog-what-is-b888-code__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-blog-what-is-b888-code__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2em;
  color: var(--text-main-color); /* Text Main */
  padding: 10px 0;
  list-style: none; /* For details/summary */
}

.page-blog-what-is-b888-code__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-what-is-b888-code__faq-qtext {
  flex-grow: 1;
}

.page-blog-what-is-b888-code__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: var(--glow-color); /* Glow color */
}

.page-blog-what-is-b888-code__faq-answer {
  padding: 10px 0 5px 0;
  font-size: 1em;
  color: var(--text-secondary-color); /* Text Secondary */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog-what-is-b888-code__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-blog-what-is-b888-code__article {
    padding: 30px;
  }

  .page-blog-what-is-b888-code__section-title {
    font-size: 2em;
  }

  .page-blog-what-is-b888-code__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-blog-what-is-b888-code__hero-section {
    padding-top: 10px !important;
  }

  .page-blog-what-is-b888-code__hero-content-wrapper,
  .page-blog-what-is-b888-code__content-area,
  .page-blog-what-is-b888-code__article,
  .page-blog-what-is-b888-code__faq-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog-what-is-b888-code__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-blog-what-is-b888-code__hero-description,
  .page-blog-what-is-b888-code__paragraph,
  .page-blog-what-is-b888-code__list-item,
  .page-blog-what-is-b888-code__faq-answer p {
    font-size: 1em !important;
    line-height: 1.5 !important;
  }

  .page-blog-what-is-b888-code__section-title {
    font-size: 1.8em !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  .page-blog-what-is-b888-code__sub-title {
    font-size: 1.3em !important;
    margin-top: 25px !important;
    margin-bottom: 10px !important;
  }

  .page-blog-what-is-b888-code__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-blog-what-is-b888-code__btn-primary,
  .page-blog-what-is-b888-code__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-blog-what-is-b888-code__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-blog-what-is-b888-code__faq-question {
    font-size: 1.1em !important;
  }
}

@media (max-width: 480px) {
  .page-blog-what-is-b888-code__hero-title {
    font-size: clamp(1.5em, 8vw, 2em);
  }
}