/* ===== Base Styles — Clean, light, professional (LEAP Emerge) ===== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f7f7f7;
    color: #333;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Centers content and limits max width */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */

h1, h2, h3 {
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.7rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

/* ===== Navbar ===== */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 14px 0;
}

.nav-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: #c0392b;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    color: #555;
    font-weight: 500;
    font-size: 0.93rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #c0392b;
}

/* Mobile hamburger menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    display: block;
}

/* ===== About Section ===== */

.about {
    padding: 72px 0 56px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.about h1 {
    color: #c0392b;
}

.about-lead {
    font-size: 1.05rem;
    color: #555;
    max-width: 720px;
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* Featured Video */
.featured-video {
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Three program goal cards */
.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.detail-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-top: 3px solid #c0392b;
    border-radius: 8px;
    padding: 22px;
}

.detail-card h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #c0392b;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-card p {
    font-size: 0.93rem;
    color: #444;
    line-height: 1.7;
}

/* ===== Fellows Section ===== */

.fellows {
    padding: 72px 0 80px;
    background: #f7f7f7;
}

.fellows h2 {
    text-align: center;
}

/* Subtitle text beneath section heading */
.section-subtitle {
    text-align: center;
    color: #777;
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0.5rem auto 2.5rem;
    line-height: 1.6;
}

/* Single-column list of fellow cards */
.fellows-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* Container for each fellow — holds bio and optional video */
.fellow-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
}

.fellow-card:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
}

/* Top portion: photo on the left, bio text on the right */
.fellow-main {
    display: flex;
    gap: 22px;
    padding: 26px;
}

/* Photo container — square with rounded corners */
.fellow-photo {
    flex-shrink: 0;
    width: 108px;
    height: 128px;
    border-radius: 8px;
    overflow: hidden;
}

.fellow-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Initials placeholder shown until a real photo is added */
.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.photo-placeholder span {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Text area holding the fellow's name, location, and bio */
.fellow-info {
    flex: 1;
    min-width: 0;
}

.fellow-info h3 {
    font-size: 1rem;
    color: #1a1a1a;
}

.pronouns {
    font-weight: 400;
    color: #aaa;
    font-size: 0.85rem;
}

/* Location shown in accent red below the name */
.origin {
    color: #c0392b;
    font-size: 0.83rem;
    font-weight: 500;
    margin-bottom: 9px;
    margin-top: 2px;
}

.bio {
    color: #555;
    font-size: 0.88rem;
    line-height: 1.75;
}

/* ===== Interview Video — appears below bio when available ===== */

/* Separator area that holds the embedded interview video */
.fellow-video {
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
    padding: 18px 26px 22px;
}



/* Responsive 16:9 wrapper for the YouTube iframe */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */

.footer {
    padding: 28px 0;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

.footer p {
    color: #bbb;
    font-size: 0.83rem;
}

/* ===== Responsive — mobile and tablet ===== */

@media (max-width: 768px) {

    /* Dropdown nav for mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid #e5e5e5;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Stack goal cards vertically on small screens */
    .about-details {
        grid-template-columns: 1fr;
    }

    /* Stack photo above bio text on small screens */
    .fellow-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .fellow-photo {
        width: 90px;
        height: 108px;
    }

    /* Keep bio text left-aligned even when card is centered */
    .bio {
        text-align: left;
    }

    h1 {
        font-size: 1.75rem;
    }

    .fellow-video {
        padding: 16px 20px 20px;
    }
}
