/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    display: flex;
    min-height: 100vh;
}

/* Color Variables */
:root {
    --primary-orange: #FF7F00;
    --sidebar-bg: #000;
    --sidebar-text: #fff;
    --content-bg: #fff;
    --text-color: #000;
}

/* Sidebar Navigation */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 40px 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    border-right: 5px solid var(--primary-orange);
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 20px;
    border: 4px solid var(--primary-orange);
    background-color: var(--content-bg);
}

.profile-header h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-orange);
}

.profile-header h2 {
    font-size: 1rem;
    font-weight: normal;
    opacity: 0.9;
    margin-bottom: 5px;
}

.profile-header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.profile-header .uni-name {
    margin-bottom: 20px;
}

.nav-links {
    list-style: none;
    margin-top: 30px;
}

.nav-links li {
    margin-bottom: 15px;
}

.nav-links a {
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    display: block;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.contact-info {
    margin-top: 50px;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    padding-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Main Content Area */
.main-content {
    margin-left: 280px;
    padding: 50px 60px;
    width: 100%;
    max-width: 1200px;
}

section {
    margin-bottom: 60px;
    scroll-margin-top: 40px;
}

h2.section-title {
    color: var(--primary-orange);
    border-bottom: 2px solid #000;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
}

h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

p {
    margin-bottom: 15px;
    text-align: justify;
}

/* Lists */
ul {
    list-style-position: inside;
    margin-bottom: 20px;
}

li {
    margin-bottom: 8px;
}

/* Links */
a {
    color: var(--primary-orange);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Publication & News Specifics */
.publication-item {
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid #eee;
}

.news-item {
    margin-bottom: 12px;
}

.date-badge {
    background-color: #000;
    color: #fff;
    padding: 2px 6px;
    font-size: 0.8rem;
    border-radius: 3px;
    margin-right: 8px;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 5px solid var(--primary-orange);
    }

    .main-content {
        margin-left: 0;
        padding: 30px 20px;
    }
}
/* Research Section Layout */
.research-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.research-list {
    flex: 2;
}

.research-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.research-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
}

@media (max-width: 768px) {
    .research-container {
        flex-direction: column;
    }
}

/* Fixed Top Header Styles */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    z-index: 1000;
    border-bottom: 2px solid var(--primary-orange);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Adjust layout for fixed header */
body {
    padding-top: 50px;
}

.sidebar {
    top: 50px;
    height: calc(100vh - 50px);
}

@media (max-width: 768px) {
    .sidebar {
        top: 0;
    }
}

/* Lightbox Effect for Research Image */
#research-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#research-img:hover {
    transform: scale(1.02);
}

.expanded {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999 !important;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 !important;
    border-radius: 0 !important;
    transform: none !important; 
}
