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

.page-blog-me88-code-faq-and-guide {
  font-family: 'Arial', sans-serif;
  color: var(--me88-text-main);
  background-color: var(--me88-background);
  line-height: 1.6;
}

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

.page-blog-me88-code-faq-and-guide__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top from header, this is for visual spacing */
  background-color: var(--me88-deep-green);
  overflow: hidden;
}

.page-blog-me88-code-faq-and-guide__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog-me88-code-faq-and-guide__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-blog-me88-code-faq-and-guide__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 1;
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
  position: relative; /* Ensure it's above the image */
  background-color: var(--me88-card-bg);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--me88-border-color);
}

.page-blog-me88-code-faq-and-guide__main-title {
  color: var(--me88-gold-color);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 100%; /* Ensure H1 doesn't overflow */
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-blog-me88-code-faq-and-guide__intro-text {
  color: var(--me88-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.page-blog-me88-code-faq-and-guide__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog-me88-code-faq-and-guide__btn-primary,
.page-blog-me88-code-faq-and-guide__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  width: auto; /* Default for desktop */
}

.page-blog-me88-code-faq-and-guide__btn-primary {
  background: var(--me88-button-gradient);
  color: var(--me88-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-blog-me88-code-faq-and-guide__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-blog-me88-code-faq-and-guide__btn-secondary {
  background-color: transparent;
  color: var(--me88-primary-color);
  border: 2px solid var(--me88-primary-color);
}

.page-blog-me88-code-faq-and-guide__btn-secondary:hover {
  background-color: var(--me88-primary-color);
  color: var(--me88-text-main);
}

.page-blog-me88-code-faq-and-guide__content-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--me88-divider-color);
}

.page-blog-me88-code-faq-and-guide__content-section:last-of-type {
  border-bottom: none;
}

.page-blog-me88-code-faq-and-guide__dark-bg {
  background-color: var(--me88-card-bg);
}

.page-blog-me88-code-faq-and-guide__section-title {
  color: var(--me88-primary-color);
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog-me88-code-faq-and-guide__text-block {
  font-size: 1.1rem;
  color: var(--me88-text-secondary);
  margin-bottom: 40px;
  text-align: justify;
}

.page-blog-me88-code-faq-and-guide__text-block p {
  margin-bottom: 1em;
}

.page-blog-me88-code-faq-and-guide__card-grid,
.page-blog-me88-code-faq-and-guide__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog-me88-code-faq-and-guide__card {
  background-color: var(--me88-card-bg);
  border: 1px solid var(--me88-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog-me88-code-faq-and-guide__card:hover {
  transform: translateY(-5px);
}

.page-blog-me88-code-faq-and-guide__card-image,
.page-blog-me88-code-faq-and-guide__promo-image {
  width: 100%;
  max-width: 400px; /* Recommended for card images */
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-blog-me88-code-faq-and-guide__card-title,
.page-blog-me88-code-faq-and-guide__promo-title {
  color: var(--me88-primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-blog-me88-code-faq-and-guide__card p,
.page-blog-me88-code-faq-and-guide__promo-card p {
  color: var(--me88-text-secondary);
  font-size: 1rem;
  text-align: justify;
}

.page-blog-me88-code-faq-and-guide__steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog-me88-code-faq-and-guide__step-item {
  background-color: var(--me88-card-bg);
  border: 1px solid var(--me88-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog-me88-code-faq-and-guide__step-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-blog-me88-code-faq-and-guide__step-title {
  color: var(--me88-primary-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-blog-me88-code-faq-and-guide__step-item p {
  color: var(--me88-text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog-me88-code-faq-and-guide__process-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  position: relative;
  padding-top: 50px;
}

.page-blog-me88-code-faq-and-guide__process-flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background-color: var(--me88-divider-color);
  z-index: 0;
}

.page-blog-me88-code-faq-and-guide__process-step {
  background-color: var(--me88-card-bg);
  border: 1px solid var(--me88-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-blog-me88-code-faq-and-guide__step-number {
  background-color: var(--me88-primary-color);
  color: var(--me88-text-main);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-blog-me88-code-faq-and-guide__process-step p {
  color: var(--me88-text-secondary);
  font-size: 1rem;
  text-align: justify;
  margin-bottom: 20px;
}

.page-blog-me88-code-faq-and-guide__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-blog-me88-code-faq-and-guide__terms-list,
.page-blog-me88-code-faq-and-guide__tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog-me88-code-faq-and-guide__term-item,
.page-blog-me88-code-faq-and-guide__tip-item {
  background-color: var(--me88-card-bg);
  border: 1px solid var(--me88-border-color);
  border-radius: 10px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-blog-me88-code-faq-and-guide__term-item:last-child,
.page-blog-me88-code-faq-and-guide__tip-item:last-child {
  margin-bottom: 0;
}

.page-blog-me88-code-faq-and-guide__term-title,
.page-blog-me88-code-faq-and-guide__tip-title {
  color: var(--me88-primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-blog-me88-code-faq-and-guide__term-item p,
.page-blog-me88-code-faq-and-guide__tip-item p {
  color: var(--me88-text-secondary);
  font-size: 1rem;
  text-align: justify;
}

.page-blog-me88-code-faq-and-guide__faq-list {
  margin-top: 40px;
}

.page-blog-me88-code-faq-and-guide__faq-item {
  background-color: var(--me88-card-bg);
  border: 1px solid var(--me88-border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.page-blog-me88-code-faq-and-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--me88-primary-color);
  cursor: pointer;
  background-color: var(--me88-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-blog-me88-code-faq-and-guide__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-me88-code-faq-and-guide__faq-question:hover {
  background-color: rgba(var(--me88-primary-color-rgb), 0.1);
}

.page-blog-me88-code-faq-and-guide__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--me88-gold-color);
  margin-left: 15px;
}

.page-blog-me88-code-faq-and-guide__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--me88-text-secondary);
  text-align: justify;
}

.page-blog-me88-code-faq-and-guide__faq-answer p {
  margin-top: 10px;
}

.page-blog-me88-code-faq-and-guide__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-blog-me88-code-faq-and-guide a {
  color: var(--me88-primary-color);
  text-decoration: none;
}

.page-blog-me88-code-faq-and-guide a:hover {
  text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-blog-me88-code-faq-and-guide {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-me88-code-faq-and-guide__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog-me88-code-faq-and-guide__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-blog-me88-code-faq-and-guide__hero-content {
    padding: 30px 15px;
    margin-top: -50px; /* Adjust for smaller screens */
  }

  .page-blog-me88-code-faq-and-guide__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-blog-me88-code-faq-and-guide__intro-text {
    font-size: 1rem;
  }

  .page-blog-me88-code-faq-and-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-me88-code-faq-and-guide__btn-primary,
  .page-blog-me88-code-faq-and-guide__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }

  .page-blog-me88-code-faq-and-guide__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-blog-me88-code-faq-and-guide__text-block {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-blog-me88-code-faq-and-guide__card-grid,
  .page-blog-me88-code-faq-and-guide__promo-grid,
  .page-blog-me88-code-faq-and-guide__steps-list,
  .page-blog-me88-code-faq-and-guide__process-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-me88-code-faq-and-guide__card,
  .page-blog-me88-code-faq-and-guide__step-item,
  .page-blog-me88-code-faq-and-guide__process-step,
  .page-blog-me88-code-faq-and-guide__term-item,
  .page-blog-me88-code-faq-and-guide__tip-item,
  .page-blog-me88-code-faq-and-guide__faq-item {
    padding: 20px !important;
  }

  .page-blog-me88-code-faq-and-guide__card-image,
  .page-blog-me88-code-faq-and-guide__promo-image,
  .page-blog-me88-code-faq-and-guide__step-image,
  .page-blog-me88-code-faq-and-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-blog-me88-code-faq-and-guide__process-flow::before {
    display: none;
  }

  .page-blog-me88-code-faq-and-guide__process-step {
    padding-top: 20px;
  }

  .page-blog-me88-code-faq-and-guide__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-blog-me88-code-faq-and-guide__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

/* Ensure content area images are not smaller than 200px */
.page-blog-me88-code-faq-and-guide img:not([class*="shared-"]) {
  min-width: 200px;
  min-height: 200px;
}

/* Color Contrast Fixes (as per instructions, though primary colors meet standards) */
.page-blog-me88-code-faq-and-guide__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-blog-me88-code-faq-and-guide__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}