:root {

    --bs-white:             #fff;
    --section-about-moral-value: rgba(231, 237, 255, 0.35);
    --bs-secondary:             #E02454;
    --bs-primary:             #003A66;
    --body-font-family:             'Noor';
    --title-font-family:            'Noor';
}

@font-face {
    font-family: "Noor";
    src: url("../fonts/noor.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Noorehira";
    src: url("../fonts/noorehira.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}
 .container {
    max-width: 1230px;
}

@font-face {
    font-family: "Noorehuda";
    src: url("../fonts/noorehuda.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}


/*@font-face{*/
/*    font-family:"Noor";*/
/*    src:url("../fonts/noor.ttf") format("truetype");*/
/*    font-weight:normal;*/
/*    font-style:normal;*/
/*    font-display: swap;*/
/*}*/
/*@font-face{*/
/*    font-family:"Noorehira";*/
/*    src:url("../fonts/noorehira.ttf") format("truetype");*/
/*    font-weight:normal;*/
/*    font-style:normal;*/
/*    font-display: swap;*/
/*}*/
/*@font-face{*/
/*    font-family:"Noorehuda";*/
/*    src:url("../fonts/noorehuda.ttf") format("truetype");*/
/*    font-weight:normal;*/
/*    font-style:normal;*/
/*    font-display: swap;*/
/*}*/

.section-about{
    color: var(--default-color);
    padding: 20px 0;
    scroll-margin-top: 100px;
    overflow: clip;
    background-color: rgb(251, 251, 251);
}

@media (max-width: 1199px) {
    .section-about {
        scroll-margin-top: 30px;
        background-color: rgb(251, 251, 251);
    }
}

.section-about-moral-value{
     background-color: var(--section-about-moral-value);
     overflow: clip;
}

@media (max-width: 1199px) {
    .section-about {
         background-color: rgb(251, 251, 251);
    }
}


.section_about {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 30px;
}

.about_box {
    text-align: right;
}

.section_title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    display: inline-block;
    position: relative;
}

.section_title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #009879;
    margin-top: 6px;
}

/*** Counter Facts Start ***/
.counter-facts {
     background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    background-repeat: no-repeat;
}

.counter-facts .counter {
    position: relative;
    text-align: center;
    width: 200px;
    min-height: 215px;
    padding: 10px 15px;
    margin: 0 auto;
    border-radius: 100px;
    box-shadow: 0 8px 5px rgba(0, 0, 0, 0.2);
    background: var(--bs-white);
}

.counter-facts .counter:before {
    content: "";
    position: absolute;
    height: 105px;
    width: 100%;
    left: 0;
    top: 0;
    border-radius: 10px 10px 0 0;
    background-color: var(--bs-primary);

}
.counter-facts .counter .counter-icon {
    position: relative;
    width: 120px;
    height: 100px;
    margin: 0 auto 10px;
    border-radius: 10px 10px 0 0;
    transform: translateY(-20px);
    font-size: 50px;
    line-height: 90px;
    color: var(--bs-secondary);
    background: rgba(1, 143, 252, 0.5);
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter .counter-icon:before {
    content: "";
    position: absolute;
    width: 120px;
    height: 90px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px 10px 0 0;
    background: rgba(0, 58, 102, 0.5);
    z-index: -1;
    clip-path: polygon(0% 0%, 100% 0, 100% 70%, 50% 100%, 0 70%);
}
.counter-facts .counter:hover .counter-icon i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}
.counter-facts .counter h3 {
    color: var(--bs-primary);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0 0 5px 0;
}
.counter-facts .counter .counter-value {
    font-size: 30px;
    font-weight: 700;
    display: block;
    color: var(--bs-secondary);
}

@media screen and (max-width: 1200px) {
    .counter-facts .counter { margin-bottom: 40px;
    }
}
.imgCheck img{
    margin-top: 12px;
    height: 40px;
    width: 40px;
}
/*** Counter Facts End ***/

/* projects  */
#portfolio-flters li {
    display: inline-block;
    font-weight: 500;
     cursor: pointer;
    transition: .5s;
    border-bottom: 2px solid transparent;
}

#portfolio-flters li:hover,
#portfolio-flters li.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.portfolio-img {
    position: relative;
}

.portfolio-btn {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(98, 68, 197, .9);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 30px;
    padding-bottom: 100px !important;
    opacity: 0;
    transition: .5s;
}

.portfolio-item:hover .portfolio-btn {
    opacity: 1;
    padding-bottom: 30px !important;
}
.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    opacity: .7;
}

