/*=========================================================
                    CERTIFICATES
=========================================================*/

.certificates {
    position: relative;
    overflow: hidden;
    padding: 50px 0 120px;
    background: linear-gradient(180deg,#04131d 0%,#071c28 45%,#041018 100%);
}

    .certificates::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(circle at 15% 20%,rgba(22,223,242,.08),transparent 35%), radial-gradient(circle at 85% 80%,rgba(22,223,242,.06),transparent 32%);
    }

    .certificates::after {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(rgba(255,255,255,.015),transparent 45%);
    }



/*=========================================================
                    HEADER
=========================================================*/

.certificates-header {
    text-align: center;
    margin-bottom: 90px;
}

.certificates-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: #16dff2;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

    .certificates-subtitle::before,
    .certificates-subtitle::after {
        content: "";
        width: 60px;
        height: 2px;
        background: #16dff2;
        opacity: .45;
    }

.certificates-title {
    color: #fff;
    font-size: clamp(38px,4vw,58px);
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 25px;
}

    .certificates-title span {
        color: #16dff2;
    }

.certificates-description {
    width: min(900px,92%);
    margin: auto;
    color: #d7e4ea;
    font-size: 19px;
    line-height: 2.15;
}


/*=========================================================
                    SECTION DIVIDER
=========================================================*/

.section-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 90px 0 65px;
}

    .section-divider span {
        position: relative;
        padding: 0 45px;
        color: #fff;
        font-size: 30px;
        font-weight: 900;
    }

        .section-divider span::before,
        .section-divider span::after {
            content: "";
            position: absolute;
            top: 50%;
            width: 120px;
            height: 2px;
            background: linear-gradient(90deg,transparent,#16dff2);
        }

        .section-divider span::before {
            right: 100%;
        }

        .section-divider span::after {
            left: 100%;
            transform: scaleX(-1);
        }


/*=========================================================
                CONSULTANT SECTION
=========================================================*/

.consultant-section {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 32px;
}


/*=========================================================
                CONSULTANT CARD
=========================================================*/

.consultant-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 32px;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10,30,42,.98), rgba(6,20,30,.98));
    border: 1px solid rgba(22,223,242,.18);
    transition: transform .35s, box-shadow .35s, border-color .35s;
}

    .consultant-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        opacity: 0;
        transition: .35s;
        pointer-events: none;
        box-shadow: inset 0 0 0 1px rgba(22,223,242,.35), 0 0 35px rgba(22,223,242,.12);
    }

.consultant-image {
    width: 100%;
    aspect-ratio: 210/297;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
}

    .consultant-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .45s;
    }

.consultant-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.consultant-title {
    color: #fff;
    font-size: 31px;
    font-weight: 900;
    line-height: 1.6;
}

.consultant-description {
    margin: 18px 0 26px;
    color: #d8e5ea;
    font-size: 17px;
    line-height: 2.05;
}

.consultant-level {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    padding: 11px 22px;
    border-radius: 40px;
    background: rgba(22,223,242,.08);
    border: 1px solid rgba(22,223,242,.28);
    margin-bottom: 30px;
}

    .consultant-level i {
        color: #16dff2;
    }

    .consultant-level span {
        color: #16dff2;
        font-size: 15px;
        font-weight: 800;
    }


/*=========================================================
                    BUTTONS
=========================================================*/

.certificate-button,
.iso-view,
.award-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: rgba(22,223,242,.06);
    border: 1px solid rgba(22,223,242,.30);
    color: #16dff2;
    font-family: "Vazirmatn",sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: .35s;
}

    .certificate-button i,
    .iso-view i,
    .award-view i {
        transition: .35s;
    }

@media(hover:hover) {

    .certificate-button:hover,
    .iso-view:hover,
    .award-view:hover {
        background: #16dff2;
        color: #041018;
    }

        .certificate-button:hover i,
        .iso-view:hover i,
        .award-view:hover i {
            transform: translateX(-5px);
            color: #041018;
        }
}


