* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.65;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 68px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: #111827;
    text-decoration: none;
}

nav a {
    margin-left: 18px;
    color: #374151;
    text-decoration: none;
}

.hero {
    background: #fff;
    margin: 28px 0;
    padding: 42px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}

.hero h1 {
    font-size: 42px;
    margin: 0 0 8px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin: 28px 0;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}

.post-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.post-card h2 {
    font-size: 22px;
    line-height: 1.35;
}

.post-card a {
    color: #111827;
    text-decoration: none;
}

.readmore,
.button {
    display: inline-block;
    background: #111827;
    color: #fff !important;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
}

.article-detail {
    background: #fff;
    margin: 28px 0;
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
}

.article-detail h1 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 22px;
    line-height: 1.6;
}

.featured {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
}

.post-content h2 {
    margin-top: 34px;
    font-size: 28px;
}

.post-content h3 {
    margin-top: 26px;
    font-size: 22px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.site-footer {
    margin-top: 40px;
    padding: 28px 0;
    background: #111827;
    color: #fff;
}

.not-found {
    background: #fff;
    margin: 40px 0;
    padding: 42px;
    border-radius: 18px;
}

/* Breadcrumb */

.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 16px;
    line-height: 1.6;
}

.breadcrumb a {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    margin: 0 4px;
}

/* Table of contents */

.toc-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 24px 0;
}

.toc-box strong {
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
}

.toc-box ul {
    margin: 0;
    padding-left: 20px;
}

.toc-box li {
    margin: 7px 0;
}

.toc-box .toc-level-3 {
    margin-left: 18px;
    font-size: 15px;
}

.toc-box a {
    color: #9a3412;
    text-decoration: none;
}

.toc-box a:hover {
    text-decoration: underline;
}

/* FAQ */

.faq-section {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    background: #f9fafb;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
}

.faq-item p {
    margin-bottom: 0;
}