/********** Template CSS **********/

/* Define root variables for primary color, light color, and dark color */
:root {
    --primary: #FE5D37; /* Primary color: bright orange */
    --light: #FFF5F3;   /* Light color: soft pinkish-white */
    --dark: #103741;    /* Dark color: deep teal */
}

/* Back-to-Top Button */
.back-to-top {
    position: fixed; /* Fixed position on the screen */
    display: none;   /* Hidden by default */
    right: 45px;     /* Positioned 45px from the right */
    bottom: 45px;    /* Positioned 45px from the bottom */
    z-index: 99;     /* Ensure it's above most other elements */
}

/*** Spinner ***/
/* Initial state for spinner: hidden and transparent */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s; /* Smooth transition for opacity and visibility */
    z-index: 99999; /* Spinner is above all other elements */
}

/* Visible state for spinner: visible and opaque */
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/*** Button ***/
/* General button styling */
.btn {
    font-weight: 500;
    transition: .5s; /* Smooth transition for button states */
}

/* Primary button styling */
.btn.btn-primary {
    color: #FFFFFF; /* White text color */
}

/* Square button sizes */
.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

/* Common styles for all square buttons */
.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px; /* Rounded corners */
}

/*** Heading ***/
/* Heading font and weight styling */
h1,
h2,
h3,
h4,
.h1,
.h2,
.h3,
.h4,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Lobster Two', cursive; /* Custom cursive font */
    font-weight: 700; /* Bold weight */
}

/* Smaller heading font weights */
h5,
h6,
.h5,
.h6 {
    font-weight: 600; /* Slightly less bold */
}

/* Additional secondary font option */
.font-secondary {
    font-family: 'Lobster Two', cursive; /* Same cursive font */
}

/*** Navbar ***/
/* Navbar link styles */
.navbar .navbar-nav .nav-link {
    padding: 30px 15px; /* Padding around links */
    color: var(--dark); /* Use dark color */
    font-weight: 500;
    outline: none;
}

/* Navbar link hover and active state */
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary); /* Change to primary color */
}

/* Sticky navbar transition */
.navbar.sticky-top {
    top: -100px; /* Initially hidden */
    transition: .5s; /* Smooth slide down */
}

/* Dropdown toggle icon styling */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107"; /* Font Awesome down arrow icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 5px;
    transition: .5s; /* Smooth icon rotation */
}

/* Rotate dropdown icon when expanded */
.navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

/* Navbar styling for smaller screens */
@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; /* Light gray border */
    }
}

/* Navbar dropdown menu styling for larger screens */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        top: calc(100% - 15px);
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

/*** Header ***/
/* Decorative background images for headers */
.header-carousel::before,
.header-carousel::after,
.page-header::before,
.page-header::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 10px;
    top: 0;
    left: 0;
    background: url(../img/bg-header-top.png) center center repeat-x; /* Repeat background image horizontally */
    z-index: 1;
}

/* Additional decorative background images for headers */
.header-carousel::after,
.page-header::after {
    height: 19px;
    top: auto;
    bottom: 0;
    background: url(../img/bg-header-bottom.png) center center repeat-x; /* Repeat background image horizontally */
}

/* Carousel item styling for smaller screens */
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        width: 100%; /* Ensure the carousel item takes full width */
        padding-bottom: 56.25%; /* Maintain aspect ratio of 16:9 (height/width * 100) */
        overflow: hidden; /* Hide overflow for better layout */
        background: #000; /* Fallback background color */
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        object-fit: cover; /* Cover the entire area */
        object-position: center; /* Center the image */
    }

    .header-carousel .owl-carousel-item p {
        font-size: 10px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 15px;
        font-weight: 600;
    }
}


/* Carousel navigation styling */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%); /* Center vertically */
    display: flex;
    flex-direction: column;
}

/* Previous and next button styling */
.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; /* White text */
    background: transparent;
    border: 1px solid #FFFFFF; /* White border */
    border-radius: 45px; /* Fully rounded */
    font-size: 22px;
    transition: .5s; /* Smooth hover transition */
}

/* Hover state for previous and next buttons */
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary); /* Change background to primary color */
    border-color: var(--primary); /* Change border to primary color */
}

/* Page header background styling */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)), url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover; /* Cover the entire header */
}

/* Breadcrumb item styling */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, .5); /* Semi-transparent white */
}

/*** Facility ***/
/* Icon container styling */
.facility-item .facility-icon {
    position: relative;
    margin: 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100px; /* Fully rounded */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon background overlay */
.facility-item .facility-icon::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9); /* Semi-transparent white */
    transition: .5s;
    z-index: 1;
}

