* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green-soft: #e6f3ed;
    --green-primary: #2b5e4b;
    --green-dark: #1d4033;
    --text-dark: #2c3e2f;
    --text-light: #5a6b5f;
    --bg-white: #ffffff;
    --bg-soft: #fafbfa;
    --border: #e0e8e2;
    --shadow-sm: 0 5px 20px rgba(43, 94, 75, 0.05);
    --shadow-md: 0 10px 30px rgba(43, 94, 75, 0.08);
    --shadow-hover: 0 20px 40px rgba(43, 94, 75, 0.12);
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-dark);
    background: var(--bg-soft);
    line-height: 1.7;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* HEADER */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--green-primary);
    letter-spacing: -0.5px;
}

.logo span {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 400;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 15px;
}

.nav a:hover {
    color: var(--green-primary);
}

.nav a.active {
    color: var(--green-primary);
    font-weight: 600;
    position: relative;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--green-primary);
}

/* BREADCRUMB */
.breadcrumb {
    padding: 20px 0 10px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--green-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
    margin: 0 8px;
    color: var(--border);
}

/* PAGE HEADER */
.page-header {
    padding: 40px 0 20px;
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.page-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

/* ARTICLES GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--green-primary);
}

.card-image {
    height: 200px;
    overflow: hidden;
    background: var(--green-soft);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    background: var(--green-soft);
    color: var(--green-primary);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-title a:hover {
    color: var(--green-primary);
}

.card-excerpt {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-light);
}

.read-more {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.read-more:hover {
    gap: 10px;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--green-primary);
    border-color: var(--green-primary);
    color: white;
}

/* SIDEBAR */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--green-primary);
    border-radius: 3px;
}

.remedy-card {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.remedy-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.remedy-icon {
    width: 50px;
    height: 50px;
    background: var(--green-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-primary);
    font-size: 24px;
    flex-shrink: 0;
}

.remedy-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 5px;
}

.remedy-info h4 a {
    text-decoration: none;
    color: inherit;
}

.remedy-info h4 a:hover {
    color: var(--green-primary);
}

.remedy-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.category-list a:hover {
    color: var(--green-primary);
}

.category-list span {
    background: var(--green-soft);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: var(--green-primary);
}

.search-box {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-box button {
    background: var(--green-primary);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-box button:hover {
    background: var(--green-dark);
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--green-soft);
    color: var(--green-primary);
    padding: 6px 14px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--green-primary);
    color: white;
}

/* FOOTER */
.footer {
    background: var(--green-dark);
    color: white;
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: white;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: white;
    color: var(--green-dark);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 14px;
}

.footer-col a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* LOADING & ERROR */
.loading {
    text-align: center;
    padding: 50px;
    color: var(--text-light);
}

.error {
    text-align: center;
    padding: 50px;
    color: #b91c1c;
    background: #fee;
    border-radius: 10px;
    margin: 20px 0;
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page-title {
        font-size: 32px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .page-title {
        font-size: 28px;
    }
}