/* Academic Website Styles - Inspired by aahmetoglu.com */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #000000;
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 40px;
}

/* Header and Navigation */
.header {
    background-color: #fff;
    color: #000000;
    padding: 20px 0;
    margin-bottom: 2em;
    border-bottom: 1px solid #ddd;
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-name {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
    color: #333;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: normal;
    font-size: 1.1em;
}

.nav a:hover {
    color: #004499;
}

/* Main content */
h1 {
    font-size: 2.2em;
    margin-bottom: 0.3em;
    color: #000;
    font-weight: normal;
}

h2 {
    font-size: 1.4em;
    margin: 2em 0 1em 0;
    color: #000;
    font-weight: normal;
}

h3 {
    font-size: 1.1em;
    margin: 1.5em 0 0.8em 0;
    color: #000;
    font-weight: normal;
}

p {
    margin-bottom: 1em;
    text-align: left;
}

.subtitle {
    font-size: 1em;
    color: #666;
    margin-bottom: 1.5em;
    font-style: italic;
}

/* Email link styling in subtitle */
.email-link {
    color: #666666;
}

.email-link:hover {
    color: #4d4d4d;
    text-decoration: underline;
}

ul {
    margin: 1em 0;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.8em;
}

a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Make all headings and titles black and bold */
h3, .experience-item h3, .education-item h3, .honor-item h3, .publication-item h3 {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Academic publication list styling */
.publication-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.publication-list li {
    margin: 12px 0;
    line-height: 1.4;
    padding: 0;
}

.publication-list li strong a {
    color: #0066cc;
    font-weight: bold;
    text-decoration: none;
}

.publication-list li strong a:hover {
    color: #004499;
    text-decoration: underline;
}

.publication-list li strong {
    color: #000000;
    font-weight: bold;
}

.publication-list li em {
    font-style: italic;
    color: #000000;
}

.publication-description {
    margin: 6px 0 0 20px;
    font-size: 0.9em;
    color: #333;
    line-height: 1.3;
    font-style: italic;
}

/* Academic list styling for experience, education, honors, theses, and research areas */
.experience-list,
.education-list,
.honor-list,
.thesis-list,
.research-areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-list li,
.education-list li,
.honor-list li,
.thesis-list li,
.research-areas-list li {
    margin: 12px 0;
    line-height: 1.4;
    padding: 0;
}

.experience-list li strong,
.education-list li strong,
.honor-list li strong,
.thesis-list li strong,
.research-areas-list li strong {
    color: #000000 !important;
    font-weight: bold;
}

/* Ensure all strong elements in lists are black */
.experience-list strong,
.education-list strong,
.honor-list strong,
.thesis-list strong,
.research-areas-list strong,
.publication-list strong {
    color: #000000 !important;
    font-weight: bold;
}

.experience-description,
.education-description,
.honor-description,
.thesis-description,
.research-area-description {
    margin: 6px 0 0 20px;
    font-size: 0.9em;
    color: #333;
    line-height: 1.3;
    font-style: italic;
}

.thesis-link,
.talk-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.thesis-link:hover,
.talk-link:hover {
    color: #004499;
    text-decoration: underline;
}

/* Compact experience, education, and honor items */
.experience-item,
.education-item,
.honor-item {
    padding: 8px 12px;
    margin: 8px 0;
    line-height: 1.3;
}

.experience-item h3,
.education-item h3,
.honor-item h3 {
    margin: 0 0 4px 0;
    font-size: 1em;
}

.experience-meta,
.education-meta,
.honor-meta {
    font-size: 0.85em;
    margin: 4px 0;
    line-height: 1.2;
}

.publication-item h3 a {
    color: #0066cc !important;
    font-weight: bold !important;
}

.publication-item h3 a:hover {
    color: #004499 !important;
}

.publication-item h3 {
    color: #000000 !important;
    font-weight: bold !important;
}

/* Sections */
.home {
    margin-bottom: 2em;
}

/* Section separators */
h2 {
    border-top: 1px solid #ddd;
    padding-top: 20px;
    margin-top: 30px;
}

h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

/* Header Avatar */
.header-name-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #0066cc;
    flex-shrink: 0;
}

.news {
    margin-bottom: 2em;
}

.research {
    margin-bottom: 2em;
}

.publications {
    margin-bottom: 2em;
}

.contact {
    margin-bottom: 2em;
}

/* Footer */
footer {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #666;
    font-size: 0.9em;
}

/* Responsive design */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 14px;
    }
    
    .container {
        padding: 15px;
        margin: 5px auto;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 0 20px;
    }
    
    .header-name {
        font-size: 1.5em;
        margin-bottom: 0;
    }
    
    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .nav a {
        font-size: 1em;
        padding: 5px 0;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    h3 {
        font-size: 1em;
    }
    
    .subtitle {
        font-size: 0.9em;
        line-height: 1.4;
    }
    
    .publication-item,
    .experience-item,
    .education-item,
    .honor-item {
        padding: 12px;
        margin: 12px 0;
    }
    
    .research-areas {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .publication-links a,
    .thesis-link,
    .talk-link {
        font-size: 0.8em;
        padding: 5px 10px;
        margin: 3px 5px 3px 0;
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
    }
    
    .container {
        padding: 10px;
        margin: 2px auto;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .nav {
        gap: 10px;
    }
    
    .nav a {
        font-size: 0.9em;
    }
    
    h1 {
        font-size: 1.6em;
    }
    
    h2 {
        font-size: 1.2em;
    }
    
    .subtitle {
        font-size: 0.85em;
    }
    
    .publication-item,
    .experience-item,
    .education-item,
    .honor-item {
        padding: 10px;
        margin: 10px 0;
    }
    
    .publication-meta,
    .experience-meta,
    .education-meta,
    .honor-meta {
        font-size: 0.8em;
    }
    
    .header-avatar {
        width: 35px;
        height: 35px;
    }
}