@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* Global Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header Styles */
.main-header {
    background-color: #031F4B; /* Dark blue background */
    color: #fff; /* Default text color in header is white */
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* IMAGE LOGO STYLES */
.header-logo {
    height: 60px; /* Adjust height as needed for desktop */
    background-color: #fff; /* White background */
    padding: 5px 10px; /* Padding inside the border-radius */
    border-radius: 8px; /* Border radius for rounded corners */
    display: block; /* Ensures proper box model for background/padding */
    object-fit: contain; /* Ensures the entire image is visible within its bounds */
}

.main-nav .nav-list {
    display: flex;
}

.main-nav .nav-list li {
    margin-left: 30px;
}

.main-nav .nav-list a {
    color: #fff; /* Menu items are white */
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

.main-nav .nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #ffce00; /* Underline turns yellow on hover */
    transition: width 0.3s ease;
}

.main-nav .nav-list a:hover::after,
.main-nav .nav-list a.active::after {
    width: 100%;
}

.main-nav .nav-list a:hover {
    color: #ffce00; /* Text turns yellow on hover */
}

.nav-toggle {
    display: none; /* Hidden on desktop */
    font-size: 1.8em;
    cursor: pointer;
    color: #fff; /* Hamburger icon color is yellow */
}

/* Responsive Header - WITH ANIMATION AND FONT SIZE ADJUSTMENTS */
@media (max-width: 768px) {
    .main-nav .nav-list {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s ease-out, opacity 0.4s ease-out;

        flex-direction: column;
        width: 100%;
        background-color: #031F4B; /* Dark blue background */
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
        padding-bottom: 0;
    }

    .main-nav .nav-list.active {
        max-height: 300px; /* Adjust as needed for your menu content */
        opacity: 1;
        display: flex;
        padding-bottom: 10px;
    }

    .main-nav .nav-list li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-nav .nav-list li:last-child {
        border-bottom: none;
    }

    .main-nav .nav-list a {
        display: block;
        padding: 12px 20px; /* Slightly reduced vertical padding */
        text-align: center;
        color: #fff; /* Mobile menu items are white */
        font-size: 0.95em; /* Slightly smaller font size for mobile menu items */
    }

    .main-nav .nav-list a:hover {
        color: #ffce00; /* Yellow on hover for mobile */
    }

    .main-nav .nav-list a::after {
        display: none; /* Hide underline on mobile */
    }

    .nav-toggle {
        display: block;
        font-size: 1.6em; /* Slightly smaller hamburger icon */
    }

    /* Smaller logo for mobile */
    .header-logo {
        height: 35px; /* This is the line you need to change */
    }

    .main-header .logo {
        font-size: 1.5em; /* Smaller logo for mobile */
    }
}

/* Footer Styles */
.main-footer {
    background-color: #031F4B; /* Dark blue background */
    color: #ecf0f1; /* Light grey text for general footer text */
    padding: 40px 0 20px;
    font-size: 0.9em; /* Base font size for footer */
}

.main-footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
    
    /* DESKTOP DIVIDER: Vertical line between columns */
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Vertical divider */
    padding-right: 20px; /* Space between content and divider */
    margin-right: 20px; /* Space between divider and next column */
}

.footer-section:last-child {
    border-right: none; /* No vertical divider on the last column */
    padding-right: 0; /* Remove padding if no divider */
    margin-right: 0; /* No extra margin on the last column */
}

.footer-section h3 {
    color: #ffce00; /* Footer headings are yellow */
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 1.2em;
}

.footer-section p {
    margin-bottom: 10px;
    font-weight: 400;
    color: #ecf0f1; /* Footer paragraph text is light grey */
}

.footer-section ul {
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #ecf0f1; /* Footer links are light grey */
    transition: color 0.3s ease;
    font-weight: 400;
    position: relative; /* Needed for ::after pseudo-element */
}

/* Footer Link Hover Underline (like header) */
.footer-section ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px; /* Slightly thinner line for footer */
    bottom: -3px; /* Adjust vertical position of underline */
    left: 0;
    background-color: #ffce00; /* Yellow underline */
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::after {
    width: 100%;
}

.footer-section ul li a:hover {
    color: #fff; /* Footer links turn white on hover */
}

.social-links a {
    color: #ecf0f1; /* Social icons are light grey */
    font-size: 1.5em; /* Reverted to 1.5em for social icons */
    margin-right: 15px; /* Reverted margin */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #ffce00; /* Social icon turns yellow on hover */
}

.footer-section.contact-info p i {
    margin-right: 10px;
    color: #ffce00; /* Contact info icons are yellow */
    /* Removed font-size property here to let it inherit naturally */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #bdc3c7; /* Copyright text is light grey */
}

/* Responsive Footer - ALIGNED LEFT AND FONT SIZE ADJUSTMENTS */
@media (max-width: 768px) {
    .main-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .footer-section {
        margin-right: 0; /* Override desktop margin-right */
        padding-right: 0; /* Override desktop padding-right */
        border-right: none; /* Remove vertical divider for mobile */

        /* MOBILE DIVIDER: Horizontal line between rows */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Horizontal divider */
        padding-bottom: 20px; /* Space between content and divider */
        margin-bottom: 20px; /* Space between divider and next row */
        width: 100%; /* Ensure sections take full width when stacked */
        max-width: none;
    }

    .footer-section:last-child {
        border-bottom: none; /* No horizontal divider on the last row */
        padding-bottom: 0; /* Remove padding if no divider */
        margin-bottom: 0; /* No extra margin after the last row */
    }

    .footer-section h3 {
        font-size: 1.1em; /* Smaller headings for mobile footer */
    }

    .footer-section p,
    .footer-section ul li a,
    .footer-bottom p {
        font-size: 0.85em; /* Smaller text for mobile footer content and copyright */
    }

    /* Adjusted social icon size for mobile specifically */
    .social-links a {
        font-size: 1.3em; /* Reverted to 1.3em for mobile social icons */
    }
    /* Removed specific contact info icon size for mobile to let it inherit */
    .footer-section.contact-info p i {
        /* font-size: 0.75em; -- REMOVED this line */
    }

    .social-links {
        display: flex;
        justify-content: flex-start;
    }

    .footer-bottom {
        text-align: center;
    }
}