/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: #2d5a3d;
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.tagline {
    color: #c1e1c1;
    font-size: 0.9rem;
}

.search-container {
    min-width: 300px;
}

.gcse-search {
    width: 100%;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 15px;
}

.main-nav li {
    margin-right: 25px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 5px 0;
    transition: color 0.3s;
}

.main-nav a:hover, .main-nav a.active {
    color: #a3d9a5;
    border-bottom: 2px solid #a3d9a5;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(45, 90, 61, 0.9), rgba(45, 90, 61, 0.8)), url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #3d8b40;
}

.hero-ad {
    margin-top: 30px;
}

/* Article Grid */
.featured-articles {
    padding: 60px 0;
}

.featured-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2d5a3d;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.article-content {
    padding: 25px;
}

.article-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.article-content h3 a {
    color: #2d5a3d;
    text-decoration: none;
}

.article-content h3 a:hover {
    color: #4CAF50;
    text-decoration: underline;
}

.article-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.read-more {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-top: 10px;
}

/* Ad Containers */
.ad-container {
    margin: 30px auto;
    text-align: center;
    overflow: hidden;
}

.middle-ad {
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.bottom-ad {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

/* All Articles List */
.all-articles {
    padding: 40px 0 60px;
}

.all-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2d5a3d;
}

.articles-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.list-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.list-item:hover {
    background-color: #f9f9f9;
}

.list-item:last-child {
    border-bottom: none;
}

.article-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    min-width: 50px;
}

.list-content h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.list-content h3 a {
    color: #333;
    text-decoration: none;
}

.list-content h3 a:hover {
    color: #4CAF50;
}

/* Footer */
.site-footer {
    background-color: #2d5a3d;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 20px;
    color: #a3d9a5;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #c1e1c1;
    text-decoration: none;
}

.footer-section a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #c1e1c1;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    .search-container {
        min-width: 100%;
        margin-top: 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }
    
    .main-nav li {
        margin: 0 10px 10px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-number {
        margin-bottom: 10px;
    }
    
    .bottom-ad {
        position: static;
        box-shadow: none;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .featured-articles h2, .all-articles h2 {
        font-size: 1.6rem;
    }
}