.Certified-item img {
    width: 45%;
}
  .hero-section {
    padding: 0px 40px;
   
}
.hero-content {
    text-align: center;
}
button.btn.btn-book:hover {
    background: #fff;
    color: #636ae8;
    border: 1px solid #636ae8;
}

/* Send a Message button hover effect */
button.btn.btn-message:hover {
    background: #800080; /* Purple */
    color: #fff;
	font-size: 18px;
    border-radius: 6px;
    height: 52px;
    width: 197px;
    border: none;
}
/*
button.btn.btn-book:hover {
    background: transparent;
   
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    height: 52px;
    width: 197px;
    margin-left: 20px;
    font-family: inter;
    font-size: 18px;
    font-weight: 400;
}
button.btn.btn-message:hover {
    color: #fff;
    background: #636AE8;
    font-size: 18px;
    border-radius: 6px;
    height: 52px;
    width: 197px;
    border: none;
}
*/
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.top-bar .left {
    font-size: 16px;
}
.top-bar .right a {
    margin-left: 10px;
    font-size: 18px;
    color: #ffffff;
}
.top-bar .right a:hover {
    margin-left: 10px;
    font-size: 18px;
    color: #999df0;
}

.hero-content .row {
    display: flex;
    justify-content: space-between;
}

.hero-content .col-sm-6 img {
    width: 100%;
    height: auto;
}
.hero-section {
    background: #000;
    margin-top: -85px;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 90px;
    background-position: center;
    position: relative;
}
.hero-Image {
    position: relative;
    top: 38px;
}
.hero-content h1 {
    color: #999DF0;
    font-family: Archivo;
    font-weight: 700;
    font-size: 48px;
    line-height: 68px;
    padding-top: 150px;
}
.hero-content p {
    font-size: 18px;
    font-family: inter;
    color: #fff;
    font-weight: 400;
    line-height: 28px;
}
.right {
    z-index: 1;
}

a.btn.btn-book {
    color: #fff;
    background: #636AE8;
    font-size: 18px;
    border-radius: 6px;
    margin-left: 0px !important;
    text-decoration: none;
    width: 197px;
    height: 52px;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 18px;
    padding: 11px;
}
.btn .btn-book:hover {
    background: #fff;
    color: #636ae8;
    border: 1px solid #636ae8;
}
.hero-buttons_nav a.btn.btn-book {
    color: #fff;
    background: #636AE8;
    font-size: 18px;
    border-radius: 6px;
    margin-left: 0px !important;
    text-decoration: none;
    width: 197px;
    height: 43px;
    font-family: 'Inter';
    font-weight: 400;
    font-size: 18px;
    padding: 7px;
}
button.btn.btn-book {
    color: #fff;
    background: #636AE8;
    font-size: 18px;
    border-radius: 6px;
    height: 52px;
    width: 197px;
    margin-left: 0px !important;
    font-weight: 400;
    font-family: 'Inter';
}
button.btn.btn-message {
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    height: 52px;
    width: 197px;
    margin-left: 20px;
    font-family: inter;
    font-size: 18px;
    font-weight: 400;
}
.hero-buttons_nav button.btn.btn-book {
    color: #fff;
    background: #636AE8;
    font-size: 18px;
    border-radius: 6px;
    height:40px;
    width: 197px;
}
.hero-buttons_nav button.btn.btn-message {
    color: #fff;
    border: 1px solid #fff;
    border-radius: 6px;
    height: 40px;
    width: 181px;
    margin-left: 20px;
    font-family: inter;
    font-size: 18px;
    font-weight: 400;
}
.services_item h3 {
    font-family: Archivo;
    font-size: 19px;
    line-height: 30px;
    font-weight: 400;
    color: #323743;
}
.services_item  p {
    font-size: 14px;
    font-family: inter;
    line-height: 22px;
    font-weight: 400;
    color: #565D6D;
}
.services_item {
    background: #F8F9FA;
    border-radius: 16px;
  
    height: 264px;
    padding: 35px 33px;
    box-shadow: 0px 0px 1px 0px #171a1f3d;
}
img.bg_icon_1 {
    position: absolute;
    top: 48px;
    left: 2%;
}
img.bg_icon_2 {
    position: absolute;
    right: 0;
    top: 6%;
}
img.bg_icon_3 {
    position: absolute;
    right: 5%;
    top: 17%;
}
img.prev_imga_bg {
    position: absolute;
    top: 5%;
    left: 5%;
}
.top-bar {
    position: sticky;
    top: 0;
   
    z-index: 1;
}
.hero-buttons_nav {
    display: none; 
}
.slider-nav {
    /* float: right; */
    position: absolute;
    right: 46px;
    bottom: 10%;
}
button.prev {
    border: none;
    background: no-repeat;
    font-size: 27px;
}
button.next{
    border: none;
    background: no-repeat;
    font-size: 27px;
}
.testi_detail h3 {
    color: #636AE8;
    font-family: Archivo;
    font-size: 40px;
    line-height: 56px;
    font-weight: 700;
    width: 68%;
}
.testi_detail  {
    border: 1px solid #fff;
    box-shadow: 0px 0px 9px grey;
    padding: 100px 50px;
    border-radius: 16px;
}
.para_content
{
    display: none;
}

