﻿.slider-img {
    object-fit: cover;
    border-radius: 16px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1)
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    top: 50%;
    transform: translateY(-50%)
}

.carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%
}

.slicon {
    background-color: rgba(250,250,250,.78);
    border-radius: 50px
}

.cx-journey {
    width: 100%;
    margin-top: 125px;
    margin-bottom: 50px;
    background: #fbfcfd;
    padding: 70px 0;
}

    .cx-journey img {
        display: block;
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
    }

.journey-intro-minimal {
    max-width: 600px;
    margin: 100px auto -10px;
    text-align: center;
    padding: 0 15px
}

    .journey-intro-minimal strong {
        font-family: 'YEKANFBld';
    }

.est-tag {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-accent-warm);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
    opacity: .8;
    font-family: 'YEKANFSBld';
}

.minimal-title {
    font-family: 'YEKANFBlk';
    font-size: 18px;
    font-weight: 900;
    color: var(--color-primary-dark);
    margin-bottom: 15px;
}

.minimal-desc {
    font-size: 14px;
    line-height: 1.8;
    color: #424242;
    text-align: justify;
    text-align-last: center;
    direction: rtl;
    margin-bottom: 30px
}

.index-lastnews {
    direction: rtl;
    padding: 16px 20px;
}

.index-lastnews-header {
    font-family: 'YEKANFBlk';
    text-align: center;
    margin-bottom: 72px;
}

    .index-lastnews-header h6 {
        font-size: 18px;
        color: #272727;
        font-weight: 900;
        position: relative;
        display: inline-block;
    }

        .index-lastnews-header h6::after {
            content: '';
            position: absolute;
            bottom: -12px;
            right: 0;
            width: 35px;
            height: 3px;
            background: #0743b5;
            border-radius: 2px;
        }

.index-lastnews-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(3, minmax(280px, 300px));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.index-lastnews-card {
    background: #fafafa;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid rgba(0,0,0,.03);
    width: 100%;
    max-width: 340px;
    height: auto;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    transition: transform 0.6s ease;
}

    .index-lastnews-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 40px rgba(0,22,61,.06);
    }

        .index-lastnews-card:hover .index-lastnews-img img {
            transform: scale(1.08);
        }

.index-lastnews-img {
    position: relative;
    width: 100%;
    aspect-ratio: 3.5/4;
    overflow: hidden;
    border-radius: 18px;
    flex-shrink: 0;
}

    .index-lastnews-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.index-lastnews-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--color-primary-dark);
    color: var(--color-text-primary);
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.index-lastnews-body {
    padding: 20px 8px 8px
}

.index-lastnews-meta {
    margin-bottom: 10px
}

    .index-lastnews-meta .date {
        font-size: 12px;
        color: #999
    }

.index-lastnews-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin: 15px 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
    font-family: 'YEKANFSBld';
}

.index-lastnews-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: justify;
}

.index-lastnews-footer {
    margin-top: auto;
    border-top: 1px solid #f2f2f2;
    padding-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.index-lastnews-link {
    text-decoration: none;
    color: var(--color-primary-dark);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .3s ease;
}

    .index-lastnews-link .arrow {
        font-size: 18px;
        transition: transform .3s ease
    }

    .index-lastnews-link:hover {
        color: var(--color-accent-warm)
    }

        .index-lastnews-link:hover .arrow {
            transform: translateX(-5px)
        }

.index-lastnews-all {
    margin-top: 60px;
    text-align: center;
}

    .index-lastnews-all a {
        display: inline-block;
        border: 1.25px solid #0743b5;
        color: white;
        background: #0743b5;
        font-size: 13px;
        padding: 8px 24px;
        transition: all 900ms ease;
        border-radius: 50px;
        text-decoration: none;
    }

        .index-lastnews-all a:hover {
            background: #0743b5e7;
        }

.cx-project {
    padding-top: 24px;
}

.cx-project-grid {
    display: grid;
}

.cx-project-card {
    background-color: #fafafa;
    border: 1px solid #e6e5e5ff;
    text-align: center;
    align-content: center;
    transition-duration: 500ms;
    display: block;
    text-decoration: none;
    padding: 20px;
}

    .cx-project-card:hover {
        box-shadow: 0 0 9px 3px #83838332;
        transform: scale(1.01);
    }

    .cx-project-card h6 {
        color: #4c4c4c;
        font-size: 18px;
        font-family: "YEKANFBLK";
        margin-top: 15px;
    }

    .cx-project-card p {
        color: #4c4c4c;
        font-size: 13px;
    }

.card-icon-container {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

    .card-icon-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: opacity 500ms ease;
    }

.img-hover {
    opacity: 0;
}

.cx-project-card:hover .img-main {
    opacity: 0;
}

.cx-project-card:hover .img-hover {
    opacity: 1;
}


.cta-about {
    direction: rtl;
    padding: 75px 0;
    margin: 50px 0;
    background-color: #fafbfc;
}

.cta-about__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    justify-content: space-between;
    align-items: center;
}

