﻿
:root {
    /*--txtClr: rgb(255, 255, 255);
    --firstCrl: #0c0078;*/
    /*--secondClr: #15b9d9;*/
    /*--bgSecondClr: rgb(209 209 209 / 8%);
    --thirdClr: #56598b;
    --fourClr: #5050a1;*/
    /*    --PI-first-bg-color: #667eea;
    --PI-second-bg-color: #764ba2;*/
}


/* ===== صفحه اصلی ===== */
.PIPage .page-header {
    text-align: center;
    /*    margin-bottom: 50px;*/
}

    .PIPage .page-header h1 {
        font-size: 2.5rem;
        font-weight: 800;
        color: #1a202c;
        position: relative;
        /*        display: inline-block;*/
    }

        .PIPage .page-header h1::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2);
            border-radius: 4px;
        }

    .PIPage .page-header p {
        color: #718096;
        font-size: 1.1rem;
        margin-top: 20px;
    }

/* ===== گرید کارت‌ها ===== */
.PIPage .wrapperCard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== کارت پرسنل ===== */
.PIPage .personnel-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    /*    max-width: 25%;*/
    height: 100%;
    /*    border-radius: 50%;*/
}

    .PIPage .personnel-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
    }

/* تصویر کارت */
.PIPage .card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

    .PIPage .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

/*.PIPage .personnel-card:hover .card-image img {
    transform: scale(1.05);
}*/

/* بج موقعیت شغلی */
.PIPage .position-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .PIPage .position-badge i {
        color: #667eea;
        font-size: 0.9rem;
    }

/* محتوای کارت */
.PIPage .card-content,
.PIPage .modal-body {
    padding: 25px;
    text-align: right;
    direction: rtl;
}

    .PIPage .card-content .name,
    .PIPage .modal-body .name {
        font-size: 1.4rem;
        font-weight: 700;
        color: #1a202c;
        margin-bottom: 6px;
    }

    .PIPage .card-content .position,
    .PIPage .modal-body .position {
        font-size: 0.95rem;
        color: #667eea;
        font-weight: 500;
        margin-bottom: 12px;
    }

    .PIPage .card-content .bio,
    .PIPage .modal-body .bio {
        color: #718096;
        font-size: 0.95rem;
        line-height: 1.8;
        /*        display: -webkit-box;*/
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 80px;
    }

    .PIPage .modal-body .bio {
        overflow: auto;
    }

.PIPage .card-footer {
    padding: 15px 25px;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafcff;
}

    .PIPage .card-footer .date {
        font-size: 0.85rem;
        color: #a0aec0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .PIPage .card-footer .read-more {
        color: #667eea;
        font-weight: 600;
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 6px;
        transition: gap 0.3s ease;
    }

.PIPage .personnel-card:hover .card-footer .read-more {
    gap: 12px;
}

/* ===== مودال ===== */
.PIPage .modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeInPIPage 0.3s ease;
}

    .PIPage .modal-overlay.active {
        display: flex;
    }

@keyframes fadeInPIPage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.PIPage .modal-container {
    background: #fff;
    border-radius: 28px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    animation: slideUpPIPage 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideUpPIPage {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.PIPage .modal-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

.PIPage .modal-close {
    background: #f7fafc;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .PIPage .modal-close:hover {
        background: var(--formButton_bcolor1);
        color: var(--sideButton_bcolor1);
        transform: rotate(90deg);
    }

.PIPage .modal-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    margin-top: 20px;
}

.PIPage .modal-body {
    padding: 25px 30px 35px;
}

    .PIPage .modal-body .modal-name {
        font-size: 1.8rem;
        font-weight: 800;
        color: #1a202c;
        margin-bottom: 4px;
    }

    .PIPage .modal-body .modal-position {
        font-size: 1.1rem;
        color: #667eea;
        font-weight: 500;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .PIPage .modal-body .modal-position i {
            font-size: 1rem;
        }

    .PIPage .modal-body .modal-bio {
        color: #4a5568;
        font-size: 1rem;
        line-height: 2;
        text-align: justify;
    }

        .PIPage .modal-body .modal-bio p {
            margin-bottom: 12px;
        }

    .PIPage .modal-body .modal-meta {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid #edf2f7;
        display: flex;
        gap: 30px;
        flex-wrap: wrap;
    }

        .PIPage .modal-body .modal-meta span {
            font-size: 0.9rem;
            color: #718096;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .PIPage .modal-body .modal-meta i {
            color: #667eea;
            width: 20px;
        }

/* اسکرول‌بار زیبا */
.PIPage .modal-container::-webkit-scrollbar {
    width: 6px;
}

.PIPage .modal-container::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 10px;
}

.PIPage .modal-container::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.PIPage #footer1 {
    min-height: 0 !important;
}


