/*=================About Parallax Background ============*/
.services-parallax-wrapper {
    position: relative;
    background-image: url('../../img/services-background.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
}

.services-parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
    pointer-events: none;
}

.services-parallax-wrapper > section {
    position: relative;
    z-index: 1;
}



/* Start single service page css */
.mb-90 {
    margin-bottom: 90px !important;
}
/* ======= Projects style  ======= */
.section-padding{
    padding: 120px 0;
}
.projects {
    position: relative;
}
.projects:last-child {
    margin-bottom: 0px;
}
.projects figure {
    margin: 0;
    position: relative;
    width: 60.666667%;
    margin-left: auto;
}
.projects.left figure {
    margin-left: 0;
    margin-right: auto;
}
.projects .numbers{

}
/*.projects .numbers-r-side{
    font-size: 114px;
    position: absolute;
    top: 0;
     right: 245px;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(0 0 0 / 0.5);
    color: transparent;
}
.projects .numbers-l-side{
    font-size: 114px;
    position: absolute;
    top: 0;
     left: 245px;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgb(0 0 0 / 0.5);
    color: transparent;
}*/
.projects .caption {
    background: #fff;
    position: absolute;
    left: 0;
    top: 45%;
    width: 50%;
    padding: 5% 4% 5% 4%;
    -ms-transform: translate(0, -50%);
    -webkit-transform: translate(0, -50%);
    transform: translate(0, -50%);
}
.projects.left .caption {
    left: auto;
    top: 45%;
    right: 0;
    background: #fff;
    padding: 5% 4% 5% 4%;
}
.projects .caption.padding-right {
    padding-right: 0%;
}
.projects .caption.padding-left {
    padding-left: 0%;
}
.projects .caption h4,
.projects .caption h4 a {
    font-size: 27px;
    color: #000;
    margin-bottom: 20px;
}
.projects .caption h4 span {
    color: #ed5521;
}

/*============= End All Services area css =============*/

/*=================Service Section Styles ============*/
.service-section {
    border-bottom: none;
}

.service-separator {
    height: 1px;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    margin: 60px 0;
    width: 100%;
}

.service-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: cover;
}

.image-bx {
    text-align: center;
}

.image-bx img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*=================Before/After Carousel Size Constraint ============*/
.before-after-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* Allow overflow for navigation buttons */
.container:has(.before-after-carousel) {
    overflow: visible !important;
}

.row:has(.before-after-carousel) {
    overflow: visible !important;
}

.col-lg-12:has(.before-after-carousel) {
    overflow: visible !important;
}

.before-after-pair {
    display: flex;
    gap: 20px;
    padding: 0 10px;
}

.before-section,
.after-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.before-after-label {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    margin-top: 12px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.before-section .before-after-label {
    color: #666;
    font-weight: 500;
}

.after-section .before-after-label {
    color: #666;
    font-weight: 500;
}

.before-after-img {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.before-after-img img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}

/* Carousel Navigation Buttons - Matching testimonials structure */
.before-after-carousel {
    position: relative;
}

.before-after-carousel .owl-nav {
    position: absolute;
    left: 0px;
    right: 0px;
    top: 50%;
    margin: auto;
}

.before-after-carousel .owl-nav .owl-prev,
.before-after-carousel .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(106, 137, 167, 0.8) !important;
    backdrop-filter: blur(5px);
    color: #fff !important;
    border-radius: 50%;
    font-size: 22px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    line-height: 50px;
    text-align: center;
}

.before-after-carousel .owl-nav .owl-prev {
    left: -70px;
}

.before-after-carousel .owl-nav .owl-next {
    right: -70px;
}

.before-after-carousel .owl-nav .owl-prev:hover,
.before-after-carousel .owl-nav .owl-next:hover {
    background: rgba(90, 121, 151, 0.95) !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .before-after-carousel {
        max-width: 100%;
        padding: 0 16px;
    }

    /* Stack: BEFORE (image + label), arrows, AFTER */
    .before-after-pair {
        flex-direction: column;
        gap: 0;
        padding: 0 8px 0;
        align-items: stretch;
    }

    .before-section {
        margin-bottom: 64px; /* creates room for arrows */
    }

    .after-section {
        margin-top: 8px;
    }
    
    .before-after-label {
        font-size: 14px;
        margin-top: 8px;
    }

    .before-after-img img {
        max-height: 220px;
    }

    /* Visually position arrows in the gap between BEFORE and AFTER */
    .before-after-carousel .owl-nav {
        position: absolute;
        top: 50%;
        left: 24px;  /* align with image edge (carousel + pair padding) */
        right: 24px; /* align with image edge (carousel + pair padding) */
        transform: translateY(-50%);
        display: block;
        pointer-events: none; /* allow buttons to stay clickable but container not block */
    }

    .before-after-carousel .owl-nav .owl-prev,
    .before-after-carousel .owl-nav .owl-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 18px;
        pointer-events: auto;
    }

    .before-after-carousel .owl-nav .owl-prev {
        left: 0;
    }

    .before-after-carousel .owl-nav .owl-next {
        right: 0;
    }
}