.cta-about__slogan {
    font-size: 16px;
    color: #4C4C4C;
    margin-bottom: 16px;
    font-family: "YEKANFBLD";
}

.cta-about__heading {
    font-size: 34px;
    margin-bottom: 24px;
    color: #0743b5;
    font-family: "YEKANFBLK";
}

.cta-about__paragraph {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 16px;
    text-align: justify;
}

    .cta-about__paragraph span {
        font-weight: bold;
        color: #0743b5;
    }

.cta-about__media {
    position: relative;
}

.cta-video-cover {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    z-index: 2;
}

    .cta-video-cover img {
        width: 100%;
        display: block;
    }

.cta-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 50%;
}

    .cta-video-play::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-40%, -50%);
        border-style: solid;
        border-width: 13px 0 13px 20px;
        border-color: transparent transparent transparent #fff;
    }



.cta-video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

    .cta-video-modal.is-active {
        display: flex;
    }

.cta-video-modal__box {
    position: relative;
    width: 92%;
    max-width: 860px;
    background: #000;
    border-radius: 14px;
}

.cta-video-modal__player {
    width: 100%;
    border-radius: 14px;
}

.cta-video-modal__close {
    position: absolute;
    top: -44px;
    right: 0;
    font-size: 34px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width:1201px) {
    .cx-project-grid {
        grid-template-columns: repeat(4,1fr);
        gap: 24px;
    }

    .cx-project-card {
        width: 280px;
        height: 280px;
        border-radius: 36px;
    }

        .cx-project-card img {
            margin-bottom: 36px;
        }
}

@media (max-width:1201px) and (min-width:769px) {
    .index-lastnews-grid {
        grid-template-columns: repeat(2, minmax(280px, 340px));
        gap: 24px;
    }
}

@media (max-width:1201px) and (min-width:521px) {
    .cx-project-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 12px;
        text-align: center
    }

    .cx-project-card {
        width: 100%;
        height: 180px;
        margin: auto;
        border-radius: 16px;
    }

        .cx-project-card img {
            width: 60px;
            margin-bottom: 16px;
        }
}



@media (max-width:1100px) {
    .index-lastnews-grid {
        grid-template-columns: repeat(2,minmax(280px,340px));
        justify-content: center;
        max-width: 900px;
        margin: 0 auto;
    }

    .videovector {
        width: 100px;
        right: 0;
    }
}

@media (min-width:769px) {
    .cta-about__wrapper {
        gap: 24px;
        grid-template-columns: auto 360px;
    }

    .cta-about__media {
        height: 360px;
    }
}

@media (max-width:768px) {
    .index-lastnews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 420px;
    }

    .cta-about__wrapper {
        grid-template-columns: 100%;
    }

    .cta-about__media {
        width: 300px;
        height: 300px;
        margin:auto
    }

    .videovector {
        top: -35px;
        right: 0;
        transform: none;
        width: 100px;
    }
}

@media (max-width:520px) {
    .videovector {
        display: none;
    }

    .cx-project-grid {
        grid-template-columns: 100%;
        gap: 12px;
        text-align: center
    }

    .cx-project-card {
        width: 100%;
        height: 180px;
        margin: auto;
        border-radius: 16px;
    }

        .cx-project-card img {
            width: 60px;
            margin-bottom: 16px;
        }
}
