@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

body::-webkit-scrollbar {
    width: 8px
}

body::-webkit-scrollbar-track {
    background-color: transparent
}

body::-webkit-scrollbar-thumb {
    background-color: var(--lightHelper);
    background-image: linear-gradient(0deg, var(--lightHelper) 0%, var(--helperColor) 100%);
    border-radius: 5px
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.5s;
}

ul {
    list-style: none;
}

.services-title {
    text-align: center;
    margin-bottom: 60px;
    color: #1783B5;
}

.services-title h2, .services-title h1 {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
}

.services-title h2::after, .services-title h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primaryColor);
    border-radius: 2px;
}

.services-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 90%;
    margin: 40px auto;
}


.services-col {
    display: contents;
}


.service-card {
    background: #fff;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}





.last-serv {
    grid-template-columns: repeat(2, 1fr);
    max-width: 50%;
}

.service-card h3 {
    font-size: 29px;
    margin: 12px 0 10px;
    color: var(--primaryColor);
}

.service-card p {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.featured-card {
    background: var(--primaryColor);
    color: #fff;
}

.featured-card p, .featured-card h3 {
    color: #fff;
}

.featured-card .icon-box img {
    object-fit: contain;
}

.icon-box {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    background: transparent;
}

.icon-box img {
    width: 100%;
    object-fit: cover;
    height: 250px;
    border-radius: 10px;
    background: transparent;
}

.icon-box-2 {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    background: transparent;
}

.icon-box-2 img {
    width: 100%;
    object-fit: cover;
    height: 100%;
    border-radius: 10px;
    background: transparent;
}

.card-data {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


.card-data p {
    margin-bottom: 0;
}


.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1a5abf;
    background: #eef4ff;
    border: 1px solid #b0c8f0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    align-self: center;
    margin-top: auto; 
    margin-bottom: 1rem;
}

.card-btn:hover {
    background: #1783B5;
    color: #ffffff;
}

/* -------- Responsive -------- */
@media (max-width: 992px) {

    .services-section {
        grid-template-columns: repeat(1, 1fr);
    }

    .middle-col {
        margin-top: 0;
    }

    .featured-card {
        order: 0;
    }

    .service-card h3 {
        font-size: 47px;
        margin: 32px 0 30px;
    }

    .service-card p {
        font-size: 36px;
    }

    .icon-box {
        height: 420px;
    }

    .icon-box img {
        height: 420px;
    }

    .last-serv {
        grid-template-columns: repeat(1, 1fr);
        max-width: 100%;
    }
}

@media (max-width: 576px) {

    .service-card h3 {
        font-size: 22px;
        margin: 10px 0;
    }

    .service-card p {
        font-size: 16px;
    }

    .services-section {
        grid-template-columns: 1fr;
    }

    .icon-box {
        height: 220px;
    }

    .icon-box img {
        height: 220px;
    }
}