/* ============================================
   MODERN FAQ PAGE – sss.css
   Tennis Green / Orange Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* === PAGE BASE === */
#main, .container-fluid {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

.page .main-page-wrapper,
.elementor-section-wrap {
  background: #FAF8F5 !important;
}

/* === BREADCRUMB === */
.page-top.page-header-6 {
  background: #FAF8F5 !important;
  padding: 14px 0 !important;
  margin-top: 0 !important;
  border-bottom: 1px solid #E0E0E0;
}

.solok {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.85rem !important;
  color: #757575 !important;
  font-weight: 500 !important;
  margin-left: 5px;
}

.solok a {
  color: #2E7D32 !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}

.solok a:hover {
  color: #1B5E20 !important;
  text-decoration: underline !important;
}

/* === FAQ HERO HEADER === */
.sss-hero {
  text-align: center;
  padding: 48px 20px 36px;
}

.sss-hero__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.sss-hero__icon svg path {
  fill: #2E7D32;
}

.sss-hero h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #212121;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.sss-hero p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #757575;
  margin: 0;
  line-height: 1.5;
}

/* === FAQ LIST === */
ul.sss {
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 auto 60px !important;
  padding: 0 !important;
  list-style: none !important;
}

ul.sss li {
  height: auto !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  transition: none !important;
  border: 1px solid #E0E0E0 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  list-style-type: none !important;
  animation: sssFadeIn 0.4s ease both;
}

ul.sss li:nth-child(1) { animation-delay: 0.03s; }
ul.sss li:nth-child(2) { animation-delay: 0.06s; }
ul.sss li:nth-child(3) { animation-delay: 0.09s; }
ul.sss li:nth-child(4) { animation-delay: 0.12s; }
ul.sss li:nth-child(5) { animation-delay: 0.15s; }
ul.sss li:nth-child(6) { animation-delay: 0.18s; }
ul.sss li:nth-child(7) { animation-delay: 0.21s; }
ul.sss li:nth-child(8) { animation-delay: 0.24s; }
ul.sss li:nth-child(9) { animation-delay: 0.27s; }
ul.sss li:nth-child(10) { animation-delay: 0.30s; }

ul.sss li:hover {
  height: auto !important;
  border-color: #66BB6A !important;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08) !important;
}

/* Question link (trigger) */
ul.sss a {
  height: auto !important;
  min-height: 56px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #212121 !important;
  text-decoration: none !important;
  padding: 18px 48px 18px 20px !important;
  background: transparent !important;
  border-radius: 14px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  position: relative;
  line-height: 1.4 !important;
}

ul.sss a::after {
  content: '\f078';
  font-family: 'FontAwesome';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: #9E9E9E;
  transition: transform 0.3s ease, color 0.3s ease;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #F0EDE8;
  display: flex;
  align-items: center;
  justify-content: center;
}

ul.sss li:hover a {
  color: #2E7D32 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
}

ul.sss li:hover a::after,
ul.sss li.open a::after {
  transform: translateY(-50%) rotate(180deg);
  color: #2E7D32;
  background: #e8f5e9;
}

/* Answer text */
ul.sss li b {
  display: block !important;
  padding: 0 20px 20px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
  color: #616161 !important;
  line-height: 1.7 !important;
  border-top: 1px solid #E0E0E0;
  margin: 0 20px !important;
  padding-top: 16px !important;
}

/* Hover expand override — allow proper expansion */
ul.sss .long:hover {
  height: auto !important;
}

/* === JS-BASED ACCORDION (open class) === */
ul.sss li:not(.open) b {
  display: none !important;
}

ul.sss li.open b {
  display: block !important;
}

ul.sss li.open {
  border-color: #66BB6A !important;
  box-shadow: 0 4px 16px rgba(46, 125, 50, 0.08) !important;
}

ul.sss li.open a {
  color: #2E7D32 !important;
}

/* === ANIMATIONS === */
@keyframes sssFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
  ul.sss {
    max-width: 100% !important;
    padding: 0 12px !important;
  }

  ul.sss a {
    font-size: 0.85rem !important;
    padding: 16px 44px 16px 16px !important;
  }

  ul.sss li b {
    font-size: 0.82rem !important;
    margin: 0 12px !important;
    padding: 0 12px 16px !important;
  }

  .sss-hero h2 {
    font-size: 1.4rem;
  }
}
