@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Tajawal:wght@400;700&display=swap');

/* -------- Fonts & Root Colors -------- */
:root {
    --cardShadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    background: var(--bgColor);
    margin: 0;
    padding: 0;
}

/* -------- Services Title -------- */
.services-title {
    text-align: center;
    margin-bottom: 60px;
}

.services-title h1,
.services-title h2 {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    font-weight: 700;
    color: var(--helperColor);
}

.services-title h1::after,
.services-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background: var(--primaryColor);
    border-radius: 2px;
}

/* -------- Services Section -------- */
.services-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.services-col {
    display: contents; /* عشان نخلي الكروت تتوزع في الشبكة بدون أعمدة إضافية */
}

.service-card {
    background:var(--primaryColor);
    border-radius: 20px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 8px 20px var(--cardShadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.icon-box {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px;
}

.icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .icon-box img {
    transform: scale(1.1);
}

.card-data {
    padding: 30px;
}

.service-card h3 {
    font-size: 28px;
    margin: 15px 0 10px;
    color: #fff;
    font-weight: 700;
}

.service-card p {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    line-height: 1.6;
}

/* -------- Featured Card -------- */
.featured-card {
    background: var(--primaryColor);
    color: #fff;
}

.featured-card p,
.featured-card h3 {
    color: #fff;
}

/* -------- Last Services Special Layout -------- */
.last-serv {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

/* -------- Responsive -------- */
@media (max-width: 992px) {
    .services-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .last-serv {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .icon-box {
        height: 300px;
    }

    .service-card h3 {
        font-size: 24px;
    }

    .service-card p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .services-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .icon-box {
        height: 220px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 15px;
    }

    .services-title h1,
    .services-title h2 {
        font-size: 28px;
    }
}
