/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-image: url('profile.jpg');
    background-size: 190px 344px;
    background-position: -4px -8px;
    background-repeat: no-repeat;
    border: 4px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.affiliation {
    font-size: 1rem;
    opacity: 0.8;
}

.header-links {
    margin-top: 0.6rem;
    font-size: 0.95rem;
}

.header-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.header-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Navigation Styles */
nav {
    background-color: #34495e;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #2c3e50;
}

/* Main Content Styles */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 5px;
}

section {
    margin-bottom: 2rem;
}

section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

section h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Notice Banner */
.notice {
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.notice p {
    color: #856404;
    font-size: 1.1rem;
}

/* List Styles */
ul.content-list {
    list-style: none;
    padding-left: 0;
}

ul.content-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

ul.content-list li:last-child {
    border-bottom: none;
}

.item-title {
    font-weight: bold;
    color: #2c3e50;
}

.item-details {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.item-description {
    color: #444;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Abstract Dropdown */
ul.content-list details {
    margin-top: 0.6rem;
}

ul.content-list details summary {
    cursor: pointer;
    color: #3498db;
    font-size: 0.9rem;
    font-weight: 500;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    list-style: none;
}

ul.content-list details summary::-webkit-details-marker {
    display: none;
}

ul.content-list details summary::before {
    content: '▶';
    font-size: 0.6rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

ul.content-list details[open] summary::before {
    transform: rotate(90deg);
}

ul.content-list details summary:hover {
    color: #2577b5;
    text-decoration: underline;
}

.abstract-text {
    margin-top: 0.6rem;
    padding: 0.8rem 1rem;
    background-color: #f8f9fa;
    border-left: 3px solid #3498db;
    border-radius: 0 4px 4px 0;
    color: #444;
    font-size: 0.93rem;
    line-height: 1.75;
}

.abstract-text ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.abstract-text ul li {
    padding: 0.25rem 0;
    border-bottom: none;
}

/* Publication Styles */
.publication {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.publication:last-child {
    border-bottom: none;
}

.publication-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.publication-authors {
    color: #555;
    font-style: italic;
    margin-bottom: 0.2rem;
}

.publication-venue {
    color: #666;
    font-size: 0.95rem;
}

.publication-links {
    margin-top: 0.5rem;
}

.publication-links a {
    color: #3498db;
    text-decoration: none;
    margin-right: 1rem;
}

.publication-links a:hover {
    text-decoration: underline;
}

/* External Links */
.external-links {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.external-links p {
    text-align: center;
}

.external-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.external-links a:hover {
    text-decoration: underline;
}

/* CV Download */
.cv-download {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    border-radius: 5px;
}

.cv-download a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.cv-download a:hover {
    color: #3498db;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    gap: 1rem;
}

.skills-grid div {
    padding: 0.5rem 0;
}

/* CV Section Styles */
.cv-section {
    margin-bottom: 2rem;
}

.cv-entry {
    margin-bottom: 1rem;
}

.cv-entry-title {
    font-weight: bold;
    color: #2c3e50;
}

.cv-entry-details {
    color: #666;
    margin-top: 0.2rem;
}

/* Footer Styles */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        border-bottom: 1px solid #2c3e50;
    }

    main {
        margin: 1rem;
        padding: 1rem;
    }
}