.team-item .team-text {
    position: absolute;
    left: 0;
    right: 60px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    right: 30px;
    opacity: 1;
}

.team-item .team-text div {
    transition: .5s;
}

.team-item:hover .team-text div {
    margin-left: 30px;
}


.xis-it-header-section .mobile_menu_button,
#xis-it-main-nav li a { color: var(--primary-color); }


/* الحوار: يلتف على المحتوى بدون قيم غير قياسية */
#imgLightbox .modal-dialog{
    margin: clamp(8px, 2vw, 20px) auto;
    max-width: none;         /* لا سقف مسبق */
    width: auto;             /* قياسي */
    justify-content: center !important;
}

#imgLightbox .modal-content{
    display: inline-block !important;     /* shrink-to-content */
    width: auto !important;               /* بدلاً من fit-content */
    max-width: calc(100vw - 32px) !important; /* لا يتجاوز الشاشة */
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-inline: auto !important;
}

#imgLightbox .modal-body{
    padding: 0 !important;
    overflow: visible !important;   /* حتى لا يُقص زر X */
    text-align: center !important;
}

/* الغلاف الداكن حول الصورة فقط، يلتف على حجم viewport */
#imgLightbox .lightbox-wrap{
    position: relative;
    display: inline-block;
    background: rgba(255, 255, 255, 0.75);
    padding: 10px 10px 12px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

/* الحاوية القابلة للتمرير للصورة — هنا نقيّد بالحجم المتاح */
#imgLightbox .lightbox-viewport{
    display: inline-block;               /* shrink-to-content */
    /*max-width: calc(100vw - 32px);       !* قيود شاشة *!*/
    max-width: min(100%, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
}

/* الصورة بحجمها الطبيعي (لا img-fluid) */
#imgLightbox #lightboxImage{
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

/* زر الإغلاق داخل الزاوية اليمنى للغلاف */
#imgLightbox .lightbox-close{
    position: absolute;
    inset-block-start: 6px;
    inset-inline-end: 6px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    opacity: 1;
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
    z-index: 2;
}

@supports (width: 100dvw) {
    #imgLightbox .lightbox-viewport{
        max-width: min(100%, calc(100dvw - 32px));
        max-height: calc(100dvh - 32px);
    }
}

#imgLightbox { overscroll-behavior: contain; }
body.modal-open {
    overflow-x: hidden !important;
    padding-right: 0 !important;
}



html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;   /* أو clip إن أردت */
}


/* الهاتف: تغبيش الخلفية عند فتح المودال + زوايا مقوّسة للصورة */
@media (max-width: 576px){
    .modal-backdrop.lb-blur.show{
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        background-color: rgba(0,0,0,.35);
    }

    /* توسيط الإطار ومنع تمدد جانبي */
    #imgLightbox .modal-body{
        display:flex !important;
        justify-content:center !important;
        padding:0 !important;
    }

    /* بدون padding حتى لا يزيد العرض عن المصغّرة */
    #imgLightbox .lightbox-wrap{
        padding: 10px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,.35);
    }

    #imgLightbox .lightbox-viewport{
        overflow:hidden !important;
        border-radius: 12px;
    }

    #imgLightbox #lightboxImage{
        width:auto; height:auto;
        max-width:none; max-height:none;
        object-fit:contain;
        display:block;
        border-radius:12px;
    }

    #imgLightbox .lightbox-close{
        width:28px; height:28px;
        inset-block-start:6px; inset-inline-end:6px;
    }
}
html, body{ overflow-x:hidden; }


/* projects  */
