/* ===== SERVICES PAGE - التصميم النهائي ===== */

/* --------------------------------------------- */
/* الخدمات الأساسية - بطاقات مع صور (مثل الرئيسية) */
/* --------------------------------------------- */
.services-main-section {
    background-color: var(--white);
    padding: 100px 0;
}

.core-service-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(10, 36, 99, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(10, 36, 99, 0.05);
}

.core-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(10, 36, 99, 0.15);
}

.core-service-image {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.core-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.core-service-card:hover .core-service-image img {
    transform: scale(1.08);
}

.core-service-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    z-index: 2;
    transition: all 0.3s ease;
}

.core-service-card:hover .core-service-badge {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent-gold);
    color: var(--white);
}

.core-service-content {
    background: var(--primary-dark);
    padding: 30px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.core-service-title {
    font-family: 'Cairo', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.core-service-en {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.core-service-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* --------------------------------------------- */
/* رأس القسم - تصميم قوي وواضح                 */
/* --------------------------------------------- */
.section-header-large {
    display: flex;
    align-items: baseline;
    gap: 25px;
    margin-bottom: 60px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(10, 36, 99, 0.08);
}

.section-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: var(--primary-dark);
    opacity: 0.12;
    line-height: 1;
}

.header-content {
    flex: 1;
}

.section-main-title {
    font-family: 'Cairo', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-dark));
    margin-bottom: 20px;
}

.section-subtitle {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    color: var(--charcoal);
    opacity: 0.85;
    margin: 0;
}

/* --------------------------------------------- */
/* شبكة الخدمات التفصيلية - كل خدمة لوحدها     */
/* --------------------------------------------- */
.services-detailed-section {
    padding: 80px 0;
}

.services-detailed-section.bg-light {
    background-color: var(--light-gray);
}

.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* بطاقة الخدمة الواحدة - واضحة وقوية */
.service-item-detailed {
    background: var(--white);
    padding: 28px 25px;
    border-radius: 16px;
    display: flex;
    align-items: flex;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(10, 36, 99, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item-detailed::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-item-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(10, 36, 99, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
}

.service-item-detailed:hover::before {
    opacity: 1;
}

.service-marker {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    transition: all 0.3s ease;
}

.service-item-detailed:hover .service-marker {
    background: var(--accent-gold);
    transform: scale(1.05);
    color: var(--primary-dark);
}

.service-info {
    flex: 1;
    text-align: right;
}

.service-item-title {
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom:0px;
    line-height: 1.4;
}

.service-item-desc {
    font-family: 'Cairo', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--charcoal);
    opacity: 0.8;
    margin: 0;
}

/* --------------------------------------------- */
/* الفواصل البصرية - محسنة                      */
/* --------------------------------------------- */
.divider-image-block {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.divider-image-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.divider-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 36, 99, 0.9) 0%, rgba(46, 46, 46, 0.8) 100%);
    z-index: 1;
}

.divider-content {
    position: absolute;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    text-align: center;
    z-index: 2;
}

.divider-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
}

.divider-title {
    font-family: 'Cairo', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.decorative-divider {
    padding: 70px 0;
    background: var(--white);
}

.decorative-divider .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to left, transparent, rgba(10, 36, 99, 0.2), transparent);
}

.divider-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3a8f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(10, 36, 99, 0.15);
    transition: all 0.3s ease;
}

.divider-icon:hover {
    transform: rotate(180deg) scale(1.1);
    background: linear-gradient(135deg, var(--accent-gold) 0%, #f5c542 100%);
    color: var(--primary-dark);
}

.visual-break {
    padding: 90px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.visual-break-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(10, 36, 99, 0.15);
    height: 380px;
}

.visual-break-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-break-content {
    padding: 50px;
    background: var(--white);
    border-radius: 20px;
    border-right: 6px solid var(--accent-gold);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.visual-break-content h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.visual-break-content p {
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 0;
}

/* --------------------------------------------- */
/* استجابة كاملة                               */
/* --------------------------------------------- */
@media (max-width: 1200px) {
    .section-main-title {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .services-grid-detailed {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .section-header-large {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-number {
        font-size: 54px;
    }
    
    .section-main-title {
        font-size: 30px;
    }
    
    .section-subtitle {
        font-size: 18px;
    }
    
    .visual-break-image {
        height: 320px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .services-main-section {
        padding: 70px 0;
    }
    
    .core-service-image {
        height: 200px;
    }
    
    .core-service-title {
        font-size: 20px;
    }
    
    .services-detailed-section {
        padding: 60px 0;
    }
    
    .service-item-detailed {
        padding: 25px 20px;
    }
    
    .service-marker {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 20px;
    }
    
    .service-item-title {
        font-size: 18px;
    }
    
    .service-item-desc {
        font-size: 14px;
    }
    
    .section-main-title {
        font-size: 28px;
    }
    
    .section-number {
        font-size: 48px;
    }
    
    .divider-title {
        font-size: 30px;
    }
    
    .visual-break-content {
        padding: 35px;
    }
    
    .visual-break-content h3 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .core-service-image {
        height: 180px;
    }
    
    .core-service-content {
        padding: 25px 20px;
    }
    
    .core-service-title {
        font-size: 19px;
    }
    
    .service-item-detailed {
        padding: 22px 18px;
        gap: 15px;
    }
    
    .service-marker {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 18px;
    }
    
    .section-main-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .divider-label {
        font-size: 16px;
    }
    
    .divider-title {
        font-size: 26px;
    }
    
    .visual-break-content {
        padding: 30px 20px;
    }
    
    .visual-break-content h3 {
        font-size: 24px;
    }
}
.service-item-detailed {
    display: flex;
}

.service-info {
    display: flex;
    align-items: center; /* هذا سيُوسّط النص عموديًا فقط */
}
