/*-before-after-*/
.before-after-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-width: 100%; /* Adjust as needed */
    margin:80px 0px;
    border-radius: 10px;
    box-shadow: 0 8px 40px 0 #cdb6a3;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.before-image img,
.after-image img {
    width: 100%;
    height: auto;
    display: block;
}

.after-image {
    clip-path: inset(0 100% 0 0); /* Initially hide the after image */
}

.slider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    background-color: #000;
    cursor: ew-resize;
    height: 100%;
}

.slider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -9px;
    width: 20px;
    height: 20px;
    background-color: #000;
    border-radius: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

@media only screen and (max-width:767px){
    .before-after-card {
        margin: 40px 0px 50px 0px;
    }
    
    .slider::before {
        width: 15px;
        height: 15px;
        left: -7px;
    }
}

/*-facts-check-*/
.facts-cont{
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    grid-row-gap: 30px;
    grid-column-gap: 30px;
}

.factcols{
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    grid-column-gap: 20px;
    grid-row-gap: 5px;
}

.fact_numb{
    font-size: 50px;
}


.fact_hr{
    background-color: #c6c3ba;
    position: relative;
    width: 100%;
    height: 1px;
}

@media only screen and (max-width: 899px) {
    .factcols {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    
    .fact_numb{
        font-size: 35px;
    }
}

@media only screen and (max-width: 767px) {
    .factcard{
        grid-template-columns: 1fr;
    }
    .factcols{
        display: flex;
        flex-direction: column;
    }
    .fact_hr {
        width: 1px;
        height: 20px;
        margin: auto;
    }
    .fact_numb{
        font-size: 25px;
    }
    .factcols span{
        font-size: 14px;
    }
}


/*-service-horizontal-list-3-cols-*/
.service-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-row-gap: 24px;
    grid-column-gap: 24px;
    margin-top: 44px;
    margin-bottom: 44px;
}

.service-item {
    padding: 34px 34px;
    background: hsl(0deg 0% 81.39% / 15%);
    border: 1px solid #e9e9e9;
    border-radius: 8px;
}

.service-item h3{
    font-size: 30px;
    font-weight: 700;
}

.service-item a::before{
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: hsl(0deg 0% 0% / 16%);
    transition: width 0.3s ease-in-out;
}
    
.service-item p{
    margin-top: 15px;
    font-size: 18px;
}

.sub-list-item{
    display: flex;
    flex-wrap: wrap;
    grid-row-gap: 13px;
    grid-column-gap: 15px;
    margin-top: 24px;
    font-size: 18px;
    font-weight: 500;
    border-top: 1px solid hsl(0deg 0% 0% / 10.98%);
    padding-top: 24px;
}

.sub-list-item li {
  list-style: none;
  padding-left: 1.3em;
  position: relative;
}

.sub-list-item li::before {
    content: '✓';
    position: absolute;
    font-size: 14px;
    top: 20%;
    left: 0%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4ecdc40a 0%, #aaaaaa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width:1080px){
    .service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width:767px){
    .service-list {
        grid-template-columns: repeat(1, 1fr);
    }
}

/*-Process-timeline-*/
.timeline {
    position: relative;
    border-left: var(--outline);
    margin-left: 25px;
    padding-left: 30px;
    width: fit-content;
    margin: auto;
    margin-top:44px;
    margin-bottom:44px;
}

.step {
    position: relative;
    margin-bottom: 60px;
}

.step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -50px;
    top: -8px;
    width: 40px;
    height: 40px;
    background: var(--main);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.step-content ul {
    list-style: disc;
    padding-left: 20px;
}

.step-content ul li {
    margin-bottom: 8px;
    list-style: disc;
}

