/* =========================================
   Halaman: FAQ Nursing Home
========================================= */

/* --- CINEMATIC FAQ HERO --- */
.faq-hero-cinematic {
    background: linear-gradient(to right, rgba(49, 71, 26, 0.9) 0%, rgba(26, 71, 35, 0.8) 100%), url('/assets/img/header-knh.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 160px 0 120px;
    text-align: center;
    position: relative;
    color: #fff;
}

.faq-hero-content { position: relative; z-index: 2; max-width: 850px; margin: 0 auto; }
.faq-hero-content .sub-title { color: #B7FFB1; border-color: #BFECB9; margin-bottom: 15px; }
.faq-hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; color: #fff; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.faq-hero-content p { color: rgba(255,255,255,0.95); font-size: 1.15rem; margin-bottom: 50px; line-height: 1.8; font-weight: 400; text-shadow: 0 2px 10px rgba(0,0,0,0.4); }

/* Search Bar Box */
.search-box {
    display: flex; align-items: center; background: rgba(255, 255, 255, 0.95); padding: 8px 10px; 
    border-radius: 50px; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.5); transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    max-width: 650px; margin: 0 auto; backdrop-filter: blur(10px);
}
.search-box:focus-within { transform: translateY(-5px); box-shadow: 0 25px 50px rgba(0,0,0,0.3); border-color: var(--brand-green); background: #fff;}
.search-box i { padding: 0 25px; color: var(--brand-green); font-size: 1.3rem; }
.search-box input { border: none; outline: none; padding: 18px 0; width: 100%; font-size: 1.1rem; font-family: inherit; color: var(--text-dark); background: transparent; font-weight: 500;}
.search-box input::placeholder { color: #94a3b8; font-weight: 400;}
.search-btn { background: var(--brand-green); color: #fff; border: none; padding: 16px 35px; border-radius: 40px; font-weight: 700; font-size: 1.05rem; cursor: pointer; transition: 0.3s; font-family: inherit; }
.search-btn:hover { background: var(--brand-green-hover); box-shadow: 0 10px 20px rgba(45, 174, 65, 0.3); }

/* --- FAQ MAIN CONTENT --- */
.faq-main { padding: 100px 0 120px; background: #fff; position: relative; z-index: 5; }

/* Category Tabs */
.faq-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-bottom: 60px; }
.faq-tab-btn {
    background: #fff; border: 1px solid #e2e8f0; color: var(--text-gray);
    padding: 14px 28px; border-radius: 30px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.3s ease; font-family: inherit;
}
.faq-tab-btn:hover { border-color: var(--brand-green); color: var(--brand-green); transform: translateY(-2px); }
.faq-tab-btn.active { background: var(--brand-green); border-color: var(--brand-green); color: #fff; box-shadow: 0 10px 20px rgba(45, 174, 65, 0.2); }

/* Accordion Wrapper */
.faq-list-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px; /* INI KUNCINYA: Memberikan jarak antar pertanyaan sebesar 20px */
}

/* Tambahkan ini jika ingin memastikan jarak tetap ada meski browser lama tidak support gap */
.faq-item-modern {
    margin-bottom: 10px; /* Jarak cadangan */
    width: 100%;
}

.faq-item-modern:last-child {
    margin-bottom: 0; /* Menghilangkan margin pada item terakhir agar tidak merusak padding section */
}

/* No Result State */
.no-result { text-align: center; padding: 60px 20px; display: none; background: #f8fafc; border-radius: 20px; border: 1px dashed #cbd5e1; }
.no-result i { font-size: 3.5rem; color: #cbd5e1; margin-bottom: 20px; }
.no-result h4 { font-size: 1.4rem; color: var(--text-dark); margin-bottom: 10px; }
.no-result p { color: var(--text-gray); margin-bottom: 0;}

/* --- STILL HAVE QUESTIONS CTA --- */
.faq-contact-cta { background: linear-gradient(135deg, #059D2B 0%, #2c6a1f 100%); padding: 60px 0; text-align: center; color: #fff; border-radius: 30px; margin: 0 auto 100px; max-width: 1200px; position: relative; overflow: hidden; box-shadow: 0 30px 60px rgba(15, 41, 30, 0.2);}
.faq-contact-cta::after { content:''; position: absolute; right: 0; bottom: 0; width: 400px; height: 400px; background: radial-gradient(circle, rgba(45,174,65,0.15) 0%, transparent 70%); border-radius: 50%; transform: translate(30%, 30%); }
.faq-contact-cta::before { content:''; position: absolute; left: 0; top: 0; width: 300px; height: 300px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); border-radius: 50%; transform: translate(-30%, -30%); }
.faq-contact-cta h2 { color: #fff; font-size: 2.5rem; margin-bottom: 15px; position: relative; z-index: 2;}
.faq-contact-cta p { color: rgba(255,255,255,0.85); font-size: 1.15rem; margin-bottom: 40px; position: relative; z-index: 2; max-width: 600px; margin-left: auto; margin-right: auto;}
.cta-btn-group { display: flex; justify-content: center; gap: 20px; position: relative; z-index: 2;}
.btn-white { background: #fff; color: var(--primary-dark); padding: 16px 35px; border-radius: 30px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; border: 1px solid #fff; transition: 0.3s; text-decoration: none;}
.btn-white:hover { background: transparent; color: #fff; transform: translateY(-3px); }

/* State Default Terbuka untuk FAQ Item Pertama */
.faq-answer-modern.faq-answer-open {
    max-height: 500px;
    opacity: 1;
}

/* =========================================
   STYLING TOMBOL CTA BAWAH (BANTUAN LANJUTAN)
========================================= */
.faq-contact-cta .cta-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Tombol WA Spesifik di Halaman FAQ */
.btn-faq-wa {
    background: var(--wa-green, #25D366); /* Fallback warna WA */
    border: 2px solid var(--wa-green, #25D366);
    color: #ffffff;
    padding: 16px 35px;
    border-radius: 30px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn-faq-wa:hover {
    background: transparent;
    color: var(--wa-green, #25D366);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}
/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .faq-hero-cinematic { padding: 120px 0 80px; background-attachment: scroll; }
    .faq-hero-content h1 { font-size: 2.5rem; }
    .search-box { flex-direction: column; padding: 8px; border-radius: 20px; background: #fff;}
    .search-btn { width: 100%; border-radius: 15px; padding: 15px; }
    .search-box i { display: none; }
    .search-box input { padding: 15px 20px; text-align: center;}
    
    .faq-contact-cta { border-radius: 20px; margin: 0 20px 80px; padding: 60px 30px; }
    .cta-btn-group { flex-direction: column; }
}