/* =====================================
   SERVICES SECTION
===================================== */

.services-section {
    position: relative;
    padding: 90px 0;
    background-image: url('../images/service-bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.services-heading {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
}

.section-subtitle {
    display: inline-block;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.services-heading h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--heading-color);
    margin-bottom: 15px;
}

.services-heading p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--muted-color);
    margin: 0;
}

/* SERVICES GRID */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
}

/* SERVICE CARD */

.service-card {
    min-width: 0;
    background: var(--body-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* IMAGE */

.service-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 13px;
    font-weight: 600;
}

/* CONTENT */

.service-content {
    padding: 25px 22px 28px;
    position: relative;
}

.service-icon {
    width: 55px;
    height: 55px;
    border-radius: 8px;
    background: var(--accent-color);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    margin-top: -53px;
    margin-bottom: 20px;
    position: relative;
    border: 4px solid var(--body-bg);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--light-text);
    transform: rotateY(180deg);
}

.service-content h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-content p {
    color: var(--muted-color);
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 20px;
    min-height: 70px;
}

/* SERVICE LINK */

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link:hover i {
    transform: translateX(6px);
}

/* BOTTOM BUTTON */

.services-bottom {
    text-align: center;
    margin-top: 45px;
}

.all-services-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 30px;
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.all-services-btn:hover {
    background: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}


/* =========================================
   MAIN SERVICES PAGE
========================================= */

.all-services-section {
    padding: 85px 0;
    background: #f6f9ff;
}

.all-services-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px;
}

.services-label,
.detail-label {
    display: inline-block;
    color: #3475ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.all-services-heading h1 {
    font-size: 38px;
    line-height: 1.3;
    color: #102347;
    font-weight: 700;
    margin-bottom: 15px;
}

.all-services-heading h1 span {
    color: #3475ff;
}

.all-services-heading p {
    font-size: 15px;
    color: #697891;
    line-height: 1.8;
    margin-bottom: 0;
}

/* MAIN SERVICES GRID - 4 CARDS IN ONE ROW */

.all-services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    align-items: stretch;
}

/* MAIN SERVICE CARD */

.main-service-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e7ebf5;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.main-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(28, 67, 125, 0.12);
}

/* MAIN SERVICE IMAGE */

