/* Base Styles */
:root {
    --primary-color: #2e7d32;
    --secondary-color: #81c784;
    --accent-color: #1b5e20;
    --text-color: #333;
    --light-text: #f9f9f9;
    --gray-text: #666;
    --light-bg: #f5f9f5;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

section {
    padding: 40px 0;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

nav ul {
    display: flex;
    gap: 20px;
}

nav ul li a {
    padding: 8px 12px;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: rgba(46, 125, 50, 0.1);
}

/* Search Section */
.search-section {
    background-color: var(--primary-color);
    padding: 20px 0;
}

.search-container {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.search-container input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-container button {
    padding: 0 20px;
    color: var(--primary-color);
    background-color: transparent;
    transition: var(--transition);
}

.search-container button:hover {
    color: var(--accent-color);
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.category-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
}

/* Featured News Slider */
.featured-news {
    background-color: var(--white);
}

.featured-news h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 28px;
}

.featured-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    height: 400px;
}

.featured-card {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.featured-card.active {
    opacity: 1;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.featured-content .tag {
    display: inline-block;
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.featured-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.featured-content .timestamp {
    font-size: 12px;
    opacity: 0.8;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: 10px;
}

.slider-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    transition: var(--transition);
}

.slider-controls button:hover {
    background-color: var(--accent-color);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

.featured-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s ease;
}

.featured-card:hover .featured-image {
    transform: scale(1.05);
}

/* Latest News */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 28px;
}

.view-all {
    color: var(--primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--accent-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.news-item {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.news-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-item-content {
    padding: 20px;
}

.news-item-content .tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-item-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.news-item:hover h3 {
    color: var(--primary-color);
}

.news-item-content p {
    font-size: 14px;
    color: var(--gray-text);
    margin-bottom: 10px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--gray-text);
}

.load-more {
    display: block;
    margin: 0 auto;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
}

.load-more:hover {
    background-color: var(--accent-color);
}

/* Trending Topics */
.trending-topics {
    background-color: var(--white);
}

.trending-topics h2 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
}

.topics-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.topic-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.topic-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.topic-card h3 {
    padding: 15px 15px 5px;
    font-size: 18px;
    color: var(--primary-color);
}

.topic-card p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: var(--gray-text);
}

/* Newsletter */
.newsletter {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.newsletter-content form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.newsletter-content input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
}

.newsletter-content button {
    padding: 15px 25px;
    background-color: var(--accent-color);
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
}

.newsletter-content button:hover {
    background-color: #124116;
}

/* Footer */
footer {
    background-color: #1b5e20;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo p {
    opacity: 0.8;
}

.footer-links h3,
.footer-contact h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after,
.footer-contact h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    nav ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .featured-content h3 {
        font-size: 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    section {
        padding: 30px 0;
    }
    
    .featured-slider {
        height: 300px;
    }
    
    .featured-content h3 {
        font-size: 18px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .topics-container {
        grid-template-columns: 1fr;
    }
    
    .newsletter-content form {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-content input,
    .newsletter-content button {
        width: 100%;
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}