/********** Template CSS **********/
:root {
    --primary: #0052cc; /* Updated primary color for better contrast */
    --secondary: #6c757d; /* Updated secondary color */
    --light: #f0f0f0; /* Updated light color */
    --dark: #1a1a1a; /* Updated dark color */
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.fw-medium {
    font-weight: 500;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    transition: .5s;
    font-weight: 500;
}

.btn-primary,
.btn-outline-primary:hover {
    color: var(--light);
}

.btn-primary:hover {
    background-color: #003f99; /* Darker shade on hover */
    border-color: #003f99;
    transform: scale(1.05); /* Slight scale effect */
}

.btn-secondary,
.btn-outline-secondary:hover {
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #5a6268; /* Darker shade on hover */
    border-color: #5a6268;
    transform: scale(1.05);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/*** Navbar ***/
.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-nav .nav-link {
    margin-right: 35px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    text-decoration: underline; /* Add underline on hover */
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        margin-top: 15px;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header ***/
.carousel-caption {
    top: auto; /* Let it adjust naturally */
    bottom: 10%; /* Position it lower to avoid covering the whole slide */
    left: 10%;
    right: 10%;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3); /* Lighten the overlay */
    padding: 20px;
    border-radius: 10px; /* Optional: adds rounded edges */
    z-index: 10; /* Ensure it's above other elements */
    pointer-events: auto; /* Ensures elements inside are clickable */
}

.carousel-caption a {
    pointer-events: auto; /* Ensures the link inside is clickable */
}

@media (max-width: 768px) {
    .carousel-caption {
        bottom: 5%; /* Adjust position for smaller screens */
        left: 5%;
        right: 5%;
        padding: 10px; /* Reduce padding for smaller screens */
        font-size: 14px; /* Reduce font size for smaller screens */
    }

    .carousel-caption h1 {
        font-size: 20px; /* Adjust heading size for smaller screens */
    }

    .carousel-caption p {
        font-size: 12px; /* Adjust paragraph text size for smaller screens */
    }
}

@media (max-width: 480px) {
    .carousel-caption {
        bottom: 2%; /* Further adjust position for very small screens */
        left: 2%;
        right: 2%;
        padding: 5px; /* Further reduce padding for very small screens */
        font-size: 12px; /* Further reduce font size for very small screens */
    }

    .carousel-caption h1 {
        font-size: 18px; /* Further adjust heading size for very small screens */
    }

    .carousel-caption p {
        font-size: 10px; /* Further adjust paragraph text size for very small screens */
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 3.5rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }

    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: var(--light);
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-size: 18px;
    color: var(--light);
}

/*** Features ***/
.feature-row {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
}

.feature-item {
    border-color: rgba(0, 0, 0, .03) !important;
}

/*** Footer ***/
.footer {
    background-color: #1a1a1a; /* Darker background */
    color: #f0f0f0; /* Light gray text */
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #f0f0f0; /* Light gray text */
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary); /* Change color on hover */
    text-decoration: underline; /* Add underline on hover */
    letter-spacing: 1px;
    box-shadow: none;
}

.copyright {
    background: #111111;
    color: #f0f0f0; /* Light gray text */
}

.copyright a:hover {
    color: var(--primary) !important; /* Change color on hover */
}

/*** Back-to-Top Button ***/
.back-to-top:hover {
    background-color: #003f99; /* Darker shade on hover */
    transform: scale(1.1); /* Slight scale effect */
    transition: all 0.3s ease;
}