/* Base styles */
body {
    font-family: 'Spectral', serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 2rem 0;
    border-bottom: 2px solid #eaeaea;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

nav ul li {
    margin-right: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.2rem;
}

nav a:hover {
    color: #d40000;
}

/* About section */
.profile-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 3rem 0;
}

.profile-img {
    width: 600px;
    height: auto;
    border-radius: 5px;
}

.bio h2 {
    margin-top: 0;
    font-size: 2.2rem;
}

.school {
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Portfolio sections */
.portfolio-section {
    margin: 4rem 0;
    padding-top: 2rem;
}

.publication {
    margin-bottom: 3rem;
}

.publication h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}


.role {
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-work {
    display: block;
    margin-top: 1rem;
    color: #333;
    text-decoration: underline;
}

/* Leadership section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.org-card {
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
}

.org-card h3 {
    margin-top: 0;
    font-size: 1.5rem;
}

/* Contact section */
#contact {
    margin: 4rem 0;
    padding-top: 2rem;
}

#contact a {
    color: #333;
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 2px solid #eaeaea;
    text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    nav ul li {
        margin: 0.5rem 0;
    }
}
/* Right-align the navigation */
header nav ul {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
    list-style: none;
}

header nav ul li {
    margin-left: 2rem;
}

.org-card {
    text-align: center;
    padding: 1.5rem;
}
/* Update logo styling for consistent rendering */
/* Logo styling */
.org-logo {
    max-height: 80px;  /* Changed from fixed height */
    max-width: 200px;  /* Added max-width constraint */
    width: auto;
    height: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
    display: block;  /* Ensure proper spacing */
}

.publication-logo {
  max-height: 100px;
  max-width: 250px;
  width: auto;
  height: auto;
  margin: 0 auto 1rem;
  object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}


/* hover over logo */
.publication-logo:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}


/* Add responsive image container */
.org-card {
    position: relative;
    padding: 2rem 1.5rem;
}

/* Ensure image container stability */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
}
:root {
    /* Color Variables */
    --primary-dark: #231813;    /* Dark Brown (Text/Headers) */
    --secondary-dark: #61594F; /* Grayish Brown (Secondary Text) */
    --medium-accent: #8F663E;  /* Warm Brown (Accents/Borders) */
    --light-accent: #000000;   /* Light Tan (Secondary Backgrounds) */
    --cream: #F3E4D1;          /* Cream (Primary Background) */
}

body {
    background-color: var(--cream);
    color: var(--primary-dark);
}

header {
    background-color: var(--medium-accent);
    border-bottom: 2px solid var(--primary-dark);
}

nav a {
    color: var(--cream);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--light-accent);
}

.profile-container,
.publication,
.org-card {
    background-color: white;
    border: 1px solid var(--light-accent);
    box-shadow: 4px 4px 8px rgba(189, 166, 132, 0.1);
}

h1, h2, h3 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--medium-accent);
    padding-bottom: 0.5rem;
}

.school,
.role {
    color: var(--secondary-dark);
}

footer {
    background-color: var(--medium-accent);
    color: var(--cream);
}

footer p {
    color: var(--cream);
}

a {
    color: var(--medium-accent);
    text-decoration-color: var(--light-accent);
}

a:hover {
    color: var(--primary-dark);
}

/* Leadership Section Specific Styling */
.leadership-grid {
    background-color: rgba(243, 228, 209, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
}

.org-card:hover {
    transform: translateY(-5px);
    border-color: var(--medium-accent);
}
/* Add padding to publication articles */
.publication {
    padding: 1.5rem 2rem;
    margin: 1.5rem 0;
}

/* Ensure text elements have consistent spacing */
.publication p,
.publication .achievements {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

/* Specific adjustment for Agora title */
.publication .agora {
    margin-left: 1.5rem;
}
