/* --- Core Sarpong Aesthetic --- */
:root {
    --text-main: #222222;
    --text-light: #555555;
    --sarpong-blue: #003262; 
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: #ffffff; /* Sarpong uses a stark white background */
    margin: 0;
    padding: 0;
    line-height: 1.7;
    font-size: 16px;
    font-weight: 300;
}

.site-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- Header --- */
.sarpong-header {
    text-align: center;
    margin-bottom: 40px;
}

.sarpong-header h1 {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    letter-spacing: 8px; /* This gives it the Sarpong look */
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #111;
}

.sarpong-header p {
    font-size: 1rem;
    color: var(--text-light);
    font-style: italic;
    letter-spacing: 2px;
    margin: 0;
}

.site-logo {
    max-height: 80px; /* Keeps the logo elegant and proportional */
    width: auto;
    margin-bottom: 20px; /* Space between the logo and the main title */
    display: inline-block;
}

/* --- Navigation --- */
.sarpong-nav {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 15px 0;
    margin-bottom: 50px;
}

.sarpong-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.sarpong-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.sarpong-nav a:hover {
    color: var(--sarpong-blue);
}

/* --- Shared Page Elements --- */
.section-title, .sidebar-heading {
    font-family: var(--font-sans);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-main);
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.sarpong-divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 40px 0;
}

/* --- Home Page Layout --- */
.sarpong-home-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

/* News Sidebar */
.home-sidebar {
    background: #fafafa;
    padding: 30px;
    border: 1px solid #eee;
}

.news-item { margin-bottom: 30px; }
.news-date { 
    display: block;
    color: var(--sarpong-blue); 
    font-weight: 700; 
    font-size: 0.85rem; 
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.news-headline { margin: 0 0 5px 0; font-size: 1.05rem; }
.news-text { margin: 0; font-size: 0.95rem; color: var(--text-light); }
/* --- Scrollable News Feed --- */
.news-feed {
    max-height: 450px; /* Keeps the feed roughly the same height as the hero image */
    overflow-y: auto;
    padding-right: 15px; /* Adds breathing room so text doesn't touch the scrollbar */
}

/* Custom sleek scrollbar for modern browsers */
.news-feed::-webkit-scrollbar {
    width: 6px;
}
.news-feed::-webkit-scrollbar-track {
    background: #fafafa;
}
.news-feed::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 4px;
}
.news-feed::-webkit-scrollbar-thumb:hover {
    background: var(--sarpong-blue);
}

/* --- Publications Layout --- */
.publication-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.pub-details { flex: 2; }
.pub-title { 
    font-size: 1.2rem; 
    font-weight: 700;
    margin: 0 0 10px 0; 
    line-height: 1.4;
}
.pub-journal { font-style: italic; margin: 0 0 5px 0; color: #222; }
.pub-authors { font-size: 0.95rem; color: var(--text-light); margin: 0 0 15px 0; }
.pub-link { 
    color: var(--sarpong-blue); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--sarpong-blue);
    padding-bottom: 2px;
}

.pub-graphic { flex: 1; text-align: right; }
.pub-graphic img { max-width: 100%; border: 1px solid #eee; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* --- Footer --- */
.sarpong-footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* --- Research Projects Layout --- */
.sarpong-projects {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
}

.project-row {
    display: flex;
    align-items: center; /* Vertically centers the text alongside the image */
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 20px;
    margin-top: 20px;
}

/* Sarpong alternates the image size depending on the layout, but 50/50 is the cleanest */
.project-text {
    flex: 1;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--text-main);
    margin: 0 0 15px 0;
    font-weight: 400;
}

.project-graphic {
    flex: 1;
    text-align: center;
}

.project-graphic img {
    max-width: 100%;
    height: auto;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border-radius: 2px;
}

