/* =========================================================
   About Page - Our Journey Section
   ========================================================= */
.kifco-about-page {
    width: 100%;
    background-color: #000000;
    color: #ffffff;
    overflow-x: clip;
}

.kifco-journey-section {
    width: 100%;
    padding: 88px 48px 96px;
    background-color: #000000;
    box-sizing: border-box;
}

.kifco-journey-inner {
    max-width: 1700px;
    margin: 0 auto;
}

.kifco-journey-title {
    font-family: 'madefor-display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 70px;
    line-height: 1.12;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #ffffff;
    margin: 0 0 64px 0;
}

.kifco-journey-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
}

.kifco-journey-content {
    max-width: 710px;
    margin: 0 auto;
}

.kifco-journey-desc {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

.kifco-journey-media {
    width: 100%;
}

.kifco-journey-img {
    display: block;
    width: 700px;
    height: auto;
    max-height: 460px;
    object-fit: cover;
    border-radius: 10px;
}
/* ==========================================
   Responsive Media Queries - Our Journey Section
   ========================================== */

/* شاشات اللابتوب والشاشات المتوسطة (Max-Width: 1400px) */
@media screen and (max-width: 1400px) {
    .kifco-journey-section {
        padding: 76px 36px 84px;
    }

    .kifco-journey-title {
        font-size: 56px;
        margin-bottom: 48px;
    }

    .kifco-journey-grid {
        gap: 40px;
    }

    .kifco-journey-desc {
        font-size: 20px;
        line-height: 1.6;
    }

    .kifco-journey-img {
        width: 100%;
        max-width: 100%;
        max-height: 420px;
    }
}

/* شاشات التابلت ودون 1024px */
@media screen and (max-width: 1024px) {
    .kifco-journey-section {
        padding: 64px 28px 72px;
    }

    .kifco-journey-title {
        font-size: 46px;
        margin-bottom: 36px;
    }

    .kifco-journey-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 32px;
    }

    .kifco-journey-desc {
        font-size: 18px;
        line-height: 1.6;
    }

    .kifco-journey-img {
        width: 100%;
        max-width: 100%;
        max-height: 360px;
    }
}

/* الهواتف المحمولة والتابلت الصغير (Max-Width: 768px) */
@media screen and (max-width: 768px) {
    .kifco-journey-section {
        width: 100%;
        max-width: 100%;
        padding: 48px 16px 56px;
        box-sizing: border-box;
    }

    .kifco-journey-inner,
    .kifco-journey-content,
    .kifco-journey-media {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .kifco-journey-title {
        font-size: 36px;
        line-height: 1.18;
        margin-bottom: 24px;
        overflow-wrap: break-word;
    }

    .kifco-journey-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .kifco-journey-desc {
        font-size: 16px;
        line-height: 1.65;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .kifco-journey-img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 280px;
        margin: 0 auto;
        box-sizing: border-box;
    }
}

/* الهواتف المحمولة الصغيرة جداً (Max-Width: 480px) */
@media screen and (max-width: 480px) {
    .kifco-journey-section {
        padding: 40px 14px 48px;
    }

    .kifco-journey-title {
        font-size: 28px;
        line-height: 1.22;
        margin-bottom: 20px;
    }

    .kifco-journey-grid {
        gap: 22px;
    }

    .kifco-journey-desc {
        font-size: 15px;
        line-height: 1.6;
    }

    .kifco-journey-img {
        max-height: 230px;
    }
}

/* ==========================================
   About Section Styles
   ========================================== */
.about-section {
    position: relative;
    width: 100%;
    min-height: 760px;
    padding: 90px 70px 120px 70px;
    background: linear-gradient(180deg, #04050E 0%, #0A0E24 35%, #111738 100%);
    color: #F4F6FB;
    box-sizing: border-box;
    overflow: hidden;
}

/* أنيميشن الستارة: اختفاء نصف ثانية ثم ظهور بطيء جداً من تحت لفوق */
.curtain-reveal-section {
    opacity: 0;
    clip-path: inset(100% 0% 0% 0%);
    -webkit-clip-path: inset(100% 0% 0% 0%);
    transform: translateY(36px);
    transition:
        clip-path 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
        -webkit-clip-path 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
        transform 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s,
        opacity 1.8s ease-out 0.5s;
    will-change: clip-path, transform, opacity;
}

.curtain-reveal-section.is-visible {
    opacity: 1;
    clip-path: inset(0% 0% 0% 0%);
    -webkit-clip-path: inset(0% 0% 0% 0%);
    transform: translateY(0);
}

.about-container {
    max-width: 1320px;
    margin: 0 auto;
}

/* العنوان الرئيسي */
.about-header {
    text-align: center;
    margin: 0 auto 74px auto;
}

.about-main-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 68px;
    line-height: 66px;
    font-weight: 400;
    color: #FFFFFF;
    margin:0;
}

/* شبكة 3 أعمدة */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 54px;
    align-items: start;
}

