/* Global Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
}

header {
    background: #4CAF50;
    color: white;
    padding: 1rem 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.categories {
    list-style: none;
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.categories a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.categories a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero {
    background: #f4f4f4;
    padding: 2rem;
    text-align: center;
}

.latest-articles {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.cta {
    background: #4CAF50;
    color: white;
    padding: 2rem;
    text-align: center;
}

.cta form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cta input {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    width: 300px;
}

.cta button {
    background: white;
    color: #4CAF50;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.cta button:hover {
    background: #f4f4f4;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
}

.social-links {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        text-align: center;
    }

    .categories {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cta form {
        flex-direction: column;
        align-items: center;
    }

    .cta input {
        width: 100%;
    }
}