.expanded {
    flex: 1 0 60% !important;  

}
.service-item{
    flex-shrink:1;
}
.how_can_help .row {
    display: flex;
    flex-wrap: nowrap !important;  
    width: 100%;
}
.how_can_help .col-sm-3 {
    flex: 1 0 25%;  
    padding: 10px;  
    transition: flex 0.3s ease; 
}
.services_item {
    transition: all 0.3s ease;
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-align: center;
}
.services_item img {
    max-width: 100%;
    transition: all 0.3s ease;
}
.service-item {
    flex-shrink: 1;
    transition: all 0.3s ease;
}

.testimonial-content p {
    font-family: 'Inter';
    font-size: 24px;
    line-height: 36px;
    font-style: italic;
    color: #565d6d;
}
.work-item {
    text-align: center;
}
img.crt-bg-img {
    position: absolute;
    right: 10%;
    top: 8%;
}
.contact-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 0px 5px #171A1F;
    padding: 70px 40px;
    margin-top: 100px;
}
h2.form-heading.text-center {
    font-family: Archivo;
    font-size: 40px;
    color: #636AE8;
    font-weight: 700;
}
.contact-form p {
    font-family: inter;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}
.contact-form  input.form-control {
    background: #F3F4F6;
    height: 51px;
    color: #BDC1CA;
    font-family: inter;
    font-size: 18px;
    border: none;
}
button.btn.btn-primary.btn-submit-btn {
    background: #636AE8;
    border: none;
    font-family: inter;
    font-size: 18px;
    height: 52px;
    width: 209px;
 
}
footer p {
    font-family: inter;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    text-align: justify;
}
footer  h5 {
    font-family: Archivo;
    font-weight: 700;
    font-size: 24px;
    line-height: 36px;
}
footer a.nav-link {
    padding-left: 0;
    color: #fff;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
}
footer .social-icons a.social-icon {
    color: #fff;
    font-size: 18px;
    padding-left: 15px;
}
.bg-col-footer {
    background: #1B22B1;
    padding: 30px 30px;
    margin-top: -30px;
}
img.footer-icon1 {
    position: absolute;
    bottom: 13%;
    left: 1%;
}
img.footer-icon2 {
    position: absolute;
    bottom: 8%;
    left: 3%;
}
.para_content {
    padding: 40px 20px;
}
.bg-col-footer i.fas.fa-envelope {
    color: #fff;
}
@media (max-width: 767px) {
  .btn .btn-book{
        color: #fff;
        border-radius: 6px;
        height: 52px;
        width: 197px;
        margin-left: 20px;
        font-family: inter;
        font-size: 18px;
        font-weight: 400;
    }
    .hero-buttons_nav .btn .btn-book {
        font-size: 12px;
        width: 136px;
        height: 40px;
    }
    footer p {
        font-family: inter;
        font-size: 14px;
        line-height: 22px;
        font-weight: 400;
        text-align: center !important;
    }
    .para_content {
        width: 90% !important;
        top: -8px !important;
        font-size: 18px !important;
    }
    .hero-Image {
        display: none;
    }
    #hero-buttons_nav a.btn.btn-book {
        width: 130px !important;
        font-size: 12px !important;
        height: 40px !important;
        padding-top: 10px;
    }
    .hero-buttons a.btn.btn-book {
        width: 197px !important;
        
    }
    .left img {
        width: 60%;
    }
   .contact-us img {
        width: 100%;
    }
    .footer-logo img {
        width: 100%;
    }
    .service_details.expanded .services_block img {
        position: relative !important;
        margin-top: 0 !important;
        margin-left: 0px !important;
    }
    .expanded .services_block h3 {
        margin-top: 0 !important;
        position: absolute !important;
        max-width: 80px !important;
        font-size: 11px !important;
        line-height: 18px !important;
    }
    .expanded .services_block p {
        margin-left: 0 !important;
        position: relative;
        top: 152px !important;
        left: -165px !important;
        font-size: 10px !important;
    }
    .para_content p {
        font-size: 14px;
        line-height: 20px;
    }
    .para_content {
        padding: 5px;
    }
    .hero-section .row {
        flex-direction: column; 
    }
    .hero-section {
        margin-top: -128px;
    }
    .top-bar {
        display: block;
        overflow: hidden;
    }
    .hero-section .col-sm-2,
    .hero-section .col-sm-4 {
        max-width: 100%;
        flex: 0 0 100%; 
    }

    .hero-content h1 {
        line-height: 60px;
        padding-top: 126px;
        text-align: center;
    }
    button.btn.btn-message {
        width: 197px;
         margin-left:0px; 
     
    }
    .hero-buttons_nav button.btn.btn-message {
        width: 130px;
        margin-left: 0px;
        font-size: 12px !important;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    section.hero-section {
        text-align: center;
    }
    .testi_detail.row {
        padding: 50px 20px;
    }
    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
    }
    img.bg_icon_1 {
        display: none;
    }
    img.bg_icon_2 {
        display: none;
    }
    img.bg_icon_3 {
        display: none;
    }
    .how_can_help .row {
        flex-direction: column;
        text-align: center;
        margin: 0;
    }
    img.prev_imga_bg {
        position: absolute;
        top: 1%;
        left: 5%;
    }
    .testi_detail h3 {
        font-size: 28px;
        line-height: 44px;
        width: 100%;
    }
    section.testimoniomanl_section {
        text-align: center;
    }
    .slider-nav {
        position: unset;
    }
    img.crt-bg-img {
        position: absolute;
        right: 1%;
        top: 2%;
    }
    .contact-form {
        padding: 30px 10px;
        margin-top: 0;
    }
    img.footer-icon2 {
        position: absolute;
        bottom: 1%;
        left: 3%;
    }
    img.footer-icon1 {
        position: absolute;
        bottom: 3%;
        left: 1%;
    }
    .top-bar .right a {
        display: none;
    }
    .hero-buttons {
        display: block;
    }
    .col-sm-6, .col-sm-3, .col-sm-4,.col-sm-8 {
        width: 100%;
    }
    section.previously_work .col-sm-3 {
        width: 50%;
    }
    .certified_section .col-sm-4.text-center {
        width: 33% !important;
    }
    footer {
        text-align: center !important;
    }
    footer .col-sm-2 {
        width: 100% !important;
    }
    .services_block {
        margin: 0 auto;
    }
    div#hero-buttons_nav {
        margin-top: 10px;
        text-align: center;
    }
    .hero-buttons_nav button.btn.btn-book {
        width: 130px;
        font-size: 12px;
    }
	.service_details.col-2 {
		flex: 100% !important;
		max-width: 100% !important;
	}
    .expanded .services_block {
        display: block !important;
        position: relative !important;
    }
    .expanded .para_content p {
        max-width: 100% !important;
        margin-left: 0 !important;
    }
    .expanded .services_block p {
        margin-left: 0 !important;
        position: relative !important;
        top: 0px !important;
        left: 0px !important;
        font-size: 10px !important;
        margin-top: 10px;
    }
    .expanded .services_block p {
        margin-left: 0px !important;
        margin: 0;
        line-height: 10px;
        font-size: 10px !important;
        margin-top: 10px;
    }
    .expanded .services_block h3 {
        margin-top: -12px !important;
        max-width: 100% !important;
        width: 85% !important;
        text-align: center !important;
        font-size: 18px !important;
    }
    .container_box {
        display: block !important;
        overflow: hidden;
    }
    .services_item {
        padding: 10px;
    }
    img.testimonial-img {
        position: absolute;
        top: -140px !important;
        left: -27px !important;
        z-index: -1;
        width: 21%;
    }
    section#Testimonials {
        padding: 10px !important;
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
}
@media (min-width: 768px) and (max-width: 1024px) {
    .hero-buttons_nav a#custom-book-btn {
        width: 159px;
        font-size: 14px;
        height: 42px;
    }
    .hero-buttons a#custom-book-btn {
        width: 154px;
        font-size: 12px;
        height: 40px;
    }
    button.btn.btn-message {
        width: 156px;
        font-size: 12px;
    }
    button.btn.btn-book {
        font-size: 12px;
        width: 156px;
        margin-left: 0px !important;
    }
   .btn .btn-book{
        border-radius: 6px;
        height: 40px;
        width: 154px;
        margin-left: 0;
        font-family: inter;
        font-size: 12px;
        font-weight: 400;
    }
    button.btn.btn-message {
        border-radius: 6px;
        height: 40px;
        width: 154px;
        margin-left: 0;
        font-family: inter;
        font-size: 12px;
        font-weight: 400;
    }
    .hero-buttons_nav button.btn.btn-message {
        margin-left: 0;
    }
    .services_item {
        padding: 10px;
    }
    p.para-content-hide {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
    .services_item.text-center.container_box {
        overflow: hidden;
    }
    button.btn.btn-message {
        margin-left: 0px;
    }
    .hero-buttons_nav button.btn.btn-book {
        font-size: 15px;
        height: 40px;
        width: 159px;
    }
    .hero-buttons_nav button.btn.btn-message {
       width: 159px;
        font-size: 14px;
        margin-top: 0px;
    }
    .hero-section .col-sm-5 {
        flex: 0 0 auto;
        width: 100%;
    }
    .expanded .services_block p {
        margin-left: 29px !important;
        font-size: 10px;
        line-height: 6px;
        position: relative;
        left: -62px;
        display: none !important;
    }
    .para_content {
        padding: 10px;
    }
    div#para_content p {
        font-size: 12px;
        line-height: 19px;
    }
    .hero-content h1 {
        font-size: 29px;
        line-height: 56px;
        padding-top: 0;
    }
    .hero-content p {
        font-size: 16px;
    }
    .hero-section {
        padding-bottom: 24px;
    }
    section#appointment-section {
        padding-top: 100px;
    }
    button.btn.btn-message {
     margin-left: 0px; 
    }
    .services_item h3 {
        font-size: 15px;
        line-height: 23px;
    }
    .slider-nav {
        float: right; 
        position: unset;
    }
    .contact-form {
        padding: 50px 20px;
        margin-top: 30px;
    }
    .col-sm-4.footer-logo img {
        width: 80%;
    }
}