/*=========================================================
                CARD HOVER
=========================================================*/

@media(hover:hover) {

    .consultant-card:hover {
        transform: translateY(-8px);
        border-color: rgba(22,223,242,.45);
        box-shadow: 0 20px 45px rgba(0,0,0,.35), 0 0 25px rgba(22,223,242,.14);
    }

        .consultant-card:hover::before {
            opacity: 1;
        }

        .consultant-card:hover .consultant-image img {
            transform: scale(1.03);
        }
}


/*=========================================================
                SCROLL ANIMATION
=========================================================*/

.consultant-card,
.iso-card,
.award-card {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity .8s ease, transform .8s ease;
}

    .consultant-card.show,
    .iso-card.show,
    .award-card.show {
        opacity: 1;
        transform: none;
    }


/*=========================================================
                    ISO SECTION
=========================================================*/

.iso-section {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 28px;
    max-width: 1400px;
    margin: auto;
}


/*=========================================================
                    ISO CARD
=========================================================*/

.iso-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: 24px;
    padding: 24px;
    min-height: 270px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10,30,42,.98), rgba(6,20,30,.98));
    border: 1px solid rgba(22,223,242,.18);
    transition: transform .35s, border-color .35s, box-shadow .35s;
}

    .iso-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        opacity: 0;
        pointer-events: none;
        transition: .35s;
        box-shadow: inset 0 0 0 1px rgba(22,223,242,.35), 0 0 35px rgba(22,223,242,.12);
    }

    .iso-card:hover::before {
        opacity: 1;
    }

    .iso-card:hover {
        transform: translateY(-8px);
        border-color: rgba(22,223,242,.45);
        box-shadow: 0 20px 45px rgba(0,0,0,.35), 0 0 25px rgba(22,223,242,.14);
    }


/*=========================================================
                    ISO IMAGE
=========================================================*/

.iso-image {
    width: 190px;
    aspect-ratio: 210 / 297;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .iso-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: .45s;
    }

.iso-card:hover .iso-image img {
    transform: scale(1.03);
}


/*=========================================================
                    ISO CONTENT
=========================================================*/

.iso-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.iso-title {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.5;
    margin-bottom: 12px;
}

.iso-description {
    color: #d7e4ea;
    font-size: 16px;
    line-height: 2;
    margin-bottom: 28px;
}


/*=========================================================
                    TABLET
=========================================================*/

@media(max-width:1200px) {

    .iso-section {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}


/*=========================================================
                    MOBILE
=========================================================*/

@media(max-width:768px) {

    .iso-section {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .iso-card {
        grid-template-columns: 170px 1fr;
        gap: 18px;
        padding: 20px;
        min-height: auto;
    }

    .iso-image {
        width: 170px;
    }

    .iso-title {
        font-size: 22px;
    }

    .iso-description {
        font-size: 15px;
        margin-bottom: 22px;
    }
}


/*=========================================================
                    SMALL MOBILE
=========================================================*/

@media(max-width:560px) {

    .iso-card {
        grid-template-columns: 150px 1fr;
        gap: 16px;
        padding: 18px;
    }

    .iso-image {
        width: 150px;
    }

    .iso-title {
        font-size: 20px;
    }

    .iso-description {
        font-size: 14px;
        line-height: 1.9;
    }

    .iso-view {
        width: 100%;
    }
}


/*=========================================================
                    VERY SMALL
=========================================================*/

@media(max-width:420px) {

    .iso-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .iso-image {
        width: min(210px,80%);
        margin: auto;
    }

    .iso-content {
        align-items: center;
    }

    .iso-view {
        width: 100%;
    }
}


/*=========================================================
                    AWARDS SECTION
=========================================================*/

.award-slider.swiper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 28px 56px 85px;
    direction: rtl;
}

.award-slider .swiper-wrapper {
    align-items: stretch;
}

.award-slider .swiper-slide {
    display: flex;
    height: auto;
}


/*=========================================================
                    AWARD CARD
=========================================================*/

.award-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(10,30,42,.98), rgba(6,20,30,.98));
    border: 1px solid rgba(22,223,242,.18);
    transition: transform .35s, border-color .35s, box-shadow .35s;
}

    .award-card::before {
        content: "";
        position: absolute;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        border-radius: inherit;
        transition: .35s;
        box-shadow: inset 0 0 0 1px rgba(22,223,242,.35), 0 0 35px rgba(22,223,242,.12);
    }

    .award-card:hover {
        transform: translateY(-8px);
        border-color: rgba(22,223,242,.45);
        box-shadow: 0 20px 45px rgba(0,0,0,.35), 0 0 24px rgba(22,223,242,.14);
    }

        .award-card:hover::before {
            opacity: 1;
        }


