.services-archive-page,
.blog-page,
.single-blog-page,
.about-us-page,
.page-faq,
.privacy-policy-page,
.page-header {
    text-align: center;
    position: relative;
    padding-top: 110px;
    background-color: #ffffff;
}


.services-page-header-container,
.single-service-header-container,
.blog-page-header-container,
.single-blog-header-container,
.about-us-header-container,
.page-faq-title,
.privacy-policy-header-container,
.page-header-container {
    background-color: #111;
    height: 130px;
    width: 100%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-page-title,
.single-service-title,
.blog-page-title,
.single-blog-title,
.about-us-title,
.page-faq-title,
.privacy-policy-title,
.page-header-title {
    font-family: 'Gilroy', sans-serif;
    color: #fff;
    font-size: 55px;
    font-weight: 700;
    margin: 0;
}


.service-card-section {
    max-width: 1200px;
    margin: 0 auto;
}


.service-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 82px 15px 50px 15px;
    max-width: 1200px;
    margin: 0 auto;
}


.service-page-card {
    background-color: #fff;
    border-radius: 12px;
    height: 470px;
    overflow: hidden;
    color: #282828;
    text-align: left;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 95%;
    /* grid controls width */
}

.service-page-card:hover {
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
}

/* Card Image */
.service-page-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Icon Circle */
.home-page-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    border: 2px solid #ff3366;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 170px;
    left: 15%;
    transform: translateX(-50%);
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Card Sprite Icons */
.service-section-main-icon {
    width: 60px;
    height: 60px;
    background: url('../assets/icon-sprite.png') no-repeat;
    background-size: 350px 300px;
    position: absolute;
    transition: all 0.3s ease;
    filter: invert(45%) sepia(89%) saturate(2574%) hue-rotate(338deg) brightness(98%) contrast(93%);
}

.service-section-main-icon.card1 {
    background-position: -215px -5px;
}

.service-section-main-icon.card2 {
    background-position: -72px -161px;
}

.service-section-main-icon.card3 {
    background-position: -73px -5px;
}

.service-section-main-icon.card4 {
    background-position: -143px -161px;
}

.service-section-main-icon.card5 {
    background-position: -288px -5px;
}

/* Card Content */
.service-page-content {
    margin-top: 50px;
    padding: 0 20px 20px;
}

.service-page-content h3 {
    font-family: 'Gilroy', sans-serif;
    font-size: 30px;
    line-height: 33px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #282828;
}

.service-page-content p {
    font-size: 20px;
    line-height: 30px;
    font-weight: 300;
    color: #282828;
}

.readmore-ctn {
    margin-top: 10px;
    font-weight: 600;
    color: #ff3366;
    cursor: pointer;
    transition: color 0.3s;
}

.readmore-ctn:hover {
    color: #e60050;
}

.single-service-sec-5 {
    padding: 60px 0;
}

.single-service-sec-5 .service-slider {
    padding: 10px;
    min-height: 200px;
}

/* Large screens: below 1200px */
@media (max-width: 1200px) {
    .service-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 28px;
    }

    .service-page-content h3 {
        font-size: 25px;
        line-height: 28px;
    }

    .service-page-content p {
        font-size: 17px;
        line-height: 26px;
    }
}

/* Medium screens: below 992px */
@media (max-width: 992px) {
    .service-cards-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .services-archive-page,
    .blog-page,
    .about-us-page,
    .page-faq,
    .privacy-policy-page {
        padding-top: 50px;
    }


    .single-blog-page {
        padding-top: 90px;
    }


    .single-service-title,
    .services-page-title,
    .blog-page-title,
    .single-blog-title,
    .about-us-title,
    .page-faq-title,
    .privacy-policy-title {
        font-size: 46px;
    }

}


@media (max-width: 767px) {
    .service-cards-container {
        grid-template-columns: 1fr;
        gap: 30px 0;
    }

    .single-blog-page {
        padding-top: 70px;
    }

    .service-page-card {
        max-width: 100%;
        height: auto;
    }

    .home-page-icon-circle {
        top: 150px;
    }

    .single-service-title,
    .services-page-title {
        font-size: 40px;
    }

    .single-blog-header-container{
        height: 200px;
    }
}

/* Extra small screens: below 480px */
@media (max-width: 480px) {
    .service-cards-container {
        gap: 25px 0;
        padding: 60px 15px 40px 15px;
    }

    .single-service-title,
    .services-page-title {
        font-size: 36px;
    }

}




/* ==================================================================== 
   =                                                                  =
   =                         Single Service Page                      =
   =                                                                  =
   ====================================================================  */




