.header {
    background: var(--bg-light);
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease, top 0.3s ease;
}

#header.fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, top 0.3s ease;
}



.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 20px;
    max-width: 1600px !important;
}

.logo-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.logo-aascsb img {
    width: 153px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--bg-dark);
}

.header .home-icon {
    position: relative;
    top: 3px;
}

.header .home-icon svg {
    color: var(--text-primary-dark);
    /* Apply color */
    fill: currentColor;
    /* Ensures the fill follows text color */
}

.header .home-icon svg:hover,
.header .home-icon.active-home-icon svg {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;

}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    line-height: 4;
}

.nav-link {
    text-decoration: none;
    color: var(--bg-dark);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-buttons .btn {
    font-size: 1.3rem;
    text-transform:none !important;
}

.nav-buttons {
    display: flex;
    gap: 0.5rem;
    font-size: 18px;
    margin: 4px;
}


.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-light);
}

.btn-primary:hover {
    background: #b83e3f;
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--bg-light);
}

.btn-secondary:hover {
    background: #333;
}

/* Mobile menu hide */
.mobile-header {
    display: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bg-dark);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:first-child {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:last-child {
    bottom: 0;
}

.hamburger.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
}

.mobile-submenu {
    display: none;
}

.mobile-has-submenu.active+.mobile-submenu {
    display: block;
}

.mobile-has-submenu.active .mobile-submenu {
    display: block;
}

/* .btn-mobile { display: none; } */


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--bg-light);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    border: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

@media only screen and (max-width: 1330px) {
    .nav-list{
        gap:1rem;

    }
    .nav-menu {
        font-size: 14px;
    }

    .nav-buttons .btn{
        font-size: 16px;
    }
}

@media only screen and (max-width: 1200px) {
    .has-submenu .submenu {
        display: flex;
        flex-direction: column;
        padding: 1rem;
    }

    .nav-buttons .btn {
        width: 200px;
        text-align: center;
    }

    .chevron {
        opacity: 1 !important;
        width: 10px !important;
        top: -1px !important;
        position: relative;
        margin-left: 5px !important;
    }
}

@media only screen and (max-width: 1200px) {
    .header .container .logo-wrapper img {
        width: 100px;
    }

    .header .nav-item .nav-link {
        font-size: 14px;
    }

    .header .nav-buttons .btn {
        font-size: 14px;
        padding: 8px 17px;
        width: fit-content;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {

    /* .btn-mobile { display: flex; } */
    .btn-desktop {
        display: none;
    }
    #submenu-1 {
        font-size: 20px;
    }

    /* mobile menu  */
    .mobile-header {
        display: flex;
        justify-content: flex-end;
        padding: 20px;
        background-color: #fff;
        position: relative;
        z-index: 1000;
        gap: 2rem;
        align-items: center;
    }

    .mobile-header .menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 24px;
        width: 30px;
        z-index: 1000;
    }

    .mobile-header .menu-toggle span {
        display: block;
        height: 3px;
        width: 100%;
        background-color: #000;
        transition: all 0.3s ease;
    }

    .mobile-header .mobile-menu {
        position: fixed;
        top: 100%;
        right: 0;
        width: 100%;
        max-width: 300px;
        border: 1px solid #AAAAAA;
        background-color: #fff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        opacity: 1;
        will-change: transform;
        /* display: none; */
    }

    .mobile-header .mobile-menu.active {
        transform: translateX(0);
        /* display: block; */
    }

    .mobile-header .mobile-menu.closing {
        transform: translateX(100%);
    }

    .mobile-header .menu-item {
        padding: 20px;
        border-bottom: 1px solid #AAAAAA;
    }

    .mobile-header .menu-item a {
        color: var(--bg-dark);
        text-decoration: none;
        font-size: 20px;
        display: flex;
    }

    .mobile-header .cta-button {

        text-align: left;
    }

    .mobile-header .cta-button a {
        display: block;
        padding: 15px;
        color: #fff;
        text-decoration: none;
        padding-left: 1.4rem;
        font-size: 20px;
    }

    .mobile-header .apply-now {
        background-color: var(--primary);
    }

    .mobile-header .request-info {
        background-color: var(--bg-dark);
    }

}

@media only screen and (max-width: 600px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Submenus */
/* Submenu Styling */
.has-submenu {
    position: relative;
    cursor: pointer;
}

.chevron {
    display: inline-block;
    margin-left: 0px;
    width: 0px;
    height: 10px;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    opacity: 0;
}

/* Show submenu when active */
.has-submenu .submenu {
    display: none;
}

/* Rotate chevron when open */
.has-submenu.active .chevron {
    transform: rotate(225deg);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-light);
    padding: 5px 0;
    list-style: none;
    min-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* opacity: 0; */
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
}

.submenu-link {
    padding: 0.75rem 1.5rem;
    color: var(--bg-dark);
    background: var(--bg-light);
    text-decoration: none;
    display: block;
    transition: background 0.3s ease, color 0.3s ease;
    line-height: 1.5;
}

.submenu-link:hover {
    background: var(--primary);
    color: var(--bg-light);
}


/* Show submenu on hover (desktop) */
.has-submenu:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile submenu toggle */
@media (max-width: 1024px) {
    .has-submenu {
        text-align: center;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        padding-left: 1rem;
    }

    .submenu-link {
        padding: 0.5rem 1rem;
    }

    /* .btn-mobile {
        display: flex;
        align-items: center;
    } */
    .logo-wrapper img {
        width: 130px;
    }

    .nav-buttons .btn {
        max-width: 200px;
        width: 100%;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }
}