.about-col {
    display: flex;
    flex-direction: column;
}

.about-col-title {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 42px;
    line-height: 40px;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 28px 0;
}

.about-text {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 33px;
    font-weight: 400;
    color: #E5E8F0;
    margin: 0 0 22px 0;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* قائمة القيم الأساسية */
.about-values-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-value-item {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 30px;
    font-weight: 400;
    color: #E5E8F0;
}

.about-value-item strong {
    font-weight: 700;
    color: #FFFFFF;
}

/* تجاوب الشاشات */
@media screen and (max-width: 1024px) {
    .about-section {
        padding: 75px 32px 95px 32px;
    }
    .about-main-title {
        font-size: 42px;
        line-height: 50px;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }
    .about-col-title {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .curtain-reveal-section {
        opacity: 1;
        clip-path: none;
        -webkit-clip-path: none;
        transform: none;
        transition: none;
    }
}
/* ==========================================
   Our Ethics Section Styles
   ========================================== */
.ethics-section {
    position: relative;
    width: 100%;
    padding: 110px 50px 150px 50px;
    background: linear-gradient(
        180deg,
        #111737 0%,
        #040611 18%,
        #000000 32%,
        #000000 100%
    );
    color: #FFFFFF;
    box-sizing: border-box;
    overflow-x: clip;
}

.ethics-container {
    max-width: 1480px;
    margin: 0 auto;
}

/* الهيدر الأوسط */
.ethics-header {
    max-width: 780px;
    margin: 0 auto 84px auto;
    text-align: center;
}

.ethics-title {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 56px;
    line-height: 68px;
    font-weight: 400;
    color: #FFFFFF;
    margin: 0 0 24px 0;
}

.ethics-subtitle {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 20px;
    line-height: 32px;
    font-weight: 400;
    color: #EAECEF;
    margin: 0;
}

/* شبكة المحتوى السفلي: الفيديو أعلى طبقة والقائمة شفافة وقريبة */
.ethics-content-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 0px;
    align-items: center;
    background: transparent;
}

.ethics-media-col {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
    z-index: 4;
}

.ethics-video-box {
    position: relative;
    width: 100%;
    max-width: 740px;
    background: transparent;
    overflow: visible;
    -webkit-mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, #000 68%, rgba(0, 0, 0, 0.45) 86%, transparent 100%);
    mask-image: radial-gradient(ellipse 92% 92% at 50% 50%, #000 68%, rgba(0, 0, 0, 0.45) 86%, transparent 100%);
}

.ethics-video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    background: transparent;
    margin-left: 0;
    transform: scale(1.50);
    transform-origin: 50% 50%;
    margin-left: 160px;
}

/* إزالة أي خلفية عن الكلام والقائمة وجعل الفيديو فوقها */
.ethics-list-col,
.ethics-pillars-list,
.ethics-pillar-item {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.ethics-list-col {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-left: -45px;
    padding-left: 0;
    position: relative;
    z-index: 2;
}

.ethics-pillars-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 34px;
    background: transparent;
}

.ethics-pillar-item {
    --shift-x: 0px;
    --delay: 0s;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    width: fit-content;
    background: transparent;
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1.25;
    font-style: italic;
    font-weight: 400;
    color: #FFFFFF;
    opacity: 0;
    transform: translate3d(calc(var(--shift-x) - 24px), 14px, 0);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--delay),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay),
        color 0.3s ease;
    will-change: transform, opacity;
}

.ethics-section.is-visible .ethics-pillar-item,
.curtain-reveal-section.is-visible .ethics-pillar-item {
    opacity: 1;
    transform: translate3d(var(--shift-x), 0px, 0);
}

.ethics-pillar-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FFFFFF;
    flex-shrink: 0;
}

/* توزيع الانزياح والتأخير المتتابع في القائمة */
.pillar-step-1 { --shift-x: 0px;  --delay: 0.2s; }
.pillar-step-2 { --shift-x: 32px; --delay: 0.4s; }
.pillar-step-3 { --shift-x: 56px; --delay: 0.6s; }
.pillar-step-4 { --shift-x: 24px; --delay: 0.8s; }
.pillar-step-5 { --shift-x: 0px;  --delay: 1s; }

