* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #222;
}

a {
    color: #3498db;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

section {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
}

#menu-button {
    display: none;
    background-color: #374151;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

header {
    background-color: #111827;
    color: white;
    padding: 40px 5%;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    color: #ccc;
}

nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

nav a {
    color: white;
    font-weight: bold;
    padding: 8px 12px;
}

nav a:hover {
    background-color: #374151;
    border-radius: 5px;
}

section:first-of-type article {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

section:first-of-type h2 {
    margin-bottom: 20px;
}

section:first-of-type h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

section:first-of-type article p {
    margin-bottom: 20px;
}

main section:nth-of-type(2) {
    display: grid;
    grid-template-columns: repeat(3 , 1fr);
    gap: 20px;
}

main section:nth-of-type(2) h2 {
    grid-column: 1 / -1;
}

main section:nth-of-type(2) article {
    background-color: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

main section:nth-of-type(2) article h3 {
    margin-bottom: 15px;
}

main section:nth-of-type(2) article p {
    margin-bottom: 20px;
}

main section:nth-of-type(3) ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

main section:nth-of-type(3) li {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

main section:nth-of-type(3) li a {
    display: block;
    padding: 15px 20px;
}

footer {
    background-color: #111827;
    color: white;
    text-align: center;
    padding: 30px 5%;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

@media (max-width: 768px) {

    #menu-button {
        display: inline-block;
        margin-bottom: 15px;
    }

    #main-menu {
        display: none;
        flex-direction: column;
        align-items: center;
    }

    #main-menu.active {
        display: flex;
    }

    header {
        padding: 30px 5%;
    }

    header h1 {
        font-size: 2rem;
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    section:first-of-type article h3 {
        font-size: 1.5rem;
    }

    main section:nth-of-type(2) {
        grid-template-columns: 1fr;
    }

    main section:nth-of-type(3) ul {
        flex-direction: column;
    }
}
