/* Basic reset styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f4f8;
    color: #0f3252;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Header styling */
header {
    background-color: white;
    color: #004080;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header .logo img {
    max-width: 150px;
    transition: transform 0.3s ease;
}

header .logo img:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    gap: 20px;
    list-style-type: none; /* Remove bullets from navigation */
}

nav ul li a {
    color: #004080;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(0, 64, 128, 0.1);
    border-radius: 5px;
}

/* Main content */
main {
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Calculators Section */
#calculators {
    background: linear-gradient(145deg, #ffffff, #f7f9fc);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#calculators h2 {
    font-size: 2.5rem;
    color: #004080;
    margin-bottom: 20px;
}

.calculator-links ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calculator-links ul li {
    background: #fff;
    border: 1px solid #0f3252;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-links ul li:hover {
    background-color: rgba(0, 64, 128, 0.1);
    color: #00264d;
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.calculator-links ul li a {
    display: block;
    padding: 15px 20px;
    color: #004080;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.calculator-links ul li a:hover {
    color: #00264d;
}

/* Footer styling */
footer {
    background: white;
    color: #004080;
    padding: 50px;
    text-align: center;
    font-size: 0.95rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

footer:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

footer p {
    margin: 0;
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    main {
        padding: 30px;
    }

    #calculators h2 {
        font-size: 1.8rem;
    }

    .calculator-links ul li a {
        font-size: 1rem;
    }

    footer {
        font-size: 0.85rem;
    }
}