/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #1a1a2e;
    background: #f8f9fb;
    margin: 0;
    padding: 0;
}

a {
    color: #4361ee;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Layout wrapper */
.page {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Site header */
.site-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e6f0;
}

.site-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.site-header .subtitle {
    margin-top: 6px;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Category sections on index */
.category-section {
    margin-bottom: 48px;
}

.category-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4361ee;
    background: #eef0fd;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 16px;
}

/* FAQ cards on index */
.faq-card {
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.faq-card:hover {
    box-shadow: 0 4px 16px rgba(67, 97, 238, 0.08);
    border-color: #b8c1f5;
}

.faq-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: #1a1a2e;
}

.faq-card h3 a {
    color: inherit;
}

.faq-card h3 a:hover {
    color: #4361ee;
    text-decoration: none;
}

.faq-card .preview {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Item page — breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 28px;
}

.breadcrumb a {
    color: #6b7280;
}

.breadcrumb a:hover {
    color: #4361ee;
    text-decoration: none;
}

.breadcrumb .sep {
    margin: 0 6px;
}

/* Item page — question */
.item-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4361ee;
    background: #eef0fd;
    border-radius: 4px;
    padding: 2px 8px;
    margin-bottom: 12px;
}

.item-question {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
    color: #1a1a2e;
    line-height: 1.3;
}

.answer {
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 10px;
    padding: 28px 32px;
    white-space: pre-line;
    font-size: 1rem;
    color: #374151;
    line-height: 1.75;
}

/* Related questions */
.related {
    margin-top: 48px;
}

.related-heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 16px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.related-list li a {
    display: block;
    background: #fff;
    border: 1px solid #e2e6f0;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #1a1a2e;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.related-list li a:hover {
    color: #4361ee;
    border-color: #b8c1f5;
    box-shadow: 0 2px 10px rgba(67, 97, 238, 0.07);
    text-decoration: none;
}
