* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5a9022;
    --secondary-color: #e74c3c;
    --accent-color: #75b82b;
    --text-color: #333;
    --bg-color: #fff;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    color: var(--text-color);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
}

nav a:hover,
nav a.active {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #5a9022 0%, #75b82b 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: white;
}

.hero-subtitle {
    font-size: 2em;
    margin-bottom: 15px;
    margin-top: 0;
    font-weight: 700;
    color: #ff8c00;
    text-transform: none;
    letter-spacing: 2px;
}

.hero p {
    font-size: 1em;
    opacity: 1;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Categories */
.categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.category-badge {
    padding: 12px 25px;
    background: linear-gradient(135deg, #5a9022 0%, #75b82b 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.category-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.article-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background: linear-gradient(135deg, #5a9022 0%, #75b82b 100%);
}

.article-content {
    padding: 25px;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.article-card h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-card h3 a:hover {
    color: var(--secondary-color);
}

.article-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #999;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    margin-bottom: 10px;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Article Detail */
.article-detail {
    max-width: 900px;
    margin: 50px auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.article-detail h1 {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.article-detail .article-meta {
    border-top: none;
    padding-top: 0;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.article-detail .featured-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 30px;
    display: block;
}

.article-detail .content {
    font-size: 1.1em;
    line-height: 1.5;
    color: #444;
}

.article-detail .content p {
    margin-bottom: 14px;
    line-height: 1.5;
}

.article-detail .content p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 80px;
}

footer p {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        gap: 20px;
        align-items: center;
        position: relative;
    }

    /* Show hamburger menu button on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Hide nav by default on mobile */
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 1000;
        margin-top: 20px;
        width: 100%;
    }

    /* Show nav when active */
    nav.active {
        max-height: 500px;
        padding: 20px 0;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
        text-align: left;
        padding: 0 20px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }

    nav a:hover,
    nav a.active {
        background-color: var(--accent-color);
        color: white;
        transform: none;
        padding-left: 25px;
    }

    .logo img {
        height: 40px;
    }
    
    .hero h2 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.5em;
        letter-spacing: 1px;
    }

    .hero p {
        font-size: 0.9em;
        padding: 0 10px;
    }

    /* Categories horizontal scroll on mobile */
    .categories {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0 20px 0;
        margin: 40px -20px;
        padding-left: 20px;
        padding-right: 20px;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .categories::-webkit-scrollbar {
        height: 6px;
    }

    .categories::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .categories::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 10px;
    }

    .category-badge {
        flex-shrink: 0;
        white-space: nowrap;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 30px 20px;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    font-size: 2em;
    margin-bottom: 15px;
}

