/* style/blog-fly88-code-faqs-and-troubleshooting.css */

:root {
  --fly88-primary-color: #11A84E;
  --fly88-secondary-color: #22C768;
  --fly88-card-bg: #11271B;
  --fly88-background: #08160F;
  --fly88-text-main: #F2FFF6;
  --fly88-text-secondary: #A7D9B8;
  --fly88-border: #2E7A4E;
  --fly88-glow: #57E38D;
  --fly88-gold: #F2C14E;
  --fly88-divider: #1E3A2A;
  --fly88-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-blog-fly88-code-faqs-and-troubleshooting {
  background-color: var(--fly88-background);
  color: var(--fly88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-blog-fly88-code-faqs-and-troubleshooting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-blog-fly88-code-faqs-and-troubleshooting__hero-image-wrapper {
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

.page-blog-fly88-code-faqs-and-troubleshooting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the image for text readability */
}

.page-blog-fly88-code-faqs-and-troubleshooting__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 900px;
  width: 90%;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-blog-fly88-code-faqs-and-troubleshooting__main-title {
  color: var(--fly88-text-main);
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog-fly88-code-faqs-and-troubleshooting__description {
  color: var(--fly88-text-secondary);
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
}

.page-blog-fly88-code-faqs-and-troubleshooting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-blog-fly88-code-faqs-and-troubleshooting__btn-primary,
.page-blog-fly88-code-faqs-and-troubleshooting__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-blog-fly88-code-faqs-and-troubleshooting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--fly88-text-main);
  border: 2px solid transparent;
}

.page-blog-fly88-code-faqs-and-troubleshooting__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-blog-fly88-code-faqs-and-troubleshooting__btn-secondary {
  background: transparent;
  color: var(--fly88-primary-color);
  border: 2px solid var(--fly88-primary-color);
}

.page-blog-fly88-code-faqs-and-troubleshooting__btn-secondary:hover {
  background: var(--fly88-primary-color);
  color: var(--fly88-text-main);
}

/* Content Area */
.page-blog-fly88-code-faqs-and-troubleshooting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--fly88-text-main);
}

.page-blog-fly88-code-faqs-and-troubleshooting__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-fly88-code-faqs-and-troubleshooting__section-title {
  color: var(--fly88-primary-color);
  font-size: 2.2em;
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
}

.page-blog-fly88-code-faqs-and-troubleshooting__text-block {
  margin-bottom: 20px;
  color: var(--fly88-text-secondary);
}

.page-blog-fly88-code-faqs-and-troubleshooting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-blog-fly88-code-faqs-and-troubleshooting__steps-list,
.page-blog-fly88-code-faqs-and-troubleshooting__troubleshooting-list,
.page-blog-fly88-code-faqs-and-troubleshooting__optimization-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-blog-fly88-code-faqs-and-troubleshooting__steps-list li,
.page-blog-fly88-code-faqs-and-troubleshooting__troubleshooting-list li,
.page-blog-fly88-code-faqs-and-troubleshooting__optimization-list li {
  background-color: var(--fly88-card-bg);
  border: 1px solid var(--fly88-border);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  color: var(--fly88-text-main);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-blog-fly88-code-faqs-and-troubleshooting__steps-list li strong {
  color: var(--fly88-primary-color);
}

/* FAQ Section */
.page-blog-fly88-code-faqs-and-troubleshooting__faq-list {
  margin-top: 30px;
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-item {
  background-color: var(--fly88-card-bg);
  border: 1px solid var(--fly88-border);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--fly88-deep-green);
  color: var(--fly88-text-main);
  font-weight: bold;
  cursor: pointer;
  user-select: none;
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--fly88-gold);
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-answer {
  padding: 0 20px 15px;
  color: var(--fly88-text-secondary);
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-answer p {
  margin: 10px 0 0;
}

/* Active FAQ item (for JS fallback) */
.page-blog-fly88-code-faqs-and-troubleshooting__faq-item.active .page-blog-fly88-code-faqs-and-troubleshooting__faq-answer {
  max-height: 2000px; /* Large enough to show content */
  transition: max-height 0.5s ease-out;
}

/* Footer CTA */
.page-blog-fly88-code-faqs-and-troubleshooting__cta-footer {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-blog-fly88-code-faqs-and-troubleshooting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__hero-content {
    width: 95%;
    padding: 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__main-title {
    font-size: 2em;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__description {
    font-size: 1em;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__btn-primary,
  .page-blog-fly88-code-faqs-and-troubleshooting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__content-area {
    padding: 20px 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__steps-list li,
  .page-blog-fly88-code-faqs-and-troubleshooting__troubleshooting-list li,
  .page-blog-fly88-code-faqs-and-troubleshooting__optimization-list li,
  .page-blog-fly88-code-faqs-and-troubleshooting__faq-item {
    padding: 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__faq-question {
    padding: 15px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__faq-answer {
    padding: 0 15px 10px;
  }

  .page-blog-fly88-code-faqs-and-troubleshooting__cta-footer {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
}

/* Ensure all image containers handle overflow */
.page-blog-fly88-code-faqs-and-troubleshooting__hero-image-wrapper,
.page-blog-fly88-code-faqs-and-troubleshooting__image-content {
  overflow: hidden;
  box-sizing: border-box;
}

/* Ensure content text colors are safe on dark backgrounds */
.page-blog-fly88-code-faqs-and-troubleshooting p,
.page-blog-fly88-code-faqs-and-troubleshooting li,
.page-blog-fly88-code-faqs-and-troubleshooting a {
  color: var(--fly88-text-secondary);
}

.page-blog-fly88-code-faqs-and-troubleshooting h1,
.page-blog-fly88-code-faqs-and-troubleshooting h2,
.page-blog-fly88-code-faqs-and-troubleshooting h3,
.page-blog-fly88-code-faqs-and-troubleshooting h4 {
  color: var(--fly88-text-main);
}

.page-blog-fly88-code-faqs-and-troubleshooting__section-title {
  color: var(--fly88-gold); /* Using gold for main titles for better visual hierarchy on dark background */
}

.page-blog-fly88-code-faqs-and-troubleshooting__faq-item strong {
  color: var(--fly88-gold);
}