﻿.sh-kh-v-content-container {
    width: min(var(--default-spacing), var(--default-max-spacing));
    margin-inline: auto;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
}

.sh-kh-v-main-img {
    width: 100%;
    overflow: hidden;
    border-radius: 32px;
}

.sh-kh-v-main-img img {
    width: 100%;
    object-fit: cover;
    transition: transform 1.2s;
}

.sh-kh-v-main-img:hover img {
       transform: scale(1.02);
    transition: transform 1.2s;
}

.sh-kh-v-content-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 30px;
    text-align: center;
}

.sh-kh-v-content-title {
    font-family: var(--kh-bold);
    font-size: 2rem;
    width: 55%;
}

.sh-kh-v-content-subtitle {
    font-family: var(--kh-reg);
    font-size: 1.1rem;
    line-height: 28px;
    direction: rtl;
}

/*#region Map*/

.sh-kh-v-map-sctn-container {
    display: flex;
    flex-direction: column;
    row-gap: 50px;
    width: min(var(--default-spacing), var(--default-max-spacing));
    margin-inline: auto;
    margin-top: 100px;
}

.sh-kh-v-map-content-container {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    text-align: center;
    align-items: center;
}

.sh-kh-v-map-title {
    font-family: var(--kh-bold);
    font-size: 2rem;
}

.sh-kh-v-map-subtitle {
    font-family: var(--kh-reg);
    font-size: 1.1rem;
    width: 50%;
    text-align: center;
    line-height: 28px;
}

.sh-kh-v-map-text-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    margin-block: 90px;
}

.sh-kh-v-map-content-title {
    font-family: var(--kh-bold);
    font-size: 2rem;
}

.sh-kh-v-map-content-subtitle {
    font-family: var(--kh-reg);
    font-size: 1.1rem;
    text-align: center;
    direction: rtl;
    width: 45%;
    line-height: 30px;
}

/*#endregion*/

.sh-kh-empty-container {
    height: 50px;
}

/*#region Media Query*/

/*#region 1255px*/


/*#endregion*/

/*#region 1040px*/

@media(max-width: 1040px) {


    .sh-kh-v-content-box {
        row-gap: 12px;
    }

    .sh-kh-v-content-title {
        font-size: 1.8rem;
    }

    .sh-kh-v-map-content-title {
        font-size: 1.8rem;
    }

    .sh-kh-v-content-subtitle {
        /*font-size: 1rem;*/
    }

    /*#region Map*/


    .sh-kh-v-map-subtitle {
        width: 75%;
    }

    /*#endregion*/

    .sh-kh-v-map-content-subtitle {
        width: 65%;
    }

}

/*#endregion*/

/*#region 768px*/

@media(max-width: 768px) {


    .sh-kh-v-map-text-content-container {
        margin-block: 0;
    }

    /*#region Map*/


    /*#endregion*/



}

/*#endregion*/

/*#region 678px*/


/*#endregion*/

/*#region 560px*/

@media(max-width: 560px) {


    .sh-kh-v-main-img {
        width: 350px;
        height: 460px;
    }

    .sh-kh-v-main-img img {
        height: 100%;
    }

    .sh-kh-v-content-title {
        width: 65%;
        font-size: 1.6rem;
    }


    .sh-kh-v-content-subtitle {
        width: 85%;
    }

    .sh-kh-v-map-content-title {
        font-size: 1.6rem;
    }

    /*#region Map*/

    .sh-kh-v-map-sctn-container {
        row-gap: 10px;
    }

    .sh-kh-v-map-content-container {
        row-gap: 15px;
    }

    .sh-kh-v-map-title {
        font-size: 1.9rem;
    }

    .sh-kh-v-map-subtitle {
        width: 100%;
    }

    /*#endregion*/


    .sh-kh-v-map-text-content-container {
        width: 400px;
    }

    .sh-kh-v-map-content-subtitle {
        width: 100%;
    }
}

/*#endregion*/

/*#region 430px*/

@media(max-width: 430px) {


    .sh-kh-v-content-title {
        width: 80%;
    }

    /*#region Map*/

    .sh-kh-v-map-sctn-container {
        margin-top: 50px;
    }

    .sy-map-vsn-container{
        padding-inline: unset;
    }

    .sh-kh-v-map-title {
        font-size: 1.7rem;
    }

    /*#endregion*/


    .sh-kh-v-map-text-content-container {
        width: 360px;
    }

}

/*#endregion*/

/*#region 375px*/

@media(max-width: 375px) {


    .sh-kh-v-main-img {
        width: 310px;
        height: 420px;
    }

    .sh-kh-v-content-title {
        font-size: 1.4rem;
    }

    .sh-kh-v-content-subtitle {
        width: 95%;
    }

    /*#region Map*/


    .sh-kh-v-map-sctn-container {
        row-gap: 0;
    }


    /*#endregion*/

    .sh-kh-v-map-text-content-container {
        width: 320px;
    }

    .sh-kh-v-map-content-title {
        text-align: center;
    }

}

