@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

html, body {
    margin: 0;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.cool-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: black !important;
    margin: 0 8px;
    position: relative;
    transition: color .3s ease;
}

    .cool-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        display: block;
        margin-top: 4px;
        right: 0;
        background: #ff9800;
        transition: width .3s ease;
    }

    .cool-link:hover::after {
        width: 100%;
        left: 0;
        background: #ff9800;
    }

.dropdown-menu {
    border-radius: 8px;
    border: none;
    padding: 10px;
    animation: fadeIn .3s ease;
}

.dropdown-item {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    padding: 6px 14px;
    transition: background .3s ease, transform .2s ease;
}

    .dropdown-item:hover {
        background: #16407A;
        color: #fff;
        transform: translateX(4px);
    }


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.button-container {
    position: absolute;
    bottom: 25px;
    right: 70px;
    z-index: 20;
}

.myButton {
    font-size: 1.2em;
    font-family: 'Maiandra GD';
    font-weight: bold;
    padding: 10px 20px;
    transition: all 0.3s ease;
    background-color: #16407A;
    color: white;
    pointer-events: auto;
}

    .myButton:hover {
        color: #fff;
        background-color: goldenrod;
        border-color: goldenrod
    }

@media (max-width: 768px) {

    .myButton {
        font-size: 1em;
        font-family: 'Maiandra GD';
        font-weight: bold;
        padding: 8px 15px;
        transition: all 0.3s ease;
        background-color: #16407A;
        color: white;
        pointer-events: auto;
        min-width: 10%;
    }

        .myButton:hover {
            color: #fff;
            background-color: goldenrod;
            border-color: goldenrod;
        }
}


.nav-item {
    margin: 0px 15px 0px -20px;
    font-size: 0.8em;
    border-radius: 5px;
}

.navbar {
    min-height: 100px;
}

#navLinks {
    margin-top: 65px;
}


#logo {
    top: 5px;
    position: absolute;
    background-color: gray;
}

#mainNavbar {
    background-color: #fff;
    position: fixed;
    top: 35px;
    transition: all 0.2s ease;
}

.custom-toggler.navbar-toggler {
    border-color: black;
    background-color: transparent;
}

.btn {
    min-width: 200px;
    border-style: solid;
    border-width: 2px;
}

.btn-outline-primary {
    color: white;
    border-color: white;
}

    .btn-outline-primary:hover {
        color: #fff;
        background-color: #16407A;
        border-color: white;
    }

    .btn-outline-primary:focus, .btn-outline-primary.focus {
        box-shadow: 0 0 0 0.2rem #16407A;
    }

    .btn-outline-primary.disabled, .btn-outline-primary:disabled {
        color: white;
        background-color: transparent;
    }

    .btn-outline-primary:not(:disabled):not(.disabled):active, .btn-outline-primary:not(:disabled):not(.disabled).active,
    .show > .btn-outline-primary.dropdown-toggle {
        color: #fff;
        background-color: rgb(7 94 84);
        border-color: white;
    }

        .btn-outline-primary:not(:disabled):not(.disabled):active:focus, .btn-outline-primary:not(:disabled):not(.disabled).active:focus,
        .show > .btn-outline-primary.dropdown-toggle:focus {
            box-shadow: 0 0 0 0.2rem #16407A;
        }

.navbar-nav .nav-item:hover > .nav-link {
    color: #ff0000;
}

.navbar-nav .nav-item.active > .nav-link {
    color: #ff0000;
}

footer {
    overflow: hidden;
}

.social-icon {
    padding: 10px 20px;
    min-width: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

h3 {
    color: #16407A;
}

.navbar-nav .nav-item:hover {
    background-color: whitesmoke;
}



.btn-outline-info {
    color: black;
    border-color: #16407A;
}

    .btn-outline-info:hover {
        color: #fff;
        background-color: #16407A;
        border-color: #16407A;
    }

.navbar-custom {
    border-bottom: 1px solid #16407A;
}

#mainCarousel .carousel-item {
    height: 93vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

    #mainCarousel .carousel-item.active {
        animation: zoomBg 12s ease-in-out forwards;
    }

