/********** Template CSS **********/
:root {
    --primary: #4f8398;  /* Updated primary color */
    --light: #cbcabc;    /* Updated bg-light color */
    --dark: #1B2C51;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-black {
    font-weight: 900 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** 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 {
    font-weight: 500;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.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 ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Added Code to Align Logo and Text */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between logo and text */
    padding-left: 10px; /* Space on the left */
    flex-grow: 1;
}

.navbar-brand h1 {
    font-size: 20px; /* Adjusted size to fit in navbar */
    white-space: nowrap; /* Prevents text from wrapping */
    margin: 0; /* Removes default margin for alignment */
    padding-left: 10px; /* Added space between logo and text */
}

.navbar .navbar-nav {
    margin-left: auto; /* Aligns dropdown to the far right */
}

.navbar .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar .navbar-brand,
.navbar a.btn {
    height: 75px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

@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 ***/
.header-carousel .owl-carousel-text {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 3rem;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.header-carousel .owl-nav {
    position: absolute;
    width: 200px;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    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;
    position: absolute; /* Ensures position adjustment */
    top: 50%;
    transform: translateY(-50%);
}

.header-carousel .owl-nav .owl-prev {
    left: -50px;
}

.header-carousel .owl-nav .owl-next {
    right: -50px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.header-carousel .owl-dots {
    position: absolute;
    height: 45px;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 15px;
    transition: .5s;
}

.header-carousel .owl-dot::after {
    position: absolute;
    content: "";
    width: 5px;
    height: 5px;
    top: 4px;
    left: 4px;
    background: #FFFFFF;
    border-radius: 5px;
}

.header-carousel .owl-dot.active {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: url(../img/header.jpg) top center no-repeat;
    background-size: cover;
    text-shadow: 0 0 30px rgba(0, 0, 0, .1);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/*** Service ***/
.service-item {
    transition: .5s;
}

.service-item:hover {
    margin-top: -10px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .08);
}

.service-item .btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    border-radius: 40px;
    white-space: nowrap;
    overflow: hidden;
    transition: .5s;
}

.service-item:hover .btn {
    width: 140px;
}

/*** Footer ***/
.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;
    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 {
    color: var(--primary);
    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);
}

.footer .copyright a:hover {
    color: var(--primary);
}

/* Mobile view (up to 600px) */
@media (max-width: 600px) {
    /* Stack sections vertically */
    .col-6, .col-lg-6, .col-md-6 {
        width: 100%;
    }

    /* Icon-Text Pairs: Icons on the left and text on the right */
    .icon-text-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 15px;
    }

    .icon-text-container {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 10px 0;
    }

    .icon-text-container .fa,
    .icon-text-container .bi,
    .icon-text-container svg {
        width: 20px;
        height: 20px;
        margin-right: 10px;
        color: var(--primary);
        flex-shrink: 0;
    }

    /* Text styling */
    .icon-text-container h5, .icon-text-container p, .icon-text-container .text {
        font-size: 14px;
        color: #333;
        margin: 0;
    }

    /* Navbar and Footer adjustments */
    .navbar .nav-link, .navbar-brand h1 {
        font-size: 16px;
    }
}
/* Ensure the email section stays within borders on mobile */
@media (max-width: 600px) {
    .col-lg-4 {
        width: 100%; /* Full width on mobile */
        padding: 10px; /* Adjust padding for smaller screens */
    }

    .col-lg-4 .h-100 {
        padding: 15px;
    }

    .col-lg-4 .d-flex {
        flex-direction: row; /* Keep icon and text side by side */
        align-items: center;
    }

    .col-lg-4 .d-flex.flex-shrink-0 {
        width: 40px;
        height: 40px; /* Adjust icon size */
        margin-right: 10px; /* Space between icon and text */
    }

    .col-lg-4 i.fa-envelope-open {
        font-size: 20px; /* Adjust icon size */
    }

    .col-lg-4 p, .col-lg-4 h5 {
        font-size: 14px; /* Adjust text size */
        margin: 0;
    }
}

#sendmessage,
#errormessage {
    display: none;
    font-weight: bold;
    padding: 10px 0;
}

.show {
    display: block !important;
}

/* Time dropdown scrollable with 5 visible options */
select[name="time"] {
    max-height: 150px;
    overflow-y: auto;
}


