/* Navbar section */
.nav {
    width: 100%;
    height: 65px;
    position: fixed;
    line-height: 65px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    z-index: 99;
}

.nav div.logo {
    float: left;
    width: auto;
    height: auto;
    padding-right: 2rem;
}

.nav div.logo a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
}

.nav div.main_list {
    height: 65px;
    float: left;
}
    
.nav div.main_button {
    height: 65px;
    float: right;
}

.nav div.main_list ul {
    width: 100%;
    height: 65px;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav div.main_list ul li {
    width: auto;
    height: 65px;
    padding: 0;
    padding-right: 3rem;
}

.nav div.main_list ul li a {
    text-decoration: none;
    color: #fff;
    line-height: 65px;
    font-size: 1rem;
}

.navTrigger {
    display: none;
}

.affix {
    padding: 0;
    background-color: #fff;
    box-shadow: 0 1px 5px 0px #120b4226;
}

.dropdown-menu-custom {
    width: 100%;
    text-align: center;
    z-index: 100;
    border-radius: 0;
    margin-top: -4px !important;
    overflow: hidden;
    position: fixed !important;
    padding-top: 26px;
    animation: showdropdownmenu .5s forwards;
}

.navActive .img-logo-nav {width: 150px;}
.main_button .d-profile a{ color:white; }


.dropdown-menu-custom li {padding: 5px;}
@keyframes showdropdownmenu {
    0% {height: 0;}
    100% {height: 150vh;}
}

.i-menu-custom{
    animation: iMenuCustomAnime .5s forwards;
}

@keyframes iMenuCustomAnime {
    0% {transform: rotate(45deg); }
    100% {transform: rotate(0deg); }
}

/* =========== Begin Media qurey section ================*/

@media screen and (min-width: 991px) and (max-width: 1024px) {
    .container {
        margin: 0;
    }
}

@media screen and (max-width:991px) {
    .nav {
        padding-top: 10px;
        padding-right: 10px;
    }

    .navTrigger {
        display: block;
    }

    .affix {
        padding-top: 2px;
    }

    .nav div.show_list {
        height: auto;
        display: none;
    }
    .nav div.main_list{
        width: 100%;
        height: 0;
        overflow: hidden;
    }

    .nav div.main_list ul {
        flex-direction: column;
        width: 100%;
        height: 100vh;
        right: 0;
        left: 0;
        bottom: 0;
        background-color: #111;
        /*same background color of navbar*/
        background-position: center top;
    }

    .nav div.main_list ul li {
        width: 100%;
        text-align: right;
    }

    .nav div.main_list ul li a {
        text-align: center;
        width: 100%;
        font-size: 3rem;
        padding: 20px;
    }
    
    .nav div.media_button {
        display: block;
    }

    .nav div.main_button {
        display: none;
    }
}

@media (max-width: 440px){
    footer nav { display:grid; }
    footer nav .footer-link { margin-bottom: 1rem }
}

/* =========== End Media qurey section ================*/

/* Animation */
.navTrigger {
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    text-align: -webkit-right;
}
.navTrigger i {
    background-color: #fff;
    border-radius: 2px;
    content: '';
    display: block;
    height: 4px;
}

.navTrigger i:nth-child(1) {
    -webkit-animation: outT 0.8s backwards;
    animation: outT 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
    width: 70%;
}

.navTrigger i:nth-child(2) {
    margin: 5px 0;
    -webkit-animation: outM 0.8s backwards;
    animation: outM 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
    width: 100%;
}

.navTrigger i:nth-child(3) {
    -webkit-animation: outBtm 0.8s backwards;
    animation: outBtm 0.8s backwards;
    -webkit-animation-direction: reverse;
    animation-direction: reverse;
    width: 40%;
}

.navTrigger.active i:nth-child(1) {
    -webkit-animation: inT 0.8s forwards;
    animation: inT 0.8s forwards;
}
.navTrigger.active i:nth-child(2) {
    -webkit-animation: inM 0.8s forwards;
    animation: inM 0.8s forwards;
}
.navTrigger.active i:nth-child(3) {
    -webkit-animation: inBtm 0.8s forwards;
    animation: inBtm 0.8s forwards;
}

.footer-bg {
    background-color: var(--primary-color); /* Dark purple/blue from image */
    color: #ffffff;
    padding: 2rem 0 0 0;
}
.footer-social-icon {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
}
.footer-social-icon:hover {
    color: #a0a0a0; /* Lighter on hover */
}
.footer-link {
    color: #ffffff;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}
.footer-link:hover {
    color: #a0a0a0;
}
.footer-button {
    background-color: #8A2BE2; /* A color that matches the theme */
    border-color: #8A2BE2;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.footer-button:hover {
    background-color: #6a1bbd;
    border-color: #6a1bbd;
}
footer .hr-custom {opacity: 1;background-color: white;border: 1px solid white;margin-top: 3rem;margin-bottom: 3rem;}

@keyframes inM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@keyframes outM {
    50% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(45deg);
    }
}

@keyframes inT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@keyframes outT {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(9px) rotate(0deg);
    }
    100% {
        transform: translateY(9px) rotate(135deg);
    }
}

@keyframes inBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(180deg);
    }
}

@keyframes outBtm {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) rotate(0deg);
    }
    100% {
        transform: translateY(-9px) rotate(135deg);
    }
}