/* Styles for knowledge-base.php only. Shared styles (menu, footer, colours, buttons) are in assets/site.css */
html, body { margin: 0; padding: 0; width: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--text); line-height: 1.6; background: var(--white); }
h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; margin: 0; }
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* HERO */
.kb-hero { background: linear-gradient(rgba(10, 27, 51, 0.9), rgba(10, 27, 51, 0.95)), url('../../Knowledge.jpg'); background-size: cover; background-position: center; color: var(--white); padding: 80px 10%; text-align: center; border-bottom: 5px solid var(--orange); }
.kb-hero h1 { font-size: 2.5rem; margin-bottom: 15px; letter-spacing: 1px; }
.kb-hero p { max-width: 700px; margin: 0 auto; color: #a1b1c5; font-size: 1.1rem; }

/* SEARCH */
.search-container { max-width: 600px; margin: 30px auto 0 auto; position: relative; }
.search-input { width: 100%; padding: 15px 25px; border: 2px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); color: var(--white); font-family: 'Open Sans', sans-serif; font-size: 1rem; box-sizing: border-box; transition: 0.3s; }
.search-input:focus { outline: none; border-color: var(--orange); background: rgba(255,255,255,0.1); }
.search-input::placeholder { color: rgba(255,255,255,0.5); }

/* LAYOUT */
.kb-layout { display: grid; grid-template-columns: 250px 1fr; gap: 50px; padding: 60px 10%; box-sizing: border-box; }

/* SIDEBAR */
.kb-sidebar { position: sticky; top: 120px; height: fit-content; }
.kb-sidebar h3 { font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 20px; color: var(--navy); border-bottom: 2px solid var(--navy); padding-bottom: 5px; }
.filter-btn { display: block; width: 100%; text-align: left; background: none; border: none; padding: 12px 15px; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.8rem; color: #666; cursor: pointer; border-left: 3px solid var(--border-gray); transition: 0.2s; margin-bottom: 5px; }
.filter-btn:hover { color: var(--orange); border-left-color: var(--orange); background: var(--light-gray); }
.filter-btn.active { color: var(--navy); border-left-color: var(--navy); background: var(--light-gray); font-size: 0.85rem; }

/* ANSWER CONTENT */
.authoritative-answer { font-size: 1.05rem; color: var(--text); margin-bottom: 25px; }
.authoritative-answer p { margin-top: 0; margin-bottom: 15px; }
.legal-reference { background: rgba(216, 100, 34, 0.05); border-left: 4px solid var(--orange); padding: 15px 20px; margin-bottom: 25px; font-size: 0.9rem; color: #444; }
.legal-reference strong { color: var(--navy); font-family: 'Montserrat', sans-serif; font-size: 0.85rem; }

/* NO POSTS */
.no-kb-posts { text-align: center; padding: 80px 20px; color: #777; border: 2px dashed var(--border-gray); }
.no-kb-posts h3 { color: var(--navy); margin-bottom: 15px; }

/* CONTACT */
.accent { width: 50px; height: 5px; background: var(--orange); margin: 20px 0; }
.btn { background: var(--orange); color: white; padding: 18px 45px; font-weight: 700; border: none; border-left: 6px solid white; cursor: pointer; transition: 0.3s; display: inline-block; text-decoration: none; text-transform: uppercase; }
.btn:hover { background: #be5318; }

/* RESPONSIVE */

@media (max-width: 1024px) {
    .kb-layout { grid-template-columns: 1fr; gap: 30px; padding: 40px 5%; }
    .kb-sidebar { position: relative; top: 0; width: 100%; margin-bottom: 10px; }
    .kb-sidebar h3 { text-align: center; margin-bottom: 15px; }
    .kb-sidebar-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
    .filter-btn { display: block; width: 100%; text-align: center; padding: 12px 10px; border-left: none; border-bottom: 3px solid var(--border-gray); box-sizing: border-box; margin-bottom: 0; }
    .filter-btn:hover { border-left-color: transparent; border-bottom-color: var(--orange); }
    .filter-btn.active { border-left-color: transparent; border-bottom-color: var(--navy); }
    .action-panel { grid-template-columns: 1fr; gap: 10px; }
    .btn { width: 100%; box-sizing: border-box; }
    .kb-hero { padding: 60px 5%; }
    .kb-hero h1 { font-size: 1.8rem; }
}

/* Question cards on the index */
.qa-container { display: flex; flex-direction: column; gap: 20px; }
.kb-card { background: var(--white); border: 1px solid var(--border-gray); border-top: 4px solid var(--navy); padding: 28px 32px; transition: box-shadow 0.3s, transform 0.3s; }
.kb-card:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.07); transform: translateY(-3px); }
.kb-card h2 { font-size: 1.12rem; line-height: 1.4; letter-spacing: 0.3px; text-transform: none; margin: 10px 0 12px; }
.kb-card h2 a { color: var(--navy); text-decoration: none; }
.kb-card h2 a:hover { color: var(--orange); }
.kb-card p { margin: 0 0 16px; color: #555; }
.kb-tag { display: inline-block; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.68rem; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }
.kb-read { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); text-decoration: none; }
.kb-none { color: #666; }