/* --- Completed Targets Grid --- */
.completed-targets-grid {
    display: grid;
    /* This automatically creates as many 200px columns as will fit on the screen */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.target-card {
    text-decoration: none;
    color: var(--text-main);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}

.target-card:hover {
    transform: translateY(-5px); /* Creates a subtle lift effect when clicked */
}

.target-image-container {
    height: 180px; /* Fixed height ensures the grid stays perfectly aligned */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.target-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Prevents stretching of molecule diagrams */
}

.target-info {
    border-top: 1px solid #eee;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
}

.target-name {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.target-date {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 2px;
}

/* --- Publications Card Layout --- */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

.pub-card {
    display: flex;
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    border-radius: 4px;
    overflow: hidden; 
    text-decoration: none; /* Prevents the link from underlining */
    color: inherit; /* Prevents the text from turning default blue */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Adds a subtle lift and shadow when hovering over the publication */
.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Left Column: Header and Body */
.pub-text-column {
    flex: 3;
    display: flex;
    flex-direction: column;
}

/* The light gray journal header */
.pub-header {
    background-color: #f0f4f8; /* Soft gray/blue tint from screenshot */
    padding: 12px 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eaeaea;
}

.pub-journal {
    color: #0077c8; /* Bright link blue */
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 700;
    font-size: 1.05rem;
}

/* The white text body area */
.pub-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.pub-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    color: #444444; /* Dark gray, not pure black */
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.pub-title strong {
    color: #333;
    font-weight: 700;
}

.pub-authors {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #777777; /* Lighter gray */
    margin: 0;
}

/* Right Column: Image */
.pub-graphic {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #ffffff;
    border-left: 1px solid #eaeaea;
}

.pub-graphic img {
    max-width: 100%;
    max-height: 200px; /* Constrains massive abstracts */
    object-fit: contain;
}

/* --- PI Profile Refined Layout --- */
.pi-profile-section {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 40px;
}

.pi-photo-col {
    flex: 1;
    max-width: 320px;
}

.pi-photo {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #eaeaea;
}

.pi-info-col {
    flex: 2;
}

.pi-name {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--text-main);
    margin: 0 0 15px 0;
    letter-spacing: 2px;
    border-bottom: 2px solid var(--sarpong-blue);
    padding-bottom: 10px;
    display: inline-block;
}

.pi-titles {
    margin-bottom: 20px;
}

.pi-role {
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 3px 0;
    /* text-transform: uppercase; */
    text-transform: none;
    letter-spacing: 1px;
}

.pi-affiliations {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.pi-contact p {
    margin: 5px 0;
    font-size: 1rem;
}

.pi-contact a {
    color: var(--sarpong-blue);
    text-decoration: none;
}

.pi-cv-link {
    display: inline-block;
    margin-top: 15px;
    font-weight: 700;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--sarpong-blue);
}

/* --- PI Middle & Bottom Sections --- */
.pi-statement {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    margin-bottom: 60px;
}

.pi-grid-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.pi-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Stylized timeline dots and lines */
.pi-timeline li {
    margin-bottom: 30px;
    border-left: 2px solid #eaeaea;
    padding-left: 20px;
    position: relative;
}

.pi-timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--sarpong-blue);
    border-radius: 50%;
}

.timeline-date {
    display: block;
    font-size: 0.85rem;
    color: var(--sarpong-blue);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-role {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 3px;
    color: var(--text-main);
}

.timeline-details {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.pi-bullet-list {
    padding-left: 20px;
    color: var(--text-light);
}

.pi-bullet-list li {
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Team / Group Members Layout --- */
.team-section {
    margin-top: 50px;
}

.team-grid {
    display: grid;
    /* Creates a responsive grid: 4 columns on large screens, automatically scaling down */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.team-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.member-photo-wrapper {
    width: 180px;
    height: 220px; /* Portrait orientation */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #eaeaea;
}

.member-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Subtle zoom effect when hovering over a member */
.team-card:hover .member-photo-wrapper img {
    transform: scale(1.05);
}

.member-details {
    padding: 0 10px;
}

.member-name {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-main);
    margin: 0 0 5px 0;
    font-weight: 400;
}

.member-role {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sarpong-blue);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-edu {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}
/* --- Home Page Additional Sections (Research & Contact) --- */
.text-center {
    text-align: center;
}

.section-title.text-center {
    text-align: center;
    border-bottom: none;
    margin-bottom: 15px;
}

.home-research-section {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 0;
}

.research-summary-text {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 35px;
}

/* Premium Academic Button */
.sarpong-btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: transparent;
    color: var(--sarpong-blue);
    border: 2px solid var(--sarpong-blue);
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    border-radius: 2px;
}

.sarpong-btn:hover {
    background-color: var(--sarpong-blue);
    color: #ffffff;
}

/* Contact Grid */
.home-contact-section {
    padding-bottom: 20px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
}

.contact-details p {
    margin-top: 0;
}

.contact-details a {
    color: var(--sarpong-blue);
    text-decoration: none;
    font-weight: 700;
}