/* Resource Persons Showcase - aac7da9d v2 */

/* ---- Header ---- */
.rps-aac7da9d-header {
    margin-bottom: 40px;
}

.rps-aac7da9d-header-title {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.rps-aac7da9d-header-accent {
    width: 60px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, #6366f1, transparent);
    margin: 0 auto 16px;
}

.rps-aac7da9d-header[style*="text-align: left"] .rps-aac7da9d-header-accent,
.rps-aac7da9d-header[style*="text-align:left"] .rps-aac7da9d-header-accent {
    margin-left: 0;
}

.rps-aac7da9d-header[style*="text-align: right"] .rps-aac7da9d-header-accent,
.rps-aac7da9d-header[style*="text-align:right"] .rps-aac7da9d-header-accent {
    margin-left: auto;
    margin-right: 0;
}

.rps-aac7da9d-header-subtitle {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    max-width: 680px;
}

.rps-aac7da9d-header[style*="text-align: center"] .rps-aac7da9d-header-subtitle,
.rps-aac7da9d-header[style*="text-align:center"] .rps-aac7da9d-header-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Grid ---- */
.rps-aac7da9d-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

/* ---- Card ---- */
.rps-aac7da9d-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.06);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.rps-aac7da9d-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08), 0 16px 40px rgba(0,0,0,0.1);
}

a.rps-aac7da9d-card {
    cursor: pointer;
}

/* ---- Photo ---- */
.rps-aac7da9d-photo-wrap {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: #f8fafc;
}

.rps-aac7da9d-photo {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rps-aac7da9d-card:hover .rps-aac7da9d-photo {
    transform: scale(1.05);
}

/* ---- Badge ---- */
.rps-aac7da9d-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.4;
    z-index: 2;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.rps-aac7da9d-badge--academician  { background-color: #6366f1; }
.rps-aac7da9d-badge--industry     { background-color: #0ea5e9; }
.rps-aac7da9d-badge--researcher   { background-color: #10b981; }
.rps-aac7da9d-badge--mentor       { background-color: #f59e0b; }
.rps-aac7da9d-badge--consultant   { background-color: #ec4899; }
.rps-aac7da9d-badge--custom       { background-color: #8b5cf6; }

/* ---- Content ---- */
.rps-aac7da9d-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rps-aac7da9d-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.rps-aac7da9d-position {
    font-size: 14px;
    color: #475569;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

/* ---- Country ---- */
.rps-aac7da9d-country-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.rps-aac7da9d-country-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.rps-aac7da9d-country-name {
    font-size: 13px;
    color: #475569;
    font-weight: 500;
    line-height: 1.4;
}

/* ---- Affiliation ---- */
.rps-aac7da9d-affiliation-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.rps-aac7da9d-affiliation-icon {
    display: inline-flex;
    align-items: center;
    color: #6366f1;
    flex-shrink: 0;
}

.rps-aac7da9d-affiliation-icon svg {
    fill: currentColor;
}

.rps-aac7da9d-affiliation {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

/* ---- Tags ---- */
.rps-aac7da9d-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 4px;
}

.rps-aac7da9d-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
    line-height: 1.5;
    transition: background 0.2s ease, color 0.2s ease;
}

.rps-aac7da9d-card:hover .rps-aac7da9d-tag {
    background: #e2e8f0;
}

/* ---- View More Card ---- */
.rps-aac7da9d-view-more {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
    cursor: pointer;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
}

.rps-aac7da9d-view-more:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    transform: translateY(-6px);
    box-shadow: 0 4px 12px rgba(99,102,241,0.3), 0 16px 40px rgba(99,102,241,0.2);
}

.rps-aac7da9d-vm-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 30px 20px;
}

.rps-aac7da9d-vm-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s ease, background 0.35s ease;
}

.rps-aac7da9d-view-more:hover .rps-aac7da9d-vm-icon {
    transform: scale(1.1) rotate(90deg);
    background: rgba(255,255,255,0.28);
}

.rps-aac7da9d-vm-icon svg {
    stroke: #ffffff;
}

.rps-aac7da9d-vm-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}

.rps-aac7da9d-vm-sub {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .rps-aac7da9d-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rps-aac7da9d-header-title {
        font-size: 28px;
    }
}

@media (max-width: 767px) {
    .rps-aac7da9d-grid {
        grid-template-columns: 1fr;
    }
    .rps-aac7da9d-photo {
        height: 220px;
    }
    .rps-aac7da9d-header-title {
        font-size: 24px;
    }
    .rps-aac7da9d-header-subtitle {
        font-size: 14px;
    }
}
