body {
    font-family: 'GFS+Didot', 'Segoe UI', serif;
    margin: 0;
    padding: 0;
    background-color: #f9f7f2;
    color: #2c2c2c;
    line-height: 1.6;
}

.main-header {
    background: #ffffff;
    width: 1200px;
    max-width: 95%;
    margin: 60px auto 40px auto;
    box-sizing: border-box;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.18);
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 25px;
    padding-left: 20px;
    padding-right: 20px;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.header-image-wrap {
    margin-bottom: 18px;
}

.header-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

.site-title {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #6b532f;
    text-align: center;
}

.site-quote-wrap {
    margin-top: 20px;
}

.site-quote {
    margin: 0 auto;
    font-size: 1.2rem;
    color: #7a6451;
    font-style: italic;
    text-align: center;
    max-width: 1100px;
    line-height: 1.4;
    min-height: 1.6em;
}

.wrapper {
    max-width: 1200px;
    margin: 30px auto;
    display: flex;
    gap: 30px;
    padding: 0 20px;
    box-sizing: border-box;
}

.sidebar {
    flex: 1;
    min-width: 250px;
}

.sidebar-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #8e735b;
}

.sidebar h3, .sidebar-box h3 {
    color: #8e735b;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.sidebar ul, .sidebar-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li a, .sidebar-box ul li a {
    font-family: 'GFS+Didot', serif;
    font-size: 1.1rem;
    text-decoration: none;
    color: #555;
    transition: 0.3s;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #fafafa;
}

.sidebar ul li a:hover, .sidebar-box ul li a:hover {
    color: #8e735b;
    padding-left: 8px;
    background-color: #fdfaf5;
}

.sidebar ul li a.active, .sidebar-box ul li a.active {
    color: #8e735b;
    font-weight: bold;
    background-color: #fdfaf5;
    padding-left: 8px;
}

.main-content {
    flex: 3;
}

.content-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.content-card h2, .article-title {
    color: #333;
    border-bottom: 2px solid #f4f1ea;
    padding-bottom: 10px;
    margin-top: 0;
}

.article-header {
    margin-bottom: 22px;
}

.article-summary {
    margin: 0;
    color: #6e6255;
    line-height: 1.5;
}

.article-body {
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-section {
    margin: 28px 0;
    padding: 20px;
    background: #fcfbf8;
    border: 1px solid #e8e1d6;
    border-radius: 10px;
}

.content-section-title {
    font-size: 1.35rem;
    font-weight: bold;
    margin-bottom: 14px;
    color: #4b3c2f;
}

.content-section-body {
    line-height: 1.8;
}

.content-img {
    margin: 20px 0;
    text-align: center;
}

.content-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.content-img figcaption {
    margin-top: 8px;
    font-size: 0.95rem;
    color: #666;
}

.pdf-wrapper {
    margin: 20px 0;
}

.pdf-card, .file-item {
    background: #fffdf9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
    gap: 20px;
}

.pdf-card:hover, .file-item:hover {
    border-color: #d4af37;
    transform: translateY(-2px);
}

.pdf-card-title, .file-info span {
    font-weight: bold;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.pdf-card-description, .file-info small {
    color: #888;
    line-height: 1.6;
}

.pdf-card-actions, .button-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-card-actions a, .btn {
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.pdf-card-view, .btn-view {
    background-color: #e8f0fe;
    color: #1a73e8;
    border: 1px solid #1a73e8;
}

.pdf-card-view:hover, .btn-view:hover {
    background-color: #1a73e8;
    color: white;
}

.pdf-card-download, .btn-download {
    background-color: #8e735b;
    color: white;
    border: 1px solid #8e735b;
}

.pdf-card-download:hover, .btn-download:hover {
    background-color: #6f5945;
}

footer {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 0.9rem;
    background: transparent;
    border-top: none;
}

@media (max-width: 900px) {
    .wrapper {
        flex-direction: column;
    }
    .main-header {
        width: 100%;
        max-width: 100%;
        margin: 20px auto 25px auto;
    }
    .site-title {
        font-size: 2.2rem;
    }
    .pdf-card, .file-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
