/* ============================================================
   CAMPUS LIFELINE — FAQ.css
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #C62828; --primary-d: #8E0000; --primary-l: #FFCDD2; --primary-ll: #FFEBEE;  --primary-b: #00000083;
    --blue: #1565C0; --blue-l: #E3F2FD;
    --bg: #F8FAFC; --surface: #FFFFFF;
    --ink: #0F172A; --ink-2: #334155; --muted: #64748B; --muted-2: #94A3B8;
    --rule: #E2E8F0;
    --shadow-sm: 0 4px 12px rgba(15,23,42,0.06);
    --shadow-md: 0 12px 32px rgba(15,23,42,0.1);
    --r: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 99px;
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }

/* ══ HEADER ══ */
.faq-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: var(--primary-b);
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.faq-header.scrolled {
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.faq-header.scrolled .faq-brand-text { color: var(--ink); }
.faq-header.scrolled .faq-brand-text .accent { color: var(--primary); }
.faq-header.scrolled .faq-nav-btn.outline {
    color: var(--ink); border-color: var(--rule);
}
.faq-header.scrolled .faq-nav-btn.outline:hover {
    border-color: var(--primary); color: var(--primary); background: var(--primary-ll);
}
.faq-header.scrolled .faq-nav-btn.solid {
    background: var(--primary); border-color: var(--primary); color: white;
}
.faq-header.scrolled .faq-back-btn {
    background: var(--primary-ll); color: var(--primary); border-color: var(--primary-l);
}
.faq-header.scrolled .faq-back-btn:hover { background: var(--primary-l); }
.faq-header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 40px; height: 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.faq-back-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.15); color: white;
    text-decoration: none; transition: all 0.2s;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.faq-back-btn:hover { background: rgba(255,255,255,0.25); border-color: white; }
.faq-logo-img { width: 30px; height: auto; }
.faq-brand-text { font-size: 18px; font-weight: 900; letter-spacing: -0.5px; color: white; }
.faq-brand-text .accent { color: #ff0707; }
.faq-nav { display: flex; gap: 10px; align-items: center; }
.faq-nav-btn {
    font-family: var(--font); font-size: 12px; font-weight: 700;
    padding: 8px 20px; border-radius: var(--r-pill);
    text-decoration: none; transition: all 0.2s;
    cursor: pointer; border: none; white-space: nowrap;
}
.faq-nav-btn.outline {
    color: white; border: 2px solid rgba(255,255,255,0.6); background: transparent;
}
.faq-nav-btn.outline:hover { border-color: white; background: rgba(255,255,255,0.1); }
.faq-nav-btn.solid {
    color: white; background: var(--primary); border: 2px solid var(--primary);
}
.faq-nav-btn.solid:hover { background: #a51f1f; border-color: #a51f1f; }

/* ══ HERO ══ */
.faq-hero {
    background: linear-gradient(135deg, var(--primary-d) 0%, var(--primary) 100%);
    padding: 140px 40px 80px;
    text-align: center;
}
.faq-hero-inner { max-width: 700px; margin: 0 auto; }
.faq-badge {
    display: inline-block; font-size: 11px; font-weight: 800;
    letter-spacing: 1.5px; color: white;
    background: rgba(255,255,255,0.15); border: 1.5px solid rgba(255,255,255,0.3);
    padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 16px;
}
.faq-title { font-size: 42px; font-weight: 900; color: white; letter-spacing: -1.5px; margin-bottom: 12px; }
.faq-subtitle { font-size: 16px; color: rgba(255,255,255,0.75); font-weight: 500; }

/* ══ FAQ SECTION ══ */
.faq-section { padding: 60px 40px 80px; }
.faq-section-inner { max-width: 800px; margin: 0 auto; }

/* Category */
.faq-category { margin-bottom: 48px; }
.faq-category-title {
    font-size: 20px; font-weight: 900; color: var(--ink);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 2px solid var(--rule);
}

/* FAQ Item */
.faq-item {
    border: 2px solid var(--rule);
    border-radius: var(--r);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s;
    background: var(--surface);
}
.faq-item:hover { border-color: var(--primary-l); }
.faq-item.open { border-color: var(--primary); box-shadow: 0 4px 16px rgba(198,40,40,0.08); }

.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; background: none; border: none;
    font-family: var(--font); font-size: 15px; font-weight: 700;
    color: var(--ink); cursor: pointer; text-align: left;
    transition: color 0.2s;
}
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }

.faq-chevron {
    flex-shrink: 0; transition: transform 0.3s ease;
    color: var(--muted-2);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 22px;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 22px 20px;
}
.faq-answer p {
    font-size: 14px; line-height: 1.8; color: var(--ink-2); font-weight: 500;
}

/* ══ CONTACT SECTION ══ */
.faq-contact {
    background: var(--surface); border-top: 2px solid var(--rule);
    padding: 60px 40px; text-align: center;
}
.faq-contact-inner { max-width: 500px; margin: 0 auto; }
.faq-contact h2 { font-size: 24px; font-weight: 900; margin-bottom: 12px; }
.faq-contact p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.faq-contact-btn {
    display: inline-block;
    font-family: var(--font); font-size: 14px; font-weight: 800;
    padding: 13px 28px; border-radius: var(--r);
    background: var(--primary); color: white;
    text-decoration: none; transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(198,40,40,0.2);
}
.faq-contact-btn:hover { background: var(--primary-d); transform: translateY(-2px); }

/* ══ FOOTER ══ */
.faq-footer { padding: 20px 0; border-top: 1.5px solid var(--rule); background: var(--surface); }
.faq-footer-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 40px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px; color: var(--muted-2); font-weight: 500;
}

/* ══ RESPONSIVE ══ */
@media (max-width: 600px) {
    .faq-header-inner { padding: 0 12px; }
    .faq-brand-text { display: none; }
    .faq-nav-btn { padding: 7px 14px; font-size: 10px; }
    .faq-back-btn { width: 30px; height: 30px; }
    .faq-hero { padding: 90px 16px 50px; }
    .faq-title { font-size: 24px; }
    .faq-section { padding: 30px 16px 60px; }
    .faq-question { padding: 14px 16px; font-size: 13px; }
    .faq-answer { padding: 0 16px; }
    .faq-item.open .faq-answer { padding: 0 16px 14px; }
    .faq-footer-inner { flex-direction: column; gap: 4px; text-align: center; }
    .faq-contact { padding: 40px 16px; }
}
