/* --- Global Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    /* Prevent horizontal scroll on small screens */
    overflow-x: hidden; 
}

/* Ensure images never overflow their container */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Brand Header (Fixed Alignment) --- */
.brand-container {
    display: flex;
    justify-content: center; /* Desktop par Center */
    align-items: center;
    padding: 15px 20px;
    background-color: #f4f7fb;
    position: relative;
    height: 80px; /* Fixed height taaki layout hile nahi */
}

.h_stylee {
    text-align: center;
    font-size: 2rem; 
    font-family: 'Times New Roman', Times, serif;
    font-weight: 900;
    color: rgb(22, 48, 88);
    margin: 0;
    width: 100%; /* Full width taaki center alignment sahi rahe */
}

/* --- Navigation Bar --- */
.navbar {
    background-color: #333333;
    width: 100%;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Flexbox for desktop layout */
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
}

.nav-links li a {
    display: block;
    color: white;
    text-align: center;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.nav-links li a:hover {
    background-color: #111111;
}

/* --- Mobile Menu Button (Default Hidden) --- */
.mobile-menu-btn {
    display: none; /* Desktop par nahi dikhega */
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Sabse upar */
}

.mobile-menu-btn .bar {
    width: 28px;
    height: 3px;
    background-color: rgb(22, 48, 88); /* Heading color se match */
    border-radius: 2px;
}

/* --- Content Wrapper --- */
.content-wrapper {
    max-width: 100%;
    overflow-x: hidden; 
}

/* --- RESPONSIVE DESIGN (Mobile) --- */
@media (max-width: 768px) {
    
    .brand-container {
        justify-content: space-between; /* Left me Title, Right me Button */
        padding: 10px 20px;
        height: 70px;
    }

    .h_stylee {
        font-size: 1.4rem; /* Font thoda chhota mobile ke liye */
        text-align: left;
        width: auto; /* Width auto taaki button ke liye jagah bache */
    }

    /* Show hamburger button */
    .mobile-menu-btn {
        display: flex;
        position: static; /* Position fix */
    }

    /* Stack navigation vertically */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        width: 100%;
        background-color: #333;
        position: absolute; /* Content ke upar float karega */
        top: 70px; /* Header ke theek neeche */
        left: 0;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* JavaScript se 'active' class add hone par dikhega */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #444;
    }

    .nav-links li a {
        padding: 15px;
        width: 100%;
    }
}