/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
}

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

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

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.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;
}

#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;
}

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

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 35px 15px;
    font-size: 18px;
    color: var(--dark);
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}

.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,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper {
    height: 100%;
}

.hero-header {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.appointment-form {
    background: rgba(6, 163, 218, .7);
}








/* .service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text {
    transition: .5s;
}

.service-item:hover img {
    transform: scale(1.15);
} */

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius:100px / 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, .7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after {
    opacity: 1;
}

.bg-offer {
    background:url(../img/recovery.jfif) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(6, 163, 218, .85);
}

.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav {
    opacity: 1;
}

.price-carousel .owl-nav .owl-prev,
.price-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: 2px;
    font-size: 22px;
    transition: .5s;
}

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

.bg-testimonial {
    background: url(../img/test-bg.jfif) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel {
    background: rgba(6, 163, 218, .85);
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

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

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

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

/* css for gallery */
 /* Gallery section background */
 .gallery-section {
    background-color: #f8f9fa;
    padding: 60px 0;
}

/* Category scroller */
.scroller-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px;
}
.category-scroller {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 0;
}
.category-scroller::-webkit-scrollbar {
    display: none;
}
.scroller-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: all 0.3s;
}
.scroller-arrow:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.scroller-arrow.left {
    left: -50px;
}
.scroller-arrow.right {
    right: -50px;
}
.category-btn {
    flex: 0 0 auto;
    margin: 0 8px;
    padding: 8px 20px;
    border-radius: 20px;
    background: white;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 500;
    transition: all 0.3s;
}
.category-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Gallery items */
.gallery-item {
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.3s;
}
.gallery-img {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 250px;
}
.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

/* Lightbox Modal - UPDATED */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.lightbox-content {
    position: relative;
    width: 80vw;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.lightbox-prev {
    left: -60px;
}
.lightbox-next {
    right: -60px;
}
 /* Gallery Styles */
 .gallery-item-wrapper {
    padding: 0 15px;
    margin-bottom: 30px;
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* Lightbox Styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-image {
    max-width: 80%;
    max-height: 80vh;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 60px;
    right: 30px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    user-select: none;
}
.prev-btn{
    left: 5%;
    border-radius: 3px 0 0 3px;
}

.next-btn {
    right: 5%;
    border-radius: 3px 0 0 3px;
}

.prev-btn:hover, .next-btn:hover {
    background-color: rgba(0,0,0,0.8);
}

@media (max-width: 767px) {
    .gallery-item-wrapper {
        padding: 0 10px;
    }
    .gallery-img {
        height: 200px;
    }
    .lightbox-image {
        max-width: 95%;
    }
}

/* faq css */


  .faq-top {
    background: url('/img/faq.jpg') no-repeat center center/cover;
    padding: 3rem 1rem 5rem;
    color: white;
    text-align: center;
    border-radius: 20px;
    margin-bottom: -60px;
    position: relative;
    z-index: 1;
  }
  .faq-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    border-radius: 20px;
    z-index: -1;
  }

  .faq-top h1 {
    font-size: 2.5rem;
    font-weight: bold;
  }

  .search-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
  }

  .search-bar input {
    border-radius: 25px;
    padding: 0.5rem 1rem;
    border: none;
    flex: 1;
    min-width: 200px;
  }

  .search-bar button {
    border-radius: 25px;
    background-color: orange;
    border: none;
    padding: 0.5rem 1rem;
    color: white;
    white-space: nowrap;
  }

  .faq-content {
    /* background: #ffe5e0; */
    background: rgb(43, 135, 168);
    border-radius: 20px;
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
  }

  .illustration{
    width: 100%;      /* Will fill available width */
max-width: 300px; /* But never exceed original size */
height: auto;
margin-top: 2rem;
  }

  .question-title {
    font-weight: 600;
    color: #ff6600;
  }

  @media (max-width: 768px) {
    .faq-top h1 {
      font-size: 2rem;
    }

    .faq-top {
      padding: 2rem 1rem 4rem;
    }
  }
  .faq-heading{
    color: white;
  }

  /* blog */
   :root {
            --primary-color: #4a6fa5;
            --secondary-color: #3a5a8f;
        }

        .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    cursor: pointer;
}
.card-title.expanded {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    white-space: normal;
    height: auto;
}


        .blog-section {
            position: relative;
            padding: 4rem 0;
            background-color: #f8f9fa;
        }

        .blog-container {
            position: relative;
        }

        .blog-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory; /* This enables snap scrolling */
    gap: 1.5rem;
    padding: 1rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

        .blog-scroller::-webkit-scrollbar {
            display: none; /* Chrome/Safari */
        }

        .blog-card {
    flex: 0 0 calc(100% - 2rem); /* Full width on mobile */
    scroll-snap-align: start; /* This makes cards snap into place */
    transition: all 0.3s ease;
    height: 520px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}


        @media (min-width: 768px) {
            .blog-card {
                flex: 0 0 calc(50% - 1.5rem); /* 2 cards on tablet */
            }
        }
        @media (min-width: 992px) {
    .blog-card {
        flex: 0 0 calc(33.333% - 1.5rem); /* 3 cards on desktop */
    }
}
        .blog-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

        .blog-img {
            height: 200px;
            object-fit: cover;
            width: 100%;
        }

        .category-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 0.8rem;
        }

        .card-body {
            padding: 1.5rem;
        }

        .author-img {
            width: 40px;
            height: 40px;
            object-fit: cover;
            border-radius: 50%;
        }

        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .btn-primary:hover {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }

        .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background-color: white;
            color: var(--primary-color);
            border: none;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .scroll-btn:hover {
            background-color: var(--primary-color);
            color: white;
            transform: translateY(-50%) scale(1.1);
        }

        .scroll-btn.left {
            left: -20px;
        }

        .scroll-btn.right {
            right: -20px;
        }

        .scroll-btn i {
            font-size: 1.2rem;
        }

        @media (max-width: 767px) {
            .scroll-btn {
                display: none;
            }

            .blog-scroller {
                padding: 1rem;
            }
        }
