/* ── Homepage styles ── */
* { font-family: 'Inter', 'Helvetica Neue', sans-serif; }

/* ── Hero ── */
.hero-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1d4ed8 100%);
    padding: 72px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(59,130,246,0.25) 0%, transparent 60%);
    pointer-events: none;
}
.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #fff;
    margin: 0 auto 16px;
    max-width: 800px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.hero-section p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* ── Page wrapper ── */
.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 900px) {
    .page-wrapper { grid-template-columns: 1fr; }
}

/* ── Cards ── */
.card {
    background: #fff;
    border-radius: 3px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
    padding: 28px 28px;
    margin-bottom: 24px;
}
.card:last-child { margin-bottom: 0; }
.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.card-title-icon.blue  { background: #dbeafe; color: #1d4ed8; }
.card-title-icon.green { background: #dcfce7; color: #16a34a; }
.card-title-icon.amber { background: #fef3c7; color: #d97706; }

/* ── Search bar ── */
.search-form { display: flex; gap: 10px; }
.search-form input[type=text] {
    flex: 1;
    padding: 10px 14px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 3px !important;
    font-size: 14px !important;
    width: auto !important;
    outline: none;
    transition: border-color 0.2s;
    box-shadow: none !important;
    background: #f8fafc !important;
}
.search-form input[type=text]:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
}
.search-form button {
    background: #1d4ed8;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.search-form button:hover { background: #1e40af; }

/* ── Action Buttons ── */
.action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    margin-bottom: 10px;
    border: none;
    cursor: pointer;
}
.action-btn:last-child { margin-bottom: 0; }
.action-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.action-btn.primary  { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; }
.action-btn.secondary { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.action-btn .btn-icon {
    width: 32px; height: 32px;
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.action-btn .btn-text { display: flex; flex-direction: column; }
.action-btn .btn-label { font-weight: 700; font-size: 13px; line-height: 1.2; }
.action-btn .btn-desc  { font-weight: 400; font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* ── KB Grid ── */
.kb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 8px;
}
.kb-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    padding: 20px;
    transition: box-shadow 0.2s, border-color 0.2s;
    border-top: 3px solid #3b82f6;
}
.kb-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); border-color: #bfdbfe; }
.kb-card h3 { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.kb-card a  { display: block; color: #1d4ed8; font-size: 13px; text-decoration: none; padding: 5px 0; border-bottom: 1px solid #f1f5f9; }
.kb-card a:last-child { border-bottom: none; }
.kb-card a:hover { color: #1e40af; text-decoration: underline; }
.kb-card p  { color: #64748b; font-size: 12px; margin: 2px 0 0 0; }

/* ── FAQ list ── */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.faq-list li:last-child { border-bottom: none; }
.faq-list a { color: #1d4ed8; font-size: 13px; text-decoration: none; line-height: 1.4; display: block; }
.faq-list a:hover { color: #1e40af; text-decoration: underline; }

/* ── Resources ── */
.resources-list { list-style: none; padding: 0; margin: 0; }
.resources-list li { padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.resources-list li:last-child { border-bottom: none; }
.resources-list a { color: #374151; font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.resources-list a:hover { color: #1d4ed8; }

/* ── Content body ── */
.thread-body h1, .thread-body h2 { color: #0f172a; }
.thread-body p { color: #475569; line-height: 1.7; }

/* ── Responsive: tablet (≤ 900px) ── */
@media (max-width: 900px) {
    .page-wrapper { padding: 32px 16px 48px; gap: 24px; }
    .sidebar-col { order: -1; }
    .action-btn { padding: 12px 14px; }
}

/* ── Responsive: mobile (≤ 600px) ── */
@media (max-width: 600px) {
    .hero-section { padding: 48px 16px 56px; }
    .hero-section p { font-size: 0.95rem; }
    .page-wrapper { padding: 20px 12px 40px; gap: 16px; }
    .card { padding: 20px 16px; }
    .search-form { flex-direction: column; }
    .search-form input[type=text] { width: 100% !important; }
    .search-form button { width: 100%; padding: 11px; }
    .kb-grid { grid-template-columns: 1fr; gap: 12px; }
    .action-btn .btn-desc { display: none; }
    .card-title { font-size: 0.9rem; }
}

/* ── Responsive: very small (≤ 380px) ── */
@media (max-width: 380px) {
    .hero-section { padding: 36px 12px 44px; }
    .card { padding: 16px 12px; }
    .action-btn { padding: 11px 12px; }
    .action-btn .btn-icon { width: 28px; height: 28px; font-size: 14px; }
}