/*=========================================================
                    IMAGE
=========================================================*/

.award-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #081b27;
    min-height: 360px;
}

    .award-image img {
        width: auto;
        height: 330px;
        max-width: 100%;
        object-fit: contain;
        transition: .4s;
    }

.award-card:hover .award-image img {
    transform: scale(1.03);
}


/*=========================================================
                    CONTENT
=========================================================*/

.award-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.award-title {
    color: #fff;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.8;
    margin-bottom: 12px;
}

.award-description {
    flex: 1;
    text-align: center;
    color: #d7e4ea;
    font-size: 14px;
    line-height: 2;
}


/*=========================================================
                    NAVIGATION
=========================================================*/

/*=============================
        CONTROLS
==============================*/

.award-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 28px;
}

.award-prev,
.award-next {
    position: static;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    background: rgba(22,223,242,.10);
    border: 1px solid rgba(22,223,242,.35);
    transition: .3s;
}

    .award-prev:hover,
    .award-next:hover {
        background: #16dff2;
        color: #041018;
    }

.swiper-pagination {
    position: static !important;
    width: auto !important;
}


/*=========================================================
                    PAGINATION
=========================================================*/

.swiper-pagination {
    bottom: 5px !important;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ffffff55;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: #16dff2;
}


/*=========================================================
                    TABLET
=========================================================*/

@media(max-width:992px) {

    .award-slider.swiper {
        padding: 22px 42px 75px;
    }

    .award-image {
        min-height: 320px;
    }

        .award-image img {
            height: 290px;
        }
}


/*=========================================================
                    MOBILE
=========================================================*/

@media(max-width:768px) {

    .award-slider.swiper {
        width: min(94%,430px);
        margin: auto;
        padding: 18px 10px 70px;
    }

    .award-card {
        border-radius: 20px;
    }

    .award-image {
        min-height: 280px;
        padding: 14px;
    }

        .award-image img {
            height: 250px;
        }

    .award-content {
        padding: 18px;
    }

    .award-title {
        font-size: 18px;
    }

    .award-description {
        font-size: 13px;
    }

    .award-controls {
        gap: 16px;
        margin-top: 20px;
    }

    .award-prev,
    .award-next {
        width: 40px;
        height: 40px;
    }

    }
}


/*=========================================================
                SMALL MOBILE
=========================================================*/

@media(max-width:480px) {

    .award-slider.swiper {
        width: 92%;
    }

    .award-image {
        min-height: 240px;
    }

        .award-image img {
            height: 215px;
        }

    .award-content {
        padding: 16px;
    }

    .award-view {
        width: 100%;
    }
}


/*=========================================================
                VERY SMALL
=========================================================*/

@media(max-width:360px) {

    .award-image {
        min-height: 210px;
    }

        .award-image img {
            height: 190px;
        }
}

/*=========================================================
                CERTIFICATE MODAL
=========================================================*/

.certificate-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(2,10,16,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

    .certificate-modal.show {
        opacity: 1;
        visibility: visible;
    }


/*=========================================================
                    IMAGE
=========================================================*/

.modal-image {
    display: block;
    max-width: min(92vw,1000px);
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0,0,0,.60), 0 0 40px rgba(22,223,242,.10);
    transform: translateY(25px) scale(.92);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}

