/* ===== NSB BANGALORE - FACULTY CARDS CSS ===== */
/* File: /nsbrevamp/css/sections/faculty/faculty-cards.css */
/* Purpose: Individual faculty card styles matching placement section patterns */
/* Dependencies: CSS variables from main-config.php */
/* Last Updated: <?php echo date('Y-m-d'); ?> */

/* ===== FACULTY CARD BASE STYLES ===== */
/* Matches company/student card styling from placement section */
.faculty-card {
    position: relative;
    background: var(--nsb-white);
    border: 1px solid var(--nsb-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 450px; /* Consistent card height */
}

/* Hover effects matching company cards */
.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--nsb-accent);
}

/* ===== FACULTY IMAGE SECTION ===== */
.faculty-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--nsb-light);
}

.faculty-image {
    width: 100%;
   /* height: 100%;*/
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.faculty-card:hover .faculty-image {
    transform: scale(1.05);
}

/* Image overlay for better text contrast */
.faculty-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(0, 0, 0, 0) 70%,
        rgba(0, 0, 0, 0.1) 100%
    );
}

/* ===== FACULTY BADGES ===== */
/* Status badges like events section */
.faculty-badges {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.faculty-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    max-width: 100px;
}

.badge-research {
    background-color: #10b981;
    color: white;
}

.badge-publications {
    background-color: #3b82f6;
    color: white;
}

.badge-industry {
    background-color: var(--nsb-accent);
    color: white;
}

.badge-experienced {
    background-color: #8b5cf6;
    color: white;
}

