/* ===== استایل گواهینامه‌ها ===== */

.cert-grid-dnn {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-family: 'Vazirmatn', 'Tahoma', sans-serif;
    padding: 0 0 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* جهت نوشتار در HTML تنظیم میشه، اینجا دیگه direction نمی‌ذاریم */
/* برای فارسی: dir="rtl" و برای انگلیسی: dir="ltr" */

.cert-card-dnn {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid rgba(200, 200, 200, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 12px 16px;
    text-align: center;
}

.cert-card-dnn:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.10);
    border-color: rgba(160, 160, 160, 0.8);
}

.cert-image-dnn {
    width: 100%;
    max-width: 260px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
}

.cert-image-dnn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #ffffff;
    padding: 8px;
    pointer-events: none;
}

.cert-title-dnn {
    font-size: 1rem;
    font-weight: 700;
    color: #0f1e34;
    margin-bottom: 2px;
    pointer-events: none;
}

.cert-sub-dnn {
    font-size: 0.75rem;
    color: #5d7188;
    line-height: 1.4;
    pointer-events: none;
}

.cert-badge-dnn {
    display: inline-block;
    margin-top: 10px;
    background: #eef3f8;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #1a2b4a;
    transition: 0.3s;
    pointer-events: none;
}

.cert-card-dnn:hover .cert-badge-dnn {
    background: #e31b23;
    color: #fff;
}

.cert-link-dnn {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #8fa0b5;
    text-decoration: none;
    transition: 0.3s;
    border-bottom: 1px dashed transparent;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 8px 16px;
    position: relative;
    z-index: 10;
}

.cert-card-dnn:hover .cert-link-dnn {
    color: #e31b23;
    border-bottom-color: #e31b23;
}

/* ===== پاپ‌آپ ===== */

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    max-width: 90vw;
    width: auto;
    max-height: 90vh;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    animation: scaleIn 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 3px solid rgba(200, 200, 200, 0.6);
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 85vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    padding: 15px;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2b4a;
    cursor: pointer;
    transition: 0.3s;
    background: #f0f4f8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    line-height: 1;
    z-index: 20;
}

/* موقعیت دکمه بستن در HTML با کلاس تنظیم میشه */
/* برای فارسی: left: 16px ، برای انگلیسی: right: 16px */

.lightbox-close:hover {
    background: #e31b23;
    color: #fff;
    transform: rotate(90deg);
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f1e34;
    margin-top: 16px;
    margin-bottom: 4px;
}

.lightbox-sub {
    font-size: 0.9rem;
    color: #5d7188;
    margin-bottom: 12px;
}

/* ===== انیمیشن‌ها ===== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== ریسپانسیو ===== */

