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

/* Base styles for the page content */
.page-af88-app-faq {
  background-color: var(--af88-background-color);
  color: var(--af88-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-af88-app-faq__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden;
}

.page-af88-app-faq__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
}

.page-af88-app-faq__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text contrast */
}

.page-af88-app-faq__hero-content {
  position: relative;
  z-index: 10; /* Ensure text is above image */
  max-width: 900px;
  margin-top: 40px;
}

.page-af88-app-faq__main-title {
  color: var(--af88-gold-color);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-af88-app-faq__description {
  color: var(--af88-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-af88-app-faq__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-af88-app-faq__btn-primary,
.page-af88-app-faq__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-af88-app-faq__btn-primary {
  background: var(--af88-button-gradient);
  color: var(--af88-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-af88-app-faq__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-af88-app-faq__btn-secondary {
  background: transparent;
  color: var(--af88-glow-color);
  border: 2px solid var(--af88-glow-color);
}

.page-af88-app-faq__btn-secondary:hover {
  background: var(--af88-glow-color);
  color: var(--af88-background-color);
  transform: translateY(-3px);
}

.page-af88-app-faq__content-area {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background-color: var(--af88-card-bg);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  color: var(--af88-text-main);
}

.page-af88-app-faq__section-title {
  color: var(--af88-gold-color);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--af88-divider-color);
  padding-bottom: 15px;
}

.page-af88-app-faq__faq-list {
  margin-bottom: 40px;
}

.page-af88-app-faq__faq-item {
  background-color: var(--af88-deep-green);
  border: 1px solid var(--af88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-af88-app-faq__faq-item summary {
  list-style: none;
}

.page-af88-app-faq__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-af88-app-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--af88-text-main);
  cursor: pointer;
  background-color: var(--af88-primary-color);
  transition: background-color 0.3s ease;
}

.page-af88-app-faq__faq-question:hover {
  background-color: var(--af88-secondary-color);
}

.page-af88-app-faq__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-af88-app-faq__faq-item[open] .page-af88-app-faq__faq-toggle {
  transform: rotate(45deg);
}

.page-af88-app-faq__faq-answer {
  padding: 20px;
  background-color: var(--af88-card-bg);
  color: var(--af88-text-secondary);
  font-size: 1rem;
  border-top: 1px solid var(--af88-border-color);
}

.page-af88-app-faq__faq-answer p {
  margin-bottom: 15px;
}

.page-af88-app-faq__faq-answer ul,
.page-af88-app-faq__faq-answer ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-af88-app-faq__faq-answer li {
  margin-bottom: 8px;
}

.page-af88-app-faq__image-inline {
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-af88-app-faq__cta-bottom-section {
  background-color: var(--af88-deep-green);
  padding: 60px 20px;
  text-align: center;
  color: var(--af88-text-main);
}

.page-af88-app-faq__cta-bottom-section .page-af88-app-faq__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-af88-app-faq__cta-title {
  color: var(--af88-gold-color);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.page-af88-app-faq__cta-description {
  color: var(--af88-text-secondary);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-af88-app-faq__hero-content {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .page-af88-app-faq {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-af88-app-faq__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-af88-app-faq__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-af88-app-faq__description {
    font-size: 1rem;
  }

  .page-af88-app-faq__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-af88-app-faq__btn-primary,
  .page-af88-app-faq__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1rem;
  }

  .page-af88-app-faq__content-area {
    padding: 30px 15px;
    margin: 20px auto;
  }

  .page-af88-app-faq__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-af88-app-faq__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-af88-app-faq__faq-answer {
    font-size: 0.95rem;
    padding: 15px;
  }

  /* Mobile image responsive */
  .page-af88-app-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
  }

  .page-af88-app-faq__section,
  .page-af88-app-faq__card,
  .page-af88-app-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-af88-app-faq__cta-bottom-section {
    padding: 40px 15px;
  }

  .page-af88-app-faq__cta-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-af88-app-faq__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .page-af88-app-faq__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-af88-app-faq__faq-question {
    font-size: 0.95rem;
  }

  .page-af88-app-faq__faq-answer {
    font-size: 0.9rem;
  }
}