/* ===== FACULTY CONTENT SECTION ===== */
.faculty-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== FACULTY NAME & DESIGNATION ===== */
.faculty-name {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 1.25rem;
    color: var(--nsb-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.1em;
}

.faculty-designation {
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    color: var(--nsb-accent);
    font-weight: var(--font-weight-semi-bold);
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ===== FACULTY DETAILS ===== */
.faculty-details {
    margin-bottom: 1rem;
    flex: 1;
}

.faculty-qualifications {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--nsb-text-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.faculty-experience {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--nsb-text-primary);
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-icon {
    color: var(--nsb-accent);
    font-size: 0.875rem;
}

.faculty-expertise {
    font-family: var(--font-secondary);
    font-size: 0.8125rem;
    color: var(--nsb-text-secondary);
    font-style: italic;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

/* ===== FACULTY CTA BUTTONS ===== */
.faculty-cta {
    margin-top: auto;
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nsb-light);
}

/* Primary button - View Profile */
.btn-profile {
    flex: 1;
    background: var(--nsb-accent);
    color: var(--nsb-white);
    border: 2px solid var(--nsb-accent);
    padding: 0.625rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: var(--font-weight-semi-bold);
    text-decoration: none;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-profile:hover {
    background: var(--nsb-primary);
    border-color: var(--nsb-primary);
    transform: translateY(-2px);
}

.btn-profile i {
    font-size: 0.875rem;
    transition: transform var(--transition-normal);
}

.btn-profile:hover i {
    transform: translateX(2px);
}

/* Secondary button - Quick View */
.btn-quickview {
    width: 40px;
    height: 40px;
    background: var(--nsb-white);
    color: var(--nsb-text-secondary);
    border: 2px solid var(--nsb-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-quickview:hover {
    background: var(--nsb-primary);
    color: var(--nsb-white);
    border-color: var(--nsb-primary);
    transform: translateY(-2px);
}

/* ===== MODAL/QUICK VIEW OVERLAY ===== */
/* Optional modal functionality */
.quickview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quickview-overlay.active {
    display: flex;
}

.quickview-modal {
    background: var(--nsb-white);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--nsb-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-normal);
    z-index: 1001;
}

.modal-close:hover {
    background: var(--nsb-primary);
    color: var(--nsb-white);
    transform: rotate(90deg);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (769px - 1024px) */
@media (max-width: 1024px) {
    .faculty-card {
        min-height: 420px;
    }
    
    .faculty-image-container {
        height: 220px;
    }
    
    .faculty-name {
        font-size: 1.15rem;
        min-height: 2.4em;
    }
    
    .faculty-designation {
        font-size: 0.875rem;
    }
    
    .faculty-content {
        padding: 1.25rem;
    }
    
    .btn-profile {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .btn-quickview {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
}

/* Mobile Styles (≤ 768px) */
@media (max-width: 768px) {
    .faculty-card {
        min-height: auto;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .faculty-image-container {
        height: 200px;
    }
    
    .faculty-badges {
        top: 0.75rem;
        right: 0.75rem;
    }
    
    .faculty-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
        max-width: 90px;
    }
    
    .faculty-name {
        font-size: 1.1rem;
        min-height: auto;
        -webkit-line-clamp: unset;
        display: block;
    }
    
    .faculty-designation {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }
    
    .faculty-qualifications {
        font-size: 0.8125rem;
        min-height: auto;
        -webkit-line-clamp: unset;
        display: block;
    }
    
    .faculty-experience {
        font-size: 0.8125rem;
    }
    
    .faculty-expertise {
        font-size: 0.75rem;
        min-height: auto;
        -webkit-line-clamp: unset;
        display: block;
    }
    
    .faculty-cta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-profile,
    .btn-quickview {
        width: 100%;
    }
    
    .btn-quickview {
        height: 40px;
    }
}

/* Small Mobile Styles (≤ 480px) */
@media (max-width: 480px) {
    .faculty-card {
        max-width: 100%;
    }
    
    .faculty-image-container {
        height: 180px;
    }
    
    .faculty-content {
        padding: 1rem;
    }
    
    .faculty-name {
        font-size: 1rem;
    }
    
    .faculty-designation {
        font-size: 0.8125rem;
    }
    
    .faculty-qualifications {
        font-size: 0.75rem;
    }
    
    .faculty-experience {
        font-size: 0.75rem;
    }
    
    .faculty-expertise {
        font-size: 0.6875rem;
    }
    
    .btn-profile {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-profile i {
        font-size: 0.75rem;
    }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .faculty-card,
    .faculty-image,
    .btn-profile,
    .btn-quickview,
    .modal-close {
        transition: none;
    }
    
    .faculty-card:hover {
        transform: none;
    }
    
    .faculty-card:hover .faculty-image {
        transform: none;
    }
    
    .btn-profile:hover i {
        transform: none;
    }
    
    .modal-close:hover {
        transform: none;
    }
    
    .quickview-modal {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faculty-card {
        border: 2px solid var(--nsb-primary);
    }
    
    .faculty-card:hover {
        border-color: var(--nsb-accent);
        outline: 2px solid var(--nsb-accent);
    }
    
    .btn-profile,
    .btn-quickview {
        border: 2px solid var(--nsb-primary);
    }
    
    .faculty-badge {
        border: 1px solid white;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .faculty-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        min-height: auto;
    }
    
    .faculty-image-container {
        height: 150px;
    }
    
    .faculty-badges,
    .btn-quickview,
    .quickview-overlay {
        display: none;
    }
    
    .btn-profile {
        background: none;
        color: #000;
        border: 1px solid #000;
        text-decoration: underline;
    }
    
    .faculty-cta {
        border-top: 1px solid #ddd;
    }
}

/* 
    END OF FACULTY CARDS CSS
    ============================================
    Key features:
    1. Matches placement section company/student card styling
    2. Consistent height and layout
    3. Image with hover zoom effect
    4. Status badges (research, publications, etc.)
    5. CTA buttons (View Profile, Quick View)
    6. Modal/quick view functionality
    7. Mobile: Stacked layout, full-width buttons
    8. Hover: translateY(-5px) like company cards
    9. Accessibility: Reduced motion, high contrast support
    10. Print-friendly styles
*/