.main-service-image {
    height: 230px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.main-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.main-service-card:hover .main-service-image img {
    transform: scale(1.06);
}

/* SERVICE NUMBER */

.main-service-number {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3475ff;
    color: #fff;
    padding: 8px 13px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
}

/* MAIN SERVICE CONTENT */

.main-service-content {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* SERVICE ICON */

.main-service-icon {
    height: 50px;
    width: 50px;
    flex-shrink: 0;
    background: #eaf2ff;
    color: #3475ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 21px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.main-service-card:hover .main-service-icon {
    background: #3475ff;
    color: #fff;
    transform: translateY(-3px);
}

/* SERVICE TITLE */

.main-service-content h2 {
    font-size: 19px;
    line-height: 1.4;
    color: #102347;
    font-weight: 700;
    margin-bottom: 12px;
}

/* SERVICE DESCRIPTION */

.main-service-content p {
    font-size: 13px;
    line-height: 1.8;
    color: #718096;
    margin-bottom: 20px;
    flex: 1;
}

/* SERVICE LINK */

.main-service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #3475ff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.main-service-link i {
    transition: transform 0.3s ease;
}

.main-service-link:hover {
    color: #102347;
}

.main-service-link:hover i {
    transform: translateX(5px);
}


/* =========================================
   SERVICE DETAIL PAGE
========================================= */

.service-detail-section {
    padding: 65px 0 85px;
    background: #fff;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(260px, 0.9fr);
    gap: 65px;
    align-items: start;
}

.service-detail-main {
    min-width: 0;
}

.service-detail-heading h1 {
    color: #102347;
    font-size: 29px;
    line-height: 1.45;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-detail-heading h2 {
    font-size: 21px;
    color: #3475ff;
    margin-bottom: 15px;
}

.service-detail-heading p {
    color: #718096;
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 35px;
}

.service-detail-image {
    height: 320px;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 42px;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-introduction {
    margin-bottom: 40px;
}

.service-introduction h2 {
    color: #102347;
    font-size: 25px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.service-introduction p,
.service-core-features>p,
.service-benefits>p {
    color: #718096;
    font-size: 14px;
    line-height: 1.9;
}


/* CORE FEATURES */

.service-core-features {
    margin-bottom: 45px;
}

.service-core-features h2,
.service-benefits h2 {
    font-size: 23px;
    color: #102347;
    margin-bottom: 15px;
}

.service-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f5f7ff;
    border-radius: 8px;
    color: #263c60;
    font-size: 13px;
    font-weight: 500;
}

.feature-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #e3efff;
    color: #3475ff;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* BENEFITS */

.service-benefits {
    margin-bottom: 40px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #40536f;
    font-size: 13px;
    line-height: 1.7;
}

.benefit-item i {
    color: #3475ff;
    margin-top: 4px;
}


/* BOTTOM CTA */

.service-bottom-cta {
    padding: 30px;
    background: #f0f5ff;
    border-radius: 12px;
    border-left: 4px solid #3475ff;
}

.service-bottom-cta h2 {
    color: #102347;
    font-size: 22px;
    margin-bottom: 12px;
}

.service-bottom-cta p {
    color: #718096;
    font-size: 14px;
    line-height: 1.8;
}

.service-bottom-cta a {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 12px 22px;
    background: #3475ff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-bottom-cta a:hover {
    background: #102347;
}


/* =========================================
   RIGHT SIDEBAR
========================================= */

.service-detail-sidebar {
    position: sticky;
    top: 25px;
}

.more-services-box {
    padding: 25px 20px;
    background: #f4f3ff;
    border: 1px solid #e7e5f2;
    border-radius: 14px;
    margin-bottom: 35px;
}

.more-services-box h3 {
    color: #102347;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.more-service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    margin-bottom: 8px;
    border: 1px solid #dcdcff;
    border-radius: 7px;
    text-decoration: none;
    color: #102347;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.more-service-link i,
.sub-service-link i {
    color: #3475ff;
}

.more-service-link:hover,
.more-service-link.active {
    background: #3475ff;
    color: #fff;
    border-color: #3475ff;
}

.more-service-link:hover i,
.more-service-link.active i {
    color: #fff;
}

.sub-service-link {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 0;
    color: #304464;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #e4e7f2;
}


/* CONTACT CARD */

.service-contact-card {
    position: relative;
    overflow: hidden;
    padding: 28px 20px;
    background: #145cff;
    color: #fff;
    border-radius: 14px;
}

.contact-card-content h3 {
    font-size: 20px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.contact-card-content p {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.contact-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffca45;
    color: #102347;
    padding: 11px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.contact-card-btn:hover {
    background: #fff;
    color: #102347;
}

.contact-card-image {
    width: 105px;
    height: 105px;
    border: 3px solid #fff;
    border-radius: 50%;
    overflow: hidden;
    margin: 25px 0 25px auto;
}

.contact-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-card-phone {
    display: flex;
    gap: 14px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 20px;
}

.contact-card-phone>i {
    font-size: 28px;
}

.contact-card-phone span {
    display: block;
    font-size: 11px;
    margin-bottom: 5px;
}

.contact-card-phone a {
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1100px) {

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

}

@media (max-width: 991px) {

    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail-sidebar {
        position: static;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 767px) {

    .services-section {
        padding: 60px 0;
    }

    .services-heading h2 {
        font-size: 27px;
    }

    .services-heading {
        margin-bottom: 35px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-image {
        height: 230px;
    }

    .service-content p {
        min-height: auto;
    }

    .all-services-section {
        padding: 55px 0;
    }

    .all-services-heading h1 {
        font-size: 29px;
    }

    .all-services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .main-service-image {
        height: 230px;
    }

    .main-service-content {
        padding: 22px;
    }

    .main-service-content h2 {
        font-size: 20px;
    }

    .service-detail-section {
        padding: 40px 0 60px;
    }

    .service-detail-heading h1 {
        font-size: 24px;
    }

    .service-detail-image {
        height: 230px;
    }

    .service-introduction h2 {
        font-size: 21px;
    }

    .service-feature-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .service-core-features h2,
    .service-benefits h2 {
        font-size: 21px;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {

    .all-services-heading h1 {
        font-size: 26px;
    }

    .all-services-heading p {
        font-size: 14px;
    }

    .main-service-image {
        height: 210px;
    }

    .main-service-content {
        padding: 20px;
    }

    .service-bottom-cta {
        padding: 22px;
    }

}