body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Header Section */
header {
    text-align: center;
    background-color: #333;
    color: white;
    padding: 20px 0;
}

header h1 {
    margin: 0;
}

header p {
    margin: 5px 0 15px;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 50px 0; /* Vertical padding to maintain section height */
    background: url('images/background.jpg') no-repeat center center / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 2;
}

.profile-pic {
    width: 200px; /* Adjust size as needed */
    height: auto;
    border-radius: 50%; /* Circular image */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow for visual effect */
    margin-bottom: 15px; /* Space below image */
}

.hero h1 {
    font-size: 2.5em; /* Adjust heading size */
    margin: 0;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5); /* Slight shadow for readability */
}
/* Description and Social Links Box */
.description-icons-box {
    background: rgba(50, 50, 50, 0.7); /* Semi-transparent gray */
    padding: 10px 20px;
    border-radius: 8px;
    margin: 10px auto; /* Centers and adds spacing */
    display: inline-block; /* Shrink box to content */
    text-align: center;
}

.description-text {
    color: white;
    margin: 0 0 10px 0; /* Add small spacing below text */
    font-size: 1em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px; /* Space between icons */
}

.social-links a {
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
/* Navigation Section */
nav {
    background: #444;
    color: white;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

/* Main Section */
main {
    padding: 20px;
    max-width: 800px;
    margin: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

main h2 {
    color: #0073e6;
}

main ul {
    padding-left: 20px;
}

/* Publications Section */
#publications ul {
    list-style-type: disc;
    padding-left: 20px;
}

#publications li {
    margin-bottom: 15px; /* Space between items */
    line-height: 1.5; /* Improves readability */
}

#publications a {
    color: #0073e6;
    text-decoration: none;
}

#publications a:hover {
    text-decoration: underline;
}

footer {
    background: #444;
    color: white;
    padding: 10px 0;
    text-align: center;
}

footer p {
    margin: 0;
}
/* General Section Styling */
.section {
    margin: 40px auto;
    padding: 20px;
    max-width: 800px;
}

/* Centered Section Titles */
.section-title {
    font-size: 2em;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
}

/* Unordered List Styling */
ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1em;
    line-height: 1.6;
}

ul li {
    margin-bottom: 10px;
}

/* Link Styling */
a {
    color: #0073e6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #005bb5;
}
/* Education Section Styling */
.education-list {
    list-style-type: none; /* Removes default bullet points */
    padding: 0;
    margin: 0 auto;
    max-width: 800px; /* Controls width for better readability */
}

.education-list li {
    margin-bottom: 20px; /* Adds space between education items */
    line-height: 1.6; /* Improves readability */
}

.education-list strong {
    font-size: 1.1em; /* Slightly larger font for dates */
    color: #333; /* Dark gray for emphasis */
}

.education-list em {
    color: #555; /* Slightly lighter gray for university names */
    display: block; /* Moves university names to a new line */
    font-style: italic;
}

.project-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.logo-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 15px;
}

.project-logo {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

/* Match ORCID section style to peer-reviewed list */
#orcid-publications {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

#orcid-publications .section-title {
    color: #0073e6;
    font-weight: bold;
    text-align: left;
    font-size: 1.8em;
    margin-bottom: 10px;
}

#orcid-publications .subsection-title {
    font-size: 1.4em;
    color: #0073e6;
    font-weight: bold;
    text-align: left;
    margin-top: 20px;
    margin-bottom: 15px;
}

#orcid-pubs ul {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.6;
    font-size: 1em;
}

#orcid-pubs li {
    margin-bottom: 10px;
}

#orcid-pubs a {
    color: #0073e6;
    text-decoration: none;
}

#orcid-pubs a:hover {
    text-decoration: underline;
    color: #005bb5;
}

/* Research Metrics Section */
.stats-box {
    background: #f7f9fb;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    padding: 20px 25px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-align: left;
}
/* Reduce vertical gaps between top sections */
#about,
#positions,
#education {
  margin-top: 10px !important;
  margin-bottom: 10px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Blog Section */
#blog {
    max-width: 900px;
    margin: 0 auto;
}

.blog-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.blog-item {
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    max-width: 700px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.blog-item h3 {
    color: #0073e6;
    margin-bottom: 8px;
}

.blog-item p {
    font-size: 1em;
    color: #555;
    line-height: 1.6;
}
.media-item img {
    width: 100%;
    max-width: 220px; /* Slightly larger but still tidy */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 2 per row on desktop */
    gap: 20px;
    justify-items: center;
    margin-top: 15px;
}

/* Ensure all text across publication sections is justified */
main, 
main section,
main ul, 
main ol, 
main li, 
main p {
  text-align: justify;
}

/* Optional: slightly reduce line spacing for compactness */
main {
  line-height: 1.5;
}

/* Improve readability for long references */
main li {
  margin-bottom: 10px;
  padding-left: 5px;
}