/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
    font-size: 0.9em; /* Slightly smaller base font size */
}

body {
    padding: 5px;
    line-height: 1.5; /* Reduced slightly for compactness */
    max-width: 100%;
}

/* Header and Navigation */
header {
    background-color: #1a2a44;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000; /* Removed position: sticky */
}

nav {
    padding: 10px 15px; /* Reduced padding */
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px; /* Reduced gap */
}

.menu a {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 12px; /* Reduced padding */
    display: block;
    font-size: 14px; /* Smaller font size */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown a .dropdown-arrow {
    font-size: 10px; /* Smaller arrow */
    margin-left: 4px;
}

.menu .dropdown > a:hover {
    background-color: #2e3b5b;
    border-radius: 4px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2e3b5b;
    padding: 3px 0; /* Reduced padding */
    min-width: 200px; /* Slightly smaller width */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 10;
}

.dropdown-menu li a {
    color: #e0e6f0;
    padding: 8px 12px; /* Reduced padding */
    font-size: 12px; /* Smaller font size */
    display: block;
    text-align: left;
}

.dropdown-menu li a:hover {
    background-color: #3b5998;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Specific Links */
.home-link a {
    background-color: #3b5998;
    padding: 8px 16px; /* Reduced padding */
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.home-link a:hover {
    background-color: #2e4678;
}

.faq-link a {
    background-color: #5e2d79;
    padding: 8px 16px; /* Reduced padding */
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-link a:hover {
    background-color: #47215e;
}

/* Content Sections */
section {
    padding: 15px; /* Reduced padding */
    margin: 15px auto; /* Reduced margin */
    width: 90%;
    max-width: 1200px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.1em; /* Smaller font */
    font-weight: bold;
    color: #2980b9;
    margin-bottom: 8px; /* Reduced margin */
}

h1 {
    font-size: 1.8em; /* Smaller font */
    margin-bottom: 12px; /* Reduced margin */
    color: #2c3e50;
    text-align: center;
}

p {
    font-size: 0.9em; /* Smaller font */
    line-height: 1.4; /* Reduced line height */
    margin-bottom: 15px; /* Reduced margin */
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: #004080;
    color: white;
    padding: 8px 16px; /* Reduced padding */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
    font-size: 0.9em; /* Smaller font */
}

.btn:hover {
    background-color: #00264d;
}

button {
    background-color: #2980b9;
    color: white;
    padding: 8px 16px; /* Reduced padding */
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em; /* Smaller font */
}

/* Table Styles */
table {
    width: 100%;
    margin: 8px auto; /* Reduced margin */
    border-collapse: collapse;
}

th, td {
    padding: 6px; /* Reduced padding */
    border: 1px solid #ddd;
    font-size: 0.85em; /* Smaller font */
}

th {
    background-color: #ecf0f1;
    color: #2c3e50;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 50px 15px; /* Reduced padding */
    text-align: center;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: white;
}

.hero-content h1 {
    font-size: 2.2em; /* Smaller font */
    margin-bottom: 8px; /* Reduced margin */
    color: #ffffff;
}

.hero-content .subtitle {
    font-size: 1.1em; /* Smaller font */
    opacity: 0.9;
    color: #dbeafe;
}

.btn-primary {
    background: #10b981;
    padding: 10px 20px; /* Reduced padding */
    font-size: 0.9em; /* Smaller font */
}

.btn-primary:hover {
    background: #059669;
}

/* Tools Grid */
.tools-grid {
    padding: 30px 15px; /* Reduced padding */
    background: #f1f5f9;
}

.tools-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* Reduced gap */
    max-width: 1200px;
    margin: 15px auto; /* Reduced margin */
}

.tool-card {
    background: #ffffff;
    padding: 15px; /* Reduced padding */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
    padding: 8px 16px; /* Reduced padding */
    font-size: 0.9em; /* Smaller font */
}

.btn-secondary:hover {
    background: #d1d5db;
}

/* Additional Sections */
.advice-teaser {
    padding: 30px 15px; /* Reduced padding */
    text-align: center;
    background: #ffffff;
}

.btn-outline {
    border: 2px solid #10b981;
    color: #10b981;
    padding: 8px 16px; /* Reduced padding */
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em; /* Smaller font */
}

.btn-outline:hover {
    background: #10b981;
    color: white;
}

.cta-banner {
    padding: 40px 15px; /* Reduced padding */
    background: #1f2937;
    color: white;
}

/* Footer */
footer {
    background-color: #00264d;
    color: white;
    padding: 15px; /* Reduced padding */
    font-size: 0.85em; /* Smaller font */
}

.footer {
    background-color: #f8f8f8;
    padding: 15px; /* Reduced padding */
    border-top: 1px solid #e0e0e0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px; /* Reduced gap */
    list-style: none;
    padding: 0;
}

.footer-links a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px; /* Smaller font */
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #003366;
    text-decoration: underline;
}

.footer-disclaimer {
    max-width: 800px;
    margin: 10px auto; /* Reduced margin */
    font-size: 11px; /* Smaller font */
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 8px 10px; /* Further reduced */
    }

    .menu {
        flex-direction: column;
        gap: 8px; /* Reduced gap */
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
    }

    section {
        width: 95%;
        padding: 12px; /* Reduced padding */
    }

    .hero {
        padding: 35px 12px; /* Reduced padding */
    }

    .hero-content h1 {
        font-size: 1.8em; /* Smaller font */
    }

    .tools-container {
        grid-template-columns: 1fr;
        gap: 10px; /* Reduced gap */
    }

    table {
        font-size: 0.8em; /* Smaller font */
    }

    th, td {
        padding: 5px; /* Further reduced */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.85em; /* Smaller base font */
    }

    .menu a {
        padding: 6px 10px; /* Reduced padding */
        font-size: 13px; /* Smaller font */
    }

    h1 {
        font-size: 1.4em; /* Smaller font */
    }

    .btn, button, .btn-primary {
        padding: 6px 12px; /* Reduced padding */
        font-size: 0.85em; /* Smaller font */
    }

    th, td {
        padding: 4px; /* Further reduced */
    }
}



        .rating { font-weight: bold; color: #f39c12; }
        img { width: 150px; float: left; margin-right: 15px; }
