/* General page styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    box-sizing: border-box; /* Include padding/border in width */
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
}

header {
    text-align: center;
    padding: 20px;
    background-color: #004d99;
    color: white;
}

header h1 {
    margin: 0;
}

header p {
    font-size: 1.1rem;
}

/* Container styles */
.container {
    max-width: 1200px; /* Max width for the content */
    width: 100%; /* Full width to fit screen */
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-content, .sidebar {
    box-sizing: border-box; /* Include padding/border in width */
}

.main-content {
    flex: 1;
    min-width: 300px; /* Prevent from shrinking too much */
}

.sidebar {
    width: 300px;
    box-sizing: border-box;
}

/* Section styles */
section {
    margin-bottom: 10px; /* Reduced space between sections */
}

h2 {
    color: #004d99;
}

/* Calculator form */
.calculator {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calculator label {
    display: block;
    margin-bottom: 5px;
}

.calculator input, .calculator select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Button styles */
button {
    padding: 10px 20px;
    background-color: #004d99;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px; /* Space between buttons */
}

button:hover {
    background-color: #003366;
}

/* Specific margin for Start Calculating button */
button[type="button"]:nth-child(2) {
    margin-top: 10px; /* Add space above the "Start Calculating" button */
}

/* FAQ section styles */
.faq {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 10px; /* Reduced space between calculator and FAQ section */
    width: 100%;
    box-sizing: border-box;
}

.faq h2 {
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item strong {
    display: block;
    font-size: 1.1rem;
    color: #004d99;
}

/* Sidebar sections */
.disclaimer, .how-it-works, .affiliate-links {
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Footer styles */
footer {
    text-align: center;
    background-color: #004d99;
    color: white;
    padding: 10px;
}
/* Banner Section */
.banner {
    text-align: center;
    margin: 20px 0;
}

.banner img {
    max-width: 100%; /* Ensure it fits within the screen size */
    height: auto;    /* Maintain aspect ratio */
}
/* General Styles for the Header and Footer Menus */
/* Base nav styles */
nav {
    width: 100%;
    text-align: center;
    background-color: #f4f4f9; /* optional */
    padding: 10px 0;
    box-sizing: border-box;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    position: relative; /* for dropdown positioning */
}

nav ul li a {
    text-decoration: none;
    color: #004d99;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 8px 12px;
    display: inline-block;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #003366;
}

/* Dropdown menu */
nav ul li .dropdown-content {
    display: none; /* hide by default */
    position: absolute;
    top: 100%; /* position below parent */
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 5px;
}

nav ul li .dropdown-content li {
    display: block;
}

nav ul li .dropdown-content li a {
    color: #004d99;
    padding: 10px 15px;
    font-weight: normal;
    display: block;
}

nav ul li .dropdown-content li a:hover {
    background-color: #f4f4f9;
    color: #003366;
}

/* Show dropdown on hover */
nav ul li.dropdown:hover .dropdown-content {
    display: block;
}