/* تجاوب الشاشات */
@media screen and (max-width: 1024px) {
    .ethics-section {
        padding: 85px 30px 105px 30px;
    }
    .ethics-title {
        font-size: 42px;
        line-height: 50px;
    }
    .ethics-subtitle {
        font-size: 17px;
        line-height: 27px;
    }
    .ethics-content-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .ethics-media-col {
        justify-content: center;
    }
    .ethics-video-box {
        max-width: 420px;
    }
    .ethics-video {
        margin-left: 0;
        transform: scale(1.85);
        transform-origin: 50% 50%;
    }
    .ethics-list-col {
        margin-left: 0;
        justify-content: flex-start;
        padding-left: 16px;
    }
    .ethics-pillars-list {
        gap: 24px;
    }
    .ethics-pillar-item {
        --shift-x: 0px;
        font-size: 26px;
        line-height: 34px;
        gap: 14px;
        white-space: normal;
        transform: translate3d(0, 16px, 0);
    }
    .ethics-section.is-visible .ethics-pillar-item,
    .curtain-reveal-section.is-visible .ethics-pillar-item {
        transform: translate3d(0, 0, 0);
    }
    .pillar-step-1,
    .pillar-step-2,
    .pillar-step-3,
    .pillar-step-4,
    .pillar-step-5 {
        --shift-x: 0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ethics-pillar-item {
        opacity: 1;
        transform: translate3d(var(--shift-x), 0, 0);
        transition: none;
    }
}
/* ==========================================
   This Is Us In Numbers Section Styles
   ========================================== */
.numbers-section {
    position: relative;
    z-index: 4;
    width: 100%;
    padding: 1px 60px 120px 60px;
    background: linear-gradient(
        180deg,
        #000000 0%,
        #1A1E41 11%,
        #3F51B5 19%,
        #6E83EC 55%,
        #9BBDFF 100%
    );
    color: #0B0E1A;
    box-sizing: border-box;
    overflow-x: clip;

    /* أنيميشن ظهور القسم بالكامل */
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition:
        opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.numbers-section.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.numbers-container {
    max-width: 1380px;
    margin: 0 auto;
}

/* شبكة الصور الثلاث أعلى القسم */
.numbers-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 5cm;
    margin-bottom: 58px;
    align-items: stretch;
}

.numbers-gallery-item {
    position: relative;
    z-index: 5;
    width: 100%;
    aspect-ratio: 16 / 9.2;
    overflow: hidden;
    background: #141724;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.numbers-gallery-item:hover {
    transform: translateY(-4px);
}

/* زاوية حادة من فوق على اليسار وتحت على اليمين */
.gallery-shape-1,
.gallery-shape-2,
.gallery-shape-3 {
    border-radius: 0px 56px 0px 56px;
}

.numbers-gallery-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.06) brightness(0.76);
}

.numbers-header {
    text-align: center;
    margin-bottom: 50px;
}

.numbers-title {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.2;
    font-weight: 400;
    color: #0D1021;
    margin: 0;
}

/* شبكة الكروت الأربعة بنفس النسب البصرية للمرجع */
.numbers-grid {
    display: grid;
    grid-template-columns: 1.22fr 1.22fr 0.92fr 0.92fr;
    gap: 14px;
    align-items: stretch;
}

/* أنيميشن الشقلبة ثلاثية الأبعاد للكروت */
.number-card {
    perspective: 1200px;
    background: transparent;
}

.number-card-inner {
    height: 100%;
    min-height: 230px;
    padding: 34px 20px;
    border-radius: 14px;
    border: 1.5px solid rgba(13, 16, 33, 0.85);
    background: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* الحالة الابتدائية قبل الشقلبة */
    opacity: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: rotateY(-110deg) scale(0.92);
    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1) var(--flip-delay, 0s),
        opacity 0.65s ease var(--flip-delay, 0s),
        border-color 0.3s ease,
        background-color 0.3s ease;
    will-change: transform, opacity;
}

.numbers-section.is-visible .number-card-inner {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
}

.number-card:hover .number-card-inner {
    border-color: #000000;
    background: rgba(255, 255, 255, 0.08);
}

.number-value {
    font-family: 'madefor-display', 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: clamp(38px, 3.8vw, 56px);
    line-height: 1.1;
    font-weight: 600;
    color: #0D1021;
    margin-bottom: 14px;
}

.number-label {
    font-family: 'madefor-text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 400;
    color: #161B33;
    max-width: 250px;
}

/* تجاوب الشاشات */
@media screen and (max-width: 1100px) {
    .numbers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .numbers-section {
        padding: 0 28px 90px 28px;
    }

    .numbers-gallery-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 3.5cm;
        margin-bottom: 44px;
    }

    .numbers-gallery-item {
        border-radius: 0px 32px 0px 32px;
    }
}

@media screen and (max-width: 640px) {
    .numbers-section {
        padding: 0 20px 85px 20px;
    }
    .numbers-grid {
        grid-template-columns: 1fr;
    }
    .number-card-inner {
        min-height: 185px;
        transform: rotateX(-85deg) scale(0.95);
    }
    .numbers-section.is-visible .number-card-inner {
        transform: rotateX(0deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .numbers-section,
    .number-card-inner {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