/*#endregion*/

/*#endregion*/


/*#region حركة لصفحة رؤيتنا (إضافة 23-10-2026، CSS بس، والنصوص ما تغيّرت)*/

/* كل شي هون محصور بصفحة رؤيتنا (الصفحة يللي فيها .sh-kh-v-content-container)، لأن الهيرو والخريطة مشتركين مع صفحات تانية */

/* الهيرو: الصورة بتقرّب لمكانها بنعومة والعنوان بيطلع من تحت، مع كل فتحة للصفحة */
.sh-page:has(.sh-kh-v-content-container) .partner-hero-img-box {
    overflow: hidden;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

@keyframes kh-v-hero-zoom {
    from {
        scale: 1.08;
    }

    to {
        scale: 1;
    }
}

@keyframes kh-v-hero-title {
    from {
        opacity: 0;
        translate: 0 24px;
    }

    to {
        opacity: 1;
        translate: none;
    }
}

/* الصورة الكبيرة */
@keyframes kh-v-img-open {
    from {
        clip-path: inset(6% 10% 6% 10% round 32px);
    }

    to {
        clip-path: inset(0 0 0 0 round 32px);
    }
}

@keyframes kh-v-img-drift {
    from {
        translate: 0 -5%;
    }

    to {
        translate: 0 5%;
    }
}

/* العنوان بيتعبّى بلون الهوية من اليمين لليسار متل كأنك عم تقراه */
@keyframes kh-v-title-fill {
    from {
        background-position: 0% 0;
    }

    to {
        background-position: 100% 0;
    }
}

@keyframes kh-v-line {
    from {
        transform: translateX(-50%) scaleX(0);
    }

    to {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes kh-v-rise {
    from {
        opacity: 0;
        translate: 0 30px;
    }

    to {
        opacity: 1;
        translate: none;
    }
}

@keyframes kh-v-map-in {
    from {
        opacity: 0;
        scale: 0.92;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

/* المحافظات يللي فيها فرع بتلمع بهدوء */
@keyframes kh-v-branch-glow {
    0%, 100% {
        filter: drop-shadow(0 0 0 rgba(91, 225, 30, 0));
    }

    50% {
        filter: drop-shadow(0 0 7px rgba(91, 225, 30, 0.75));
    }
}

/* خط أخضر صغير تحت العنوان */
.sh-page:has(.sh-kh-v-content-container) .sh-kh-v-content-title {
    position: relative;
    padding-bottom: 22px;
}

.sh-page:has(.sh-kh-v-content-container) .sh-kh-v-content-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background-color: var(--pr-color);
    transform: translateX(-50%);
}

@media (prefers-reduced-motion: no-preference) {

    .sh-page:has(.sh-kh-v-content-container) .partner-hero-img-box img {
        animation: kh-v-hero-zoom 1.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .sh-page:has(.sh-kh-v-content-container) .partner-main-title {
        animation: kh-v-hero-title 0.9s 0.25s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .sh-page:has(.sh-kh-v-content-container) .sy-map path[data-status="1"] {
        animation: kh-v-branch-glow 2.8s ease-in-out infinite;
    }

    /* لما الماوس على المحافظة بيوقف اللمعان مشان يبيّن التغميق تبع الـ hover */
    .sh-page:has(.sh-kh-v-content-container) .sy-map path[data-status="1"]:hover {
        animation: none;
    }

    @supports (animation-timeline: view()) {

        /* الصورة الكبيرة بتنفتح من النص لما توصلها، وجوّاها الصورة بتتحرك أبطأ من الصفحة (parallax) */
        .sh-kh-v-main-img {
            animation: kh-v-img-open linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 45%;
        }

        .sh-kh-v-main-img img {
            scale: 1.12;
            animation: kh-v-img-drift linear both;
            animation-timeline: view(block);
            animation-range: cover 0% cover 100%;
        }

        .sh-kh-v-content-title {
            background: linear-gradient(90deg, #c9d3d2 50%, var(--sec-color) 50%) 0% 0 / 200% 100% no-repeat;
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            animation: kh-v-title-fill linear both;
            animation-timeline: view();
            animation-range: entry 40% cover 45%;
        }

        .sh-kh-v-content-title::after {
            animation: kh-v-line linear both;
            animation-timeline: view();
            animation-range: entry 60% cover 45%;
        }

        .sh-kh-v-content-subtitle,
        .sh-kh-v-map-content-title,
        .sh-kh-v-map-content-subtitle {
            animation: kh-v-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 80%;
        }

        .sh-page:has(.sh-kh-v-content-container) .sy-map-container {
            animation: kh-v-map-in linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 35%;
        }
    }
}

/*#endregion*/