/* Icon span styling */
.facility-item .facility-icon span {
    position: absolute;
    content: "";
    width: 15px;
    height: 30px;
    top: 0;
    left: 0;
    border-radius: 50%; /* Rounded */
}

/* Positioning for last span */
.facility-item .facility-icon span:last-child {
    left: auto;
    right: 0;
}

/* Icon styling */
.facility-item .facility-icon i {
    position: relative;
    z-index: 2;
}

/* Text container styling */
.facility-item .facility-text {
    position: relative;
    min-height: 250px;
    padding: 30px;
    border-radius: 100%; /* Fully rounded */
    display: flex;
    text-align: center;
    justify-content: center;
    flex-direction: column;
}

/* Text background overlay */
.facility-item .facility-text::before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, .9); /* Semi-transparent white */
    transition: .5s;
    z-index: 1;
}

/* Ensures text and icon are above overlays */
.facility-item .facility-text * {
    position: relative;
    z-index: 2;
}

/* Hover effects for facility items */
.facility-item:hover .facility-icon::before,
.facility-item:hover .facility-text::before {
    background: transparent; /* Remove overlay */
}

.facility-item * {
    transition: .5s;
}

/* Hover state for all facility item children */
.facility-item:hover * {
    color: #FFFFFF !important; /* White text on hover */
}

/*** About ***/
/* Image hover effect */
.about-img img {
    transition: .5s;
}

.about-img img:hover {
    background: var(--primary) !important; /* Change background to primary color on hover */
}

/*** Classes ***/
/* Class item hover effect */
.classes-item {
    transition: .5s;
}

.classes-item:hover {
    margin-top: -10px; /* Move item up slightly on hover */
}

/*** Team ***/
/* Team text container styling */
.team-item .team-text {
    position: absolute;
    width: 250px;
    height: 250px;
    bottom: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: #FFFFFF;
    border: 17px solid var(--light); /* Border with light color */
    border-radius: 250px; /* Fully rounded */
    transition: .5s;
}

/* Hover effect for team text container */
.team-item:hover .team-text {
    border-color: var(--primary); /* Change border to primary color */
}

/*** Testimonial ***/
/* Padding for testimonial carousel */
.testimonial-carousel {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Adjust padding for larger screens */
@media (min-width: 576px) {
    .testimonial-carousel {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Testimonial item border styling */
.testimonial-carousel .testimonial-item .border {
    border: 1px dashed rgba(0, 185, 142, .3) !important; /* Dashed border with a light greenish tint */
}

/* Navigation styling for testimonial carousel */
.testimonial-carousel .owl-nav {
    position: absolute;
    width: 100%;
    height: 45px;
    top: 50%;
    left: 0;
    transform: translateY(-50%); /* Center vertically */
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

/* Previous and next button styling */
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* White text */
    background: var(--primary); /* Primary color background */
    border-radius: 45px; /* Fully rounded */
    font-size: 20px;
    transition: .5s; /* Smooth hover transition */
}

/* Hover effect for previous and next buttons */
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--dark); /* Change background to dark color */
}

/*** Footer ***/
/* Social button styling in footer */
.footer .btn.btn-social {
    margin-right: 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF; /* White text */
    border: 1px solid rgba(255,255,255,0.5); /* Semi-transparent white border */
    border-radius: 45px; /* Fully rounded */
    transition: .3s;
}

/* Hover effect for social buttons */
.footer .btn.btn-social:hover {
    border-color: var(--primary); /* Change border to primary color */
    background: var(--primary); /* Change background to primary color */
}

/* Link button styling in footer */
.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    font-size: 16px;
    font-weight: normal;
    text-transform: capitalize; /* Capitalize text */
    transition: .3s;
}

/* Icon before link text */
.footer .btn.btn-link::before {
    position: relative;
    content: "\f105"; /* Font Awesome right arrow icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* Hover effect for link buttons */
.footer .btn.btn-link:hover {
    color: var(--primary) !important; /* Change text color to primary */
    letter-spacing: 1px; /* Increase letter spacing */
    box-shadow: none; /* Remove shadow */
}

/* Footer form control styling */
.footer .form-control {
    border-color: rgba(255,255,255,0.5); /* Semi-transparent white border */
}

/* Footer copyright section styling */
.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1); /* Light semi-transparent white border */
}

/* Footer copyright links styling */
.footer .copyright a {
    color: #FFFFFF; /* White text */
}

/* Footer menu link styling */
.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1); /* Light semi-transparent white border */
}

/* Hover effect for footer copyright and menu links */
.footer .copyright a:hover,
.footer .footer-menu a:hover {
    color: var(--primary) !important; /* Change text color to primary */
}

/* Remove border for the last footer menu link */
.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}
