body {
    font-family: 'Calibri', sans-serif;
    margin: 0; /* It's safer to start with zero margin on the body */
    color: #122c5b;
    overflow-y: scroll; 
}

h1, h2, h3 {
    color: #0046AD;
    text-transform: capitalize;
    font-weight: bold;
    margin-bottom: 15px;
}

/* =================================== */
/* --- Core Layout Containers --- */
/* =================================== */

.content-wrapper {
    margin-left: 220px;
}

.container {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
}

/* =================================== */
/* --- Header Styles (Desktop First) --- */
/* =================================== */

.main-header {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 3px solid #005A9C;
    position: relative;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 1em;
}

.brand-text {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
}

.main-header h1 {
    margin: 0;
    font-size: 1.8em;
    color: #005A9C;
}

.header-logos {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* This forces the logos to the far right */
}

.header-logos img {
    max-height: 65px;
    width: auto;
}

/* =================================== */
/* --- Side Nav Menu Styles --- */
/* =================================== */

.quick-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background-color: #f1f1f1;
    border-right: 1px solid #ddd;
    padding-top: 20px;
    z-index: 1000;
}

.quick-menu h3 {
    padding: 0 15px;
    font-size: 1.2em;
    color: #333;
}

.quick-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.quick-menu li a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    font-size: 1em;
    color: #005A9C;
}

.quick-menu li a:hover {
    background-color: #ddd;
}

/* =================================== */
/* --- Calculator & Form Styles --- */
/* =================================== */

.calculator-section {
    border: 2px solid #0046AD;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.input-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #565a5c;
}

input[type="number"],
select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background-color: #122c5b;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0046AD;
}

.result {
    margin-top: 10px;
    font-weight: bold;
    color: #c72919;
}

.conversion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.conversion-subsection {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background-color: #f9f9f9;
}

/* =================================== */
/* --- Footer, Hamburger, Close Buttons --- */
/* =================================== */

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9em;
    color: #555;
    border-top: 1px solid #eee;
}

.hamburger-menu, .close-menu {
    display: none; /* Hide mobile buttons on desktop */
}

/* =================================== */
/* --- Mobile Responsive Styles --- */
/* =================================== */
@media (max-width: 800px) {
    .content-wrapper {
        margin-left: 0;
        padding: 0 1rem;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 1rem 1rem 1rem 70px;
    }

    .header-left {
        align-items: center;
        text-align: center;
    }
    
    .header-logos {
        margin-left: 0; /* Reset margin for centering */
    }

    .brand-text {
        font-size: 2em;
    }

    .main-header h1 {
        font-size: 1.3em;
    }

    .header-logos img {
        max-height: 45px;
    }

    .hamburger-menu {
        display: block;
        position: absolute;
        top: 10px;
        left: 10px;
        z-index: 1001;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    
    .hamburger-menu span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: all 0.3s;
    }
    
    .hamburger-menu.active {
        background-color: #565a5c;
        border-radius: 4px;
    }

    .hamburger-menu.active span {
        background-color: white;
    }

    .quick-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        width: 100%;
        height: 100%;
        padding-top: 80px;
    }

    .quick-menu.menu-open {
        transform: translateX(0);
    }

    .quick-menu .close-menu {
        display: block;
        position: absolute;
        top: 15px;
        right: 25px;
        font-size: 2.5em;
        color: #333;
    }

    .quick-menu li a.active {
        background-color: #565a5c;
        color: white;
        font-weight: bold;
    }
    
    .quick-menu h3, .quick-menu li {
        text-align: center;
    }

    .quick-menu li a {
        font-size: 1.5em;
        padding: 20px;
    }

    .conversion-grid, .conversion-row {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 20px;
    }
}