/* Professor Details Page Styles */

.professor-details-section {
    padding: 80px 0;
    background: #ffffff;
    min-height: calc(100vh - 200px);
}

.professor-card {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    gap: 60px;
}

.professor-image-section {
    flex: 0 0 400px;
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.professor-image-container {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
}

.professor-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 8px;
    background-color: #f8f9fa !important;
}

.social-media-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #f8f9fa;
    color: #6c757d;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social-icon:hover {
    background: var(--primary-red);
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.contact-info .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #6c757d;
}

.contact-info .contact-item i {
    color: var(--primary-red);
    width: 16px;
    font-size: 14px;
}

.professor-info-section {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.professor-header {
    margin-bottom: 0;
}

.professor-name {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.professor-title {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: #6c757d;
    text-transform: none;
    letter-spacing: 0;
    margin: 0;
}

.professor-bio {
    margin-bottom: 0;
}

.professor-bio p {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin: 0;
}

.biography-section,
.education-section,
.expertise-section {
    margin-bottom: 0;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.biography-section p,
.education-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
    margin: 0;
}

.expertise-section .section-title {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.expertise-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.expertise-tag:hover {
    background: var(--primary-red);
    color: #ffffff;
    border-color: var(--primary-red);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .professor-card {
        max-width: 1000px;
        gap: 40px;
    }
    
    .professor-image-section {
        flex: 0 0 350px;
    }
    
    .professor-name {
        font-size: 32px;
    }
}

@media (max-width: 992px) {
    .professor-card {
        flex-direction: column;
        max-width: 800px;
        gap: 40px;
    }
    
    .professor-image-section {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .professor-image-container {
        height: 350px;
    }
    
    .professor-name {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .professor-details-section {
        padding: 60px 0;
    }
    
    .professor-card {
        margin: 0 20px;
        gap: 30px;
    }
    
    .professor-image-section {
        max-width: 350px;
    }
    
    .professor-image-container {
        height: 300px;
    }
    
    .professor-name {
        font-size: 28px;
    }
    
    .professor-bio p,
    .biography-section p,
    .education-section p {
        font-size: 15px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .expertise-tags {
        gap: 6px;
    }
    
    .expertise-tag {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .professor-details-section {
        padding: 40px 0;
    }
    
    .professor-card {
        margin: 0 15px;
        gap: 25px;
        flex-direction: column;
    }
    
    .professor-image-section {
        max-width: 100%;
        width: 100%;
    }
    
    .professor-image-container {
        height: auto !important;
        min-height: 250px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
        overflow: visible !important;
    }
    
    .professor-image {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        background-color: #f8f9fa;
    }
    
    .professor-name {
        font-size: 26px;
    }
    
    .professor-title {
        font-size: 14px;
    }
    
    .professor-bio p,
    .biography-section p,
    .education-section p {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .section-title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .social-media-icons {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .social-icon {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .contact-info {
        gap: 12px;
    }
    
    .contact-info .contact-item {
        font-size: 13px;
        gap: 8px;
    }
    
    .contact-info .contact-item i {
        width: 14px;
        font-size: 12px;
    }
    
    .expertise-tags {
        gap: 5px;
    }
    
    .expertise-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .professor-card {
        margin: 0 10px;
        gap: 20px;
    }
    
    .professor-image-section {
        max-width: 100%;
        width: 100%;
    }
    
    .professor-image-container {
        height: auto !important;
        min-height: 200px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
        overflow: visible !important;
    }
    
    .professor-image {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain !important;
        background-color: #f8f9fa;
    }
    
    .professor-name {
        font-size: 24px;
    }
    
    .professor-bio,
    .biography-section,
    .education-section {
        margin-bottom: 0;
    }
}

/* Animation Effects */
.professor-card {
    animation: fadeInUp 0.8s ease-out;
}

.professor-image-container {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.professor-info-section {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* AGGRESSIVE OVERRIDES FOR MOBILE IMAGE DISPLAY */
@media screen and (max-width: 768px) {
    .professor-image-container {
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background-color: #f8f9fa !important;
        height: auto !important;
        min-height: 200px !important;
    }
    
    .professor-image {
        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;
        background-color: #f8f9fa !important;
    }
}

/* EXTRA SMALL SCREENS - PROFESSOR PAGES */
@media screen and (max-width: 576px) {
    .professor-image-container {
        height: auto !important;
        min-height: 150px !important;
        max-height: none !important;
        padding: 15px !important;
    }
    
    .professor-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        max-height: none !important;
        object-fit: contain !important;
    }
}

/* FORCE NO CROPPING ANYWHERE */
.professor-image-container {
    overflow: visible !important;
}

.professor-image {
    object-fit: contain !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* Print Styles */
@media print {
    .professor-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .social-media-icons {
        display: none;
    }
} 