/* Modern Academic Website Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --border-color: #e0e0e0;
    --link-color: #2980b9;
    --link-hover: #1a5a7d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

header h1 a {
    color: white;
    text-decoration: none;
}

header h2 {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: white;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    background-color: var(--light-gray);
}

/* Landing Page Specific */
.landing-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin: 3rem 0;
}

.profile-section {
    flex: 0 0 300px;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.contact-info {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.8;
}

.contact-info strong {
    color: var(--primary-color);
}

.summary-section {
    flex: 1;
}

.summary-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.summary-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Content Pages */
.page-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
}

.page-header-only {
    margin-bottom: 2rem;
}

/* Publications */
.section-heading {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.publications-list {
    list-style: none;
}

.publications-list li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.publications-list li:last-child {
    border-bottom: none;
}

.pub-title {
    font-size: 1.1rem;
    line-height: 1.6;
}

.pub-title a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 500;
}

.pub-title a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.pub-title em {
    font-weight: 600;
}

/* Abstract Toggle Button */
.abstract-toggle {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    margin-left: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.abstract-toggle:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.abstract-content {
    display: none;
    margin-top: 1rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    line-height: 1.8;
}

/* Biography Page */
.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.bio-content {
    max-width: 900px;
    margin: 0 auto;
}

.bio-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.bio-content a {
    color: var(--link-color);
    text-decoration: none;
}

.bio-content a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.cv-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cv-link:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Students Page */
.students-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 2rem;
}

.students-list li {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.students-list .pub-title {
    font-size: 1.05rem;
}

/* News Page */
.news-list {
    list-style: none;
}

.news-list li {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.news-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.news-list a {
    color: var(--link-color);
    text-decoration: none;
}

.news-list a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Tab Interface */
.tabs-container {
    margin-bottom: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-button {
    background-color: transparent;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tab-button:hover {
    color: var(--accent-color);
    background-color: var(--light-gray);
}

.tab-button.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
    font-weight: 600;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .landing-content {
        flex-direction: column;
    }

    .profile-section {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
    }

    nav a {
        border-bottom: 1px solid var(--border-color);
    }

    header h1 {
        font-size: 2rem;
    }

    header h2 {
        font-size: 1.1rem;
    }

    .students-list {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 2px solid var(--border-color);
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

main .summary-section p{ text-align:justify; text-justify:inter-word; } 