@media screen and ( max-width: 720px ) {

    .header {
        padding: 0 25px;
    }

    .header__logo {
        height: 45px;
    }

    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        height: 100vh;
        overflow-y: auto;
        background-color: #f7f7f7;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        transition: all .3s ease-in;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateX(-100%);
        z-index: 90;
        padding-top: 80px;
    }


    .nav-open .header-nav {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateX(0);
    }
	
    .header-nav__list {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 13px;
        width: 100%;
        padding: 0 30px;
    }
	
	.header-nav__list li:not(:last-child){
		margin-left: 0;
	}
	
	.header-nav__list li:last-child{
		margin-left: 0;
	}

    .header-nav__link:link,
    .header-nav__link:visited {
        font-size: 15px;
        color: #333333;
        padding: 5px 0;
        width: 100%;
        justify-content: flex-start;
    }

    .header-nav__list li a [name="add-outline"] {
        font-size: 20px;
        margin-left: auto;
    }

    /* Mobile dropdown styling */
    .header-nav__item.dropdown {
        position: static;
        width: 100%;
        text-align: left;
    }

    .dropdown__menu {
        position: static;
        /* Removes absolute positioning; dropdowns flow naturally */
        width: 100%;
        max-height: 0;
        /* Hides dropdown items initially using max-height */
        overflow: hidden;
        /* Hides content that overflows max-height */
        background-color: #f7f7f7;
        /* Slightly different background for sub-items */
        box-shadow: none;
        /* No shadow for mobile dropdowns */
        border: none;
        /* No border for mobile dropdowns */
        opacity: 1;
        /* Always visible when active (controlled by max-height) */
        visibility: visible;
        /* Always visible when active (controlled by max-height) */
        transform: translateY(0);
        /* No transform needed as it's static */
        transition: max-height 0.3s ease-in-out;
        /* Smooth height animation */
        padding-left: 10px;
        border-left: 1px solid #ddd;
    }

    .dropdown__menu li a {
        font-size: 14px;
        padding: 6px 0;
        text-align: left;
        color: #333333;
    }

    /* Active dropdown for mobile - expands the max-height to show content */
    .header-nav__item.dropdown.active > .dropdown__menu {
        max-height: 200px;
        /* Increased this value to ensure all content can be shown */
        transition: max-height 0.5s ease-in-out;
        border-left: 1px solid #ddd;
    }

    /* Mobile hamburger/close button display */
    .btn-mobile-nav {
        display: block;
        z-index: 9999;
    }

    .btn-mobile-nav:focus,
    .btn-mobile-nav:active,
    .btn-mobile-nav:focus-visible {
        outline: none;
        border: none;
        box-shadow: none;
    }

    .header-nav a:focus,
    .header-nav a:focus-visible,
    .header-nav button:focus,
    .header-nav button:focus-visible {
        outline: none;
        box-shadow: none;
        -webkit-tap-highlight-color: transparent;
    }

    .header-login-link {
        padding: 3px 10px;
        font-size: 15px;
    }

    .nav-open .btn-mobile-nav [name="close-outline"] {
        display: block;
    }

    .nav-open .btn-mobile-nav [name="menu-outline"] {
        display: none;
    }

    /* SLIDER */
    .slider img {
        height: 190px;
    }

    #home-news {
        float: left;
        width: 100%;
        padding: 40px 0 30px;
    }

    #home-news h2 {
        font-size: 21px;
        margin: 0 0 25px;
        font-weight: 600;
    }

    .home-news-box {
        width: 48%;
        margin-right: 5px;
    }

    .home-news-box img {
        height: 110px;
    }

    .home-news-box h3 a {
        font-size: 12px;
    }

    .section-etab {
        padding: 60px 0;
    }

    .section-etab h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    #home_etab {
        padding: 60px 0;
    }

    #home_etab h2 {
        font-size: 30px;
        line-height: 1.3;
    }

    .home_about_left {
        width: 100%;
    }

    .page_title h1 {
        font-size: 30px;
    }

    #home_about {
        margin-bottom: 10px;
    }

    #home_about img {
        display: none;
    }

    .home_about_right {
        width: 100%;
        height: auto;
        border-left: 3px solid #fff;
    }

    .home_about_right_inner {
        padding: 20px;
        text-align: justify;
    }

    .home_about_right h2 {
        font-size: 24px;
        margin: 15px 0 20px;
        text-align: left;
        font-weight: 500;
    }

    #bangladesh {
        padding-top: 200px;
    }

    .bangladesh a {
        text-decoration: none;
        color: #fff;
    }

    .bangladesh {
        width: 85%;
        padding: 25px;
    }

    .home_programs a {
        font-size: 15px;
        margin: 8px 9px 0 0;
        padding: 8px 10px;
    }

    #home_program {
        padding: 30px 0 40px;
    }

    #home_program h2 {
        font-size: 25px;
        margin: 0 0 20px;
        font-weight: 600;
    }

    #home_program img {
        height: 150px;
    }

    .home_program_box h3 a {
        padding: 10px;
        font-size: 20px;
    }

    .home_program_box {
        margin-bottom: 10px;
    }

    #home_campus {
        padding: 50px 0;
    }

    .home_campus a {
        font-size: 20px;
    }

    #affiliation {
        padding: 30px 0 30px;
    }

    #affiliation h2 {
        font-size: 25px;
        margin: 0 0 20px;
        font-weight: 600;
    }

    .footer_social {
        float: left;
        font-size: 15px;
        margin: 15px 0 0 0;
    }

    .footer_social i {
        margin: 0 5px 0 3px;
    }

    .UNITECH {
        text-align: left;
    }

    .page_title {
        padding: 40px;
    }

    .main_body {
        padding: 0 10px;
    }

    #wrapper {
        padding: 30px 0;
    }

    .container {
        padding: 15px;
    }

    .container h3 {
        font-size: 20px;
        text-align: left;
    }

    .brand h3 {
        font-size: 20px;
    }

    .member img {
        height: 150px;
        width: 120px;
    }

    .member {
        font-size: 12px;
        height: 150px;
        line-height: 18px;
    }

    #login {
        height: auto;
        padding: 50px 0 100px;
    }

    .login_box {
        width: 90%;
        margin: 0 auto;
        padding: 15px;
    }

    .login_box img {
        height: 80px;
    }

    .login_box .button {
        margin: 5px 0 20px;
    }
	
    .footer-left {
        min-height: 190px;
        border-right: none;
    }

    .footer-center {
        min-height: 190px;
        padding-left: 0;
        border-right: none;
    }

}