@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Basic Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Ensure no horizontal scrollbar from layout issues */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* New: Prevent scrolling on body when menu is active */
body.no-scroll {
    overflow: hidden;
}

/* Header Section */
header {
    width: 100%;
    padding: 0 20px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    margin-left: 60px;
}

.logo img {
    height: 70px;
    width: auto;
    display: block;
}

/* Remove hover effect from logo link specifically */
.logo a:hover {
    background: transparent;
    border-radius: 0;
}

/* Main Navigation (Desktop) */
.main-nav {
    display: flex;
    align-items: center;
    /* transition: max-height 0.3s ease-out; -- Removed for desktop as it's not needed here */
}

.main-nav a {
    color: #123458;
    margin-left: 20px;
    padding: 8px 15px;
    font-size: 16px;
    transition: 0.2s;
    text-decoration: none;
    white-space: nowrap;
}

/* Default hover effect for all main-nav links */
.main-nav a:hover {
    background: #D4C9BE;
    color: #123458;
    border-radius: 2px;
}

/* Active link styling */
.main-nav a.active {
    background: #F1EFEC;
    color: black;
    border-radius: 2px;
}

/* Hamburger Menu Styling - Hidden on Desktop by default */
.hamburger-menu {
    display: none;
    font-size: 30px;
    color: #F1EFEC;
    cursor: pointer;
    z-index: 1001;
}

/* --- Responsive Design --- */

/* Tablet and Smaller Desktops (max-width: 999px) */
@media screen and (max-width: 999px) {
    /* Adjust logo margin for smaller screens */
    .logo {
        margin-left: 20px;
    }

    /* Hamburger menu for tablets/smaller desktops */
    .hamburger-menu {
        display: block;
        color: #123458;
    }

    /* Main navigation for tablets/smaller desktops (mobile-like behavior) */
    .main-nav {
        display: flex; /* Keep flex for transition */
        flex-direction: column;
        /* Key Change: Use fixed position for overlay */
        position: fixed; /* Fixes navigation relative to viewport */
        top: 0; /* Align to top of viewport */
        left: 0;
        width: 100%;
        height: 100vh; /* Full viewport height */
        background-color: rgba(0, 0, 0, 0.90);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
        padding-top: 100px; /* Space for the header behind it */
        z-index: 998; /* Below hamburger, above content */
        overflow-y: auto; /* Allow internal scrolling if menu content is too long */

        /* Initially hide off-screen */
        transform: translateX(100%);
        transition: transform 0.3s ease-out; /* Smooth slide-in/out */
    }

    /* When .active class is added by JS, show the menu */
    .main-nav.active {
        transform: translateX(0); /* Slide into view */
    }

    .main-nav a {
        padding: 15px 20px;
        font-size: 17px;
        display: block;
        width: 100%;
        text-align: left;
        margin-left: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #F1EFEC;
    }
    .main-nav a:last-child {
        border-bottom: none;
    }

    /* Add hover effect for mobile menu links */
    .main-nav a:hover {
        background: #D4C9BE;
        border-radius: 0;
        color: #123458;
    }

    .main-nav a.active {
        background: #D4C9BE;
        border-radius: 0;
        color: #123458;
    }
}

/* Mobile Devices (max-width: 768px) */
@media screen and (max-width: 768px) {
    header {
        height: 80px;
        padding: 0 15px;
    }

    .logo {
        margin-left: 0;
    }

    .logo img {
        height: 45px;
    }

    .main-nav {
        padding-top: 80px; /* Adjust padding-top based on new header height */
    }
}

/* Further adjustments for very small screens (e.g., iPhone 5/SE) */
@media screen and (max-width: 480px) {
    .logo img {
        height: 40px;
    }
}
