/********** Template CSS **********/
:root {
    --primary: #13C5DD;
    --secondary: #354F8E;
    --light: #EFF5F9;
    --dark: #1D2A4D;
}

html {
    scroll-behavior: smooth;
}

.btn {
    font-weight: 700;
    transition: .5s;
}

.btn:hover {
    -webkit-box-shadow: 0 8px 6px -6px #555555;
    -moz-box-shadow: 0 8px 6px -6px #555555;
    box-shadow: 0 8px 6px -6px #555555;
}

.btn-primary {
    color: #FFFFFF;
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 28px;
    height: 28px;
}

.btn-lg-square {
    width: 46px;
    height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 0;
    border-radius: 50% 50% 0 0;
    z-index: 99;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    position: relative;
    margin-left: 30px;
    padding: 30px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

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

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        bottom: 0;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

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

.hero-header {
    background: url(../img/hero.jpg) top right no-repeat;
    background-size: cover;
}

.service-item {
    position: relative;
    height: 200px;
    padding: 0 30px;
    transition: .5s;
}

.service-item:hover {
    border:5px solid var(--primary);
}

.service-item .service-icon {
    width: 150px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.service-item .service-icon i {
    transform: rotate(15deg);
}

.service-item a.btn {
    position: absolute;
    width: 100px;
    bottom: -48px;
    left: 50%;
    margin-left: -50px;
    opacity: 0;
}

.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}

.service-item .btn-show-more{
    font-size: 12px;
    font-weight: 800px;
}

.price-carousel::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 50%;
    bottom: 0;
    left: 0;
    border-radius: 8px 8px 50% 50%;
    z-index: -1;
}

.price-carousel .owl-nav {
    margin-top: 35px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #FFFFFF;
    font-size: 22px;
    border-radius: 45px;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}

@media (min-width: 576px) {
    .team-item .row {
        height: 350px;
    }
}

.team-carousel .owl-nav {
    position: absolute;
    padding: 0 45px;
    width: 100%;
    height: 45px;
    top: calc(50% - 22.5px);
    left: 0;
    display: flex;
    justify-content: space-between;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
    background: var(--dark);
}

.testimonial-carousel .owl-dots {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 10px;
    height: 10px;
    background: var(--light);
    border: 2px solid var(--primary);
    border-radius: 20px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 20px;
    height: 20px;
    background: var(--primary);
}

.testimonial-carousel .owl-item img {
    width: 150px;
    height: 150px;
}

.testimonial-item {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.testimonial-item:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Stronger shadow */
}

.fixed-size-img {
    width: 100%; /* Ensures the image stretches to the width of the container */
    height: 100%; /* Set a fixed height for the image */
    object-fit: cover; /* Maintains the aspect ratio while filling the area */
}

.animationCard {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
    box-sizing: border-box;
}

.animationCard-item {
    border: 5px solid var(--primary);
    display: flex;
    border-radius: 20px;
    background:var(--primary);
    flex-direction: column; /* Stack .box and .specialist-info vertically */
    align-items: center; /* Center align them horizontally */
    width: 100%;
    max-width: 18rem;
}

.animationCard-info {
    margin-top: 1rem; /* Add some spacing above the name */
    text-align: center; /* Center-align the name */
}

.animationCard .box {
    border: 5px solid var(--primary);
    position: relative;
    width: 100%; /* Adjust width to fit parent container */
    height: 18rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: var(--primary);
    cursor: pointer;
    overflow: hidden;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}


.animationCard .text-container h1 {
    margin: 0 0 0.5rem; /* Add spacing below the heading */
    font-size: 1.5rem;
}

.animationCard .text-container p {
    margin: 0; /* Reset margin */
    font-size: 1rem;
    line-height: 1.4;
    color:black;
}

.clipBox {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 1; /* Fully visible initially */
    transition: opacity 1.2s ease; /* Smooth transition for opacity */
}

.clipBox-2 {
    position: absolute;
    width: 100%;
    height: 120%;
    opacity: 1; /* Fully visible initially */
    transition: opacity 1.2s ease; /* Smooth transition for opacity */
}

.clipBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clipBox-2 img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.box:hover .clipBox {
    opacity: 0.2; /* Makes the element transparent on hover */
}

.box:hover .clipBox-2 {
    opacity: 0.2; /* Makes the element transparent on hover */
}


.animationCard-title-container {
    text-align: left; /* Center aligns the title */
    padding-left: 50px;
    margin-top: 30px; /* Adds spacing above and below the title */
}

.animationCard-title {
    font-size: 1.4rem; /* Larger font size */
    font-weight: bold; /* Emphasize the title */
    text-transform: uppercase; /* Uppercase for emphasis */
    letter-spacing: 2px; /* Add spacing between letters */
    margin: 0; /* Remove default margin */
}

.animationCard-title i {
    margin-right: 8px; /* Add space between icon and text */
}


/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
    .specialist .item {
        width: calc((100% - 4rem) / 3); /* Up to 3 boxes per row */
    }
}

@media (max-width: 768px) {
    .specialist .item {
        width: calc((100% - 2rem) / 2); /* Up to 2 boxes per row */
    }
}

@media (max-width: 480px) {
    .specialist .item {
        width: 100%; /* 1 box per row */
    }
}

.border-container {
    position: relative;
    border: 10px solid transparent;
    border-color: var(--primary);
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 8px; /* Optional: Adds rounded corners */
}

.border-container:hover {
    border-color: #007bff; /* Change to desired hover color */
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.5); /* Optional: Adds a shadow effect */
}

/* Add keyframe animation */
@keyframes slideImage {
    0% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(-200%);
    }
    75% {
        transform: translateX(-300%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Apply the animation to the images */
.owl-carousel {
    display: flex;
    overflow: hidden;
}

.owl-carousel .bg-light {
    position: relative;
}

.carousel-image {
    display: flex;
    animation: slideImage 12s infinite;
}

.carousel-image img {
    object-fit: contain; /* Ensure the image fits within the container */
    width: 100%;         /* Make the image take full width of the container */
    height: auto;  
}
