:root {
    --primary: #C4922E;
    --primary-light: #D4A843;
    --secondary: #8B1A1A;
    --secondary-dark: #6B0F0F;
    --bg: #FFF9F0;
    --bg-card: #FFFFFF;
    --text: #2C2C2C;
    --text-muted: #6C757D;
    --footer-bg: #2C2C2C;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6, .site-title {
    font-family: 'Playfair Display', serif;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-light);
}

/* Header */
.site-header-top {
    background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    padding: 1.5rem 0;
}
.site-title {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
}
.site-title:hover {
    color: #f8f9fa;
}
.site-subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    display: block;
    font-family: 'Noto Sans', sans-serif;
}
.header-search input {
    border-radius: 20px 0 0 20px;
    border: none;
    padding-left: 1rem;
}
.header-search button {
    border-radius: 0 20px 20px 0;
    border: 1px solid #fff;
}

.site-nav {
    background-color: var(--primary);
}
.site-nav .nav-link {
    color: #fff;
    font-weight: 500;
    padding: 0.8rem 1rem;
    position: relative;
}
.site-nav .nav-link:hover {
    color: #fff;
}
.site-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Cards */
.news-card {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.news-card .card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.card-img-placeholder {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    opacity: 0.8;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.category-badge {
    background-color: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.3em 0.6em;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.category-badge:hover {
    background-color: var(--primary-light);
    color: #fff;
}
.card-title {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.card-title a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-title a:hover {
    color: var(--primary);
}
.card-text-desc {
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Featured */
.featured-article {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    background-color: var(--bg-card);
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    display: flex;
    overflow: hidden;
    margin-bottom: 2rem;
}
.featured-article:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.featured-article .col-img {
    flex: 0 0 50%;
}
.featured-article img, .featured-article .card-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.featured-article .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-article h2 {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}
.featured-article p {
    color: var(--text-muted);
}
.featured-article:hover h2 {
    color: var(--primary);
}

/* Sidebar */
.sidebar h5 {
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.sidebar-categories {
    list-style: none;
    padding: 0;
}
.sidebar-categories li {
    margin-bottom: 0.5rem;
}
.sidebar-categories a {
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sidebar-categories a:hover {
    color: var(--primary);
}
.sidebar-categories .count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.sidebar-popular {
    list-style: none;
    padding: 0;
    counter-reset: popular-counter;
}
.sidebar-popular li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}
.sidebar-popular li::before {
    counter-increment: popular-counter;
    content: counter(popular-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.sidebar-popular a {
    color: var(--text);
    font-weight: 500;
    display: block;
    line-height: 1.3;
}
.sidebar-popular a:hover {
    color: var(--primary);
}
.sidebar-popular .date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: block;
}

/* Article page */
.article-header h1 {
    font-size: 2.5rem;
    margin: 1rem 0;
}
.article-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.article-main-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}
.article-body p {
    margin-bottom: 1.2rem;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.article-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1rem;
    color: var(--text-muted);
    font-style: italic;
    background: transparent;
    margin: 1.5rem 0;
}
.article-body h2, .article-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-tags .badge {
    background-color: var(--bg);
    color: var(--primary);
    border: 1px solid var(--primary);
    font-weight: normal;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}
.article-tags .badge:hover {
    background-color: var(--primary);
    color: white;
}

/* Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}
.pagination .page-link {
    color: var(--text);
    border: none;
    margin: 0 0.2rem;
    border-radius: 4px;
}
.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: #fff;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 3rem 0;
    margin-top: 3rem;
}
.site-footer a {
    color: rgba(255,255,255,0.7);
}
.site-footer a:hover {
    color: white;
}
.site-footer h5 {
    color: white;
    margin-bottom: 1rem;
}

/* 404 */
.error-404 {
    text-align: center;
    padding: 5rem 0;
}
.big-404 {
    font-family: 'Playfair Display', serif;
    font-size: 120px;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 1rem;
}

/* Search results */
.search-result {
    display: flex;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--text);
}
.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
    color: var(--text);
}
.search-result .img-wrapper {
    width: 200px;
    flex-shrink: 0;
    display: flex;
}
.search-result img, .search-result .card-img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.search-result .content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.search-result h3 {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}
.search-result:hover h3 {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 991.98px) {
    .featured-article {
        flex-direction: column;
    }
    .featured-article .col-img {
        height: 250px;
    }
    .search-result {
        flex-direction: column;
    }
    .search-result .img-wrapper {
        width: 100%;
        height: 200px;
    }
}
@media (max-width: 767.98px) {
    .site-header-top {
        padding: 1rem 0;
    }
    .site-title {
        font-size: 1.5rem;
    }
    .article-header h1 {
        font-size: 2rem;
    }
    .article-main-img {
        max-height: 300px;
    }
}
