/* styles.css */

/* Reset default browser margin, padding, and box-sizing */
*, *::before, *::after {
    box-sizing: border-box; /* Ensures consistent element sizing */
}

body, h1, h2, h3, p, ul, li, ol {
    margin: 0;
    padding: 0;
}

/* Body and global styles */
body {
    background-color: white;
    font-family: Arial, sans-serif;
    line-height: 1.6; /* Improve readability */
    color: #333; /* Provide a dark default text color */
}

/* Header styles */
.header {
    background-color: #333; /* Dark background for header */
    color: white;
    text-align: center;
    padding: 20px;
}

.header h1 {
    font-size: 36px;
    margin: 0;
    background-color: #007B00; /* Improved green for readability */
    padding: 10px; /* Add padding for better spacing */
}

.pic {
    background-color: #007B00; /* Consistent green */
    display: flex;
    justify-content: center;
    padding: 10px;
}

.pic img {
    max-width: 100%;
    height: auto;
    border: none;
}

/* Navigation (Menu) styles */
.nav ul {
    display: flex; /* Flexbox for better alignment */
    justify-content: center;
    list-style: none;
    padding: 0;
}

.nav ul li {
    margin-right: 20px;
}

.nav ul li:last-child {
    margin-right: 0;
}

.nav a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease; /* Smooth transition for hover effect */
}

.nav a:hover {
    color: #00FF00; /* Slightly brighter green for hover */
}

/* Content styles */
.content {
    margin: 20px;
    padding: 20px;
    background-color: white;
    color: #333;
    border: 1px solid #ccc; /* Optional: Add a subtle border */
    border-radius: 5px; /* Optional: Rounded corners for modern look */
}

.content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #007B00; /* Consistent green tone */
}

.content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #005A00; /* Slightly darker green for headings */
}

.content p {
    margin-bottom: 15px;
    line-height: 1.8; /* Improved text spacing for readability */
}

.content hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 20px 0; /* Space around the horizontal rule */
}

ul, ol {
    margin: 0 0 15px 20px; /* Consistent indentation */
}

li {
    margin-bottom: 10px;
}

/* Footer styles */
footer {
    background-color: #333; /* Unified footer background */
    color: white;
    text-align: center;
    padding: 15px;
}

footer p {
    margin: 0;
    padding-bottom: 10px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    display: inline-block;
    margin-right: 15px;
}

footer ul li:last-child {
    margin-right: 0;
}

footer a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #00FF00; /* Add hover effect for footer links */
}

/* Responsive design for smaller screens */
@media screen and (max-width: 768px) {
    .pic img {
        max-width: 50%;
        height: auto;
    }

    .nav ul {
        flex-wrap: wrap; /* Allow nav items to wrap on narrow screens */
        gap: 10px;
    }

    .nav ul li {
        margin-right: 10px; /* Adjust space between nav items */
    }
}
