/* ==========================================================================
   SVPISTM Detailed Faculty Profile Stylesheet
   Modern, elegant, and responsive academic profile layout
   ========================================================================== */

:root {
    --faculty-primary: #177f7e;
    --faculty-primary-dark: #0f5857;
    --faculty-navy: #0d233a;
    --faculty-gold: #f59e0b;
    --faculty-bg: #f8fafc;
    --faculty-card-bg: #ffffff;
    --faculty-border: #e2e8f0;
    --faculty-text-dark: #0f172a;
    --faculty-text-muted: #64748b;
    --faculty-radius: 16px;
    --faculty-shadow: 0 4px 20px rgba(13, 35, 58, 0.06);
    --faculty-shadow-hover: 0 10px 30px rgba(23, 127, 126, 0.12);
}

.faculty-profile-section {
    background-color: #f8fafc;
    padding: 50px 0 80px;
    color: var(--faculty-text-dark);
    font-family: 'Jost', sans-serif;
}

/* Sidebar Profile Card */
.faculty-sidebar-card {
    background: var(--faculty-card-bg);
    border-radius: var(--faculty-radius);
    border: 1px solid var(--faculty-border);
    box-shadow: var(--faculty-shadow);
    padding: 30px 24px;
    text-align: center;
    position: sticky;
    top: 90px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.faculty-sidebar-card:hover {
    box-shadow: var(--faculty-shadow-hover);
}

.faculty-photo-frame {
    width: 200px;
    height: 240px;
    margin: 0 auto 20px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #e6fffa, #f1f5f9);
    border: 3px solid #ffffff;
    box-shadow: 0 8px 24px rgba(23, 127, 126, 0.18);
    position: relative;
}

.faculty-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.faculty-sidebar-card:hover .faculty-photo-frame img {
    transform: scale(1.04);
}

.faculty-main-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--faculty-navy);
    margin-bottom: 4px;
    line-height: 1.3;
}

.faculty-main-degrees {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--faculty-primary);
    margin-bottom: 12px;
}

.faculty-badge-role {
    display: inline-block;
    background: linear-gradient(135deg, #0d233a, #177f7e);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.faculty-dept-title {
    font-size: 13px;
    color: var(--faculty-text-muted);
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 1px dashed var(--faculty-border);
    padding-bottom: 15px;
}

/* Quick Info List in Sidebar */
.faculty-quick-info {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    text-align: left;
}

.faculty-quick-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #334155;
    margin-bottom: 12px;
    line-height: 1.45;
}

.faculty-quick-info li i {
    color: var(--faculty-primary);
    font-size: 14px;
    margin-top: 3px;
    width: 16px;
    flex-shrink: 0;
}

.faculty-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 18px;
    background: #f1f5f9;
    color: #334155 !important;
    border-radius: 25px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid var(--faculty-border);
    transition: all 0.3s ease;
}

.faculty-back-btn:hover {
    background: var(--faculty-primary);
    color: #ffffff !important;
    border-color: var(--faculty-primary);
    transform: translateY(-2px);
}

/* Main Content Cards */
.faculty-detail-card {
    background: var(--faculty-card-bg);
    border-radius: var(--faculty-radius);
    border: 1px solid var(--faculty-border);
    box-shadow: var(--faculty-shadow);
    padding: 30px;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
}

.faculty-detail-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.faculty-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 22px;
}

.faculty-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(23, 127, 126, 0.1);
    color: var(--faculty-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.faculty-card-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--faculty-navy);
    margin: 0;
}

.faculty-bio-paragraph {
    font-size: 14.5px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 14px;
    text-align: justify;
}

/* Qualifications Table */
.faculty-qual-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--faculty-border);
    margin-top: 10px;
}

.faculty-qual-table th {
    background: #f8fafc;
    color: var(--faculty-navy);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--faculty-border);
}

.faculty-qual-table td {
    padding: 14px 18px;
    font-size: 13.5px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.faculty-qual-table tr:last-child td {
    border-bottom: none;
}

.faculty-qual-table tr:nth-child(even) td {
    background-color: #fafbfc;
}

.qual-degree-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(23, 127, 126, 0.12);
    color: var(--faculty-primary);
}

/* Research & Specialization Tags */
.faculty-tags-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.faculty-tag-pill {
    background: #f1f5f9;
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.faculty-tag-pill i {
    color: var(--faculty-primary);
    font-size: 11px;
}

.faculty-tag-pill:hover {
    background: var(--faculty-primary);
    color: #ffffff;
    border-color: var(--faculty-primary);
    transform: translateY(-1px);
}

.faculty-tag-pill:hover i {
    color: #ffffff;
}

/* Research Publications List */
.publication-group-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--faculty-primary);
    margin: 20px 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px dashed var(--faculty-border);
    padding-bottom: 6px;
}

.publication-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publication-item {
    position: relative;
    padding: 16px 18px 16px 45px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--faculty-border);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.publication-item:hover {
    border-color: var(--faculty-primary);
    box-shadow: 0 4px 15px rgba(23, 127, 126, 0.08);
}

.publication-num {
    position: absolute;
    left: 14px;
    top: 16px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--faculty-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.publication-text {
    font-size: 13.5px;
    line-height: 1.6;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.publication-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.pub-pill {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
}

.pub-pill.scopus {
    background: #fef3c7;
    color: #92400e;
}

.pub-pill.journal {
    background: #e0f2fe;
    color: #0369a1;
}

.pub-pill.book {
    background: #f3e8ff;
    color: #7e22ce;
}

/* Teaching Courses Pills */
.teaching-course-pill {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 3px solid var(--faculty-primary);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .faculty-sidebar-card {
        position: relative;
        top: 0;
        margin-bottom: 40px;
    }
    .faculty-detail-card {
        padding: 22px 18px;
    }
}

@media (max-width: 575px) {
    .faculty-photo-frame {
        width: 170px;
        height: 200px;
    }
    .faculty-main-name {
        font-size: 19px;
    }
    .faculty-card-title {
        font-size: 17px;
    }
    .faculty-qual-table th,
    .faculty-qual-table td {
        padding: 10px 12px;
        font-size: 12.5px;
    }
}
