* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'nata';
}

html {
    overflow-x: hidden !important;
    scroll-behavior: smooth;
}

@font-face {
    font-family: nata;
    src: url('../fonts/NataSans-VariableFont_wght.ttf');
}

/* TEXT CSS */
.blue-text {
    color: #1A237E !important;
}

.link {
    color: #1A237E !important;
}

.link:hover {
    color: #1A237E !important;
    text-decoration: underline !important;
}

.link2:hover {
    text-decoration: underline !important;
}

.text-white {
    color: #fff !important;
}

.text-blue {
    color: #1A237E !important;
}

.bg-blue {
    background-color: #1A237E !important;
}

.bg-purple{
    background-color: #712171 !important;
}

/* BUTTON CSS */
a {
    text-decoration: none !important;
}

.btn-primary {
    background-color: #1A237E !important;
    border-color: #1A237E !important;
    font-size: 1em !important;
    padding: 15px 35px !important;
}   

.btn-primary:hover {
    background-color: #37409c !important;
} 

.btn-secondary {
    background-color: #fff !important;
    border-color: #fff !important;
    color: #1A237E !important;
    font-size: 1em !important;
    padding: 15px 35px !important;
}   

.btn-secondary:hover {
    background-color: #ddd !important;
    border-color: #ddd !important;
}   

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1A237E !important;
    color: white;
    border: none !important;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 99;
    display: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* when we add `.visible` it shows up */
.back-to-top.visible {
    display: flex !important;  /* or block, whichever you need */
    opacity: 1;
}

.back-to-top:hover {
    background-color: #37409c !important;
}

/* preloader css */
#preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes dash_682 {
    72.5% {
        opacity: 0;
    }

    to {
        stroke-dashoffset: 0;
    }
}

/* NAVBAR CSS */
.nav-link {
    color:  #222 !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #1A237E !important;
}

.active {
    color: #1A237E !important;
}

/* BASE (Desktop) */
nav ul li a {
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
    font-size: 18px !important;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 2.7px;
    width: 0;
    background-color: #1A237E;
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 70% !important;
}


/* MOBILE: <768px */
@media (max-width: 767.98px) {
    nav ul li a {
        display: inline-block;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    nav ul li a:hover::after,
    nav ul li a.active::after {
        width: 35% !important;
    }
}

/* TABLET: 768px–1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    nav ul li a {
        display: inline-block;
        text-align: center;
        padding-left: 0;
        padding-right: 0;
    }

    nav ul li a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    nav ul li a:hover::after,
    nav ul li a.active::after {
        width: 25% !important; /* slightly smaller pill for tablet */
    }
}

nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;    /* ensure it floats above other elements */
    box-shadow: 0 8px 12px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02) !important;
}

/* HERO CSS */
.hero_img {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../img/IMG_8630.JPG');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}
.hero_img2 {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../img/pexels-vladyslav-dukhin-296649.jpg');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}
.hero_img3 {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../img/blog.jpg');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}
.hero_img4 {
    position: relative;
    width: 100%;
    height: 70vh;
    background-image: url('../img/publications.jpg');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}
.hero_img5 {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url('../img/slider-1.JPG');
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}

/* CARD CSS */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 1rem;
}

.card-title a {
    text-decoration: none;
    color: #1A237E;
}
.card-title a:hover {
    text-decoration: underline;
    color: #1A237E;
}
.card-date {
    font-size: 0.9rem;
    color: #555;
}