/* ==========================================================================
   SMP NEGERI 2 TAROKAN - DEDICATED FAQ & BANTUAN LAYANAN PAGE
   Font Signature: Quicksand (SLiMS 9 Bulian Theme)
   Palette: Deep Navy (#0a2342) & Prestasi Gold (#f59e0b)
   ========================================================================== */

.faq-page {
    background: #f8fafc;
    min-height: 80vh;
    padding-bottom: 80px;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #1e293b;
}

/* --------------------------------------------------------------------------
   HERO HEADER
   -------------------------------------------------------------------------- */
.faq-hero {
    position: relative;
    background: linear-gradient(135deg, #07192e 0%, #0a2342 55%, #154a8a 100%);
    color: #ffffff;
    padding: 56px 0 64px;
    overflow: hidden;
    border-bottom: 3px solid #f59e0b;
}

.faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 18% 25%, rgba(245, 158, 11, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 82% 75%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.faq-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.faq-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.faq-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-breadcrumbs a:hover {
    color: #fbbf24;
}

.faq-breadcrumbs .sep {
    color: #64748b;
    font-size: 0.8rem;
}

.faq-breadcrumbs .active {
    color: #fbbf24;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.faq-hero-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
}

.faq-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.faq-hero h1 span {
    color: #fbbf24;
    display: inline-block;
}

.faq-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 740px;
    margin-left: auto;
    margin-right: auto;
}

/* Live Search Box inside Hero */
.faq-search-box {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.faq-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 6px 10px 6px 20px;
    box-shadow: 0 12px 35px -8px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(245, 158, 11, 0.25);
    transition: all 0.3s ease;
}

.faq-search-wrapper:focus-within {
    box-shadow: 0 16px 40px -6px rgba(0, 0, 0, 0.45), 0 0 0 3px #f59e0b;
    transform: translateY(-2px);
}

.faq-search-icon {
    color: #64748b;
    flex-shrink: 0;
    margin-right: 12px;
    display: flex;
    align-items: center;
}

.faq-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    padding: 10px 0;
    background: transparent;
}

.faq-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.faq-search-clear {
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
    margin-right: 8px;
}

.faq-search-clear:hover {
    background: #fee2e2;
    color: #dc2626;
}

.faq-search-hint {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.faq-search-hint span.tag-suggest {
    background: rgba(255, 255, 255, 0.12);
    color: #f1f5f9;
    padding: 2px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.78rem;
    transition: all 0.2s ease;
}

.faq-search-hint span.tag-suggest:hover {
    background: #f59e0b;
    color: #0a2342;
}

/* --------------------------------------------------------------------------
   MAIN LAYOUT & CATEGORIES
   -------------------------------------------------------------------------- */
.faq-main-wrapper {
    margin-top: -24px;
    position: relative;
    z-index: 10;
}

.faq-category-bar {
    background: #ffffff;
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
    border: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.faq-category-bar::-webkit-scrollbar {
    height: 4px;
}

.faq-category-bar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.faq-cat-btn {
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.faq-cat-btn:hover {
    background: #e2e8f0;
    color: #0a2342;
}

.faq-cat-btn.is-active {
    background: #0a2342;
    color: #fbbf24;
    box-shadow: 0 4px 12px rgba(10, 35, 66, 0.25);
}

.faq-cat-btn .badge-count {
    background: rgba(0, 0, 0, 0.08);
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 999px;
}

.faq-cat-btn.is-active .badge-count {
    background: rgba(251, 191, 36, 0.25);
    color: #fef08a;
}

/* --------------------------------------------------------------------------
   2-COLUMN CONTENT GRID
   -------------------------------------------------------------------------- */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   FAQ LIST & ACCORDIONS
   -------------------------------------------------------------------------- */
.faq-category-group {
    margin-bottom: 40px;
}

.faq-category-group.is-hidden {
    display: none !important;
}

.faq-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}

.faq-group-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a2342, #154a8a);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(10, 35, 66, 0.15);
}

.faq-group-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a2342;
    margin: 0;
}

