* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #1f2933;
    line-height: 1.6;
}

/* =========================
   HEADER (GRID)
   ========================= */
.site-header {
    background-color: #0b3558;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "logo nav";
    align-items: center;
    column-gap: 24px;
    padding: 20px 40px;
}

/* Logo container gives contrast and spacing */
.logo-container {
    grid-area: logo;
    background-color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

/* Increase logo size and keep aspect ratio */
.logo-container img {
    height: 130px;
    width: auto;
    display: block;
}

/* Nav sits in the right grid column on desktop */
.main-nav {
    grid-area: nav;
    justify-self: end;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 24px;
    font-weight: 500;
}

.main-nav a:hover {
    text-decoration: underline;
}

/* =========================
   PAGE CONTENT
   ========================= */
.content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

#hero {
    margin-bottom: 50px;
}

#hero h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #0b3558;
}

section {
    margin-bottom: 40px;
}

section h2 {
    color: #0b3558;
    margin-bottom: 12px;
}

section ul {
    padding-left: 20px;
}

/* =========================
   FOOTER (CENTERED)
   ========================= */
.site-footer {
    background-color: #0b3558;
    color: #ffffff;

    display: flex;
    align-items: center;        /* vertical center */
    justify-content: center;    /* horizontal center */

    text-align: center;
    padding: 18px;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* =========================
   RESPONSIVE HEADER
   ========================= */

/* <= 720px: keep logo + nav side-by-side, but stack nav links vertically */
@media (max-width: 720px) {
    .site-header {
        padding: 16px 18px;
        column-gap: 16px;
        align-items: start;
        grid-template-columns: auto 1fr;
        grid-template-areas: "logo nav";
    }

    .main-nav {
        justify-self: start;
        flex-direction: column;
        align-items: flex-start;
        width: auto;
    }

    .main-nav a {
        margin: 0 0 8px 0;
        margin-left: 0;
        padding: 8px 10px;
        border-radius: 6px;
        background: rgba(255,255,255,0.12);
        display: block;
        white-space: nowrap;
    }
}

/* <= 420px: stack logo above nav for very narrow screens */
@media (max-width: 420px) {
    .site-header {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "nav";
        row-gap: 12px;
        align-items: start;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        width: 100%;
    }

    .logo-container img {
        height: 110px;
    }
}
