html {
    font-size: 16px;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fafafa;
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    background: linear-gradient(135deg, #e60023, #ff1744);
    color: #fff;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

header nav {
    display: flex;
    gap: 1.5rem;
}

header nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

header nav a:hover {
    opacity: 0.8;
}

main {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1rem;
    flex: 1 0 auto;
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #e60023;
}

section p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

nav h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #444;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.3rem;
}

nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-left: 1rem;
}

nav li {
    list-style: disc;
    list-style-position: inside;
}

nav a {
    text-decoration: none;
    color: #e60023;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #ff1744;
    text-decoration: underline;
}

nav img {
    display: block;
    max-width: 250px;
    height: auto;
    margin-top: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

footer {
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
    background: #f1f1f1;
    font-size: 0.9rem;
    color: #555;
    border-top: 3px solid #e60023;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    header h1 {
        font-size: 1.4rem;
    }

    section p {
        font-size: 1rem;
    }

    nav ul {
        margin-left: 0;
    }

    nav li {
        list-style: none;
    }

    nav img {
        max-width: 100%;
    }
}
