/* Footer */
.footer {
    position: relative;
    margin-top: 45px;
    padding-top: 90px;
    background: #030f27;
    color: #ffffff;
}

.footer .footer-contact,
.footer .footer-link,
.footer .newsletter {
    position: relative;
    margin-bottom: 45px;
}

.footer h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #fdbe33;
}

.footer h2::after {
    position: absolute;
    content: "";
    width: 60px;
    height: 2px;
    left: 0;
    bottom: 0;
    background: #fdbe33;
}

.footer .footer-link a {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    transition: .3s;
}

.footer .footer-link a::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .footer-link a:hover {
    color: #fdbe33;
    letter-spacing: 1px;
}

.footer .footer-contact p i {
    width: 25px;
}

.footer .footer-social {
    position: relative;
    margin-top: 20px;
}

.footer .footer-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    padding: 7px 0;
    text-align: center;
    border: 1px solid rgba(256, 256, 256, .3);
    border-radius: 60px;
    transition: .3s;
}

.footer .footer-social a i {
    font-size: 15px;
    color: #ffffff;
}

.footer .footer-social a:hover {
    background: #fdbe33;
    border-color: #fdbe33;
}

.footer .footer-social a:hover i {
    color: #030f27;
}

.footer .newsletter .form {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.footer .newsletter input {
    height: 50px;
    border: 2px solid #121518;
    border-radius: 0;
}

.footer .newsletter .btn {
    position: absolute;
    top: 5px;
    right: 5px;
    height: 40px;
    padding: 8px 10px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: #fdbe33;
    background: #121518;
    border-radius: 0;
    border: 2px solid #fdbe33;
    transition: .3s;
}

.footer .newsletter .btn:hover {
    color: #121518;
    background: #fdbe33;
}

.footer .footer-menu .f-menu {
    position: relative;
    padding: 15px 0;
    font-size: 0;
    text-align: center;
    border-top: 1px solid rgba(256, 256, 256, .1);
    border-bottom: 1px solid rgba(256, 256, 256, .1);
}

.footer .footer-menu .f-menu a {
    color: #ffffff;
    font-size: 16px;
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu .f-menu a:hover {
    color: #fdbe33;
}

.footer .footer-menu .f-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}


.footer .copyright {
    padding: 30px 15px;
}

.footer .copyright p {
    margin: 0;
    color: #ffffff;
}

.footer .copyright .col-md-6:last-child p {
    text-align: right;
}

.footer .copyright p a {
    color: #fdbe33;
    font-weight: 500;
    letter-spacing: 1px;
}

.footer .copyright p a:hover {
    color: #ffffff;
}

@media (max-width: 768px) {

    .footer .copyright p,
    .footer .copyright .col-md-6:last-child p {
        margin: 5px 0;
        text-align: center;
    }
}

/* Header */
/*=============== HEADER ===============*/
.header {
    all: unset;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-fixed);
    background-color: transparent;
    padding-top: 16px;
    height: 100px;
    transition: all 0.3s ease-in-out;
}

.header p {
    font-size: larger;
}

.header.scrolled {
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    backdrop-filter: blur(4px);
    height: 70px;
    padding-top: 10px;
}

/*=============== NAV ===============*/
.nav {
    all: unset;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.nav img {
    height: auto;
    margin-left: 50px;
}

.contact__us {
    all: unset;
    background-color: #F5EFE7;
    border-radius: 25px;
    padding: 10px 20px;
    /* Adjust button padding */
    margin-left: 1rem;
    /* Ensures spacing between last menu item and button */
}

.contact__us p {
    all: unset;
    color: #213555;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.contact__us:hover {

    scale: 105%;
    background-color: #3E5879;
}

.contact__us:hover p {
    color: #F5EFE7;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
}

.nav__list {
    all: unset;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: auto;
}

.nav__item {
    all: unset;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.nav__item p {
    all: unset;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    user-select: none;
    font-family: 'Poppins', sans-serif;

}

.dropdown-right {
    width: 70%;
    padding: 20px;
}

#ourTeam {
    cursor: pointer;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: 800px;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    visibility: hidden;
    grid-template-columns: 1fr 2fr;
    padding: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.mega-dropdown__menu li,
.mega-dropdown__menu a {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.nav__item:hover .mega-dropdown__menu li,
.nav__item:hover .mega-dropdown__menu a {
    opacity: 1;
}

.nav__item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    max-height: 500px;
}

.nav__item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 15px;
    width: 100%;
    height: 3px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-in-out;
}

.nav__item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__item.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.dropdown-item a:hover {
    text-decoration: underline !important;
    color: #213555;
}

.mega-dropdown__left {
    border-right: 1px solid #ddd;
    padding-right: 20px;
}

.mega-dropdown__menu {
    list-style: none;
    padding: 0;
}

.mega-dropdown__menu li {
    padding: 10px 0;
}

.mega-dropdown__menu a {
    text-decoration: none;
    color: #213555;
    font-weight: bold;
}

.mega-dropdown__right {
    padding-left: 20px;
}

.mega-dropdown__right h2 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Burger Icon Base */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    height: 30px;
    gap: 5px;
    margin-left: 20px;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Burger Animation */
.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: linear-gradient(to bottom, #213555, #2f3e58);
    padding: 1.5rem;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 999;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    animation: slideDown 0.3s ease forwards;
    user-select: none;
}

.mobile-nav.active {
    display: flex;
}

/* Mobile nav list items */
.mobile-nav li {
    list-style: none;
    padding: 0.8rem 0;
    text-align: center;
}

/* Mobile nav links */
.mobile-nav li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.mobile-nav li a:hover {
    color: #f9c846;
    transform: scale(1.03);
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-15%);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Show mobile nav only when burger menu is active */
@media (max-width: 992px) {
    .mobile-nav.active {
        display: flex;
    }

    /* Hide desktop nav list on mobile */
    .nav__list {
        display: none !important;
    }

    /* Hide desktop dropdowns entirely */
    .mega-dropdown {
        display: none !important;
    }

    /* Optional: reset nav alignment for mobile */
    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav img {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* Show only in mobile and only when toggled */
@media (max-width: 992px) {
    .mobile-nav.active {
        display: flex;
    }

    .nav__list {
        display: none !important;
        /* hide desktop nav */
    }
}

/* Responsive Menu */
@media (max-width: 992px) {
    .nav {
        flex-direction: column;
        align-items: center;
    }

    .nav img {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .burger-menu {
        display: flex;
    }

    .burger-menu span {
        background-color: white !important;
    }

    .nav__list {
        position: absolute;
        top: 100%;
        right: 0;
        background: #213555;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        flex-direction: column;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav__list.active {
        max-height: 100vh;
        overflow-y: auto;
    }

    .nav__item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav__list.active {
        max-height: 500px;
    }

    .nav__list .nav__item {
        padding: 0.8rem 0;
        text-align: center;
    }

    .nav__dark,
    .contact__us {
        display: none;
    }

    .mega-dropdown {
        display: none !important;
    }

    /* Optional: make the entire nav__item clickable */
    .nav__item p {
        width: 100%;
        text-align: center;
    }
}