/* Reset default margins and padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Container for consistent width */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
header {
    background-color: #2c3e50;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

header nav ul li {
    margin: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

header nav ul li a:hover {
    background-color: #34495e;
}

header nav ul li a.active {
    background-color: #3498db;
}

/* Main content styles */
main {
    padding: 2rem 0;
}

main h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

main h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.5rem;
    color: #2c3e50;
}

main p {
    margin-bottom: 1rem;
    text-align: justify;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
}

/* Footer styles */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer p {
    margin: 0.5rem 0;
}

/* Responsive design */
@media (min-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    header nav ul {
        justify-content: flex-end;
    }

    main h2 {
        font-size: 2.5rem;
    }

    main h3 {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    header {
        padding: 1.5rem 0;
    }

    header h1 {
        float: left;
        margin-bottom: 0;
    }

    header nav {
        float: right;
    }

    header nav ul {
        gap: 1.5rem;
    }

    header::after {
        content: "";
        display: table;
        clear: both;
    }
}
