/********** Template CSS **********/
:root {
    --primary: #0C4F98; /* Primary color */
    --secondary: #FDE003; /* Accent yellow */
    --dark: #353434; /* Dark text / dark elements */
    --light: #EFEFEF;   /* Light background color */
    --background: #ffffff; /* Light background color */
    --text: var(--dark); /* Light text color */
    --navbar-bg: #ffffff; /* Navbar background color */
    --footer-bg: var(--dark); /* Footer background color */
}

[data-theme="dark"] {
    --primary: #0C4F98; /* Primary color remains the same */
    --light: #EFEFEF;   /* Light text for dark mode */
    --dark: #353434;    /* Dark background for dark mode */
    --background: #222222;
    --text: #EFEFEF;
    --navbar-bg: #353434;
    --footer-bg: #111111;
}

body {
    background-color: var(--background);
    color: var(--text);
    transition: background-color 0.3s, color 0.3s;
}

h1, h2, .h1, .h2, .fw-bold {
    font-weight: 700 !important;
    color: var(--text);
}

h3, h4, .h3, .h4, .fw-medium {
    font-weight: 600 !important;
    color: var(--text);
}

h5, h6, .h5, .h6, .fw-normal {
    font-weight: 400 !important;
    color: var(--text);
}

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

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.8);
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
.btn {
    font-weight: 500;
    transition: .5s;
    border-radius: 5px;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
    background-color: var(--primary);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-outline-body {
    color: var(--dark);
    border-color: var(--primary);
    transition: background-color 0.3s, color 0.3s;
}

.btn-outline-body:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}



/***** Navbar Styles *****/

/* Default (Light Mode) Navbar Styles */
.navbar {
    background-color: var(--navbar-bg); /* Light mode background */
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: none;
}

.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Shadow effect when scrolled */
    background-color: var(--background); /* Background color transition on scroll */
}

/* Navbar text and link styling */
.navbar .navbar-nav .nav-link {
    margin-right: 15px;
    padding: 20px 0;
    color: var(--text); /* Use light mode text color */
    font-weight: 500;
    text-transform: uppercase;
    outline: none;
    transition: color 0.3s;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary); /* Primary color on hover/active */
    transform: translateY(-2px); /* Subtle lift effect on hover */
}

/* Navbar dropdown styling */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* Navbar sticky top behavior */
.navbar.sticky-top {
    top: 0;
    transition: .3s;
}

/***** Dark Mode Styling *****/

/* Apply dark mode to navbar */
body[data-theme="dark"] .navbar {
    background-color: var(--dark); /* Dark mode background */
    color: var(--light); /* Light text in dark mode */
}

body[data-theme="dark"] .navbar.scrolled {
    background-color: var(--background); /* Dark mode background when scrolled */
}

/* Navbar links in dark mode */
body[data-theme="dark"] .navbar .navbar-nav .nav-link {
    color: var(--light); /* Light text color in dark mode */
}

body[data-theme="dark"] .navbar .navbar-nav .nav-link:hover,
body[data-theme="dark"] .navbar .navbar-nav .nav-link.active {
    color: var(--primary); /* Primary color on hover and active state */
}

/* Dropdown styling in dark mode */
body[data-theme="dark"] .navbar .dropdown-menu {
    background-color: var(--dark); /* Dark dropdown background */
    color: var(--light); /* Light text color in dropdown */
}

body[data-theme="dark"] .navbar .dropdown-menu .dropdown-item {
    color: var(--light); /* Light dropdown item color */
}

body[data-theme="dark"] .navbar .dropdown-menu .dropdown-item:hover {
    background-color: var(--primary); /* Highlight dropdown item on hover */
    color: #fff; /* White text when hovered */
}

/***** Responsive Media Queries *****/

/* Mobile view adjustments */
@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link {
        margin-right: 0;
        padding: 15px 0;
        text-align: center; /* Center align text in mobile view */
    }

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

