/* ---- Global Styles ---- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    color: #004080;
    font-weight: 700;
}

a {
    color: #0056b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

/* ---- Header & Navigation ---- */
.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    color: #004080;
}

.logo {
    height: 50px; /* Slightly smaller for better mobile balance */
    margin-right: 15px;
}

.logo-container h1 {
    margin: 0;
    font-size: 1.6rem;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 1rem;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav .active {
    color: #004080;
    border-bottom: 2px solid #0056b3;
}


/* ---- START: NEW MOBILE NAVIGATION STYLES ---- */

/* The Hamburger Menu Button */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Ensures it's on top */
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: #004080;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* Animation for hamburger to 'X' */
.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
}
.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}


/* ---- Hero Section (Homepage) ---- */
.hero {
    background-image: linear-gradient(rgba(0, 40, 80, 0.6), rgba(0, 40, 80, 0.6)), url('../images/cover-photo.jpg');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}
.hero h2 { font-size: 3rem; color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 700px; margin: 0 auto 30px auto; }

.cta-button {
    background-color: #007bff;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
}
.cta-button:hover { background-color: #0056b3; text-decoration: none; }

/* ---- General Content & Page Styles ---- */
.page-header { background-color: #f4f8ff; padding: 40px 0; text-align: center; border-bottom: 1px solid #e0e0e0; }
.page-header h2 { font-size: 2.8rem; margin: 0; }
.content-section { padding: 60px 0; }
.grid-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.grid-layout img { width: 100%; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); text-align: center; }
.card h3 { margin-top: 0; }
.contact-info-map { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-details p { margin: 10px 0; font-size: 1.1rem; }
.contact-details strong { color: #004080; }
iframe { width: 100%; height: 100%; min-height: 350px; border: 0; border-radius: 8px; }

/* ---- Footer ---- */
.main-footer {
    background-color: #004080;
    color: #f0f0f0;
    padding: 50px 0 20px 0;
}
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: left; margin-bottom: 40px; }
.footer-col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 15px; border-bottom: 1px solid #0056b3; padding-bottom: 10px; }
.footer-col p, .footer-col li { font-size: 0.95rem; line-height: 1.8; }
.footer-col a { color: #f0f0f0; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { text-align: center; border-top: 1px solid #0056b3; padding-top: 20px; font-size: 0.9rem; }


/* ---- START: ALL RESPONSIVE STYLES ---- */
@media (max-width: 768px) {
    
    /* Show the hamburger menu, hide the desktop nav */
    .menu-toggle {
        display: flex;
    }
    .main-nav ul {
        display: none; /* Hide nav links by default */
        flex-direction: column;
        position: absolute;
        top: 81px; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    /* This class is added by JavaScript to show the menu */
    .main-nav ul.nav-active {
        display: flex;
    }
    .main-nav li {
        margin: 0;
        width: 100%;
        text-align: center;
    }
    .main-nav a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    .main-nav a:hover, .main-nav .active {
        background-color: #f4f8ff;
        border-bottom-color: #0056b3; /* Keep the active indicator */
    }

    /* Adjust font sizes for mobile readability */
    .logo-container h1 {
        font-size: 1.4rem;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .page-header h2 {
        font-size: 2.2rem;
    }
    .content-section {
        padding: 40px 0;
    }

    /* Stack grid layouts on mobile */
    .grid-layout, .contact-info-map, .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        text-align: center;
    }
    .footer-col h4 {
        display: inline-block;
    }
}