
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #252a34;
    line-height: 1.7;
}

a {
    color: #198754;
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* HEADER */

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    text-decoration: none;
}
.brand-cube {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: 40px !important;
    min-width: 40px;
    height: 40px !important;
    flex: 0 0 40px;

    background-color: #198754 !important;
    color: #ffffff !important;

    border-radius: 50% !important;
    clip-path: none !important;

    font-size: 21px;
    font-weight: 800;
    line-height: 1;

    box-sizing: border-box;
    overflow: visible;
}

.brand strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: .08em;
}

.brand small {
    display: block;
    color: var(--green);
    font-size: .63rem;
    letter-spacing: .18em;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -1px;
}

.logo span {
    color: #198754;
}
.brand-logo {
    display: block;
    width: auto;
    max-width: 200px;
    height: 50px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .brand-logo {
        max-width: 145px;
        height: 40px;
    }
}
.header-tagline {
    font-size: 13px;
    color: #6b7280;
    margin-top: 3px;
}

.header-search {
    display: flex;
    gap: 8px;
}

.header-search input {
    width: 220px;
    padding: 11px 14px;
    border: 1px solid #dbe0e8;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.header-search input:focus {
    border-color: #198754;
}

.header-search button {
    background: #198754;
    color: #fff;
    border: none;
    padding: 0 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.header-search button:hover {
    background: #1d4ed8;
}

/* NAVIGATION */

.main-nav {
    background: #111827;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #e5e7eb;
    display: block;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: #198754;
    text-decoration: none;
}

/* PAGE LAYOUT */

.page-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    padding-top: 35px;
    padding-bottom: 50px;
    align-items: start;
}

/* MAIN CONTENT */

.content-header {
    margin-bottom: 22px;
}

.content-header h1 {
    font-size: 27px;
    line-height: 1.3;
    color: #111827;
    margin-bottom: 8px;
}

.content-header p {
    color: #6b7280;
    font-size: 14px;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-card {
    display: block;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 24px;
    transition: box-shadow .2s ease;
}

.article-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
}

.article-image {
    width: 100%;
    height: 165px;
    object-fit: cover;
    border-radius: 7px;
    background: #e5e7eb;
}

.article-category {
    display: inline-block;
    background: #eff6ff;
    color: #198754;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 9px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.article-title {
    font-size: 20px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.article-title a {
    color: #111827;
}

.article-title a:hover {
    color: #198754;
    text-decoration: none;
}

.article-meta {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 10px;
}

.article-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.read-more {
    font-size: 13px;
    font-weight: 700;
}

/* PAGINATION */

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.pagination a {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
}

.pagination a:hover,
.pagination a.current {
    background: #198754;
    border-color: #198754;
    color: #fff;
    text-decoration: none;
}

/* SIDEBAR */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 22px;
}

.widget-title {
    font-size: 18px;
    color: #111827;
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 2px solid #198754;
    position: relative;
}

.widget-title::after {
    content: "";
    display: block;
    width: 45px;
    height: 2px;
    background: #111827;
    position: absolute;
    bottom: -2px;
    left: 0;
}

.category-list {
    list-style: none;
}

.category-list li {
    border-bottom: 1px solid #f0f1f4;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    color: #4b5563;
    font-size: 14px;
}

.category-list a:hover {
    color: #198754;
    padding-left: 4px;
    text-decoration: none;
}

.category-count {
    color: #9ca3af;
    font-size: 12px;
}

.popular-item ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-item li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f4;
    position: relative;
    padding-left: 18px;
}

.popular-item li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.popular-item li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    top: 10px;
    color: #198754;
    font-size: 20px;
    font-weight: bold;
}

.popular-item a {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    transition: color .2s ease;
}

.popular-item a:hover {
    color: #198754;
    text-decoration: none;
}
.newsletter {
    background: #111827;
    color: #fff;
    border-radius: 10px;
    padding: 24px;
}

.newsletter h3 {
    font-size: 19px;
    margin-bottom: 10px;
}

.newsletter p {
    color: #d1d5db;
    font-size: 13px;
    margin-bottom: 18px;
}

.newsletter a {
    display: inline-block;
    background: #198754;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.newsletter a:hover {
    background: #1d4ed8;
    text-decoration: none;
}

/* FOOTER */

.site-footer {
    background: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 25px 20px;
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .page-content {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 20px;
    }

    .article-card {
        grid-template-columns: 160px minmax(0, 1fr);
        gap: 16px;
    }

    .article-image {
        height: 140px;
    }

    .article-title {
        font-size: 17px;
    }
}

@media (max-width: 700px) {
    .header-inner {
        padding-top: 18px;
        padding-bottom: 18px;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-search {
        width: 100%;
    }

    .header-search input {
        width: 100%;
        min-width: 0;
    }

    .nav-inner {
        gap: 0;
    }

    .main-nav a {
        padding: 11px 12px;
        font-size: 13px;
    }

    .page-content {
        grid-template-columns: 1fr;
        padding-top: 25px;
    }

    .article-card {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
    }

    .article-image {
        height: 110px;
    }

    .article-title {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .article-excerpt {
        font-size: 13px;
        line-height: 1.6;
    }

    .article-meta {
        font-size: 11px;
    }

    .article-category {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .sidebar {
        margin-top: 10px;
    }
}

@media (max-width: 400px) {
    .article-card {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 190px;
    }
}