@media (max-width: 600px) {
    .step-number {
        left: -45px;
        top: -3px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

/*-testimonials-*/
.testimonial-head{
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 44px;
}

.testi-slide-btns{
    display: flex;
    grid-column-gap: 10px;
}

.testimonial-btm{
    display: grid;
    grid-template-columns: 0.8fr 2fr;
    justify-content: space-between;
    grid-column-gap: 20px;
    grid-row-gap: 30px;
    margin-top:44px;
}

.dbm-review-card{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    grid-row-gap: 44px;
    height: 420px;
    width: 350px;
    background: #f5f5f5;
    padding: 22px;
    border-radius: 10px;
}

.review-card-info{
    display: flex;
    align-items: center;
}

.overlay-images {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    margin-right: 20px;
}

.overlay-image{
    width: 60px;
    height: 60px;
    margin-left: -30px;
    border-radius: 10rem;
    position: relative;
    overflow: hidden;
    border: 3px solid hsl(0deg 0% 68.45% / 24%);
}

.review-card-desc{
    display: flex;
    align-items: flex-start;
    grid-row-gap: 2px;
    flex-direction: column;
}

.review-stars{
    display: inline;
    font-family: var(--main-font);
    color: #f2aa00;
}

.review-trust{
    font-size: 14px;
    display: inline;
    font-weight: 500;
}

@media only screen and (max-width:767px){
    .overlay-image{
        width: 65px;
        height: 65px;
    }
}

.clutch-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.71rem;
    border: 1px solid #e3e3e3;
    border-radius: 5px;
    transition: all 0.3s;
}

.clutch-rating:hover{
    background-color: #007bff36;
}

/*-testimonial-slider-*/
.testimonial-cont {
    position: relative;
    margin: auto;
    overflow: hidden;
    width: -webkit-fill-available;
    width: 100%;
    max-width: 900px;
}

.testi-cont-wrapper {
    overflow: hidden;
}

.testimonial-list{
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.testimonial-item {
    flex: 0 0 50%;
}

.testimonial-item-info{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #f5f5f5;
    padding: 22px;
    border-radius: 10px;
    height: 420px;
    margin-right:10px;
}

.testimonial-item-info p{
    font-size: 26px;
    font-weight: 600;
    color: var(--main);
    margin-top: 18px;
}

.testimonial-reviewer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    padding-bottom: 20px;
    margin-bottom: 10px;
}

.testimonial-rv-rating{
    display: flex;
    grid-column-gap: 5px;
    font-weight: 700;
    line-height: 1;
    font-family: var(--main-font);
}
.testimonial-rv-rating span{
    color: #f2aa00;
}

.testi-button {
    background: #000;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.testi-button svg {
    width: 20px;
    height: 20px;
}

.testi-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media only screen and (max-width:1080px){
    .testimonial-item {
        flex: 0 0 100%;
    }
}

@media only screen and (max-width:768px){
    .testimonial-btm{
        grid-template-columns: 1fr;
    }
    .dbm-review-card{
        width: 100%;
        width: -moz-available;
        width: -webkit-fill-available;
        height: auto;
        order:2;
    }
    .testimonial-item-info{
        height: 340px;
        margin-right: 0px;
    }
    .testimonial-item-info p {
        font-size: 22px;
    }
}

/*-Service-blog-*/
.service-blog-cont{
    display: grid;
    grid-template-columns: 2fr 0.1fr;
    grid-column-gap: 105px;
    grid-row-gap: 34px;
    margin-bottom: 80px;
}

/*-services-blog-content-*/
.single_content{
    overflow: hidden;
}

.single_content figure{
    margin: 24px 0px;
}

.single_content img{
    width:100%;
    width:-moz-available;
    width: -webkit-fill-available;
    margin: 24px 0px;
    border-radius: 8px;
}

.single_content h2{
    font-size: 50px;
    margin-top: 50px;
    margin-bottom: 15px;
}

.single_content h2:first-child{
    margin-top: 0px;
}

.single_content h3{
    font-size: 32.83px;
    margin-top: 40px;
    margin-bottom: 15px;
}
.single_content h4{
    margin-top: 30px;
    margin-bottom: 15px;
}
.single_content h5,
.single_content h6{
    margin-top: 30px;
    margin-bottom: 15px;
}

.single_content p,
.single_content ul,
.single_content ol{
    margin-bottom: 20px;
}

.single_content p:last-child{
    margin-bottom:0px;
}

.single_content ul li,
.single_content ol li{
    list-style-type: square;
    margin-left: 21px;
    margin-bottom: 15px;
}

.single_content ul li:first-child,
.single_content ol li:first-child{
    margin-top:20px;
}
.single_content ul li:last-child,
.single_content ol li:last-child{
    margin-bottom:40px;
}

.single_content a {
    color: var(--hover);
}
.single_content a:hover {
    text-decoration:underline;
}

.single_content blockquote{
    display: block;
    margin: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid #5c6ac4;
}

@media only screen and (max-width:1080px){
    .single_content h2{
        font-size: 38px;
    }
}

@media only screen and (max-width:767px){
    .single_content h2{
        font-size: 32px;
    }
    
    .single_content h3{
        font-size: 28px;
    }
}

/*-table-of-content-*/
.dtoc{
    width: 220px;
    position: sticky;
    top: 40px;
    bottom: 40px;
}

.dtoc p{
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 20px;
    border-bottom: var(--outline);
    margin-bottom: 20px;
}

#toc-list{
    display: grid;
    grid-template-columns: 1fr;
    grid-row-gap: 12px;
}