.single-service {
    text-align: center;
    position: relative;
    padding-top: 50px;
    background-color: #ffffff;
}

/*------------------------------------Section Image gallery-------------------------------*/
.service-gallery-grid {
    padding: 60px 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
}


.service-gallery-grid .gallery-item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 5;
}

.service-gallery-grid .gallery-item:nth-child(2) {
    grid-area: 1 / 5 / 3 / 7;
}

.service-gallery-grid .gallery-item:nth-child(3) {
    grid-area: 1 / 7 / 2 / 9;
}

.service-gallery-grid .gallery-item:nth-child(4) {
    grid-area: 2 / 7 / 3 / 9;
}

.service-gallery-grid .gallery-item:nth-child(5) {
    display: none;
}


.service-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.1s ease;
}

.service-gallery-grid .gallery-item img:hover {
    filter: brightness(0.9);

}

/*------------ Section 01 - Service Overview and the content----------------*/
.single-service-sec-1 {
    text-align: left;
}

.single-service-h {
    font-size: 30px;
    line-height: 42px;
    font-weight: 700;
    color: #282828;
    margin-bottom: 15px;
}

.single-service-p {
    font-size: 20px;
    line-height: 30px;
    font-weight: 300;
    color: #646464;
    margin-bottom: 15px;
}

/*-------------------------- Section 02 - Image and Content -----------------------------*/
.single-service-sec-2,
.single-service-sec-3 {
    display: flex;
    justify-content: space-between;

    padding: 60px 0;
    min-height: 500px;
    width: 100%;
    gap: 40px;
    box-sizing: border-box;
    flex-wrap: nowrap;
    /* keep columns on desktop and tablet */
}

.single-service-sec2-img-container {
    flex: 1 1 45%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-height: 500px;
}

.single-service-sec2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.single-service-sec2-img:hover {
    filter: brightness(0.9);
    transform: scale(1.02);
}

.single-service-sec2-content {
    flex: 1 1 50%;
    padding: 30px 0;
    text-align: left;
    box-sizing: border-box;
}

/* Bullets inside Section 2 */
.single-service-bullets {
    color: #646464;
    margin-top: 20px;
    padding-left: 20px;
    list-style-type: disc;
    font-size: 20px;
    line-height: 29px;
    font-weight: 300;
}

.single-service-bullets li {
    margin-bottom: 10px;
}

@media (max-width: 1024px) {
    .single-service-p {
        font-size: 18px;
        line-height: 27px;
    }

    .single-service-sec-2,
    .single-service-sec-3 {
        flex-wrap: nowrap;
        padding: 40px 0;
        min-height: auto;
        gap: 30px;
    }

    .single-service-sec2-img-container {
        max-height: 400px;
    }

    .single-service-sec2-content {
        padding: 20px 0 0 0;
    }

    .single-service-bullets {
        font-size: 18px;
        line-height: 27px;
    }
}

@media (max-width: 767px) {

    .single-service {
        padding-top: 30px;
    }

    .single-service-h {
        margin-bottom: 10px;
    }

    .single-service-p {
        font-size: 16px;
        line-height: 24px;
    }

    .service-gallery-grid {
        width: 100%;
        gap: 10px;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }

    .single-service-bullets {
        margin-left: 15px;
        list-style-type: disc;

    }

    .service-gallery-grid .gallery-item:nth-child(1) {
        grid-area: 1 / 1 / 4 / 6;
    }

    .service-gallery-grid .gallery-item:nth-child(2) {
        grid-area: 4 / 1 / 6 / 3;
    }

    .service-gallery-grid .gallery-item:nth-child(3) {
        grid-area: 4 / 3 / 6 / 6;
    }

    .service-gallery-grid .gallery-item:nth-child(4) {
        display: none;
    }

    .service-gallery-grid .gallery-item:nth-child(5) {
        display: none;
    }

    /*------------------------Section 02----------------------- */
    .single-service-sec-3 {
        flex-direction: column;
        justify-content: flex-start;
    }

    .single-service-sec-2 {
        flex-direction: column-reverse;
        padding: 30px 0;
        gap: 20px;
    }

    .single-service-sec2-img-container {
        width: 100%;
    }

    .single-service-sec2-content {
        width: auto;
        text-align: left;
    }

    .single-service-bullets {
        padding-left: 0;
        text-align: left;
        font-size: 16px;
        line-height: 24px;
    }
}


@media(max-width:480px) {
    .single-blog-title {
        font-size: 36px;
    }
}