/* Desktop view dropdown transitions */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
        transition: .5s;
        opacity: 0;
    }

    .navbar .nav-item:hover .dropdown-menu {
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/***** Topbar Styles *****/

/* Default light mode styles */
.container-fluid.bg-dark {
    background-color: var(--dark); /* Initial background color using a CSS variable */
    transition: background-color 0.3s, box-shadow 0.3s; /* Smooth transition for background and box-shadow */
    box-shadow: none; /* No shadow by default */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.container-fluid.bg-dark.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Adds shadow effect when scrolled */
    background-color: var(--background); /* Changes background color when scrolled */
}

.container-fluid.bg-dark .text-body {
    color: var(--text); /* Initial text color using a CSS variable */
    font-size: 16px;
    transition: color 0.3s; /* Smooth transition for text color */
    margin-right: 20px;
}

.container-fluid.bg-dark .text-body:hover {
    color: var(--primary); /* Changes text color on hover to primary color */
}

/* Styling for buttons */
.btn-outline-body {
    color: var(--text); /* Button text color */
    border-color: var(--text); /* Button border color */
    transition: color 0.3s, border-color 0.3s; /* Smooth transition for button color and border */
    padding: 10px 20px;
}

.btn-outline-body:hover {
    color: var(--primary); /* Change color on hover */
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Styling for Social Media Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    margin: 0 10px; /* Increase spacing between icons */
    border: 2px solid var(--primary); /* Add border with root color */
    border-radius: 50%; /* Circular shape */
    color: var(--primary); /* Icon color matching root color */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition effects */
}

.social-icon:hover {
    background-color: var(--primary); /* Fill background on hover */
    color: #fff; /* Change icon color to white on hover */
}

/* Dark mode adjustments */
body[data-theme="dark"] .container-fluid.bg-dark {
    background-color: var(--background); /* Dark background */
    color: var(--text); /* Light text color in dark mode */
    transition: background-color 0.3s, color 0.3s;
}

body[data-theme="dark"] .container-fluid.bg-dark .text-body {
    color: var(--text); /* Ensure text color in dark mode */
}

body[data-theme="dark"] .container-fluid.bg-dark .text-body:hover {
    color: var(--primary); /* Highlight text in dark mode on hover */
}

body[data-theme="dark"] .btn-outline-body {
    color: var(--light); /* Ensure buttons in dark mode are light-colored */
    border-color: var(--light);
}

body[data-theme="dark"] .btn-outline-body:hover {
    color: #FFFFFF;
    background-color: var(--primary);
    border-color: var(--primary);
}

body[data-theme="dark"] .social-icon {
    color: var(--light); /* Use light color when in dark mode */
}

body[data-theme="dark"] .social-icon:hover {
    color: var(--primary); /* Root color on hover in dark mode */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container-fluid.bg-dark {
        flex-direction: column; /* Stack content vertically on small screens */
        padding: 10px;
        text-align: center;
    }

    /* Adjust text for smaller screens */
    .container-fluid.bg-dark .text-body {
        display: block;
        font-size: 14px; /* Smaller font size for phones */
        margin: 5px 0; /* Add spacing between elements */
    }

    /* Stack social icons with smaller size */
    .social-icon {
        width: 35px;
        height: 35px;
        margin: 5px;
    }

    /* Full width button on mobile for better visibility */
    .btn-outline-body {
        width: 100%; /* Full width for mobile */
        text-align: center;
        margin-top: 10px;
    }
}



/*** Header ***/
.owl-carousel-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, .6);
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item p {
        font-size: 18px !important;
        color: var(--text);
    }
}

.header-carousel .owl-dots {
    position: absolute;
    width: 50px;
    height: 100%;
    top: 0;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-carousel .owl-dots .owl-dot {
    position: relative;
    width: 45px;
    height: 45px;
    margin: 5px 0;
    background: var(--dark);
    transition: .5s;
}

.header-carousel .owl-dots .owl-dot.active {
    width: 55px;
    height: 55px;
}

.header-carousel .owl-dots .owl-dot img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 2px;
    transition: .5s;
    opacity: .3;
}

.header-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

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

