.custom-underline {
    position: relative;
    padding-bottom: 8px;
    color: #000;
    text-decoration: none;
    border-bottom: none !important;
    /* prevent Bootstrap override */
}

.custom-underline::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2.3px;
    width: 0;
    background-color: #0189BA;
    transition: width 0.3s ease-in-out;
}

/* Animate underline on hover */
.custom-underline:hover::after {
    width: 100%;
}

/* Keep full underline if link is active */
.custom-underline.active::after {
    width: 100%;
    background-color: cyan;
}

/* But still animate on hover even if active (restart animation) */
.custom-underline.active:hover::after {
    width: 0;
    animation: swipeUnderline 0.4s forwards;
    background-color: #0189BA;
}

@keyframes swipeUnderline {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }

}

.nav-link.active {
    color: cyan !important;
}


.nav-link:hover {
    color: #0189BA !important;
}

.nav-link {
    border-bottom: none !important;
}

nav,
footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.689);
}

nav {
    margin-bottom: 15px;
}

.navbar-toggler {
    background-color: #00798A;
}

footer {
    box-shadow: 0px -8px 20px 0 rgba(0, 0, 0, 0.689);
    margin-top: 15px;
}

body.bg {
    background-image: url("./Images/CardBg.png");
    background-size: cover;
    /* Keeps aspect ratio, fills screen */
    background-position: center center;
    /* Keeps image centered */
    background-repeat: no-repeat;
    /* Prevents tiling */
    background-attachment: fixed;
    /* Creates a subtle parallax effect (optional) */
    font-family: 'Poppins', sans-serif;
    /* Ensures consistent branding */
    color: #F0F6F8;
    scroll-behavior: smooth;
}

.p-about {
    margin-left: 10px;
    margin-right: 10px;
}

.nav-link {
    color: white;
    font-size: 25px;
}

html {
    margin: 0px;
}



.btn-div {

    margin-left: 10px;
    margin-right: 10px;
}

a {
    text-decoration: none;
}



.btn-group {
    position: static;
    margin-top: 2px;
    margin-right: 2px;
}


footer {
    padding-block: 1rem;
    margin-bottom: 0;
    color: wheat !important;
}

.f-ul {
    list-style: none;
    flex-wrap: wrap;
    padding-bottom: 5px;
    margin-bottom: 5px;
    display: flex;
    justify-content: center;
}

.f-ul li {
    padding: 14px 16px;
}

.f-ul li a {
    color: white;
    padding-inline: 0.5rem;
    text-decoration: none;
}

.f-ul li a:hover {
    text-decoration: underline;
}

.hr {
    margin-bottom: 15px;
}

.warn {
    margin: 0px 10%;
}