:root {
    --primary: #0A4A8A;
    --primary-light: #0E6CC4;
    --text-dark: #2b2b2b;
    --bg-light: #f7f9fc;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Global Reset */
body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.75;
}

/* Banner */
.banner {
    background-color: #1e3d58; /* Fills any gaps with matching tone */
    width: 100%;
    overflow: hidden; /* Prevents stray white edges */
}

.banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
    animation: fadeIn 1.2s ease;
}


/* Navigation */
nav {
    background-color: rgba(10, 74, 138, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 35px;
    padding: 14px 50px;
}

/* Logo inside navigation */
nav .logo img {
    width: 6%;           /* Fluid width for better visibility */
    min-width: 90px;     /* Ensures readability on small screens */
    max-width: 100px;     /* Prevents oversizing on large screens */
    height: auto;
    display: block;
    object-fit: contain;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

/* Navigation links */
nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.3px;
    line-height: 1;
}

nav a:hover {
    opacity: 0.85;
    transition: opacity 0.3s ease;
}



/* Hero Section */
.hero {
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    color: white;
    padding: 120px 50px;
    text-align: left;
    border-radius: var(--radius);
    max-width: 1200px;
    margin: 40px auto;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s ease;
}
.hero h1 {
    font-size: 54px;
    margin-bottom: 15px;
    font-weight: 700;
}
.hero p {
    font-size: 22px;
    max-width: 700px;
    opacity: 0.95;
}

/* Sections */
section {
    padding: 5px 2px;
    max-width: 1200px;
    margin: auto;
    animation: fadeInUp 0.8s ease;
}
h2 {
    color: var(--primary);
    font-size: 32px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Card Layout */
.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    font-size: 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}



/* Mobile Responsive Adjustments */
@media (max-width: 768px) {

    /* Navigation */
    nav {
        position: relative;
        padding: 12px 20px;
        gap: 18px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
    }

    nav .logo img {
        width: 70px;
        height: auto;
        min-width: 40px;
        max-width: 80px;
    }

    /* Hide menu links initially */
    nav .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: rgba(10, 74, 138, 0.95);
        padding: 10px 0;
        border-radius: 8px;
        margin-top: 10px;
    }

    nav .menu a {
        font-size: 15px;
        padding: 10px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    nav .menu a:last-child {
        border-bottom: none;
    }

    /* Hamburger icon */
    .hamburger {
        display: block;
        cursor: pointer;
        width: 28px;
        height: 22px;
        position: relative;
    }

    .hamburger span {
        background: #fff;
        display: block;
        height: 3px;
        width: 100%;
        border-radius: 2px;
        position: absolute;
        left: 0;
        transition: all 0.3s ease;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { top: 18px; }

    /* Active hamburger (X icon) */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    /* Show menu when active */
    nav.active .menu {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 60px 25px;
        margin: 20px auto;
        text-align: center;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
        max-width: 100%;
    }

    /* Sections */
    section {
        padding: 50px 25px;
    }

    h2 {
        font-size: 26px;
        text-align: center;
    }

    /* Cards */
    .card {
        padding: 20px;
        margin-bottom: 20px;
    }

    /* Grid becomes single column */
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Banner */
    .banner img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    /* Footer */
    footer {
        padding: 25px;
        font-size: 14px;
    }
}
