/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #000000;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: normal;
    margin-bottom: 1rem;
    color: #000000;
}

h1 {
    font-size: 2.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    border-bottom: 2px solid #009cc8;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
}

a {
    color: #009cc8;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    background-color: #009cc8;
    color: #ffffff;
    text-decoration: none;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
    margin-top: 80px;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item.toggle {
  margin-left: 1rem; /* adjust as needed */
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark-mode-toggle:hover {
    background-color: #d3d3d3;
}

.toggle-icon {
    font-size: 1.2rem;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-links {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #000000;
    font-weight: normal;
    padding: 0.5rem 1rem;
    border-radius: 0;
    transition: none;
    vertical-align: bottom;
}

.nav-link:hover {
    background-color: #009cc8;
    text-decoration: none;
    color: #ffffff;
}

.nav-link.active {
    background-color: transparent;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
}

/* Profile Section */
.profile-section {
    background-color: #ffffff;
    padding: 3rem 0;
    margin-bottom: 0;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-image {
    justify-self: center;
}

.placeholder-image {
    width: 250px;
    height: 300px;
    background-color: #e0e0e0;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d3d3d3;
    font-style: italic;
}

.profile-photo {
    width: 250px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.profile-info h1 {
    color: #000000;
    margin-bottom: 0.5rem;
}

.title {
    color: #3498db;
    font-style: italic;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.affiliation {
    color: #bebebe;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.bio {
    margin-bottom: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-item {
    padding: 0.5rem 0;
}

/* Publications Section */
.publications-section {
    padding: 2rem 0;
}

.publications-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.publication {
    background-color: transparent;
    border: none;
    padding: 1rem;
    border-radius: 0;
    box-shadow: none;
}

.publication-title {
    color: #000000;
    font-weight: bold;
    margin-bottom: 0;
}

.publication-authors {
    margin-bottom: 0;
    color: #000000;
}

.publication-details {
    margin-bottom: 0rem;
    color: #7f7f7f;
    font-style: italic;
}

.course-details {
    margin-bottom: 0rem;
    color: #7f7f7f;
}

/* Section Description */
.section-description {
    margin-bottom: 2rem;
    font-style: italic;
    color: #666;
    line-height: 1.6;
}

/* Publication Links Container */
.publication-links {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Abstract Details/Summary Styling */
.abstract-details {
    margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
}

.abstract-toggle {
    background-color: transparent;
    color: #00c4fb;
    padding: 0;
    border: none;
    cursor: pointer;
    font-weight: normal;
    transition: none;
    display: inline-block;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
}

.abstract-toggle:hover {
    background-color: #00c4fb;
    color: #ffffff;
    text-decoration: none;
}

/* Cite Details/Summary Styling */
.cite-details {
    margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
}

.cite-toggle {
    background-color: transparent;
    color: #00c4fb;
    padding: 0;
    border: none;
    cursor: pointer;
    font-weight: normal;
    transition: none;
    display: inline-block;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
}

.cite-toggle:hover {
    background-color: #00c4fb;
    color: #ffffff;
    text-decoration: none;
}

.cite-content {
    margin-bottom: 0;
    margin-top: .25rem;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

.abstract-content {
    margin-bottom: 0;
    margin-top: .25rem;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

/* Working Paper Link Styles */
.link-separator {
    color: #000000;
}

.working-paper-link {
    color: #00c4fb;
    text-decoration: underline;
    font-size: inherit;
    cursor: pointer;
}

.working-paper-link:hover {
    background-color: #00c4fb;
    color: #ffffff;
    text-decoration: none;
}

/* Page Header */
.page-header {
    background-color: white;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-style: italic;
    margin: 0;
}













/* Footer */
.footer {
    background-color: #ffffff;
    color: #d3d3d3;
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    font-size: .8em;
}

.footer p {
    margin: 0;
    text-align: center;
}

/* Print Styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }
    
    .main-content {
        min-height: auto;
    }
    
    .page-header {
        background-color: transparent;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .page-header h1 {
        color: #000;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
    
    .abstract-details[open] .abstract-content {
        display: block;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .profile-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    


    

    

    

    

    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .placeholder-image {
        width: 200px;
        height: 240px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-link {
        text-align: left;
        padding: 0.7rem 0;
        display: block;
    }
    
    .dark-mode-toggle {
        align-self: flex-start;
        margin: 0;
    }
    
    .profile-section,
    .page-header {
        padding: 2rem 0;
    }
    
    .publication,

    .policy-item {
        padding: 1.5rem;
    }
    
    .timeline-item {
        padding-left: 70px;
    }
    
    .timeline-year {
        width: 50px;
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem;
    }
    
    .placeholder-image {
        width: 180px;
        height: 220px;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .navbar {
    background-color: #121212;
}



body.dark-mode .nav-link {
    color: #e0e0e0;
}

body.dark-mode .nav-link:hover {
    background-color: #009cc8;
    color: #121212;
}

body.dark-mode .nav-link.active {
    background-color: transparent;
    color: #e0e0e0;
    font-weight: bold;
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: #333333;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode h2 {
    border-bottom-color: #00c4fb;
}

body.dark-mode .page-header {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .page-header h1 {
    color: #ffffff;
}

body.dark-mode .page-subtitle {
    color: #b0b0b0;
}

body.dark-mode .title {
    color: #00c4fb;
}

body.dark-mode .affiliation {
    color: #b0b0b0;
}

body.dark-mode .contact-item {
    color: #e0e0e0;
}

body.dark-mode .profile-section {
    background-color: #121212;
    color: #e0e0e0;
}

body.dark-mode .profile-info {
    color: #e0e0e0;
}

body.dark-mode .profile-info h1 {
    color: #ffffff;
}

body.dark-mode .bio {
    color: #e0e0e0;
}

body.dark-mode .bio p {
    color: #e0e0e0;
}

body.dark-mode a:hover {
    background-color: #009cc8;
    color: #121212;
    text-decoration: none;
}

body.dark-mode .abstract-toggle:hover {
    background-color: #00c4fb;
    color: #121212;
    text-decoration: none;
}

body.dark-mode .cite-toggle {
    color: #00c4fb;
}

body.dark-mode .cite-toggle:hover {
    background-color: #00c4fb;
    color: #121212;
    text-decoration: none;
}

body.dark-mode .working-paper-link {
    color: #00c4fb;
}

body.dark-mode .working-paper-link:hover {
    background-color: #00c4fb;
    color: #121212;
    text-decoration: none;
}

body.dark-mode .link-separator {
    color: #b0b0b0;
}

body.dark-mode .section-description {
    color: #b0b0b0;
}

body.dark-mode .publication-title {
    color: #ffffff;
}

body.dark-mode .publication-authors {
    color: #b0b0b0;
}

body.dark-mode .publication-details {
    color: #999999;
}

body.dark-mode .course-details {
    color: #999999;
}


body.dark-mode .policy-item {
    background-color: #121212;
    border-left-color: #e74c3c;
}

body.dark-mode .policy-item h3 {
    color: #e74c3c;
}

body.dark-mode .timeline::after {
    background-color: #00c4fb;
}

body.dark-mode .timeline-year {
    background-color: #00c4fb;
    color: #121212;
}

body.dark-mode .timeline-content {
    background-color: #121212;
}

body.dark-mode .timeline-content h3 {
    color: #ffffff;
}



body.dark-mode .media-item {
    background-color: #121212;
    border-color: #333333;
}

body.dark-mode .media-item h3 {
    color: #8e44ad;
}

body.dark-mode .footer {
    background-color: #121212;
    color: #b0b0b0;
}

body.dark-mode .policy-details p {
    color: #b0b0b0;
}
