/* ===== NSB BANGALORE - FACULTY INTRO SECTION CSS ===== */
/* File: /nsbrevamp/css/sections/faculty/faculty-intro-section.css */
/* Purpose: Styles for faculty introduction section with quote card */
/* Dependencies: CSS variables from main-config.php, placement section patterns */
/* Last Updated: <?php echo date('Y-m-d'); ?> */

/* ===== FACULTY INTRO CONTAINER ===== */
.faculty-intro-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== FACULTY INTRO CARD ===== */
/* Matches company/student card styling from placement section */
.faculty-intro-card {
    position: relative;
    background: var(--nsb-white);
    border: 1px solid var(--nsb-light);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-normal);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hover effects matching company cards */
.faculty-intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(252, 163, 17, 0.2);
}

/* ===== QUOTE ICONS ===== */
.quote-icons {
    position: absolute;
    top: 1.5rem;
    left: 2.5rem;
    right: 2.5rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
}

.quote-icon-open,
.quote-icon-close {
    font-size: 3rem;
    color: var(--nsb-primary);
    opacity: 0.15;
    line-height: 1;
    transition: opacity var(--transition-normal);
}

.faculty-intro-card:hover .quote-icon-open,
.faculty-intro-card:hover .quote-icon-close {
    opacity: 0.25;
}

/* ===== ACCENT LEFT BORDER ===== */
/* Full-height left border matching accent color */
.accent-left-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--nsb-accent);
    border-radius: 2px 0 0 2px;
    transition: width var(--transition-normal);
}

.faculty-intro-card:hover .accent-left-border {
    width: 6px;
}

/* ===== FACULTY INTRO CONTENT ===== */
.faculty-intro-content {
    position: relative;
    z-index: 2;
    padding-left: 1.5rem; /* Space for accent border */
}

/* ===== FACULTY INTRO TITLE ===== */
/* Matches events card title styling with 2-line limit */
.faculty-intro-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: var(--font-weight-semi-bold);
    color: var(--nsb-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em; /* Approximate height for 2 lines */
}

/* ===== FACULTY INTRO TEXT ===== */
.faculty-intro-text-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.faculty-intro-text {
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--nsb-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Show 3 lines by default */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all var(--transition-normal);
    max-height: 4.5em; /* 3 lines * 1.5 line-height */
}

/* Show full text on card hover (like events cards) */
.faculty-intro-card:hover .faculty-intro-text {
    -webkit-line-clamp: unset;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px; /* Space for scrollbar */
}

/* Custom scrollbar for text */
.faculty-intro-card:hover .faculty-intro-text::-webkit-scrollbar {
    width: 4px;
}

.faculty-intro-card:hover .faculty-intro-text::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.faculty-intro-card:hover .faculty-intro-text::-webkit-scrollbar-thumb {
    background: var(--nsb-accent);
    border-radius: 2px;
}

/* ===== AUTHOR CITATION ===== */
/* Right-aligned author citation */
.faculty-intro-author {
    text-align: right;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    color: var(--nsb-text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-label {
    color: var(--nsb-accent);
    font-weight: var(--font-weight-semi-bold);
}

.author-name {
    font-weight: var(--font-weight-medium);
}

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

/* Tablet Styles (769px - 1024px) */
@media (max-width: 1024px) {
    .faculty-intro-container {
        padding: 0 var(--spacing-sm);
    }
    
    .faculty-intro-card {
        padding: 2rem;
        min-height: 250px;
    }
    
    .quote-icons {
        top: 1.25rem;
        left: 2rem;
        right: 2rem;
    }
    
    .quote-icon-open,
    .quote-icon-close {
        font-size: 2.5rem;
    }
    
    .faculty-intro-title {
        font-size: 1.1rem;
        min-height: 2.4em;
    }
}

/* Mobile Styles (≤ 768px) */
@media (max-width: 768px) {
    .faculty-intro-container {
        padding: 0 var(--spacing-sm);
    }
    
    .faculty-intro-card {
        padding: 1.75rem;
        min-height: auto; /* Remove fixed height on mobile */
        border-radius: 10px;
    }
    
    .quote-icons {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        margin-bottom: 1rem;
        justify-content: center;
        gap: 2rem;
    }
    
    .quote-icon-open,
    .quote-icon-close {
        font-size: 2rem;
        opacity: 0.2;
        position: relative;
    }
    
    .quote-icon-open {
        margin-right: 1rem;
    }
    
    .quote-icon-close {
        margin-left: 1rem;
    }
    
    .faculty-intro-content {
        padding-left: 1rem;
    }
    
    .faculty-intro-title {
        font-size: 1.15rem;
        text-align: center;
        margin-bottom: 1rem;
        min-height: auto;
        -webkit-line-clamp: unset;
        display: block;
    }
    
    .faculty-intro-text {
        font-size: 0.875rem;
        text-align: center;
        -webkit-line-clamp: 4; /* Show more lines on mobile */
        max-height: 6em; /* 4 lines * 1.5 line-height */
    }
    
    .faculty-intro-card:hover .faculty-intro-text {
        max-height: 250px; /* More space on mobile */
    }
    
    .faculty-intro-author {
        text-align: center;
        font-size: 0.8125rem;
    }
    
    /* Adjust accent border for mobile */
    .accent-left-border {
        width: 3px;
    }
    
    .faculty-intro-card:hover .accent-left-border {
        width: 4px;
    }
}

/* Small Mobile Styles (≤ 480px) */
@media (max-width: 480px) {
    .faculty-intro-card {
        padding: 1.5rem;
        border-radius: 8px;
    }
    
    .quote-icons {
        gap: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .quote-icon-open,
    .quote-icon-close {
        font-size: 1.75rem;
    }
    
    .faculty-intro-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .faculty-intro-text {
        font-size: 0.8125rem;
        -webkit-line-clamp: 5; /* Even more lines on small mobile */
        max-height: 7.5em;
        line-height: 1.4;
    }
    
    .faculty-intro-card:hover .faculty-intro-text {
        max-height: 300px;
    }
    
    .faculty-intro-author {
        font-size: 0.75rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .faculty-intro-content {
        padding-left: 0.75rem;
    }
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .faculty-intro-card,
    .faculty-intro-card:hover .accent-left-border,
    .quote-icon-open,
    .quote-icon-close {
        transition: none;
    }
    
    .faculty-intro-card:hover {
        transform: none;
    }
    
    .faculty-intro-text {
        -webkit-line-clamp: unset; /* Always show full text */
        max-height: none;
        overflow: visible;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faculty-intro-card {
        border: 2px solid var(--nsb-primary);
    }
    
    .accent-left-border {
        background: var(--nsb-primary);
        width: 6px;
    }
    
    .quote-icon-open,
    .quote-icon-close {
        opacity: 0.3;
        color: var(--nsb-primary);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .faculty-intro-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .quote-icons {
        display: none;
    }
    
    .accent-left-border {
        background: #ccc;
    }
    
    .faculty-intro-text {
        -webkit-line-clamp: unset;
        max-height: none;
        overflow: visible;
    }
}

/* 
    END OF FACULTY INTRO SECTION CSS
    ============================================
    Key design features:
    1. Matches placement section company/student card styling
    2. Full-height left border in accent color
    3. Large decorative quote icons in primary color
    4. Title with 2-line limit (desktop)
    5. Text with hover expansion (3→full lines)
    6. Right-aligned author citation
    7. Mobile: Full-width, center-aligned text, more lines visible
    8. Hover: translateY(-5px) like company cards
    9. Accessibility: Reduced motion, high contrast support
    10. Print-friendly styles
*/