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

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.25;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: #0366d6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 5px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e1e4e8;
    flex-wrap: wrap;
}

.name-container {
    margin-right: 20px;
}

h1 {
    font-size: 2rem;
    margin: 0;
    color: #24292e;
}

.subtitle {
    font-size: 2rem;
    color: #586069;
}

nav {
    display: flex;
    gap: 20px;
    margin-top: 0px;
}

nav a {
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
    color: #24292e;
    transition: background-color 0.2s;
}

nav a:hover {
    background-color: #f1f2f3;
    text-decoration: none;
}

nav a.active {
    background-color: #0366d6;
    color: white;
}

/* Main Content Styles */
main {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Global spacing controls ---------- */
:root{
  --section-pad-y: 12px;     /* top & bottom padding inside sections */
  --section-pad-x: 12px;     /* left & right padding inside sections */
  --section-gap-y: 12px;     /* vertical gap between sections */
  --section-radius: 6px;
  --section-shadow: 0 1px 3px rgba(0,0,0,.1);
}

/* All sections (including profile) */
main > section{
  /* background: transparent; */
  background: #fff; 
  border-radius: var(--section-radius);
  padding: var(--section-pad-y) var(--section-pad-x);
  box-shadow: var(--section-shadow);
  margin: 0 0 var(--section-gap-y) 0;  /* controls space below each card */
}
/* section {
    background-color: white;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 12px 25px;   
} */

h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #24292e;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e4e8;
}

h3 {
    font-size: 1.4rem;
    margin: 20px 0 15px 0;
    color: #24292e;
}

ul {
    list-style-position: inside;
    margin-left: 10px;
}

li {
    margin-bottom: 12px;
}

/* Profile Section */
.profile {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* .profile-image {
    flex: 0 0 200px;
} */
/* Control ratio here */
.profile-image {
    flex: 1;          /* image takes 1 share */
}

.profile-content {
    flex: 2;   /* text takes 3 shares */
    /* min-width: 300px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.profile-content p {
    text-align: justify;
    font-size: 1.25rem;   /* default ~16px */
    line-height: 1.25;  /* adjust readability */
}


.profile-image img {
    width: 100%;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-links {
    margin-top: 5px;
}

.profile-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    background-color: #f1f2f3;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.profile-links a:hover {
    background-color: #e1e4e8;
    text-decoration: none;
}

/* Add/keep this to normalize widths */
main > section {
  width: 100%;
  margin-left: 0;
}


News Section
.news li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 15px;
}

.date {
    color: #586069;
    font-weight: 500;
    white-space: nowrap;
}

/* Publications Section */
sup {
    font-size: 1em;   /* relative to parent font size */
    vertical-align: super; /* default, but you can tweak */
    line-height: 1;     /* keeps it tight */
}

.pub-note {
    font-size: 1rem;
    /* font-style: italic; */
    color: #000000;
    /* margin-top: 10px; */
}

.publication {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #e1e4e8;
}

.publication:last-of-type {
    border-bottom: none;
}

.publication .title {
    font-weight: 400;
    font-size: 1.1rem;
    margin-bottom: 0px;
}

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

.publication .venue {
    font-style: italic;
    color: #000000;
    margin-bottom: 8px;
}

.publication-links {
    display: flex;
    gap: 10px;
}

.publication-links a {
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 3px;
    background-color: #f1f2f3;
}

/* subsection divider lines */
.selected-publications h3 {  
  border-top: 1px solid #e1e4e8;  /* gray divider */
  padding-top: 10px;              /* space below the line */
  margin-top: 5px;               /* space above the line */
} 

.selected-publications h2 {
  border-bottom: none;   /* remove the line from the heading */
  padding-bottom: 0;
  margin-bottom: 2px;    /* small gap above the note */
}

.selected-publications .pub-note::after {
  content: "";
  display: block;
  border-top: 1px solid #e1e4e8; /* the gray divider */
  margin-top: 6px;               /* space between note and line */
}

/* no divider before the very first subsection */
.selected-publications h3:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 10;
}

/*
/* Bullet in the left gutter, aligned to first line */
.publication {
  display: grid;
  grid-template-columns: 0.8rem 1fr;  /* gutter + content */
  column-gap: 0.25rem;
  margin-bottom: -1rem;   /* ⬅ spacing between items */
  border-bottom: none !important;
}


.publication::before {
  content: "•";            /* \2022 */
  grid-column: 0;
  align-self: start;       /* top-align with first line */
  line-height: 1;
  font-size: 2rem;         /* bullet size; tweak as you like */
  color: #1f2937;          /* bullet color; e.g., #0366d6 for blue */
  transform: translateY(-.125em); /* tiny vertical nudge if needed */
}

/* Put all the actual pub text in the content column */
.publication > * {
  grid-column: 2;
  margin: 0 0 .05rem 0;    /* compact spacing between lines */
}

/* Space between publications */
.publication + .publication {
  margin-top: 0.1rem;
}

.see-more {
    margin-top: 20px;
    text-align: right;
}

/* Footer Styles */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e1e4e8;
    text-align: center;
    color: #586069;
    font-size: 0.9rem;
}

/* Publications Page Styles */
.publications-container h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.publication-year {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e4e8;
}

.publication-note {
    font-style: italic;
    margin-bottom: 20px;
    color: #586069;
}

/* Awards Page Styles */
.awards-list li {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e1e4e8;
}

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

.award-title {
    font-weight: 600;
}

.award-date {
    color: #000000;
    font-weight: 500;
}

/* Activities Page Styles */
.activity-section {
    margin-bottom: 35px;
}

.activity-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #24292e;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    nav {
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .profile {
        flex-direction: column;
    }
    
    .profile-image {
        flex: 0 0 100%;
        max-width: 250px;
        margin: 0 auto 20px auto;
    }

    /* Reset offset for mobile */
    main > section:not(.profile) {
        width: 100%;
        margin-left: 0;
    }
}
