html,
body {
    height: 100%;
    margin: 0;
}



.page-wrapper {
    min-height: 100vh;
    /* full viewport height */
    display: flex;
    flex-direction: column;
    /* upar thi niche direction */
}

/* Main content should take remaining space */
.content {
    flex: 1;
    /* je jagya khali hoy te bharse */
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 40px;
}

.header-img img {
    max-height: 80px;
}

.header-text h4 {
    font-size: 29px;
    margin-bottom: 0;
    margin-left: 10px;
    margin-top: 5px;
    text-align: center;
    font-family: "Playfair Display", serif;
}

.header-text h4:hover {
    color: #ED3237;
}

.header-text p {
    font-size: 16px;
    margin-bottom: 0;
    text-align: center;
    font-family: Rubik, sans-serif;
}

/* Main navbar (blue bar) */
.main-nav {
    background-color: #273D62;
    font-weight: 600;
}

.main-nav .nav-link {
    color: #fff;
    padding: 10px 15px;
}

.main-nav .nav-link:hover,
.main-nav .nav-link:focus {
    color: #ED3237;
}

.dropdown-item {
    color: white;
}

.dropdown-menu {
    background-color: #273D62;
    color: white;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #ED3237;
    background-color: #16243e;
}

.footer {
    background-color: #1f3558;
    /* dark blue background */
    padding: 25px 0;
    padding-left: 30%;
    color: #ffffff;
}

.footer-text {
    font-size: Rubik;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-icon a {
    display: inline-block;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    background-color: #ffffff;
    border-radius: 3px;
    line-height: 40px;
    text-align: center;
}

.footer-icon i {
    font-size: 18px;
    color: #273D62;
}

.footer-icon .facebook:hover {
    background-color: #3B5998;
}

.footer-icon .youtube:hover {
    background-color: #ED3237;
}

.footer-icon .twitter:hover {
    background-color: #1DA1F2;
}

.footer-icon a:hover i {
    color: #ffffff;
}

/* footer bottom bar (optional, image jevu) */
.footer-bottom {
    font-family: 'Rubik', sans-serif;
    background-color: #16243e;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    padding: 8px 0;
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ED3237;
}


/* MOBILE VIEW IMPROVEMENTS */
@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
        text-align: center;
    }

    .footer-text {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }

    .footer-icon a {
        width: 36px;
        height: 36px;
        line-height: 36px;
        margin: 0 4px;
    }

    .footer-bottom {
        font-size: 12px;
        padding: 10px;
    }
}

/* Nested dropdown: open to the right, overlap na kare */
@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }

    .dropdown-submenu>.dropdown-menu {
        top: 0;
        left: 100%;
        /* parent ni right side */
        margin-top: 0;
        margin-left: 0;
    }

    /* hover par sub‑menu open */
    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }

}

@media (max-width:768px) {
    .header {
        display: block;
        text-align: center;
    }

    .header-text h4 {
        font-size: 14px;
    }

    .header-text p {
        font-size: 10px;
    }
}


/* Dropdown on hover (desktop only) */
@media (min-width: 992px) {
    .navbar .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown-menu {
        margin-top: 0;
    }
}