/* Global Styling */
body {
    font-family: "Iowan Old Style","Iowan","Iowan BT","Palatino Linotype", "URW Palladio L", "serif";
    background-color: #fdfaf3;
    /* background-color: #f5feeb; */ /* Light Green */
    color: #3a3a3a;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.8;
}

/* Navigation Bar */
header {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    font-size: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    text-decoration: underline;
    color: #5a5a5a;
    font-weight: bold;
    font-size: 1rem;
}

/* Main Content */
main {
    max-width: 650px;
    margin: 120px auto 50px;
    padding: 0 20px;
    text-align: left;
}

main a {
    text-decoration: none;
    color: #5a5a5a;
}

main a:hover {
    text-decoration: underline;
    color: #7a3b00;
}

/* Article Title */
h1 {
    font-family: 'Iowan BT', serif;
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-top: 60px;
    color: #444;
}

/* Paragraphs */
p {
    font-size: 1.2rem;
    color: #5a5a5a;
}

/* Links */
a {
    text-decoration: underline;
    color: #5a5a5a;
}

a:hover {
    color: #7a3b00;
}

/* Footer */
footer {
    margin-top: 50px;
    font-size: 0.9rem;
    color: #444;
}

.semi-transparent-line {
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.social-links {
    font-size: 1rem;
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 15px;
}
.social-links a {
    text-decoration: underline;
    color: #5a5a5a;
    font-weight: bold;
    border-radius: 5px;
    transition: color 0.3s ease;
}
.social-links a:hover {
    color: #7a3b00;
}

/* Publications List */
.publications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each Publication Item */
.publications li {
    padding: 5px 0;  /* Reduced padding */
    border-bottom: 1px solid #ddd;
    margin-bottom: 3px; /* Reduced margin */
}

.publications li:last-child {
    border-bottom: none;
}

/* Titles with Links */
.publications h2 {
    font-size: 1.4em; /* Increased font size */
    font-weight: bold;
    color: #222; /* Darker title */
    margin: 0 0 2px; /* Reduced margin */
}

.publications h2 a {
    text-decoration: none;
    color: #5a5a5a; /* Darker brown */
    transition: color 0.3s;
}

.publications h2 a:hover {
    color: #7a3b00;
    text-decoration: underline;
}

/* Authors */
.authors {
    font-size: 1.1em; /* Slightly increased */
    color: #444;
    margin: 0;
}

/* Conference / Thesis Details */
.conference {
    font-style: italic;
    color: #555;
    font-size: 1.1em;
    margin: 2px 0;
}

/* About */
/* Section Titles */
.education h2, .experience h2 {
    font-size: 1.5em;
    font-weight: bold;
    color: #444;
    border-bottom: 2px solid #ddd;
    padding-bottom: 3px;
    margin-bottom: 8px;
}

/* Education & Work Experience Lists */
.education ul, .experience ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.education li, .experience li {
    font-size: 1.2em;
    margin-bottom: 6px;
    color: #5a5a5a; /* Normal text */
}

/* Company / University Name */
.education li strong, .experience li strong {
    font-weight: bold;
    color: #5a5a5a;
}

/* Role / Degree Styling */
.education li, .experience li{
    font-weight: normal; /* Fix bold issue */
    display: block;
    color: #5a5a5a;
    font-size: 1.1em;
    margin-top: 1px;
}

/* Date Formatting */
.experience span {
    font-size: 0.9em;  /* Reduced size */
    color: #5a5a5a;
    margin-top: 2px;
    display: block;
}

/* Blog List */
.blog-list-heading, .post-list-heading h2 {
    text-align: center;
}

#blog-list, #post-list {
    max-width: 600px;
    margin: 0 auto;
}
  
/* Year Header */
.year-header {
  font-size: 2rem;
  font-weight: bold;
  color: #444;
  margin-top: 30px;
  margin-bottom: 5px;
  text-align: left;
}

.year-header:first-child {
  margin-top: 0;
}

/* Month Header */
.blog-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #444;
}

/* Blog Item with Dot Leaders */
.blog-item {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Title, dots, and date */
    align-items: center;
    padding: 10px 0; 
  }
  
  .blog-item a {
    text-decoration: none;
    font-size: 1.2rem; 
    display: contents; 
  }
  
  .blog-item a:hover {
    text-decoration: none;
  }
  
  .blog-item .dots {
    border-bottom: 2px dotted;
    margin: 0 10px;
    flex-grow: 1;
    height: 1px;
  }
  
  .blog-item .date {
    font-size: 1.2rem; /* Match the title size */
    text-align: right;
  }

/* code block styling */
code {
    background-color: #f5f5f5; /* Light gray background */
    padding: 0.2em 0.4em; /* Add some padding */
    border-radius: 4px; /* Rounded corners */
    font-family: 'Courier New', Courier, monospace; /* Monospace font */
    font-size: 0.95em; /* Slightly smaller font size */
}
