/* Styles for DailyNutri - Daily Nutrition Habits */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header {
    background-color: #6f42c1;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#brand h1 {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 2rem;
}

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

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
    color: #4a148c;
}

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

article {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.courses {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.course {
    background: #e1bee7;
    padding: 1.5rem;
    border-radius: 8px;
    max-width: 300px;
    text-align: center;
}

button {
    background-color: #ffeb3b;
    color: #333;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    margin-top: 1rem;
}

button:hover {
    background-color: #fdd835;
}

.testimonials {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

blockquote {
    background: white;
    padding: 1.5rem;
    border-left: 5px solid #6f42c1;
    max-width: 300px;
    font-style: italic;
}

cite {
    display: block;
    margin-top: 1rem;
    font-weight: 700;
    color: #4a148c;
}

form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

label {
    font-weight: 700;
}

input, select {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

footer {
    background-color: #6f42c1;
    color: white;
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 8px;
}

.newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

.links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

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

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 1rem;
    text-align: center;
    display: none;
}

.cookie-banner button {
    margin: 0 0.5rem;
    background: #ffeb3b;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .courses {
        flex-direction: column;
        align-items: center;
    }
    .testimonials {
        flex-direction: column;
        align-items: center;
    }
    footer .footer-content {
        flex-direction: column;
    }
}