.certificate-modal.show .modal-image {
    transform: translateY(0) scale(1);
    opacity: 1;
}


/*=========================================================
                CLOSE BUTTON
=========================================================*/

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 54px;
    height: 54px;
    border: none;
    border-radius: 50%;
    background: rgba(22,223,242,.95);
    color: #041018;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    transition: .35s;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

    .modal-close:hover {
        transform: rotate(90deg) scale(1.08);
        background: #ffffff;
    }


/*=========================================================
                MOBILE
=========================================================*/

@media(max-width:768px) {

    .certificate-modal {
        padding: 18px;
    }

    .modal-image {
        max-width: 96vw;
        max-height: 88vh;
        border-radius: 10px;
    }

    .modal-close {
        width: 46px;
        height: 46px;
        top: 15px;
        right: 15px;
        font-size: 18px;
    }
}


/*=========================================================
            VERY SMALL MOBILE
=========================================================*/

@media(max-width:420px) {

    .certificate-modal {
        padding: 12px;
    }

    .modal-image {
        max-width: 98vw;
        max-height: 86vh;
    }
}



/*=========================================================
                GLOBAL RESPONSIVE
=========================================================*/

/*---------------------- 1200px ----------------------*/

@media (max-width:1200px) {

    .certificates {
        padding: 80px 0 110px;
    }

    .certificates-header {
        margin-bottom: 75px;
    }

    .consultant-section {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}


/*---------------------- 992px ----------------------*/

@media (max-width:992px) {

    .certificates-title {
        font-size: 44px;
    }

    .certificates-description {
        font-size: 17px;
    }

    .consultant-card {
        grid-template-columns: 220px 1fr;
    }
}


/*---------------------- 768px ----------------------*/

@media (max-width:768px) {

    .certificates {
        padding: 70px 0 90px;
    }

    .certificates-header {
        margin-bottom: 60px;
    }

    .certificates-subtitle {
        font-size: 16px;
        gap: 14px;
    }

        .certificates-subtitle::before,
        .certificates-subtitle::after {
            width: 40px;
        }

    .certificates-title {
        font-size: 36px;
    }

    .certificates-description {
        font-size: 16px;
        line-height: 2;
    }

    .section-divider {
        margin: 70px 0 45px;
    }

        .section-divider span {
            font-size: 24px;
            padding: 0 22px;
        }

            .section-divider span::before,
            .section-divider span::after {
                width: 55px;
            }

    .consultant-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .consultant-image {
        width: min(240px,75%);
        margin: auto;
    }

    .consultant-content {
        align-items: center;
    }

    .consultant-level {
        margin-bottom: 22px;
    }

    .certificate-button,
    .iso-view,
    .award-view {
        width: 100%;
        max-width: 260px;
    }
}


/*---------------------- 560px ----------------------*/

@media (max-width:560px) {

    .certificates {
        padding: 60px 0 80px;
    }

    .certificates-title {
        font-size: 31px;
    }

    .certificates-description {
        font-size: 15px;
    }

    .section-divider {
        margin: 55px 0 35px;
    }

        .section-divider span {
            font-size: 21px;
        }
}


/*---------------------- 420px ----------------------*/

@media (max-width:420px) {

    .certificates-title {
        font-size: 28px;
        line-height: 1.7;
    }

    .certificates-description {
        font-size: 14px;
    }

    .consultant-image {
        width: 82%;
    }

    .certificate-button,
    .iso-view,
    .award-view {
        max-width: none;
        width: 100%;
    }
}


/*=========================================================
                IMAGE LOADING
=========================================================*/

.consultant-image img,
.iso-image img,
.award-image img {
    opacity: 0;
    transition: opacity .45s ease, transform .45s ease;
}

    .consultant-image img.loaded,
    .iso-image img.loaded,
    .award-image img.loaded {
        opacity: 1;
    }