/* General Body and Container */
    html, body {
        height: 100%; /* Important for min-height on body to work */
        margin: 0;
        padding: 0;
    }

    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh; /* Ensures body takes full viewport height */
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
        background-color: #FFFFFF; /* Explicitly white background for the entire page */
        color: #343a40; /* Dark gray text */
        line-height: 1.6;
    }

    .container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }

    .main-wrapper {
        flex-grow: 1; /* Allows this div to take up available space, pushing footer down */
        width: 100%;
    }

    /* Header */
    .header {
        background-color: #ffffff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        padding: 1rem 0;
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 1.25rem;
        font-weight: 600;
        color: #343a40;
        text-decoration: none;
    }

    .logo svg {
        height: 24px;
        width: 24px;
    }

    .nav-menu {
        display: flex;
        gap: 24px;
    }

    .nav-menu a {
        font-size: 0.9rem;
        font-weight: 500;
        color: #495057;
        text-decoration: none;
        position: relative;
    }

    .nav-menu a:hover {
        color: #007bff;
    }

    .nav-menu a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: #007bff;
        transition: width 0.3s ease-in-out;
    }

    .nav-menu a:hover::after {
        width: 100%;
    }

    .menu-toggle {
        display: none; /* Hidden on desktop */
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    .menu-toggle svg {
        height: 24px;
        width: 24px;
        color: #343a40;
    }

    /* Hero Section */
    .hero-section {
        background: linear-gradient(to right, #8a2be2, #ff69b4); /* Purple to Pink gradient */
        color: #ffffff;
        padding: 80px 0;
        text-align: center;
        border-radius: 8px;
        margin-bottom: 40px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .hero-section h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .hero-section p {
        font-size: 1.25rem;
        max-width: 800px;
        margin: 0 auto;
    }

    /* Sections */
    .section {
        padding: 60px 0;
        margin-bottom: 40px;
        background-color: #ffffff; /* Explicitly white background for sections */
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }

    .gray-section {
        background-color: #f1f3f5; /* Lighter gray for alternating sections */
    }

    .section-header {
        text-align: center;
        margin-bottom: 40px;
    }

    .section-header h1 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-top: 1rem;
    }

    .navy-line {
        width: 96px;
        height: 4px;
        background-color: #8a2be2; /* Purple line */
        margin: 0 auto;
    }

    .section-content {
        max-width: 900px;
        margin: 0 auto;
        padding: 0 15px;
        font-size: 1.1rem;
    }

    .section-content h3 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .section-content p {
        margin-bottom: 1rem;
    }

    .section-content ul {
        list-style: disc;
        padding-left: 20px;
        margin-bottom: 1rem;
    }

    .section-content ul li {
        margin-bottom: 0.5rem;
    }

    /* Calculator Specific Styles */
    .calculator-content {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    .col-lg-9 {
        flex: 0 0 70%; /* Approx 9/12 */
        max-width: 70%;
    }

    .col-lg-3 {
        flex: 0 0 25%; /* Approx 3/12 */
        max-width: 25%;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .input-group {
        display: flex;
        align-items: center;
        border: 1px solid #ced4da;
        border-radius: 0.375rem;
        overflow: hidden;
        background-color: #ffffff;
    }

    .input-group-text {
        padding: 0.5rem 0.75rem;
        background-color: #e9ecef;
        border-right: 1px solid #ced4da;
        color: #495057;
        font-weight: 400;
        line-height: 1.5;
        text-align: center;
        white-space: nowrap;
    }

    .form-control {
        display: block;
        width: 100%;
        padding: 0.5rem 0.75rem;
        font-size: 1rem;
        font-weight: 400;
        line-height: 1.5;
        color: #495057;
        background-color: #ffffff;
        background-clip: padding-box;
        border: none; /* Remove individual border */
        border-radius: 0.375rem;
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    }

    .form-control:focus {
        color: #495057;
        background-color: #ffffff;
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .form-control[readonly] {
        background-color: #e9ecef; /* Gray background for readonly inputs */
        opacity: 1;
    }

    .form-m-t-lg {
        margin-top: 2rem;
    }

    .form-m-t-xl {
        margin-top: 3rem;
        padding-top: 1.5rem;
        border-top: 1px solid #e9ecef;
    }

    .quick-links h2 {
        font-size: 1.75rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
    }

    .quick-links .row {
        margin-bottom: 1rem;
    }

    .quick-links .col-lg-12 {
        margin-top: 1rem;
    }

    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        font-weight: 500;
        line-height: 1.5;
        border-radius: 0.375rem;
        text-align: center;
        vertical-align: middle;
        cursor: pointer;
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        text-decoration: none;
        white-space: nowrap;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 1.125rem;
    }

    .btn-primary {
        color: #fff;
        background-color: #007bff;
        border-color: #007bff;
    }

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #004085;
    }

    .btn-info {
        color: #fff;
        background-color: #17a2b8;
        border-color: #17a2b8;
    }

    .btn-info:hover {
        background-color: #117a8b;
        border-color: #0f6674;
    }

    .btn-success {
        color: #fff;
        background-color: #28a745;
        border-color: #28a745;
    }

    .btn-success:hover {
        background-color: #1e7e34;
        border-color: #1c7430;
    }

    .btn-danger {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
    }

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #bd2130;
    }

    .btn-outline {
        background-color: transparent;
    }

    .btn-info.btn-outline {
        color: #17a2b8;
        border-color: #17a2b8;
    }

    .btn-info.btn-outline:hover {
        background-color: #17a2b8;
        color: #fff;
    }

    .btn-success.btn-outline {
        color: #28a745;
        border-color: #28a745;
    }

    .btn-success.btn-outline:hover {
        background-color: #28a745;
        color: #fff;
    }

    .btn-danger.btn-outline {
        color: #dc3545;
        border-color: #dc3545;
    }

    .btn-danger.btn-outline:hover {
        background-color: #dc3545;
        color: #fff;
    }

    /* Footer */
    .footer {
        background-color: #343a40; /* Dark gray background */
        color: #ffffff; /* White text */
        padding: 2rem 0;
        text-align: center;
        margin-top: auto; /* Pushes footer to the bottom */
    }

    .footer p {
        margin: 0;
        font-size: 0.9rem;
    }

    /* Utility Classes (from original HTML, adapted) */
    .text-center {
        text-align: center;
    }

    .font-bold {
        font-weight: 700;
    }

    .m-t-md {
        margin-top: 1.5rem;
    }

    .m-t-xl {
        margin-top: 3rem;
    }

    .m-b-lg {
        margin-bottom: 2rem;
    }

    .m-b-xl {
        margin-bottom: 3rem;
    }

    .text-color {
        color: #495057;
    }

    .text-link {
        color: #007bff;
        text-decoration: none;
    }

    .text-link:hover {
        text-decoration: underline;
    }

    /* Responsive Design */
    @media (max-width: 992px) {
        .col-lg-9, .col-lg-3 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .calculator-content {
            flex-direction: column;
            gap: 40px;
        }

        .quick-links {
            margin-top: 40px;
        }
    }

    @media (max-width: 768px) {
        .header-content {
            padding: 0 15px;
        }

        .nav-menu {
            display: none; /* Hide desktop nav */
            flex-direction: column;
            position: absolute;
            top: 64px; /* Height of header */
            left: 0;
            width: 100%;
            background-color: #ffffff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            padding: 1rem 0;
            border-top: 1px solid #e9ecef;
        }

        .nav-menu.active {
            display: flex;
        }

        .nav-menu a {
            padding: 0.75rem 15px;
            width: 100%;
            box-sizing: border-box;
        }

        .menu-toggle {
            display: block; /* Show hamburger */
        }

        .hero-section {
            padding: 60px 0;
        }

        .hero-section h1 {
            font-size: 2.5rem;
        }

        .hero-section p {
            font-size: 1rem;
        }

        .section {
            padding: 40px 0;
        }

        .section-header h1 {
            font-size: 2rem;
        }

        .section-content {
            font-size: 1rem;
        }

        .section-content h3 {
            font-size: 1.25rem;
        }

        .btn-lg {
            font-size: 1rem;
            padding: 0.6rem 1.5rem;
        }
    }