.faq-item-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}

.faq-item-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.faq-item-card.is-active {
    border-color: #f59e0b;
    box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.18);
}

.faq-btn-trigger {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-item-idx {
    font-size: 0.85rem;
    font-weight: 800;
    color: #94a3b8;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.faq-item-card.is-active .faq-item-idx {
    background: #0a2342;
    color: #fbbf24;
    border-color: #0a2342;
}

.faq-item-q {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.faq-item-card.is-active .faq-item-q {
    color: #0a2342;
}

.faq-item-toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item-card.is-active .faq-item-toggle-icon {
    background: #f59e0b;
    color: #0a2342;
    transform: rotate(180deg);
}

.faq-item-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.faq-item-card.is-active .faq-item-answer {
    max-height: 800px;
}

.faq-answer-inner {
    padding: 0 22px 22px 70px;
    font-size: 0.96rem;
    line-height: 1.75;
    color: #334155;
    border-top: 1px dashed #f1f5f9;
    padding-top: 16px;
}

@media (max-width: 640px) {
    .faq-answer-inner {
        padding-left: 20px;
    }
}

.faq-answer-inner p {
    margin: 0 0 12px;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner strong {
    color: #0a2342;
    font-weight: 700;
}

.faq-answer-inner ul {
    margin: 8px 0 12px 18px;
    padding: 0;
}

.faq-answer-inner li {
    margin-bottom: 6px;
}

/* Empty Search Results */
.faq-empty-state {
    display: none;
    text-align: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 48px 24px;
    border: 2px dashed #cbd5e1;
    margin: 20px 0;
}

.faq-empty-state.is-visible {
    display: block;
}

.faq-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
}

.faq-empty-state h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0a2342;
    margin-bottom: 8px;
}

.faq-empty-state p {
    color: #64748b;
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto 20px;
}

/* --------------------------------------------------------------------------
   SIDEBAR HELPDESK & CALLOUT
   -------------------------------------------------------------------------- */
.faq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-help-card {
    background: linear-gradient(135deg, #0a2342 0%, #154a8a 100%);
    border-radius: 20px;
    padding: 28px 24px;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(10, 35, 66, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.faq-help-card::before {
    content: "";
    position: absolute;
    top: -30px;
    right: -30px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
}

.faq-help-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.18);
    color: #fbbf24;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.faq-help-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.faq-help-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.faq-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #f59e0b;
    color: #0a2342;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.faq-contact-btn:hover {
    background: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.faq-contact-btn.secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.faq-contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* Operational Hours Card */
.faq-info-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.faq-info-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a2342;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.88rem;
}

.faq-hours-list li:last-child {
    border-bottom: none;
}

.faq-hours-list .day {
    font-weight: 700;
    color: #334155;
}

.faq-hours-list .time {
    color: #0a2342;
    font-weight: 600;
}

.faq-hours-list .closed {
    color: #ef4444;
    font-weight: 700;
}

/* PPDB Direct Banner Card */
.faq-ppdb-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid #fde68a;
}

.faq-ppdb-banner h4 {
    font-size: 1rem;
    font-weight: 800;
    color: #92400e;
    margin-bottom: 8px;
}

.faq-ppdb-banner p {
    font-size: 0.88rem;
    color: #78350f;
    line-height: 1.55;
    margin-bottom: 14px;
}

.faq-ppdb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #b45309;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.faq-ppdb-link:hover {
    gap: 10px;
    color: #92400e;
}

/* Responsiveness */
@media (max-width: 768px) {
    .faq-hero {
        padding: 40px 0 48px;
    }

    .faq-hero h1 {
        font-size: 1.85rem;
    }

    .faq-hero p {
        font-size: 0.95rem;
    }

    .faq-search-wrapper {
        padding: 4px 8px 4px 14px;
    }

    .faq-search-input {
        font-size: 0.95rem;
    }

    .faq-btn-trigger {
        padding: 14px 16px;
        gap: 12px;
    }

    .faq-item-q {
        font-size: 0.98rem;
    }
}