img.testimonial-img {
    position: absolute;
    top: -44px;
    left: -49px;
    z-index: -1;
}
/* 10-02-24 */


.service_details {
  transition: all 0.3s ease;
}

/* When expanded, you might want the item to occupy more space */
.service_details.expanded {
  /* Example: override the Bootstrap grid */
  flex: 0 0 50%;
  /* max-width: 50%; */
}

/* When collapsed, the item shows only the image */
.service_details.collapsed {
  /* Example: a smaller width */
  flex: 0 0 25%;
  max-width: 25%;
}


/* For collapsed items: adjust width as desired */
.service_details.col-2 {
  /* Example: force a smaller width. Adjust these values as needed */
  flex: 0 0 16.666667%; /* 2 out of 12 columns */
  max-width: 16.666667%;
}
/* .col-sm-3.service_details.expanded .services_block p{
    width: 135px !important;
} */



    .expanded .services_block{
    display: flex;
    position: absolute ;
}   
.expanded .services_block img {
    position: relative !important;
    margin-top: 40px !important;
    margin-left: 27px;
} 
    .expanded .services_block h3{
    margin-top: 103px ;
    position: absolute ;
    max-width: 80px;
}   
    .expanded .services_block p{
    margin-left: 90px ;
}   
    .expanded .para_content p{
    max-width: 480px ;
    margin-left: 112px ;
}   

