/* =========================================================
0. Page Gradient Wrapper (تدرج ناعم يسيح في الأسود قبل الفوتر)
   ========================================================= */
.home-gradient-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #232860 28%,
        #232860 36%,
        #232860 47%,
        #4450B3 60%,
        #6C7EF8 74%,
        #4450B3 84%,
        #4450B3 93%,
        #1F244C 97.5%,
        #000000 100%
    );
}

/* =========================================================
1. Projects Hero Intro Section (Two Columns + Curtain Drop)
   ========================================================= */
.kifco-projects-hero {
    width: 100%;
    padding-top: 120px;
    padding-right: 24px;
    padding-bottom: 80px;
    padding-left: 24px;
    background-color: transparent;
    box-sizing: border-box;
}

.kifco-projects-hero-inner {
    max-width: 1060px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

/* حاوية الستارة: تظل مخفية 1.5 ثانية ثم تهبط من الأعلى */
.kifco-curtain-reveal {
    opacity: 0;
    transform: translateY(-45px);
    clip-path: inset(0% 0% 100% 0%);
    will-change: transform, opacity, clip-path;
    animation: curtainDropAfterDelay 1.05s cubic-bezier(0.22, 1, 0.36, 1) 1.5s forwards;
}

/* العنوان الرئيسي */
.kifco-projects-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 69px;
    line-height: 83px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 32px;
    margin-left: 0;
}

/* الفقرة التمهيدية */
.kifco-projects-desc {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 38px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #ffffff;
    text-align: center;
    max-width: 980px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 40px;
    margin-left: auto;
}

/* حاوية العمودين للقائمة */
.kifco-projects-columns {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 110px;
    max-width: 980px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    box-sizing: border-box;
}

/* قائمة النقاط لكل عمود */
.kifco-projects-list {
    list-style-type: disc;
    list-style-position: outside;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 28px;
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 38px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #ffffff;
    box-sizing: border-box;
}

.kifco-projects-list li {
    margin-bottom: 4px;
}

.kifco-projects-list li:last-child {
    margin-bottom: 0;
}

/* أنيميشن نزول الستارة بعد ثانية ونصف */
@keyframes curtainDropAfterDelay {
    0% {
        opacity: 0;
        transform: translateY(-45px);
        clip-path: inset(0% 0% 100% 0%);
    }
    12% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0% 0% 0% 0%);
    }
}
/* ==========================================
   Responsive Media Queries - Projects Hero Intro
   ========================================== */

/* شاشات اللابتوب ودون 1400px */
@media screen and (max-width: 1400px) {
    .kifco-projects-hero {
        padding: 100px 24px 70px 24px;
    }

    .kifco-projects-title {
        font-size: 58px;
        line-height: 70px;
        margin-bottom: 28px;
    }

    .kifco-projects-desc,
    .kifco-projects-list {
        font-size: 21px;
        line-height: 33px;
    }

    .kifco-projects-columns {
        gap: 75px;
    }
}

/* شاشات التابلت ودون 1024px */
@media screen and (max-width: 1024px) {
    .kifco-projects-hero {
        padding: 85px 24px 60px 24px;
    }

    .kifco-projects-title {
        font-size: 48px;
        line-height: 58px;
        margin-bottom: 24px;
    }

    .kifco-projects-desc {
        font-size: 19px;
        line-height: 30px;
        margin-bottom: 32px;
    }

    .kifco-projects-columns {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .kifco-projects-list {
        font-size: 19px;
        line-height: 30px;
    }
}

/* الهواتف المحمولة ودون 768px */
@media screen and (max-width: 768px) {
    .kifco-projects-hero {
        width: 100%;
        max-width: 100%;
        padding: 65px 20px 50px 20px;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .kifco-projects-hero-inner,
    .kifco-curtain-reveal,
    .kifco-projects-columns {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kifco-projects-title {
        font-size: 36px;
        line-height: 44px;
        margin-bottom: 18px;
        overflow-wrap: break-word;
    }

    .kifco-projects-desc {
        font-size: 17px;
        line-height: 27px;
        max-width: 100%;
        margin-bottom: 24px;
        overflow-wrap: break-word;
    }

    .kifco-projects-columns {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-left: 8px;
    }

    .kifco-projects-list {
        font-size: 17px;
        line-height: 27px;
        padding-left: 22px;
        overflow-wrap: break-word;
    }
}

/* الهواتف الصغيرة ودون 480px */
@media screen and (max-width: 480px) {
    .kifco-projects-hero {
        padding: 50px 15px 40px 15px;
    }

    .kifco-projects-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 14px;
    }

    .kifco-projects-desc {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 20px;
    }

    .kifco-projects-columns {
        gap: 8px;
        padding-left: 4px;
    }

    .kifco-projects-list {
        font-size: 15px;
        line-height: 24px;
        padding-left: 18px;
    }
}
/* =========================================================
2. Projects Card Section & List Styles
   ========================================================= */
.kifco-card-section {
    width: 100%;
    padding-top: 40px;
    padding-right: 24px;
    padding-bottom: 120px;
    padding-left: 24px;
    background-color: transparent;
    box-sizing: border-box;
}

.kifco-card-stage {
    max-width: 1160px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    perspective: 1200px;
    perspective-origin: 50% 0%;
    box-sizing: border-box;
}

.kifco-service-card {
    width: 100%;
    padding-top: 42px;
    padding-right: 48px;
    padding-bottom: 46px;
    padding-left: 44px;
    border-radius: 26px;
    border-width: 2.5px;
    border-style: solid;
    border-color: rgb(255, 254, 254);
    background-color: transparent;
    transform-origin: 50% 0%;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    box-sizing: border-box;
}

.kifco-card-layout {
    display: flex;
    align-items: flex-start;
    gap: 44px;
}

.kifco-card-icon {
    flex-shrink: 0;
    width: 168px;
    height: 128px;
    margin-top: 2px;
    color: #ffffff;
}

.kifco-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

.kifco-card-body {
    flex: 1;
    min-width: 0;
}

.kifco-card-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 42px;
    line-height: 48px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0px;
    color: #ffffff;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
}

.kifco-card-list {
    list-style-type: disc;
    list-style-position: outside;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
    padding-top: 0;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 26px;
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.9);
    box-sizing: border-box;
}

