/********** Template CSS **********/
:root {
    --primary: #1D2951; /* Navy Blue */
    --secondary: #51CFED; /* Light Blue */
    --light: #F0F8FF; /* Light Background */
    --dark: #060315; /* Dark Text */
}

/********** General Utility Classes **********/
.fw-medium {
    font-weight: 600 !important;
}

/*** Back to Top Button ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner for Loading ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

/********** Button Styles **********/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary, .btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square, .btn-sm-square, .btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/********** Navbar Styles **********/
.navbar .dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: var(--light);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover, 
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid var(--light);
    }
}

.navbar-light .navbar-brand, 
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

/********** Carousel Styles **********/
.header-carousel {
    max-height: 500px;
    overflow: hidden;
    border: 3px solid #FFA500; /* Orange Border */
    border-radius: 10px;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    animation: scrollBorderFlash 3s infinite; /* Optional animation */
}

@keyframes scrollBorderFlash {
    0% { border-color: #FFA500; }
    50% { border-color: #FF5733; }
    100% { border-color: #FFA500; }
}

/********** Bootstrap Carousel Styles **********/
.carousel-item img {
    object-fit: cover; /* Ensure full image display */
    height: 500px; /* Maintain consistent height */
    width: 100%;
}

.carousel-caption {
    position: absolute;
    bottom: 20%;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.carousel-caption h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.carousel-caption h5 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Carousel navigation buttons */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev, 
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover, 
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/********** Responsive Carousel Adjustments **********/
@media (max-width: 768px) {
    .header-carousel {
        max-height: 300px; /* Adjusted for mobile */
    }
    .header-carousel .display-3 {
        font-size: 1.5rem; /* Reduce font size for main caption */
    }
    .header-carousel h5 {
        font-size: 1rem; /* Adjust font size for subheading */
    }
    .carousel-item img {
        height: 300px; /* Adjust image height for smaller devices */
    }
    .carousel-caption h1 {
        font-size: 1.5rem; /* Adjust font size for smaller screens */
    }
    .carousel-caption h5 {
        font-size: 1rem; /* Adjust heading size */
    }
}

/********** Owl Carousel Item Styles **********/
.owl-carousel .item img {
    max-height: 100px; /* Adjusted for mobile view */
    margin: auto;
    display: block;
    object-fit: contain; /* Maintain aspect ratio */
    padding: 10px; /* Space around logos */
}

.owl-carousel .item {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px; /* Consistent height */
}

.partner-carousel {
    padding: 20px 0; /* Spacing around carousel */
}

/********** Page Header Styles **********/
.page-header {
    background: url(../img/carousel-1.jfif) center center no-repeat; /* Correct path to your carousel-1 image */
    background-size: cover;
    height: 400px; /* Adjust height as needed */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 40px;
}

.page-header h1, .breadcrumb {
    color: #fff;
    font-size: 30px; /* Heading size */
}

.page-header .breadcrumb {
    font-size: 14px;
    color: #fff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #fff; /* Breadcrumb separator color */
}

/********** Main Content Area Fixes **********/
.container {
    padding-top: 25px;
    padding-bottom: 25px;
    min-height: 200px; /* Ensure content area has enough height */
}

/********** Footer Styles **********/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    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 {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}
