
/* Hero */
.hero-sec.service-bnr {
    position: relative;
    padding: 120px 0;
}

.service-bnr .overlay:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    left: 0;
    top: 0;
    opacity: 60%;
}

/* Service One */
.ser-one-sec {
    padding: 140px 0;
    background-size: 6%;
}

.ser-one-sec .cstm-container {
    padding-top: 60px;
}

.roofing-service {
    display: flex;
    gap: 24px;
    align-items: start;
}

/* LEFT */
.roofing-service-tabs {
    max-width: 280px;
    width: 100%;
    padding: 16px;
    background-color: #00000017;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
}

.roofing-service-tabs .tab {
    cursor: pointer;
    transition: 0.3s;
    padding: 12px 12px 12px 35px;
    position: relative;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease-in-out 0.1s;
}

.roofing-service-tabs .tab:before {
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    background: #b5b4b4;
    left: 13px;
    top: 49%;
    transform: translateY(-50%);
    border-radius: 50%;
}

.roofing-service-tabs .tab.active {
    background: var(--primary);
    color: #fff;
    margin-bottom: 8px;
}

.roofing-service-tabs .tab.active::before {
    background-color: #fff;
}

/* RIGHT */
.roofing-service-content {
    flex: 1;
    position: relative;
}

.rof-ser-card {
    display: none;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0 0 0 / 10%);
}

.rof-ser-card.active {
    display: flex;
}


.rof-ser-card>img {
    width: 300px;
    max-height: 380px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 16px;
}

.rof-ser-card-ctnt {
    padding: 20px;
}

.rof-ser-card-ctnt h5 {
    margin-bottom: 10px;
}

.rof-ser-card p:not(:last-child) {
    margin-bottom: 8px;
}

.rsc-content {
    max-height: 240px;
    /* height: 100%; */
    overflow-y: auto;
}

.rof-ser-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 20px;
    background: var();
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}


/* Service Two */
.ser-sec-two .cstm-container{
    padding-top: 80px;
}
.ser-two-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.ser-img,
.ser-rating-box {
    border-radius: 20px;
    overflow: hidden;
}

.ser-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ser-img:hover img {
    transform: scale(1.05);
}

.ser-img:first-child {
    grid-column: 1 / 3;
    height: 320px;
}

.ser-img:nth-child(2) {
    grid-column: 1 / 2;
    height: 200px;
}

.ser-rating-box {
    grid-column: 2 / 3;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: var(--gradient);
    box-shadow: 0 0 14px 0 rgba(0, 0, 0, 0.10);
    padding: 24px;
}

.rating-no {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-align: center;
}

.ser-rating-box p {
    color: #fff;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
    line-height: 1.4;
}

/* Service Three Section */
.ser-three-sec {
    background-color: #EFEDED;
}

.ser-three-sec .cstm-container {
    padding-bottom: 60px;
}

.ser-sec-three__wrapper {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.ser-sec-three__accordion {
    width: 70%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ser-sec-three__acc-item {
    background: #F8F8F8;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    padding: 24px 24px 24px 75px;
    position: relative;
}

.ser-sec-three__acc-item>span {
    border-radius: 30px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background-color: #C0BBBB;
    position: absolute;
    left: 20px;
    top: 22px;
    font-size: 15px;
    transform: rotate(90deg);
    transition: all 0.3s ease-in-out 0.1s;
}

.ser-sec-three__acc-item.active>span {
    background: var(--gradient);
    transform: rotate(0deg);
}

.ser-sec-three__acc-header {
    font-weight: 600;
    font-size: 20px;
}

.ser-sec-three__acc-item.active .ser-sec-three__acc-header {
    color: var(--primary);
}

.ser-sec-three__acc-body {
    margin-top: 6px;
    display: none;
    color: #555;
    font-size: 16px;
}

.ser-sec-three__acc-item.active {
    background: #fff;
}

.ser-sec-three__acc-item.active .ser-sec-three__acc-body {
    display: block;
}

.ser-sec-three__images {
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
}

.ser-sec-three__images img {
    height: 400px;
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
}


/* Why Choose */
.page-template-service .why-sec {
    margin-top: -120px;
}

/* Responsive */

@media(max-width:1199px) {
     /* Service Teamplate Sections */
    .roofing-service {
        gap: 16px;
        flex-direction: column;
        margin-top: 24px;
    }

    .roofing-service-tabs {
        max-width: 600px;
        margin: 0 auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .roofing-service-tabs .tab {
        max-width: calc(100% / 2 - 10px);
        width: 100%;
    }
}


@media(max-width: 991px) {
    /* Section One */
    .ser-one-sec{
        background-size: 15%;
        padding-bottom: 80px;
    }


     /* Service Section Two */
    .ser-sec-two .about-row {
        flex-direction: column-reverse;
        padding-top: 40px;
    }

    /* Service Section Three */
    .ser-three-sec {
        padding-bottom: 140px !important;
    }

    .ser-sec-three__wrapper {
        flex-direction: column;
    }

    .ser-sec-three__accordion,
    .ser-sec-three__images {
        max-width: 100%;
        width: 100%;
    }
}

@media(max-width: 767px) {
    /* Service Section One  */
    .ser-one-sec .cstm-container {
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .rof-ser-card {
        flex-direction: column;
    }

    .rof-ser-card>img {
        width: 100%;
        height: 250px;
    }

    #services + .divider {
        height: 60px;
    }

    /* Service Section Two */
    .ser-sec-two .cstm-container {
        padding-top: 0px;
    }

    .ser-sec-two .ser-img img {
        max-height: 320px;
    }

    /* Testimonial Sec */
    #testimonial .sec-heading {
        padding-top: 40px;
    }
}


@media(max-width: 575px) {

    /* Hero */
    .service-bnr .hero-ctnt {
        padding: 42px 16px;
        background: #0000007a;
        border-radius: 20px;
        backdrop-filter: blur(4px);
    }

    .hero-sec .icon-list{
        grid-template-columns: 1fr;
    }

    .hero-bnr  .icon-list li{
        justify-content: center;
    }

    /* Section One */
    .ser-one-sec {
        background-size: 45%;
        padding-bottom: 60px;
    }
    
    .roofing-service-tabs .tab {
        max-width: 100%;
    }

    .why-sec:after,
    footer:after{
        background-size: 12%;
    }


    /* Service Sec Three */
    .ser-three-sec .cstm-container {
        padding-bottom: 0;
    }

    .ser-sec-three__images img {
        height: 300px;
    }

    .ser-two-image {
        grid-template-columns: 1fr;
    }

    .ser-img:first-child,
    .ser-img:nth-child(2),
    .ser-rating-box {
        grid-column: auto;
        height: auto;
    }
}

@media(max-width: 481px) {
    /* Service Three Section */
    .ser-sec-three__accordion {
        gap: 28px;
    }

    .ser-sec-three__acc-item {
        padding: 24px 20px 20px;
    }

    .ser-sec-three__acc-item>span {
        top: -14px;
    }
}