/*=================FAQ Parallax Background ============*/
.faq-parallax-wrapper {
    position: relative;
    background-image: url('../../img/faq-background.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: auto;
}

.faq-parallax-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 0;
    pointer-events: none;
}

.faq-parallax-wrapper > * {
    position: relative;
    z-index: 1;
}

/* Make FAQ Accordion Clear - Transparent Background */
.faq-parallax-wrapper .accordion {
    margin-top: 30px;
}

.faq-parallax-wrapper .card {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 20px;
    box-shadow: none;
    overflow: visible;
}

.faq-parallax-wrapper .card-header {
    background: transparent !important;
    border: none;
    border-bottom: 2px solid rgba(106, 137, 167, 0.5);
    border-radius: 0;
    padding: 0;
}

.faq-parallax-wrapper .card-header.bg-blk {
    background: transparent !important;
}

.faq-parallax-wrapper .card-body {
    background: transparent;
    border-radius: 0;
    padding: 30px !important;
    border-bottom: 2px solid rgba(106, 137, 167, 0.5);
}

.faq-parallax-wrapper .card-header a {
    color: #333 !important;
    padding: 20px 25px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-right: 50px !important;
}

.faq-parallax-wrapper .card-header a::after {
    content: '+';
    font-size: 24px;
    font-weight: bold;
    color: #9bbbe3;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.faq-parallax-wrapper .card-header a.collapsed::after {
    content: '+';
}

.faq-parallax-wrapper .card-header a:not(.collapsed)::after {
    content: '−';
}

.faq-parallax-wrapper .card-header.bg-blk a {
    color: #333 !important;
}

/*=================Payment Logos Section ============*/
.payment-logos-wrapper {
    min-height: 300px !important;
    padding-bottom: 0 !important;
}

.payment-logos-section {
    padding: 40px 0;
    margin-bottom: 0;
}

.payment-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.payment-logo {
    max-width: 400px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.payment-logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .payment-logo {
        max-width: 280px;
        max-height: 130px;
    }
    
    .payment-logo-item {
        padding: 20px;
    }
}

/*=================PDF Download Section ============*/
.pdf-download-section {
    margin-top: 40px;
}

.pdf-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
}

.pdf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pdf-preview {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #f5f5f5;
    border-bottom: 2px solid #e9ecef;
}

.pdf-preview embed {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-content {
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pdf-card h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    min-height: 50px;
}

.pdf-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--bg-color-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
}

.pdf-download-btn:hover {
    background-color: #8fb3c7;
    color: #fff;
    text-decoration: none;
    transform: scale(1.05);
}

.pdf-download-btn i {
    font-size: 16px;
}

/*=================Banner Video for Mobile ============*/
.banner_area.banner_services {
    position: relative;
    overflow: hidden;
}

.banner_area.banner_services .banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.banner_area.banner_services .container {
    position: relative;
    z-index: 2;
}

/* Hide background image on mobile, show video */
@media (max-width: 991px) {
    .banner_area.banner_services {
        background: none !important;
    }
    
    .banner_area.banner_services::before {
        background: rgba(0, 0, 0, 0.3);
    }
}

/* Show background image on desktop, hide video */
@media (min-width: 992px) {
    .banner_area.banner_services .banner-video {
        display: none;
    }
}

@media (max-width: 768px) {
    .pdf-card {
        margin-bottom: 20px;
    }
    
    .pdf-card h4 {
        min-height: auto;
    }
    
    .pdf-preview {
        height: 250px;
    }
    
    .service-separator {
        margin: 40px 0;
    }
}


@media (max-width: 1024px){


.projects .numbers-r-side{
    right: 155px;
}
.projects .numbers-l-side{
    left: 32px;
}

    }

/* Style sheet for tablet device*/

@media (max-width: 991px){

.projects .numbers{
    display: none;
}
    }

@media only screen and (min-width: 320px) and (max-width: 735px) {

.mb-90 {
    margin-bottom: 30px !important;
}
.projects figure{
    width: auto;
}
.projects .caption, .projects.left .caption {
    background: #f5f5f5;
}
.projects .caption{
    position: relative;
    top: 0;
    width: auto;
    transform: translate(0, 0);
}

    }