/*** Section Title ***/
.section-title {
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

/*** Facts ***/
.fact-item .fact-icon {
    width: 110px;
    height: 110px;
    margin-top: -55px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 110px;
    transition: .5s;
}

.fact-item:hover .fact-icon {
    background: var(--dark);
}

.fact-item .fact-icon i {
    color: var(--primary);
    transition: .5s;
}

.fact-item:hover .fact-icon i {
    color: #FFFFFF;
}

/*** About & Feature ***/
.about-img,
.feature-img {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.about-img img,
.feature-img img {
    position: absolute;
    width: 60%;
    height: 80%;
    object-fit: cover;
}

.about-img img:last-child,
.feature-img img:last-child {
    margin: 15% 0 0 35%;
}

.about-img::before,
.feature-img::before {
    position: absolute;
    content: "";
    width: 60%;
    height: 80%;
    top: 10%;
    left: 20%;
    border: 5px solid var(--primary);
    z-index: -1;
}

/*** Service ***/
.service-item .bg-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.service-item .service-text {
    background: var(--light);
    transition: .5s;
    padding: 20px;
    color: var(--text);
}

.service-item:hover .service-text {
    background: rgba(0, 0, 0, .7);
}

.service-item * {
    transition: .5s;
    color: var(--text);
}

.service-item:hover * {
    color: #FFFFFF;
}

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

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

/*** Project ***/
.project .nav .nav-link {
    background: var(--light);
    transition: .5s;
}

.project .nav .nav-link.active {
    background: var(--primary);
}

.project .nav .nav-link.active h3 {
    color: #FFFFFF !important;
}

/*** Team ***/
.team-items {
    margin: -.75rem;
}

.team-item {
    padding: .75rem;
}

.team-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 0;
    top: 0;
    left: 0;
    background: #FFFFFF;
    transition: .5s;
    z-index: -1;
}

.team-item:hover::after {
    height: 100%;
    background: var(--primary);
}

.team-item .team-social {
    position: absolute;
    width: 100%;
    bottom: -20px;
    left: 0;
}

.team-item .team-social .btn {
    display: inline-flex;
    margin: 0 2px;
    color: var(--primary);
    background: var(--light);
}

.team-item .team-social .btn:hover {
    color: #FFFFFF;
    background: var(--primary);
}

/*** Appointment ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}

/*** Testimonial ***/
.testimonial-carousel {
    display: flex !important;
    flex-direction: column-reverse;
    max-width: 700px;
    margin: 0 auto;
}

.testimonial-carousel .owl-dots {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.testimonial-carousel .owl-dots .owl-dot {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 5px;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active {
    width: 90px;
    height: 90px;
}

.testimonial-carousel .owl-dots .owl-dot::after {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    content: "\f10d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    background: #FFFFFF;
    border-radius: 40px;
    transition: .5s;
    opacity: 0;
}

.testimonial-carousel .owl-dots .owl-dot.active::after {
    opacity: 1;
}

.testimonial-carousel .owl-dots .owl-dot img {
    opacity: .4;
    transition: .5s;
}

.testimonial-carousel .owl-dots .owl-dot.active img {
    opacity: 1;
}

/* Vision & Mission Section */
.vision-mission-section {
    background-color: #f8f9fa;
}

.vision-mission-item {
    background-color: #ffffff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    border-radius: 5px;
    padding: 30px;
    color: var(--text);
}

.vision-mission-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.vision-mission-item h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.vision-mission-item p {
    font-size: 16px;
    color: var(--text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .vision-mission-item {
        margin-bottom: 30px;
    }
}

/*** Footer ***/
.footer {
    background-color: var(--footer-bg);
    color: var(--light);
    transition: background-color 0.3s, color 0.3s;
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #777777;
    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;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .form-control {
    border-color: #777777;
}
e
.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);
}



/* Common Carousel Styling */
.carousel .carousel-inner {
    border: 2px solid var(--primary); /* Adding a color frame */
    border-radius: 10px; /* Smooth rounded edges */
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); /* Subtle shadow for depth */
}

.carousel .img-overlay {
    filter: brightness(0.8); /* Darken images slightly for text readability */
    transition: filter 0.3s ease; /* Smooth transition */
}

.carousel .img-overlay:hover {
    filter: brightness(1); /* Brighten on hover for a dynamic effect */
}

.custom-carousel-control {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.8); /* Light background for contrast */
    border-radius: 50%;
    border: 2px solid var(--primary); /* Consistent color theme */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.custom-carousel-control i {
    font-size: 20px;
    color: var(--primary); /* Icon color */
}

.custom-carousel-control:hover {
    background-color: var(--primary); /* Primary color on hover */
    transform: translateY(-50%) scale(1.1); /* Slight scale effect */
}

.carousel-indicators [data-bs-target] {
    background-color: var(--primary); /* Use primary color for indicators */
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.carousel-indicators .active {
    background-color: var(--light); /* Highlight active indicator */
}
/* Custom CSS for responsive titles */
@media (max-width: 767.98px) { /* Small screens */
    h1.responsive-title {
        font-size: 24px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) { /* Medium screens */
    h1.responsive-title {
        font-size: 28px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) { /* Large screens */
    h1.responsive-title {
        font-size: 32px;
    }
}

@media (min-width: 1200px) { /* Extra large screens */
    h1.responsive-title {
        font-size: 36px;
    }
}



/* Styling for the feature images */
.feature-images-container {
    position: relative;
    overflow: hidden;
}

.feature-image {
    border: 5px solid var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.feature-image-overlay {
    width: 70%;
    border: 5px solid var(--primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-images-container:hover .feature-image,
.feature-images-container:hover .feature-image-overlay {
    transform: scale(1.05);
    opacity: 1;
}

.feature-images-container:hover .feature-image-overlay {
    transform: scale(1.1) translate(-50%, -50%);
}



/* Testimonial Image Styling */
.testimonial-img {
    border: 5px solid var(--primary); /* Add a root color border */
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease; /* Smooth transitions on hover */
    cursor: pointer; /* Make it clear the images are interactive */
}

/* Hover Effect for Testimonial Images */
.testimonial-img:hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Add a shadow effect on hover */
    opacity: 0.9; /* Slightly reduce opacity for a subtle effect */
}

/* Testimonial Item Styling */
.testimonial-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

/* Hover Effect for Testimonial Item */
.testimonial-item:hover {
    transform: scale(1.02); /* Slightly enlarge the testimonial box on hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Add a subtle shadow effect */
}
