@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;300;400;500&family=Roboto:wght@300;400;700&display=swap');

/* --- HEADER CONTAINER --- */
.header {
    background: #FFFFFF;
    height: auto;
    min-height: 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* --- RESPONSIVE LOGO --- */
.header .logo {
    margin: 0;
    flex-shrink: 0;
    z-index: 1002;
    display: flex;
    align-items: center;
}

.header .logo a {
    display: block;
}

.header .logo img {
    height: 65px;
    width: auto;
    object-fit: contain;
    transition: height 0.3s ease;
    display: block;
}

@media (max-width: 1024px) {
    .header .logo img {
        height: 55px;
    }
}

@media (max-width: 768px) {
    .header .logo img {
        height: 45px;
    }
}

@media (max-width: 480px) {
    .header .logo img {
        height: 40px;
    }
}

/* --- HEADER RIGHT SECTION (GST) --- */
.header-right {
    z-index: 1002;
    display: flex;
    align-items: center;
}

.gst-text {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background-color: #f4f4f4;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    white-space: nowrap;
}

/* --- MOBILE ADJUSTMENT FOR GST --- */
@media (max-width: 1000px) {
    .header-right {
        order: 2;
        margin-bottom: 10px;
    }

    .gst-text {
        font-size: 12px;
        padding: 3px 8px;
    }
}

/* --- NAVIGATION BAR (DESKTOP CENTERED) --- */
.header .navbar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
    padding: 0;
}

.header .navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.header .navbar ul li {
    position: relative;
}

.header .navbar ul li a {
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    padding: 15px 10px;
    color: #333;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.header .navbar ul li a:hover {
    color: #00a8cc;
}

/* --- DROPDOWN --- */
.header .navbar ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #00a8cc;
    flex-direction: column;
    gap: 0;
    z-index: 1001;
    text-align: left;
}

.header .navbar ul li ul li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.header .navbar ul li ul li a {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #444;
}

.header .navbar ul li ul li a:hover {
    background: #f4f4f4;
    color: #003366;
}

/* Level 2 (Flyout) */
.header .navbar ul li ul li ul {
    top: 0;
    left: 100%;
    border-top: 3px solid #00a8cc;
    border-left: 1px solid #eee;
    display: none;
}

/* Desktop Hover Logic */
.header .navbar ul li:hover>ul {
    display: flex;
}

.header .navbar ul li ul li:hover>ul {
    display: flex;
}

/* ========================================= */
/* MOBILE RESPONSIVENESS */
/* ========================================= */

@media (max-width: 1000px) {
    .header {
        flex-direction: column;
        padding-bottom: 10px;
        height: auto;
    }

    /* Reset Navbar Position */
    .header .navbar {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 10px;
    }

    .header .navbar>ul {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        width: 100%;
        flex-wrap: wrap;
    }

    .header .navbar>ul>li {
        width: auto;
        text-align: center;
        border-bottom: none;
    }

    /* Dropdown behavior on mobile */
    .header .navbar ul li ul,
    .header .navbar ul li ul li ul {
        position: absolute;
        width: 200px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid #eee;
        display: none;
        background-color: white;
        padding-left: 0;
        z-index: 10000;
        left: 50%;
        transform: translateX(-50%);
    }

    .header .navbar ul li ul li ul {
        top: 100%;
        left: 0;
        transform: none;
    }

    .header .navbar ul li ul li a {
        padding: 10px;
        text-align: left;
        background-color: white;
    }
}