﻿/* تغيير لون اسم الكيان للذهبي عند الهوفر */
.single-services-box:hover h3 a,
.single-services-box:hover h3 a.entity-link {
    color: var(--moif-gold) !important;
}

/* للحفاظ على ليونة التغيير */
.single-services-box h3 a {
    transition: color 0.3s ease;
}





/*flip idea */
/* ── Flip Cards Grid ── */
.flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

/* ── Card Container ── */
.flip-card {
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* ── Front & Back Shared ── */
.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Front ── */
.flip-card-front {
    background: #fff;
    border: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

    .flip-card-front img {
        width: 80px;
        height: 80px;
        object-fit: contain;
        margin-bottom: 12px;
    }

    .flip-card-front i.placeholder-icon {
        font-size: 56px;
        color: var(--moif-gold);
        opacity: 0.5;
        margin-bottom: 12px;
    }

    .flip-card-front h4 {
        font-size: 13px;
        font-weight: 700;
        color: var(--moif-blue-dark);
        text-align: center;
        margin: 0;
        line-height: 1.4;
    }

/* ── Back ── */
.flip-card-back {
    background: var(--moif-gold);
    border: 1px solid var(--moif-gold);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.3);
    transform: rotateY(180deg);
    justify-content: space-between;
    text-align: center;
}

    .flip-card-back h4 {
        font-size: 14px;
        font-weight: 700;
        color: #fff;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .flip-card-back p {
        font-size: 11px;
        color: rgba(255, 255, 255, 0.85);
        line-height: 1.6;
        margin: 0;
        flex: 1;
        display: flex;
        align-items: center;
    }

    .flip-card-back a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        margin-top: 12px;
        font-size: 12px;
        font-weight: 600;
        color: var(--moif-gold);
        background: #fff;
        border-radius: 20px;
        padding: 6px 16px;
        text-decoration: none;
        transition: all 0.25s ease;
        white-space: nowrap;
    }

        .flip-card-back a:hover {
            background: rgba(255,255,255,0.85);
        }

/*BADGE AND LIST*/
.supervised-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.supervised-list-item {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.15);
    background-color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

    .supervised-list-item:hover {
        border-color: var(--moif-gold);
        box-shadow: 0 4px 20px rgba(201, 162, 39, 0.12);
        transform: translateX(-4px); /* RTL — يتحرك لليمين عند hover */
    }

[dir="ltr"] .supervised-list-item:hover {
    transform: translateX(4px);
}

/* اللوجو */
.supervised-list-logo {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f8f8f8;
    border: 1px solid rgba(201, 162, 39, 0.1);
    overflow: hidden;
}

    .supervised-list-logo img {
        width: 48px;
        height: 48px;
        object-fit: contain;
    }

    .supervised-list-logo i {
        font-size: 28px;
        color: var(--moif-gold);
    }

/* المحتوى */
.supervised-list-content {
    flex: 1;
    min-width: 0;
}

    .supervised-list-content h3 {
        font-size: 16px;
        font-weight: 700;
        color: var(--moif-blue-dark);
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* العنوان الفرعي (Subtitle) */
.supervised-subtitle {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.subtitle-supervised {
    color: var(--moif-gold);
}

.subtitle-affiliated {
    color: var(--moif-gold);
}

.supervised-subtitle i {
    font-size: 14px;
}

.supervised-list-content p {
    font-size: 13px;
    color: var(--moif-blue);
    opacity: 0.75;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* السهم */
.supervised-list-arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(201, 162, 39, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--moif-gold);
    font-size: 18px;
    transition: all 0.3s ease;
}

.supervised-list-item:hover .supervised-list-arrow {
    background-color: var(--moif-gold);
    color: #fff;
    border-color: var
}
/*service flip */
/*flip idea - خدمات */
.services-flip-area .flip-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* ── Card Container ── */
.services-flip-area .flip-card {
    height: 200px; /* نفس الارتفاع المطلوب */
    perspective: 1000px;
    cursor: pointer;
}

.services-flip-area .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.services-flip-area .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

/* RTL support for flip */
[dir="rtl"] .services-flip-area .flip-card:hover .flip-card-inner {
    transform: rotateY(-180deg);
}

/* ── Front & Back Shared ── */
.services-flip-area .flip-card-front,
.services-flip-area .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ── Front ── */
.services-flip-area .flip-card-front {
    background: #fff;
    border: 1px solid rgba(201, 162, 39, 0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

    .services-flip-area .flip-card-front img {
        width: 80px;
        height: 80px;
        object-fit: cover; /* تغيير إلى cover للصورة الدائرية */
        margin-bottom: 12px;
        border-radius: 50%; /* صورة دائرية */
        border: 2px solid var(--moif-gold);
        padding: 3px;
        background: #fff;
    }

    .services-flip-area .flip-card-front i.placeholder-icon {
        font-size: 56px;
        color: var(--moif-gold);
        opacity: 0.5;
        margin-bottom: 12px;
        width: 80px;
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 2px solid var(--moif-gold);
        background: rgba(201, 162, 39, 0.05);
    }

    .services-flip-area .flip-card-front h4 {
        font-size: 13px;
        font-weight: 700;
        color: var(--moif-blue-dark);
        text-align: center;
        margin: 0;
        line-height: 1.4;
        max-height: 36px; /* للتحكم في النص الطويل */
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

/* ── Back ── */
.services-flip-area .flip-card-back {
    background: var(--moif-gold);
    border: 1px solid var(--moif-gold);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.3);
    transform: rotateY(180deg);
    justify-content: space-between;
    text-align: center;
}

[dir="rtl"] .services-flip-area .flip-card-back {
    transform: rotateY(-180deg);
}

.services-flip-area .flip-card-back h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    max-height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.services-flip-area .flip-card-back p {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    max-height: 70px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.services-flip-area .flip-card-back a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--moif-gold);
    background: #fff;
    border-radius: 20px;
    padding: 6px 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .services-flip-area .flip-card-back a:hover {
        background: rgba(255,255,255,0.85);
        transform: translateY(-2px);
    }
