/* Core Layout Grid */
.pro-team-grid {
    display: grid;
    gap: 30px;
}
.pro-team-grid-inner {
    display: contents;
}

/* BASE CARD DESIGN */
.pro-team-card {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.pro-team-img-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.pro-team-img-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pro-team-card:hover .pro-team-img-wrapper img {
    transform: scale(1.08);
}

.pro-team-card-content {
    padding: 24px;
    text-align: center;
}

.pro-team-name {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.pro-team-designation {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.pro-team-bio {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* READ MORE BUTTON STYLING */
.pro-team-action-wrap {
    margin-top: 16px;
}
.pro-team-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    background-color: #4f46e5;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.pro-team-btn:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

/* SOCIAL ICONS */
.pro-team-socials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pro-team-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    text-decoration: none;
    transition: all 0.3s ease;
}
.pro-team-socials a:hover {
    background: #4f46e5;
    color: #ffffff;
    transform: translateY(-3px);
}

/* ================= PRESET DESIGNS ================= */

/* Preset 1: Floating Card */
.preset-card_floating .pro-team-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.preset-card_floating .pro-team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Preset 2: Modern Hover Overlay */
.preset-card_overlay .pro-team-social-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0.85) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 30px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.preset-card_overlay .pro-team-card:hover .pro-team-social-overlay {
    opacity: 1;
}

/* Preset 3: Minimal Luxury Line */
.preset-minimal_border .pro-team-card {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    border-top: 4px solid transparent;
}
.preset-minimal_border .pro-team-card:hover {
    border-top-color: #4f46e5;
    transform: translateY(-4px);
}

/* Preset 4: Corporate Badge */
.preset-corporate_badge .pro-team-designation {
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ================= MODERN MODAL POPUP ================= */
.pro-team-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.pro-team-modal-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

.pro-team-modal-content {
    position: relative;
    background: #ffffff;
    width: 100%;
    max-width: 800px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.pro-team-modal-backdrop.is-active .pro-team-modal-content {
    transform: scale(1);
}

.pro-team-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.pro-team-modal-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
}
.pro-team-modal-photo {
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}
.pro-team-modal-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.pro-team-modal-body {
    padding: 40px;
}
.pro-team-modal-body h2 {
    margin: 0 0 4px 0;
    font-size: 26px;
    color: #0f172a;
}
.pro-team-modal-role {
    color: #4f46e5;
    font-weight: 600;
    font-size: 14px;
}
.pro-team-modal-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 20px 0;
}
.pro-team-modal-wysiwyg {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Skill Progress Bar in Modal */
.pro-team-skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}
.pro-team-skill-bar {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.pro-team-skill-bar-fill {
    height: 100%;
    background: #4f46e5;
    border-radius: 10px;
}

/* RESPONSIVE MODAL */
@media (max-width: 768px) {
    .pro-team-modal-grid {
        grid-template-columns: 1fr;
    }
    .pro-team-modal-photo {
        padding: 20px;
    }
    .pro-team-modal-photo img {
        width: 120px;
        height: 120px;
    }
    .pro-team-modal-body {
        padding: 24px;
    }
}

/* SLIDER ARROWS & DOTS */
.pro-team-swiper {
    padding-bottom: 50px;
}
.pro-team-swiper .swiper-pagination-bullet-active {
    background: #4f46e5 !important;
    width: 24px !important;
    border-radius: 10px !important;
}
.pro-team-swiper .swiper-button-next,
.pro-team-swiper .swiper-button-prev {
    color: #4f46e5;
    background: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.pro-team-swiper .swiper-button-next:after,
.pro-team-swiper .swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}