/* Minimalist CSS - Global Styles */
:root {
    --primary: #0056b3;     /* Deep Professional Blue */
    --accent: #f0ad4e;      /* Subtle Gold/Yellow for highlights */
    --dark: #1a1a1a;        /* Text color */
    --light: #f4f4f4;       /* Background */
    --white: #ffffff;
    --border: #dddddd;
}
html {
    /* Adjust '80px' to match the actual height of your header */
    scroll-padding-top: 80px; 
    scroll-behavior: smooth;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    margin: 0;
    padding: 0;
}
.lang-switch {
    font-weight: bold;
    color: var(--primary);
    margin-left: 15px;
    text-decoration: none;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.8rem;
}

.lang-switch:hover {
    background-color: var(--light);
}
/* Header & Nav */
header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    flex: 1;
}

.logo a {
    text-decoration: none;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.2;
}

nav {
    display: flex;
    align-items: center;
}

nav a.current {
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.email-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.email-link:hover {
    border-bottom-color: var(--primary);
}
nav a {
    margin-left: 15px;
    text-decoration: none;
    color: var(--dark);
    font-size: 0.95rem;
}

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

/* Nav CTA Button Styling */
.nav-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 15px;
    transition: background 0.2s;
    text-decoration: none;
}

.nav-cta:hover {
    background-color: #004494;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 5%;
}
/* Hero wrapper with blue background - truly full width */
.hero-wrapper {
    background-color: #0a2540; /* Deep blue */
    padding: 2rem 5%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 2rem;
}

.hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center; 
    padding: 5rem 2rem 3rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e8f1ff 50%, #f0f7ff 100%);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.hero h1 { 
    font-size: 2.5rem; 
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2; 
    margin-bottom: 1rem; 
    font-weight: 700;
}

.hero p { 
    font-size: 1.2rem; 
    color: #475569; 
    max-width: 700px; 
    margin: 0 auto 2.5rem auto; 
}

/* Credentials / Alumni Bar */
.credentials {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* Buttons */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.book-banner {
    background-color: #fff9e6; /* Very light gold */
    border: 1px solid var(--accent);
    padding: 1.5rem;
    border-radius: 6px;
    text-align: center;
    margin: 2rem 0;
    font-size: 1rem;
    color: var(--dark);
}

.book-banner a {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
}
/* Services Grid */
.section-title { text-align: center; margin: 1rem 0 2rem; font-size: 2rem; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 8px;
}

.service-list { list-style: none; padding: 0; margin: 0; }
.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.service-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}
/* Academic Publications Section */
.publications-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.publications-section > p {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.pub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }

.pub-card {
    background: #fff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    padding: 0; /* REMOVE PADDING HERE */
    transition: transform 0.2s, box-shadow 0.2s;
}

.pub-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* New: This makes the link fill the card */
.card-link {
    display: block;
    padding: 1.2rem; /* MOVE PADDING HERE */
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.pub-card h4 { 
    margin: 0 0 0.5rem 0; 
    font-size: 1rem; 
    color: var(--dark); 
    /* Prevent the link from turning blue/underlined */
    text-decoration: none; 
}

.pub-meta { font-size: 0.85rem; color: #666; margin: 0; }

.pub-stats-bar {
    text-align: center;
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
    margin-top: 2rem;
}
.scholar-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 10px;
}
.bottom-cta {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--light);
    border-radius: 8px;
    margin-top: 2rem;
}

.bottom-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.bottom-cta p {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: #555;
}
/* Footer & Social Links */
footer {
    background: #222;
    color: #eee;
    padding: 1rem 0;
    text-align: center;
    margin-top: 1rem;
}
.academic-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1.5rem;
}
.academic-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dotted #444;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.copyright {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}
.academic-links a:hover { color: white; border-bottom: 1px solid white; }
/* Mobile Optimization */
@media (max-width: 768px) {
    header { flex-direction: column; padding: 1rem; }
    nav { margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
    .nav-cta { margin-left: 0; margin-top: 10px; width: 100%; text-align: center; }
    .pub-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .hero { padding: 3rem 1.5rem 2rem 1.5rem; }
}