/* ===== استایل جداکننده کامل عرض ===== */
.PIPage .full-width-divider {
    width: 100%;
    padding: 50px 0;
    margin: 50px 0;
    /*    background: linear-gradient(135deg, var(--PI-first-bg-color) 0%, var(--PI-second-bg-color) 100%);*/
    border-radius: 20px;
    position: relative;
    /*    overflow: hidden;*/
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    grid-column: 1 / -1; /* اگر داخل گرید هستید */
}

/* افکت پس‌زمینه متحرک */
/*    .PIPage .full-width-divider::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%), radial-gradient(circle at 70% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
        animation: shimmerPIPage 8s ease-in-out infinite;
    }*/

@keyframes shimmerPIPage {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(10%, 10%) rotate(5deg);
    }
}

/* حذف افکت برای نمایش بهتر */
.PIPage .full-width-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("../Img/fullPlas.svg");
    pointer-events: none;
}

.PIPage .divider-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    /*    padding: 0 30px;*/
}

/* خطوط تزیینی با آیکون */
.PIPage .divider-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0;
    position: relative;
    top: -90px;
}

.PIPage .divider-line-left,
.PIPage .divider-line-right {
    flex: 1;
    max-width: 150px;
    height: 2px;
    background: linear-gradient(to left, rgba(255,255,255,0.6), transparent);
}

.PIPage .divider-line-right {
    background: linear-gradient(to right, rgba(255,255,255,0.6), transparent);
}

.PIPage .divider-icon-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    font-size: 28px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: pulsePIPage 2s ease-in-out infinite;
    overflow: hidden;
    /* position: relative;*/
}

/*@keyframes pulsePIPage {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* محتوای متنی */
.PIPage .divider-text-content {
    margin: 20px 0 30px;
    margin-top: -80px;
}

.PIPage .divider-main-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.PIPage .divider-description-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 30px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    line-height: 2;
    text-align: justify;
}

    .PIPage .divider-description-box pre {
        margin: 0;
        white-space: pre-wrap;
        word-wrap: break-word;
        background: transparent;
        border: none;
        color: rgba(255,255,255,0.95);
        font-family: inherit;
        font-size: inherit;
        line-height: inherit;
        direction: rtl;
    }

/* نقطه‌های تزیینی پایین */
.PIPage .divider-bottom-decoration {
    margin-top: 20px;
}

.PIPage .divider-dots {
    display: inline-flex;
    gap: 10px;
}

.PIPage .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    /*    animation: dotBouncePIPage 1.5s ease-in-out infinite;*/
}

    .PIPage .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .PIPage .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

/*@keyframes dotBouncePIPage {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }

    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
}*/

/* ===== استایل کارت‌ها (همان استایل‌های قبلی) ===== */
.PIPage .personnel-card {
    /* استایل‌های موجود شما */
    display: inline-block;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .PIPage .personnel-card {
        width: 30% !important;
        max-width: 30% !important;
    }
}

@media (max-width: 768px) {
    .PIPage .full-width-divider {
        padding: 30px 0;
        margin: 20px 0;
        border-radius: 15px;
    }

    .PIPage .divider-main-title {
        font-size: 26px;
    }

    .PIPage .divider-description-box {
        padding: 15px 20px;
        font-size: 14px;
        margin: 0 10px;
    }

    .PIPage .divider-line-left,
    .PIPage .divider-line-right {
        max-width: 50px;
    }

    .PIPage .divider-icon-main {
        width: 150px;
        height: 150px;
        font-size: 20px;
    }

    .PIPage .divider-decoration {
        gap: 10px;
        top: -50px;
    }

    .PIPage .divider-text-content {
        margin-top: -40px;
    }

    .PIPage .wrapperCard {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .PIPage .page-header h1 {
        font-size: 1.8rem;
    }

    .PIPage .modal-container {
        margin: 10px;
        border-radius: 20px;
    }

    .PIPage .modal-image {
        height: 220px;
    }

    .PIPage .modal-body {
        padding: 20px;
    }

    .PIPage .card-image {
        height: 220px;
    }

    .PIPage .personnel-card {
        width: 45% !important;
        max-width: 45% !important;
    }

    .PIPage .position-badge {
        font-size: 0.65rem;
    }

    .PIPage .modal-close {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .PIPage .divider-main-title {
        font-size: 20px;
    }

    .PIPage .divider-description-box {
        padding: 12px 15px;
        font-size: 13px;
    }

    .PIPage .full-width-divider {
        padding: 20px 0;
        margin: 15px 0;
    }

    .PIPage .wrapperCard {
        grid-template-columns: 1fr;
    }

    .PIPage .card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .PIPage .personnel-card {
        width: 90% !important;
        max-width: 90% !important;
    }
}
