/* health_wellness.css */

/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header */
header {
    background: #030323;
    color: #fff;
    padding: 10px 0;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
}

header .nav-links {
    display: flex;
}

header .nav-links a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1rem;
}

/* Ensure nav links are visible on desktop */
@media (min-width: 769px) {
    header .nav-links {
        display: flex;
    }
}

header .nav-icons {
    display: flex;
    align-items: center;
}

header .nav-icons input[type="text"] {
    padding: 8px;
    border: none;
    border-radius: 5px;
    font-size: 0.9rem;
}

header .nav-icons button {
    background: #fff;
    border: none;
    color: #4CAF50;
    padding: 8px;
    margin-left: 5px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
}

header .menu-toggle {
    display: none; /* Hide the menu toggle button by default */
}

header .banner {
    text-align: center;
    padding: 20px 0;
}

header .banner h1 {
    font-size: 2rem;
}

/* Mobile-only styles */
@media (max-width: 768px) {
    header .nav-links {
        display: none;
        flex-direction: column;
        background: #4CAF50;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
    }

    header .nav-links.active {
        display: flex;
    }

    header .nav-links a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    header .menu-toggle {
        display: block; /* Show the menu toggle button on mobile */
        background: transparent;
        border: none;
        color: #fff;
        font-size: 2rem;
        cursor: pointer;
    }
}

/* Main content */
main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
}

section h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.article-grid,
.nutrition-grid,
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

article {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

article img {
    width: 100%;
    height: auto;
    border-bottom: 2px solid #f4f4f4;
}

article h3 {
    margin: 15px 0;
}

article a {
    color: #4CAF50;
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

.tips-slider {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0;
}

.tip-card {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    flex: 0 0 auto;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Sidebar */
aside {
    background: #fff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

aside .newsletter-signup input[type="email"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: calc(100% - 20px);
    margin-bottom: 10px;
}

aside button {
    background: #4CAF50;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

aside ul {
    list-style-type: none;
}

aside ul li {
    margin: 10px 0;
}

aside ul li a {
    text-decoration: none;
    color: #333;
}

aside ul li a:hover {
    color: #4CAF50;
}

/* Footer */
footer {
    background: #030323;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}
