/* General Reset */
body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Header */
.header {
    background-color: #3c763d;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    background: url('/static/images/background.jpg') no-repeat center center fixed;
    background-size: cover;
}

.site-title {
    font-size: 2.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #d8f3dc;
    font-style: italic;
}

/* Main Content */
.main-content {
    padding: 60px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

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

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    color: #3c763d;
    font-weight: 600;
    border-bottom: 2px solid #3c763d;
    display: inline-block;
    padding-bottom: 5px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: #3c763d;
    font-weight: 600;
}

.article-summary {
    font-size: 1rem;
    line-height: 1.7;
    margin: 10px 0;
    color: #555;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #3c763d;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: #2e5a2d;
}

.article-source {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #222;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 3px solid #3c763d;
}

.footer a {
    color: #aaa;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff;
}

/* Affiliate Products Section */
.affiliate-products {
    margin-top: 60px;
    padding: 40px;
    background-color: #f7f7f7;
    border-top: 2px solid #e6e6e6;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.affiliate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.affiliate-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.affiliate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.affiliate-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.affiliate-card h3 {
    margin: 15px;
    font-size: 1.3rem;
    color: #333;
    font-weight: 600;
}

.affiliate-card p {
    margin: 0 15px 15px;
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

.affiliate-card a {
    display: inline-block;
    margin: 15px;
    padding: 10px 15px;
    background-color: #3c763d;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.affiliate-card a:hover {
    background-color: #2e5a2d;
}