@media (max-width: 992px) {
    .cert-grid-dnn {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .cert-image-dnn {
        max-width: 220px;
    }
}

@media (max-width: 576px) {
    .cert-grid-dnn {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cert-image-dnn {
        max-width: 260px;
    }
    .lightbox-content {
        padding: 20px;
        width: 95%;
    }
    .lightbox-close {
        top: 8px;
        width: 34px;
        height: 34px;
        font-size: 1.4rem;
    }
}


/*---------ماموریت و چشم انداز--------*/


.pasargad-vision {
    position: relative;

    width: 100%;

    padding: 100px 0;

    background: #fff;

    direction: rtl;

    overflow: hidden;
}


/* =========================================================
   CONTAINER
========================================================= */

.pasargad-vision-inner {
    width: 88%;

    max-width: 1260px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 85px;

    align-items: center;
}


/* =========================================================
   IMAGE
========================================================= */

.pasargad-vision-media {
    position: relative;
}


.pasargad-vision-image {
    position: relative;

    width: 100%;

    height: 570px;

    overflow: hidden;

    border-radius: 28px;

    background: #111;

    box-shadow:
        0 25px 60px rgba(0,0,0,0.11);
}


.pasargad-vision-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s ease,
        filter 0.6s ease;
}


.pasargad-vision-image:hover img {
    transform: scale(1.035);

    filter:
        brightness(0.88)
        contrast(1.05);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.pasargad-vision-overlay {
    position: absolute;

    right: 20px;
    bottom: 20px;

    display: flex;

    flex-direction: column;

    padding: 15px 18px;

    color: #fff;

    background:
        rgba(10,10,10,0.62);

    border:
        1px solid rgba(255,255,255,0.12);

    border-radius: 14px;

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);
}


.pasargad-vision-overlay span {
    margin-bottom: 4px;

    color: #eb0000;

    font-size: 8px;

    font-weight: 600;

    letter-spacing: 3px;

    direction: ltr;
}


.pasargad-vision-overlay strong {
    font-size: 12px;

    font-weight: 600;

    letter-spacing: 1.5px;

    direction: ltr;
}


/* گوشه قرمز */

.pasargad-vision-media::after {
    content: "";

    position: absolute;

    left: -15px;
    bottom: -15px;

    width: 85px;
    height: 85px;

    border-left: 2px solid #eb0000;
    border-bottom: 2px solid #eb0000;

    border-radius: 0 0 0 18px;

    opacity: 0.7;
}


/* =========================================================
   CONTENT
========================================================= */

.pasargad-vision-content {
    max-width: 650px;
}


/* =========================================================
   LABEL
========================================================= */

.pasargad-section-label {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 17px;
}


.pasargad-section-label span {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    color: #eb0000;

    font-size: 10px;

    font-weight: 700;

    border:
        1px solid rgba(235,0,0,0.25);

    border-radius: 50%;
}


.pasargad-section-label strong {
    color: #222;

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   HEADINGS
========================================================= */

.pasargad-vision-block > h2 {
    margin: 0 0 25px;

    color: #171717;

    font-size: 29px;

    line-height: 1.65;

    font-weight: 700;
}


.pasargad-vision-block > h2 span {
    color: #eb0000;
}


/* =========================================================
   MISSION LIST
========================================================= */

.pasargad-mission-list {
    margin: 0;

    padding: 0;

    list-style: none;
}


.pasargad-mission-list li {
    display: flex;

    align-items: flex-start;

    gap: 15px;

    padding: 14px 0;

    border-bottom:
        1px solid #eeeeee;
}


.pasargad-mission-list li:last-child {
    border-bottom: none;
}


.pasargad-list-icon {
    position: relative;

    flex: 0 0 auto;

    width: 8px;
    height: 8px;

    margin-top: 9px;

    border-radius: 50%;

    background: #eb0000;

    box-shadow:
        0 0 0 5px rgba(235,0,0,0.07);
}


.pasargad-mission-list p {
    margin: 0;

    color: #666;

    font-size: 12px;

    line-height: 2.15;

    text-align: justify;
}


/* =========================================================
   FUTURE
========================================================= */

.pasargad-future {
    margin-top: 50px;

    padding-top: 38px;

    border-top:
        1px solid #e9e9e9;
}


.pasargad-future-box {
    display: flex;

    align-items: stretch;

    gap: 20px;

    margin-top: 5px;

    padding: 22px 25px;

    background:
        linear-gradient(
            135deg,
            #fafafa,
            #f4f4f4
        );

    border-radius: 18px;

    border:
        1px solid #eeeeee;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.pasargad-future-box:hover {
    transform: translateY(-3px);

    border-color:
        rgba(235,0,0,0.18);

    box-shadow:
        0 15px 35px rgba(0,0,0,0.05);
}


.pasargad-future-line {
    width: 3px;

    flex: 0 0 3px;

    border-radius: 10px;

    background: #eb0000;
}


.pasargad-future-box small {
    display: block;

    margin-bottom: 7px;

    color: #eb0000;

    font-size: 8px;

    letter-spacing: 3px;

    direction: ltr;
}


.pasargad-future-box h3 {
    margin: 0;

    color: #222;

    font-size: 17px;

    font-weight: 650;

    line-height: 1.9;
}


.pasargad-future-box h3 span {
    color: #eb0000;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .pasargad-vision {
        padding: 75px 0;
    }


    .pasargad-vision-inner {
        width: 90%;

        grid-template-columns: 1fr;

        gap: 55px;
    }


    .pasargad-vision-image {
        height: 430px;
    }


    .pasargad-vision-content {
        max-width: 750px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .pasargad-vision {
        padding: 60px 0;
    }


    .pasargad-vision-inner {
        width: 90%;

        gap: 40px;
    }


    .pasargad-vision-image {
        height: 330px;

        border-radius: 20px;
    }


    .pasargad-vision-media::after {
        display: none;
    }


    .pasargad-vision-overlay {
        right: 15px;
        bottom: 15px;

        padding: 11px 14px;
    }


    .pasargad-vision-block > h2 {
        font-size: 25px;

        line-height: 1.55;
    }


    .pasargad-mission-list li {
        gap: 13px;

        padding: 12px 0;
    }


    .pasargad-mission-list p {
        font-size: 11px;

        line-height: 2.1;
    }


    .pasargad-future {
        margin-top: 35px;

        padding-top: 30px;
    }


    .pasargad-future-box {
        padding: 18px;

        gap: 15px;
    }


    .pasargad-future-box h3 {
        font-size: 14px;
    }

}



