/* Base styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
    /* Removed padding here so Footer spans full width */
    margin: 0;
    display: flex;
    flex-direction: column; 
    /* Removed align-items: center so children (like footer) can stretch */
    min-height: 100vh;
    position: relative; 
}

/* --- HEADER STYLING (Full Width Fixed) --- */
.header-wrapper {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;         
    z-index: 1000;
    background-color: #f3f4f6; 
    padding-top: 1rem;
    padding-bottom: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); 
}

/* --- INNER ALIGNMENT --- */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    width: 100%;
    max-width: 800px; 
    margin: 0 auto;   
}

.logo-container img {
    height: 40px; 
    width: auto;
    flex-shrink: 0;
}

/* Hamburger Icon (Visible by default on Mobile) */
.menu-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-shrink: 0;
    display: block; 
}

.menu-icon svg {
    width: 30px;
    height: 30px;
    color: #1f2937;
}

/* --- MOBILE MENU STYLING (Slide-out) --- */
.hidden-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2000; 
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 5rem; 
    display: flex;
    flex-direction: column;
    overflow-y: auto; 
}

.hidden-menu.active {
    transform: translateX(0);
}

.hidden-menu a {
    padding: 1rem 1.5rem;
    color: #1f2937;
    font-weight: 600;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    transition: background-color 0.2s;
    display: block;
}

.hidden-menu a:hover {
    background-color: #eff6ff;
    color: #2563eb;
}

/* --- MAIN CONTENT CONTAINER --- */
.container {
    background-color: #ffffff;
    padding: 1rem; 
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; 
    flex-grow: 1; 
    margin-top: 3rem;
    /* Ensure it centers itself since Body is no longer aligning center */
    margin-left: auto;
    margin-right: auto;
}


.page-footer { 
    width: 800%; 
    /* Max width handled by inner container in HTML now */
    text-align: center; 
    padding: 1rem 0; 
    margin-top: 2rem; 
    font-size: 0.875rem; 
    color: #6b7280; 
    border-top: 1px solid #d1d5db; 
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (min-width: 640px) {
    /* Padding is now handled on the specific containers, not body */
    .logo-container img {
        height: 60px;
    }
}

/* --- DESKTOP VIEW (Screens larger than 1024px) --- */
.desktop-nav {
        display: flex;
        align-items: center;
        gap: 0.75rem; 
        flex-grow: 1;
        justify-content: center; 
}
    /* 2. Hide the Hamburger Icon on Desktop */
.menu-icon {
        display: none;
}

@media (min-width: 1024px) {
    
    /* 1. Reveal the desktop nav */
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2rem; 
        flex-grow: 1;
        justify-content: center; 
    }

    /* 2. Hide the Hamburger Icon on Desktop */
    .menu-icon {
        display: none;
    }

    /* Style the links */
    .nav-link {
        text-decoration: none;
        color: #374151; 
        font-weight: 600;
        font-size: 1rem;
        padding: 0.5rem 0;
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-link:hover {
        color: #2563eb; 
    }

    /* Animated Underline Effect */
    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: #2563eb;
        transition: width 0.3s ease-in-out;
    }

    .nav-link:hover::after {
        width: 100%;
    }
}

/* --- VISITOR COUNTER STYLING --- */
.counter-wrapper {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    opacity: 0.7; /* Makes it slightly transparent so it's not distracting */
}

.counter-wrapper img {
    height: 25px !important; /* Adjust height to control size */
    width: auto !important;  /* Keeps the aspect ratio correct */
}