.kifco-card-list li {
    margin-bottom: 6px;
}

.kifco-card-list li:last-child {
    margin-bottom: 0;
}

.kifco-card-list strong {
    font-weight: 600;
    color: #ffffff;
}
/* ==========================================
   Mobile Fix - Projects Card Section & List
   ========================================== */
@media screen and (max-width: 768px) {
    .kifco-card-section {
        width: 100%;
        max-width: 100%;
        padding: 28px 16px 65px 16px;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .kifco-card-stage {
        width: 100%;
        max-width: 100%;
        perspective: 1600px;
        perspective-origin: 50% 50%;
        box-sizing: border-box;
    }

    .kifco-service-card {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px 28px 20px;
        border-radius: 20px;
        border-width: 2px;
        transform-origin: 50% 50%;
        transform-style: preserve-3d;
        backface-visibility: hidden;
        will-change: transform, opacity;
        box-sizing: border-box;
    }

    .kifco-card-layout {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kifco-card-icon {
        width: 96px;
        height: 74px;
        margin-top: 0;
        flex-shrink: 0;
    }

    .kifco-card-body {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kifco-card-title {
        font-size: 26px;
        line-height: 33px;
        margin-bottom: 14px;
        overflow-wrap: break-word;
    }

    .kifco-card-list {
        width: 100%;
        max-width: 100%;
        font-size: 15px;
        line-height: 23px;
        padding-left: 20px;
        overflow-wrap: break-word;
        box-sizing: border-box;
    }

    .kifco-card-list li {
        margin-bottom: 8px;
    }
}

@media screen and (max-width: 480px) {
    .kifco-card-section {
        padding: 22px 12px 50px 12px;
    }

    .kifco-card-stage {
        perspective: 1400px;
    }

    .kifco-service-card {
        padding: 20px 16px 24px 16px;
        border-radius: 16px;
    }

    .kifco-card-layout {
        gap: 14px;
    }

    .kifco-card-icon {
        width: 80px;
        height: 62px;
    }

    .kifco-card-title {
        font-size: 22px;
        line-height: 29px;
        margin-bottom: 12px;
    }

    .kifco-card-list {
        font-size: 14px;
        line-height: 21px;
        padding-left: 18px;
    }
}
/* =========================================================
3. Responsive Adjustments
   ========================================================= */
@media (max-width: 992px) {
    .kifco-projects-title {
        font-size: 50px;
        line-height: 60px;
    }

    .kifco-projects-desc,
    .kifco-projects-list {
        font-size: 20px;
        line-height: 32px;
    }

    .kifco-projects-columns {
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .kifco-projects-columns {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .kifco-projects-list {
        width: 100%;
        max-width: 420px;
    }

    .kifco-service-card {
        padding-top: 28px;
        padding-right: 24px;
        padding-bottom: 32px;
        padding-left: 24px;
        border-radius: 20px;
    }

    .kifco-card-layout {
        flex-direction: column;
        gap: 20px;
    }

    .kifco-card-icon {
        width: 112px;
        height: 86px;
        margin-top: 0;
    }

    .kifco-card-title {
        font-size: 26px;
        line-height: 34px;
    }

    .kifco-card-list {
        font-size: 15px;
        line-height: 25px;
        padding-left: 20px;
    }
}

@media (max-width: 576px) {
    .kifco-projects-hero {
        padding-top: 90px;
        padding-right: 16px;
        padding-bottom: 60px;
        padding-left: 16px;
    }

    .kifco-projects-title {
        font-size: 36px;
        line-height: 44px;
    }

    .kifco-projects-desc,
    .kifco-projects-list {
        font-size: 16px;
        line-height: 26px;
    }

    .kifco-projects-list {
        padding-left: 22px;
    }
}

/* =========================================================
4. Projects Gallery Section
   ========================================================= */
.kifco-gallery-section {
    width: 100%;
    padding-top: 20px;
    padding-right: 24px;
    padding-bottom: 140px;
    padding-left: 24px;
    background-color: transparent;
    box-sizing: border-box;
}

.kifco-gallery-inner {
    max-width: 1240px;
    margin-top: 0;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
}

.kifco-gallery-heading {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 46px;
    line-height: 56px;
    font-weight: 400;
    font-style: italic;
    letter-spacing: 0px;
    color: #ffffff;
    text-align: center;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 54px;
    margin-left: 0;
}

.kifco-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 44px;
    align-items: start;
}

.kifco-gallery-card {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background-color: transparent;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.kifco-gallery-card.is-hidden-card {
    display: none;
}

/* بوردر أبيض + زيادة الطول بمقدار ~2 سم (76px) */
.kifco-gallery-thumb {
    width: 100%;
    height: 286px;
    border: 2px solid #ffffff;
    border-radius: 14px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
}

.kifco-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.kifco-gallery-card:hover .kifco-gallery-thumb img {
    transform: scale(1.04);
}

.kifco-gallery-caption {
    display: block;
    width: 100%;
    margin-top: 12px;
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.92);
}

.kifco-gallery-actions {
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

.kifco-load-more-btn {
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 34px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background-color: #d8dce6;
    color: #1f244c;
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.kifco-load-more-btn:hover {
    background-color: #ffffff;
    color: #141836;
    transform: translateY(-2px);
}

/* =========================================================
5. Full-Screen White Lightbox Modal
   ========================================================= */
.kifco-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    padding: 48px 76px;
    background-color: #ffffff;
    color: #111111;
    box-sizing: border-box;
    overflow-y: auto;
}

.kifco-lightbox.is-open {
    display: flex;
}

.kifco-lightbox-expand,
.kifco-lightbox-close,
.kifco-lightbox-nav {
    position: fixed;
    z-index: 100001;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: transparent;
    color: #222222;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.kifco-lightbox-expand:hover,
.kifco-lightbox-close:hover,
.kifco-lightbox-nav:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.kifco-lightbox-expand {
    top: 24px;
    left: 28px;
}

.kifco-lightbox-close {
    top: 22px;
    right: 28px;
}

.kifco-lightbox-prev {
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
}

.kifco-lightbox-next {
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
}

.kifco-lightbox-prev:hover {
    transform: translateY(-50%) translateX(-2px);
}

.kifco-lightbox-next:hover {
    transform: translateY(-50%) translateX(2px);
}

.kifco-lightbox-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 56px;
    width: 100%;
    max-width: 1180px;
    margin: auto;
    box-sizing: border-box;
}

.kifco-lightbox-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.kifco-lightbox-media img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.kifco-lightbox.is-focused-media .kifco-lightbox-content {
    grid-template-columns: minmax(0, 1fr);
    max-width: 1320px;
}

.kifco-lightbox.is-focused-media .kifco-lightbox-info {
    display: none;
}

.kifco-lightbox.is-focused-media .kifco-lightbox-media img {
    max-height: 86vh;
}

.kifco-lightbox-info {
    max-width: 460px;
}

.kifco-lightbox-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #141414;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
}

.kifco-lightbox-desc {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    letter-spacing: 0px;
    color: #3a3a3a;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 0;
    margin-left: 0;
}

/* =========================================================
6. Responsive Gallery & Lightbox
   ========================================================= */
@media (max-width: 1024px) {
    .kifco-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .kifco-gallery-thumb {
        height: 266px;
    }

    .kifco-lightbox {
        padding: 72px 24px 36px;
    }

    .kifco-lightbox-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .kifco-lightbox-info {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .kifco-gallery-heading {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 32px;
    }

    .kifco-gallery-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .kifco-gallery-thumb {
        height: 256px;
    }

    .kifco-lightbox {
        padding: 76px 18px 28px;
    }

    .kifco-lightbox-prev {
        left: 8px;
    }

    .kifco-lightbox-next {
        right: 8px;
    }

    .kifco-lightbox-title {
        font-size: 22px;
        line-height: 30px;
    }

    .kifco-lightbox-desc {
        font-size: 15px;
        line-height: 24px;
    }
}