/* .services_item.text-center.container_box .services_block img{ */
      /* min-width: 100px;
    position: absolute;
    margin-top: 50px;
    margin-left: 20px; */
/* }    */

p.para-content-hide {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

/* 19-feb  */
.service_details {
    transition: all 0.3s ease-in-out;
    position: relative; /* Ensures child elements like the close button position properly */
}

.expanded {
    flex-grow: 1;
    position: relative; /* Ensures close button stays inside */
}

.collapsed {
    flex-grow: 0.5;
}

.para_content {
    display: none;
    padding: 10px;
    border-radius: 5px;
}

/* Correct Close Button Position */
.close-btn {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10; /* Ensures it stays above other content */
}

/* Show the close button only when expanded */
.expanded .close-btn {
    display: block;
}
.expanded .service-item-img {
    width: 30%;
    margin: 0 auto;
}
.expanded .services_block h3 {
    margin-top: 103px;
    position: absolute;
    max-width: 136px;
    left: 24px;
    text-align: center;
}
.expanded .services_block p {
    margin-left: 90px;
    opacity: 0;
}
.para_content {
    width: 70%;
    text-align: justify;
 
    margin: 0 auto;
    position: relative;
    top: 31px;
}
.expanded .close-btn {
    display: block;
    background: transparent;
    color: #000;
    position: absolute;
    top: 10px;
    right: 15px;
}