/* --- WildAlg Lab Theme (style.css) --- */
:root {
    --yale-blue: #00356b;
    --yale-accent: #286dc0;
    --text-main: #222;
    --text-muted: #555;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Georgia', serif;
    --max-width: 1100px;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
nav,
.btn,
.tag,
footer,
.date-badge {
    font-family: var(--font-heading);
}

a {
    color: var(--yale-blue);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--yale-accent);
    text-decoration: underline;
}

/* --- Navigation --- */
header {
    background-color: var(--white);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--yale-blue);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--yale-accent);
    font-weight: 400;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

nav a:hover,
nav a.active {
    color: var(--yale-blue);
    border-bottom: 2px solid var(--yale-accent);
}

/* --- Layouts --- */
.hero {
    background: linear-gradient(135deg, var(--yale-blue) 0%, #1a4c8a 100%);
    color: var(--white);
    padding: 5rem 20px;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    font-family: var(--font-heading);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
    flex: 1;
    width: 100%;
}

section {
    margin-bottom: 80px;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 2rem;
    color: var(--yale-blue);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background-color: var(--yale-accent);
}

/* --- Homepage Components --- */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.research-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 6px;
    border-top: 4px solid var(--yale-blue);
}

.research-card h3 {
    color: var(--yale-blue);
    margin-bottom: 10px;
}

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.person-img {
    width: 120px;
    height: 120px;
    background-color: #eee;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* --- Blog Components --- */
.blog-list {
    max-width: 800px;
    margin: 0 auto;
}

.blog-post-preview {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.blog-title {
    font-size: 1.6rem;
    margin-bottom: 5px;
    display: block;
    font-weight: 700;
}

.date-badge {
    display: inline-block;
    background: #eef;
    color: var(--yale-blue);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.read-more {
    font-weight: bold;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

/* --- Single Post Page --- */
.post-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.post-header h1 {
    font-size: 2.5rem;
    color: var(--yale-blue);
    margin-bottom: 10px;
}

.post-content {
    font-size: 1.15rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h3 {
    color: var(--yale-blue);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background-color: var(--yale-blue);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    margin-top: auto;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* The Button Container */
.github-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    /* Space between icon and text */

    background-color: #24292e;
    /* Official GitHub Dark */
    color: #ffffff;

    margin-top: 20px;
    padding: 12px 28px;
    border-radius: 50px;
    /* Makes it pill-shaped */

    text-decoration: none;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 1.1rem;

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* The Icon specifically */
.github-cta i {
    font-size: 1.5rem;
    /* Adjust icon size relative to text */
}

/* Hover Effects */
.github-cta:hover {
    background-color: #00356b;
    /* Yale Blue Accent */
    transform: translateY(-3px);
    /* Slight lift effect */
    box-shadow: 0 6px 12px rgba(0, 53, 107, 0.3);
    /* Blue-ish shadow */
    color: #ffffff;
}