/* --- QUORA SIGNATURE STYLE (PERFECTED) --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --q-red: #b92b27;
    --q-blue: #2e69ff;
    --q-bg: #f1f2f2;
    --q-border: #dee0e1;
    --q-text: #282829;
    --q-muted: #636466;
}

body {
    background: var(--q-bg);
    font-family: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--q-text);
    line-height: 1.5;
    padding-top: 110px; /* Jarak ditambah karena header sekarang 2 tingkat */
}

/* --- HEADER CUSTOM (LOGO TENGAH & 2 ICON) --- */
header {
    background: #fff;
    position: fixed;
    top: 0; width: 100%;
    z-index: 9999;
    border-bottom: 1px solid var(--q-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column; /* Membuat 2 baris */
    align-items: center;
}

.header-top {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #970505;
}

.brand {
    color: var(--q-red);
    text-decoration: none;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -1.5px;
    font-family: Georgia, serif;
}

.header-bottom {
    height: 45px;
    width: 100%;
    display: flex;
    justify-content: center;
    border-top: 1px solid #f6f6f6;
}

.nav-menu { 
    display: flex; 
    height: 100%; 
    width: 100%;
    max-width: 200px; /* Menjaga 2 icon tetap di tengah bawah logo */
    justify-content: space-around;
}

.nav-item {
    text-decoration: none;
    color: var(--q-muted);
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 3px solid transparent;
    transition: 0.2s;
}

.nav-item:hover { color: var(--q-red); border-bottom: 3px solid var(--q-red); }

/* --- CARD POSTINGAN (SAMA SEPERTI SEBELUMNYA) --- */
.main-wrapper { max-width: 630px; margin: 20px auto; padding: 0 10px; }

.q-card {
    background: #fff;
    border: 1px solid var(--q-border);
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 10px;
}

.u-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #eee; }

.p-title {
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #1a1a1b;
    margin-bottom: 8px;
    cursor: pointer;
}
.p-title:hover { text-decoration: underline; }

/* --- ACTION BAR (FIX SEJAJAR) --- */
.action-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-action {
    background: #f7f7f8;
    border: 1px solid #edeff0;
    color: var(--q-muted);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    transition: 0.2s;
}

.btn-action:hover { background: #ececec; color: var(--q-text); }
.btn-action.liked { color: var(--q-red); background: #fdeaea; border-color: #f9d5d5; }

.material-symbols-outlined { font-size: 22px !important; vertical-align: middle; }

/* --- FOOTER OTORITAS (FIXED VERSION) --- */
.footer-otoritas {
    background: #fff;
    border-top: 1px solid var(--q-border);
    padding: 50px 0 20px 0;
    margin-top: 50px;
    width: 100%;
}

.f-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    /* Dibagi 4 kolom sesuai HTML Bos: 1 Brand + 3 Link Columns */
    grid-template-columns: 1.5fr 1fr 1fr 1fr; 
    gap: 30px;
}

.f-brand h2 {
    color: var(--q-red);
    font-family: Georgia, serif;
    margin-bottom: 15px;
    font-size: 22px;
}

.f-brand p {
    font-size: 13px;
    color: var(--q-muted);
    line-height: 1.6;
}

.f-col h4 {
    font-size: 12px;
    color: var(--q-text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.f-col ul {
    list-style: none;
    padding: 0;
}

.f-col ul li {
    margin-bottom: 10px;
}

.f-col a {
    text-decoration: none;
    color: var(--q-muted);
    font-size: 13px;
    transition: 0.2s;
}

.f-col a:hover {
    color: var(--q-red);
    text-decoration: underline;
}

.f-bottom {
    max-width: 1000px;
    margin: 40px auto 0 auto;
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #999;
    font-size: 12px;
}

/* --- RESPONSIVE FOOTER --- */
@media (max-width: 768px) {
    .f-wrap {
        grid-template-columns: 1fr 1fr; /* Jadi 2 kolom kalau di HP */
    }
    .f-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}