/**
 * Non-critical CSS - Loaded after page render
 */

/* Enhanced hover states and animations */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Text wrapping around images - NO CROPPING */
.teaching-publications-section {
    position: relative;
}

.section-image {
    width: 40%;
    max-width: 500px;
    height: auto;
    margin-right: 2rem;
    margin-bottom: 1rem;
    float: left;
    shape-outside: margin-box;
    object-fit: contain; /* Ensure section images don't crop */
}

/* Loading state for images */
.img-fluid {
    transition: opacity 0.3s ease;
}

.img-fluid.loading {
    opacity: 0.5;
}

/* Content type specific styles */
.publication-item {
    border-bottom: 1px solid #ecd4a2;
    padding-bottom: 1rem;
}

.publication-meta {
    font-size: 0.9em;
    color: #7a6b5c;
    margin: 0.5rem 0;
}

.publication-type.badge {
    font-size: 0.75em;
}

/* Print styles */
@media print {
    .btn, .social-links {
        display: none !important;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Responsive adjustments for text wrapping */
@media (max-width: 768px) {
    .section-image {
        width: 100%;
        float: none;
        margin-right: 0;
        margin-bottom: 2rem;
        display: block;
        shape-outside: none;
    }
}