:root {
    --primary: #503a98;
    --primary-dark: #3b2a73;
    --secondary: #21a37a;
    --dark: #0f172a;
    --gray: #64748b;
    --gray-light: #f1f5f9;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --radius: 1rem;
}

body { font-size: 15px; line-height: 1.5; background: var(--gray-light); }

/* Breadcrumb */
.breadcrumb-bar {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(80, 58, 152, 0.85)), url('../img/bafai-8.jpg') no-repeat;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    padding: 100px 0;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}
.breadcrumb-bar .breadcrumb-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}
.breadcrumb-bar .breadcrumb-item a,
.breadcrumb-bar .breadcrumb-item.active {
    color: white !important;
    font-size: 0.9rem;
}
.breadcrumb-bar .breadcrumb-item a:hover { color: var(--secondary) !important; }
.breadcrumb-bar .breadcrumb-item + .breadcrumb-item::before {
    color: white !important;
    content: "/";
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    margin-bottom: 0.5rem;
}
.section-header p {
    color: var(--gray);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Faculty sections */
.faculty-section {
    padding: 60px 0;
}
.faculty-section:nth-child(even) {
    background: var(--white);
}
.faculty-section:nth-child(odd) {
    background: var(--gray-light);
}

/* Horizontal card (image left, content right) */
.faculty-row {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-wrap: wrap;
}
.faculty-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Left side - image */
.faculty-image {
    flex: 0 0 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    min-height: 320px;
}
.faculty-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Logo watermark – bottom right corner */
.logo-watermark {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: auto;
    opacity: 0.15;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.faculty-row:hover .logo-watermark {
    opacity: 0.5;
}

/* Placeholder if no image (fallback) */
.faculty-image .image-placeholder {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    border: 4px solid white;
}

/* Right side - content */
.faculty-content {
    flex: 1;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}
.faculty-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--dark);
}
.faculty-content .title {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}
.faculty-content .bio {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 8px;
}
.faculty-content .bio::-webkit-scrollbar {
    width: 4px;
}
.faculty-content .bio::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}
.faculty-content .bio::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}
.btn-linkedin {
    background: #0077b5;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    width: fit-content;
}
.btn-linkedin:hover {
    background: #005e8c;
    transform: translateY(-2px);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .breadcrumb-bar { padding: 100px 0; clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%); }
    .breadcrumb-bar .breadcrumb-title { font-size: 2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .faculty-section { padding: 40px 0; }
    .faculty-row { flex-direction: column; margin-bottom: 2.5rem; }
    .faculty-image { flex: 0 0 auto; padding: 1.5rem; min-height: auto; }
    .faculty-image img { max-width: 180px; margin: 0 auto; }
    .faculty-content { padding: 1.5rem; }
    .faculty-content h3 { font-size: 1.3rem; }
    .logo-watermark { width: 35px; bottom: 10px; right: 10px; }
}

@media (max-width: 576px) {
    .breadcrumb-bar .breadcrumb-title { font-size: 1.6rem; }
    .faculty-content .bio { max-height: 250px; }
}