/* ===================================================
   FACULTY DETAILS CSS — Modern & Premium Glassmorphism
   =================================================== */

:root {
    --fd-primary: #1e40af;
    --fd-primary-glow: rgba(37, 99, 235, 0.15);
    --fd-accent: #2563eb;
    --fd-text: #0f172a;
    --fd-muted: #64748b;
    --fd-card-bg: #ffffff;
    --fd-border: #e2e8f0;
}

body {
    background: #f8fafc;
    color: var(--fd-text);
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

.fd-wrapper {
    min-height: calc(100vh - 200px);
    position: relative;
    padding-bottom: 60px;
}

/* Hero background banner */
.fd-hero {
    height: 230px;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e3a8a 100%);
    position: relative;
    overflow: hidden;
}

.fd-hero .hero-rings {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fd-hero .h-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.fd-hero .r1 {
    width: 380px;
    height: 380px;
    top: -120px;
    right: 5%;
}

.fd-hero .r2 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -10%;
    border-color: rgba(99, 102, 241, 0.12);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* Profile header card (floating over banner) */
.fd-profile-card {
    max-width: 1100px;
    margin: -100px auto 35px;
    padding: 30px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 2;
}

.fd-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.fd-avatar {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    object-fit: cover;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.2);
    border: 4px solid #ffffff;
    display: block;
    background: #e2e8f0;
}

.fd-avatar-ph {
    width: 150px;
    height: 150px;
    border-radius: 22px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
    border: 4px solid #ffffff;
}

.fd-name-block {
    flex: 1;
}

.fd-name {
    font-size: 2.1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.fd-designation {
    font-size: 1.15rem;
    color: #2563eb;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.fd-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fd-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.fd-chip.highlight {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
    font-weight: 600;
}

/* Body content grid */
.fd-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.fd-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fd-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Cards */
.fd-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--fd-border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.fd-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.fd-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}

.fd-card-title svg {
    color: #2563eb;
}

/* Experience Highlight Box */
.fd-experience-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1.5px solid #bfdbfe;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.fd-exp-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.fd-exp-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1e40af;
}

.fd-exp-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-top: 2px;
}

/* Description Text */
.fd-description {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #334155;
    white-space: pre-line;
    margin: 0;
}

/* Specialization tags */
.fd-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fd-tag {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.2s;
}

.fd-tag:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

/* Quick Info List in Sidebar */
.fd-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fd-info-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.fd-info-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-lbl {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
    display: block;
}

.info-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2px;
    display: block;
    word-break: break-word;
}

.info-val a {
    color: #2563eb;
    text-decoration: none;
}

.info-val a:hover {
    text-decoration: underline;
}

/* Lab badge card in sidebar */
.fd-lab-card {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 26px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.fd-lab-card h4 {
    margin: 12px 0 6px 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.fd-lab-card p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 16px 0;
}

.fd-lab-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.fd-lab-btn:hover {
    background: white;
    color: #0f172a;
}

/* Back button */
.fd-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    color: #334155;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.fd-back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

/* Share row */
.fd-share-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid var(--fd-border);
    border-radius: 14px;
}

.share-lbl {
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.share-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .fd-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Remove blue hero banner in mobile view */
    .fd-hero {
        display: none;
    }

    .fd-profile-card {
        flex-direction: column;
        text-align: center;
        margin: 20px 16px 24px;
        padding: 26px 20px;
        gap: 20px;
    }

    /* Enlarge faculty photo on mobile */
    .fd-avatar {
        width: 195px;
        height: 195px;
        max-width: 72vw;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
    }

    .fd-avatar-ph {
        width: 195px;
        height: 195px;
        max-width: 72vw;
        font-size: 4.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
    }

    .fd-name {
        font-size: 1.65rem;
    }

    .fd-designation {
        justify-content: center;
    }

    .fd-chips {
        justify-content: center;
    }

    .fd-share-row {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        justify-content: center;
    }
}