@keyframes zoomBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0.25));
}

/* ===== CAPTIONS ===== */
.carousel-caption {
    bottom: 25%;
    left: 10%;
    right: 10%;
    text-align: left;
}

    .carousel-caption h2,
    .carousel-caption p,
    .carousel-caption .btn {
        opacity: 0;
        transform: translateY(40px);
    }

.carousel-item.active .carousel-caption h2 {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.4s;
}

.carousel-item.active .carousel-caption p {
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.8s;
}

.carousel-item.active .carousel-caption .btn {
    animation: fadeUp 1s ease forwards;
    animation-delay: 1.2s;
}

.carousel-caption h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 3px 8px rgba(0,0,0,0.7);
}

.carousel-caption p {
    font-size: 1.5rem;
    color: #f1f1f1;
    margin-top: 15px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.carousel-caption .btn {
    margin-top: 20px;
    background: #16407A;
    border: none;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    transition: transform .3s ease, box-shadow .3s ease;
}

    .carousel-caption .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    }

/* ===== NEWS TICKER ===== */
.news-ticker {
    background: #16407A;
    color: #fff;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    padding: 10px 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 999;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 100s linear infinite;
}

.news-item {
    display: inline-block;
    margin-right: 60px;
    font-size: 1.1em;
}

    .news-item a {
        color: #fff;
        text-decoration: none;
        transition: color .1s ease;
    }

        .news-item a:hover {
            color: #ffeb3b;
        }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .carousel-caption h2 {
        font-size: 2.2rem;
    }

    .carousel-caption p {
        font-size: 1.1rem;
    }

    .carousel-caption {
        bottom: 20%;
        text-align: center;
    }
}



@media (max-width: 768px) {
    #mainCarousel .carousel-item {
        height: 30vh;
        min-height: 400px;
        background-size: cover;
        background-position: center;
        position: relative;
        overflow: hidden;
    }

    .carousel-caption {
        bottom: 15%;
    }

        .carousel-caption h2 {
            font-size: 1.6rem;
        }

        .carousel-caption p {
            font-size: 1rem;
        }

        .carousel-caption .btn {
            padding: 8px 18px;
            font-size: 0.9rem;
        }
}

/* ===== APPLY NOW BUTTON ===== */
.btn-apply-now {
    background: #ff9800;
    border: none;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .4s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

    .btn-apply-now:hover {
        background: #e68a00;
        transform: translateY(-4px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.35);
    }

/* ===== CUSTOM CAROUSEL CONTROLS ===== */
.custom-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(37,150,190,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 1.5rem;
    transition: all .3s ease;
    z-index: 10;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.custom-control:hover {
    background: #16407A;
    transform: translateY(-50%) scale(1.1);
}

/* ===== TICKER OVERLAY ===== */
.news-ticker-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(37,150,190,0.85);
    color: #fff;
    font-weight: bold;
    padding: 8px 0;
    overflow: hidden;
}

    .news-ticker-overlay .ticker-content {
        display: inline-block;
        white-space: nowrap;
        animation: ticker 45s linear infinite;
    }

    .news-ticker-overlay .news-item {
        display: inline-block;
        margin-right: 60px;
        font-size: 1.05em;
        opacity: 0;
        animation: fadeIn .6s ease forwards;
    }

        .news-ticker-overlay .news-item:nth-child(n) {
            animation-delay: .2s;
        }

    .news-ticker-overlay a {
        color: #fff;
        transition: color .2s ease;
    }

        .news-ticker-overlay a:hover {
            color: #ffeb3b;
        }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-ticker:hover .ticker-content {
    animation-play-state: paused;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .carousel-item img {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
        display: block;
    }

    .carousel-item img {
        height: 30vh;
        min-height: 400px;
        object-fit: cover;
    }
}