#toc-list a{
    font-size: 16px;
    font-weight: 500;
    display: flex;
    line-height: 1.2;
    transition: color 0.3s;
}

#toc-list a:hover{
    font-weight: 700;
    color: var(--main);
}

#toc-list a.active {
    font-weight: 700;
    color: var(--main);
}

@media only screen and (max-width:1080px){
    .service-blog-cont {
        display: flex;
        flex-direction: column-reverse;
        margin-bottom: 50px;
    }

    .dtoc{
        width: auto;
    }
    .dtoc p {
        position: relative;
        cursor: pointer;
        transition: color 0.3s ease;
    }
    .dtoc p::after {
        content: "+";
        position: absolute;
        right: 0;
        font-size: 20px;
        color: var(--d-text);
        transition: transform 0.3s ease, color 0.3s ease;
    }
    .dtoc p.active::after {
        content: "-";
        transform: rotate(180deg);
    } 
    #toc-list.open {
        max-height: 700px;
        opacity: 1;
        overflow: hidden;
        overflow-y: visible;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }
    #toc-list {
        margin-left: 0px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }
}

/*-content-table-*/
table {
    width: fit-content;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    font-size: 17px;
    border-radius: .375rem;
    background: var(--bg);
    overflow: hidden;
    margin-bottom: 24px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

th, td {
  padding: 10px 15px;
  text-align: left;
  border: var(--outline);
}

table thead {
    background: #b0acac;
}

th:first-child {
  border-top-left-radius: .375rem;
}

th:last-child {
  border-top-right-radius: .375rem;
}

tr:last-child td:first-child {
  border-bottom-left-radius: .375rem;
}

tr:last-child td:last-child {
  border-bottom-right-radius: .375rem;
}


@media screen and (max-width: 767px) {
  table {
      width:100%;
    font-size: 14px;
  }
}

/*-related-articles-*/
.insights-top{
    display: flex;
    justify-content: space-between;
    align-items: center;
    grid-column-gap: 44px;
    margin-bottom: 13px;
}

.insight-head{
    font-size: 38.4px;
    font-family: var(--main-font);
    font-weight: normal;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 24px;
    grid-row-gap: 24px;
}

.article-list article{
    position: relative;
}
.article-list .entry-header {
    display: flex;
    flex-direction: column;
    grid-row-gap: 10px;
    margin-top: 20px;
}

.article-thumbnail{
    width: 100%;
    width: -webkit-fill-available;
}

.article-list .entry-title{
    font-size:30px;
}

.article-list .entry-title a::after{
    bottom: 0;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 2;
}

.article-list .entry-title a:hover{
    color: var(--hover);
    text-decoration: underline;
}

.article-list .entry-summary{
    font-size:18px;
}

.article-list .entry-meta{
    display: flex;
    align-items: center;
    gap: 11px;
}

.article-list .entry-meta span{
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.article-list .reading-time::before{
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #a6a6a6;
    border-radius: 50%;
    margin-right: 11px;
}

@media only screen and (max-width:768px){
    .insight-head{
        font-size: 30px;
    }
    .article-list {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .article-list .entry-title{
        font-size:28px;
    }
    
    .article-list .entry-summary{
        font-size:16px;
    }
    
    .article-list .entry-meta span{
        font-size: 16px;
    }
}