/* Faculty Section Styles */
.faculty-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.faculty-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.faculty-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(139, 21, 56, 0.08);
    display: flex;
    height: 320px;
}

.faculty-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.faculty-image {
    width: 45%;
    height: 100%;
    overflow: visible !important;
    position: relative;
    flex-shrink: 0;
}

.faculty-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transition: transform 0.3s ease;
    display: block !important;
    background-color: #f8f9fa !important;
}

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

.faculty-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 55%;
}

.faculty-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 4px;
    line-height: 1.2;
}

.faculty-title {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 400;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.faculty-description {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 20px;
    position: relative;
    padding-left: 12px;
    border-left: 2px solid var(--primary-red);
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.more-details-btn {
    background: transparent;
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    font-family: 'Inter', sans-serif;
}

.more-details-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* Main Content Section */
.main-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.content-placeholder h2 {
    color: var(--primary-red);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.content-placeholder p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Banner Styles */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .banner-section {
        height: 350px;
    }
    
    .banner-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .banner-section {
        height: 300px;
        margin-top: 80px;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-content {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 60px 0;
    }
    
    .content-placeholder {
        padding: 40px 20px;
    }
    
    .content-placeholder h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .banner-section {
        height: 250px;
    }
    
    .banner-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .banner-subtitle {
        font-size: 0.9rem;
    }
    
    .breadcrumb-nav {
        font-size: 12px;
        margin-bottom: 15px;
    }
    
    .banner-content {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 40px 0;
    }
    
    .content-placeholder {
        padding: 30px 15px;
    }
    
    .content-placeholder h2 {
        font-size: 1.8rem;
    }
    
    .content-placeholder p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .banner-section {
        height: 220px;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 0.85rem;
    }
}

/* Faculty Section Responsive Styles */
@media (max-width: 1200px) {
    .faculty-grid {
        gap: 30px;
        max-width: 1000px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .faculty-section {
        padding: 60px 0;
    }
    
    .faculty-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }
    
    .faculty-card {
        height: 280px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .faculty-section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .faculty-grid {
        gap: 25px;
        max-width: 500px;
    }
    
    .faculty-card {
        height: 260px;
    }
    
    .faculty-info {
        padding: 20px;
    }
    
    .faculty-name {
        font-size: 1.3rem;
    }
    
    .faculty-image {
        width: 40%;
    }
    
    .faculty-info {
        width: 60%;
    }
}

@media (max-width: 576px) {
    .faculty-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .faculty-card {
        height: auto !important;
        min-height: 350px;
        flex-direction: column;
        overflow: visible;
    }
    
    .faculty-image {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        flex-shrink: 0;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
    }
    
    .faculty-image img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block;
        background-color: #f8f9fa;
    }
    
    .faculty-info {
        width: 100% !important;
        padding: 20px;
        height: auto;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .faculty-name {
        font-size: 1.2rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .faculty-title {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .faculty-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 20px;
        flex: 1;
        overflow: visible;
        word-wrap: break-word;
    }
    
    .more-details-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
        align-self: flex-start;
        margin-top: auto;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .faculty-section {
        padding: 30px 0;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .faculty-card {
        height: auto !important;
        min-height: 320px;
        margin: 0 10px 20px 10px;
    }
    
    .faculty-image {
        width: 100% !important;
        height: auto !important;
        min-height: 180px !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
    }
    
    .faculty-image img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block;
        background-color: #f8f9fa;
    }
    
    .faculty-info {
        width: 100% !important;
        padding: 18px;
    }
    
    .faculty-name {
        font-size: 1.1rem;
        margin-bottom: 6px;
    }
    
    .faculty-title {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }
    
    .faculty-description {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    .more-details-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
}

/* Additional responsive styles for very small screens */
@media (max-width: 400px) {
    .faculty-section {
        padding: 25px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.85rem;
    }
    
    .faculty-grid {
        gap: 20px;
        margin: 0 5px;
    }
    
    .faculty-card {
        min-height: 300px;
        margin: 0 5px 15px 5px;
        border-radius: 8px;
    }
    
    .faculty-image {
        width: 100% !important;
        height: auto !important;
        min-height: 160px !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
    }
    
    .faculty-image img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        display: block;
        background-color: #f8f9fa;
    }
    
    .faculty-info {
        width: 100% !important;
        padding: 15px;
    }
    
    .faculty-name {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .faculty-title {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .faculty-description {
        font-size: 0.75rem;
        line-height: 1.3;
        margin-bottom: 15px;
        padding-left: 8px;
    }
    
    .more-details-btn {
        padding: 7px 16px;
        font-size: 0.75rem;
    }
}

/* FORCE OVERRIDE - Images must be fully visible without cropping */
.faculty-image {
    position: relative !important;
    overflow: visible !important;
}

.faculty-image img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* AGGRESSIVE MOBILE FIXES */
@media screen and (max-width: 768px) {
    .faculty-image {
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
        height: auto !important;
        min-height: 150px !important;
    }
    
    .faculty-image img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
    }
}

/* EXTRA SMALL SCREENS - NO CROPPING ALLOWED */
@media screen and (max-width: 576px) {
    .faculty-card {
        height: auto !important;
        min-height: auto !important;
    }
    
    .faculty-image {
        height: auto !important;
        min-height: 120px !important;
        max-height: none !important;
        padding: 10px !important;
    }
    
    .faculty-image img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* FORCE NO CROPPING ON ANY SCREEN SIZE */
.faculty-card .faculty-image {
    overflow: visible !important;
}

.faculty-card .faculty-image img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
}