/* Minimalist Global Headings */
.content h1, .content h2, .content .bio-section h2 {
    border-left: 6px solid #000;
    padding-left: 20px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    display: block !important; /* Forces layout even if flexed before */
}

/* Modern Sidebar Optimization */


:root {
    --sidebar-bg: #000000;
    --accent-color: #38bdf8;
    --text-muted: #94a3b8;
    --nav-hover-bg: rgba(255, 255, 255, 0.1);
}


body {
    font-family: 'Inter', sans-serif !important;
}

.sidebar {
    background: var(--sidebar-bg) !important;
    padding: 2rem 1.5rem !important;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-about {
    text-align: center;
    margin-bottom: 2.5rem;
}

.sidebar-about h1 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.025em;
    margin-top: 1.5rem !important;
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    color: white !important;
}

.sidebar-nav {
    margin-left: 0 !important;
    flex-grow: 1;
}

.sidebar-nav-item {
    padding: 0.75rem 1rem !important;
    margin-bottom: 0.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    color: var(--text-muted) !important;
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
}

.sidebar-nav-item:hover {
    background: var(--nav-hover-bg) !important;
    color: white !important;
    transform: translateX(4px);
}

.sidebar-nav-item.active {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    position: relative;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    width: 4px;
    height: 60%;
    background: #ffffff;
    border-radius: 0 4px 4px 0;
}


.nav-icon-list {
    margin-top: auto !important;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start !important;
}

.nav-icon-list a {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-icon-list a:hover {
    opacity: 1;
}

.sidebar p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

#animated-hr {
    opacity: 0.2;
}

/* Page Transitions */
.content {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile_info {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw + 0.5rem, 1.5rem);
    font-weight: 700;
    color: #000;
    margin-top: 15px;
}


/* Contact Info Stylings - Simplified */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: clamp(1rem, 1.5vw + 0.6rem, 1.15rem);
    color: #333;
}



.contact-item svg {
    margin-right: 12px;
    color: #444;
    opacity: 0.8;
}

.contact-item strong {
    margin-right: 6px;
    color: #000;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Home Page Layout & Separator */
.profile-column {
    padding-right: 40px;
    margin-bottom: 40px;
}


.content-column {
    padding-left: 40px;
}

.bio-section h2 {
    font-size: clamp(1.5rem, 3vw + 1rem, 2rem);
    display: flex;
    align-items: center;
}

.bio-section div {
    font-size: clamp(1rem, 1vw + 0.7rem, 1.1rem);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .profile-column {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-right: 15px;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }

    .content-column {
        padding-left: 15px;
    }
}

/* Teaching Cards */
.teaching-grid {
    margin-top: 2rem;
}

.teaching-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.teaching-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #000;
}

.teaching-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000;
}

.semester-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.teaching-card .card-text {

    font-size: 1rem;
    color: #444;
    line-height: 1.7;
}