/* تنسيق قسم الخدمات */
.services {
    text-align: center;
    position: relative;
    padding: 80px 80px;
    padding-bottom: 10rem;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 0px;
}

.services h2 {
    color: var(--text-light);
    text-align: center;
    font-size: 4rem;
    margin-bottom: 60px;
    margin-top: 0px;
}

/* تصميم الحاوية التي تحتوي على البطاقات */
.services-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1260px;
    margin: 0 auto;
}

/* تصميم كل بطاقة خدمة */
.service {
    position: relative;
    z-index: 1;
    border: 1px solid #777;
    background-color: var(--bg-section);
    padding: 20px;
    border-radius: 12px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-standard);
    box-shadow: var(--standard-shadow);
    overflow: hidden;
}

.service::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: 12px;

    background: linear-gradient(135deg, #FFD01B, #ffa41b);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.service:hover::before {
    opacity: 1;
}

.service:hover {
    transform: translateY(-5px) !important;
    border: 1px solid transparent;
}

.service h3 a {
    font-size: 1.6rem;
    margin-bottom: 0px;
    text-decoration: none;
    background: linear-gradient(135deg, #FFD01B, #ffa41b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service p {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.8;
    padding-right: 0px;
    padding-left: 2.5rem;
    padding-top: 1rem;
}

.arrow-service {
    font-size: 1.5rem;
    position: absolute;
    bottom: 15px;
    left: 15px;
    opacity: 0.6;
    transition: transform 0.3s;
}

.service:hover .arrow-service {
    transform: translateX(5px);
    opacity: 1;
}

/* ✅ جعل القسم متجاوب مع جميع الأجهزة */
@media (max-width: 1200px) {
    .services-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        width: 96%;
        margin: 0 auto;
    }

    .services h2 {
        font-size: 4rem;
    }

    .service h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .service p {
        font-size: 0.9rem;
        opacity: 0.8;
        padding-right: 23px;
    }
}

/* شاشات الموبايل */
@media (max-width: 768px) {
    .services {
        padding: 80px 40px;
        padding-bottom: 5rem;
    }

    .services-container {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .services h2 {
        font-size: 2rem;
        margin-bottom: 8%;
    }

    .service h3 a {
        font-size: 1.3rem !important;
        margin-bottom: 0px;
    }
    
    .service p {
        font-size: 0.8rem;
        padding-right: 0px;
        padding-left: 1.5rem;
        padding-top: 0.5rem;
    }

    .arrow-service {
        font-size: 1.5rem;
        height: 50px;
    }
}