/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent:      #AD102A;   /* Miami Red */
    --accent-dark: #8b0d22;
    --navy:        #AD102A;   /* Miami Red - headings */
    --text:        #1e293b;
    --muted:       #64748b;
    --border:      #e2e8f0;
    --bg:          #f8fafc;
    --white:       #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.01em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-link {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 14px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--bg);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
    background: var(--bg);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-4px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-4px, -5px); }

/* ─── Mobile Nav ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger { display: flex; }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 64px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        padding: 16px 0;
        gap: 0;
        border-bottom: 1px solid var(--border);
    }

    .nav-menu.active { left: 0; }
    .nav-menu li { margin: 4px 0; }

    .nav-link {
        padding: 10px 20px;
        display: block;
        border-radius: 0;
    }

    .hero-title  { font-size: 2.2rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .stats-grid { grid-template-columns: 1fr; }
    .nav-container { padding: 0 16px; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
    padding: 96px 0 80px;
    text-align: center;
    background: url('pictures/mcvey_wheelchair.jpeg') center center / cover no-repeat;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 3px rgba(0,0,0,0.9);
    animation: fadeInUp 0.6s ease-out;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #f0f0f0;
    margin-bottom: 36px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 1px 6px rgba(0,0,0,0.8);
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
    padding: 10px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 1.5px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
    border-color: #cbd5e1;
}

/* ─── Section Title ──────────────────────────────────────────────────────────── */
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--navy);
    letter-spacing: -0.01em;
}

/* ─── Features / Research Section ───────────────────────────────────────────── */
.features {
    padding: 72px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    padding: 28px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--navy);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

/* ─── Stats Section ──────────────────────────────────────────────────────────── */
.stats {
    padding: 72px 0;
    background: var(--accent);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--white);
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
    background: #0f1c33;
    color: var(--white);
    padding: 56px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--white);
}

.footer-section p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 8px; }

.footer-section a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-section a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.card-header { margin-bottom: 14px; }

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

/* ─── Badges ─────────────────────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    margin: 3px;
    letter-spacing: 0.01em;
}

.badge-published   { background: #dcfce7; color: #166534; }
.badge-accepted    { background: #dbeafe; color: #1e40af; }
.badge-review      { background: #fef3c7; color: #92400e; }
.badge-journal     { background: #f3e8ff; color: #7c3aed; }
.badge-conference  { background: #ffedd5; color: #c2410c; }

/* ─── Page Layout ────────────────────────────────────────────────────────────── */
.main-content {
    padding: 56px 0;
    min-height: calc(100vh - 120px);
}

.page-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ─── Publications ───────────────────────────────────────────────────────────── */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 16px;
    border: 1.5px solid var(--border);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--muted);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.publications-grid { display: grid; gap: 16px; }

.publication-card { transition: border-color 0.2s; }

.publication-card:hover {
    border-color: #cbd5e1;
}

.authors {
    color: var(--muted);
    margin-bottom: 6px;
    font-style: italic;
    font-size: 0.9rem;
}

.publication-meta {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.badges {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.conference-name {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.publication-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.text-muted { color: var(--muted); font-size: 0.875rem; }

/* ─── Team ───────────────────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.team-card {
    overflow: hidden;
    transition: border-color 0.2s;
    padding: 0;
}

.team-card:hover { border-color: #cbd5e1; }

.team-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-card:hover .team-image img { transform: scale(1.03); }

.team-info { padding: 20px 24px 24px; }

.team-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--navy);
}

.specialization {
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.education {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.bio {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.publications {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.team-stats { margin-top: 48px; text-align: center; }

/* ─── Timeline ───────────────────────────────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 16px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 32px;
}

.timeline-item:nth-child(odd)  { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }

.timeline-item::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--white);
    border: 2.5px solid var(--accent);
    top: 22px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before  { right: -8px; }
.timeline-item:nth-child(even)::before { left: -8px; }

.timeline-date {
    position: absolute;
    top: 18px;
    padding: 3px 10px;
    background: var(--accent);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.timeline-item:nth-child(odd) .timeline-date  { right: 40px; }
.timeline-item:nth-child(even) .timeline-date { left: 40px; }

.timeline-content {
    padding: 18px 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 18px;
}

.timeline-content h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.timeline-content p {
    color: #475569;
    line-height: 1.65;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.timeline-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    background: var(--bg);
    color: #475569;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* ─── Conferences / Gallery ──────────────────────────────────────────────────── */
/* ─── Gallery Hero ───────────────────────────────────────────────────────────── */
.gallery-hero {
    text-align: center;
    padding: 56px 24px 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border);
}

.gallery-hero .page-title {
    margin-bottom: 14px;
}

/* ─── Conferences Grid ───────────────────────────────────────────────────────── */
.conferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 56px;
}

.conference-card {
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.conference-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.conference-card--award {
    border-top: 3px solid var(--accent);
}

.conference-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--bg);
    position: relative;
}

.conference-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.conference-card:hover .conference-image img { transform: scale(1.05); }

.conference-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.conference-info {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.conference-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--navy);
}

.gallery-event-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.conference-location {
    color: var(--muted);
    margin-bottom: 12px;
    font-weight: 500;
    font-size: 0.875rem;
}

.conference-description {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.9rem;
    flex: 1;
}

.conference-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.conference-info .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1.5px solid var(--border);
    color: var(--text);
    background: var(--white);
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: auto;
}

.conference-info .btn::after {
    content: '→';
    font-size: 1rem;
    transition: transform 0.2s;
}

.conference-info .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(173, 16, 42, 0.25);
}

.conference-info .btn:hover::after {
    transform: translateX(3px);
}

.conference-stats { margin-top: 40px; text-align: center; }

/* ─── About Page ─────────────────────────────────────────────────────────────── */
.about-content {
    max-width: 760px;
    margin: 0 auto;
}

.focus-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.focus-area {
    padding: 20px;
    background: var(--bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.focus-area h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.focus-area p {
    color: #475569;
    line-height: 1.65;
    font-size: 0.9rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.value-item { text-align: center; padding: 20px; }

.value-item h3 {
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.value-item p { color: #475569; line-height: 1.65; font-size: 0.9rem; }

.partnership-logos {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.partner {
    padding: 10px 20px;
    background: var(--bg);
    border-radius: 6px;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item h3 {
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.contact-item p { color: #475569; line-height: 1.65; font-size: 0.9rem; }

/* ─── Research Description ───────────────────────────────────────────────────── */
.research-description {
    max-width: 860px;
    margin: 0 auto 56px;
    text-align: left;
}

.research-intro,
.research-details,
.research-impact {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

.research-intro {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.rounded-corner { border-radius: 8px; border: 1px solid var(--border); }

/* ─── Team Section ───────────────────────────────────────────────────────────── */
.team-section { margin-bottom: 56px; }

.team-section .section-title {
    font-size: 1.3rem;
    margin-bottom: 28px;
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

/* ─── Signup / Eligibility ───────────────────────────────────────────────────── */
.signup-container { max-width: 1100px; margin: 0 auto; }

.signup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.study-info h2,
.study-info h3 { color: var(--navy); margin-bottom: 14px; }

.study-info h2 { font-size: 1.5rem; font-weight: 700; }
.study-info h3 { font-size: 1.1rem; font-weight: 600; margin-top: 28px; }

.study-info p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.study-requirements { list-style: none; padding: 0; margin-bottom: 20px; }

.study-requirements li {
    color: #475569;
    padding: 7px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
}

.study-requirements li::before {
    content: "–";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.study-benefits {
    background: var(--bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    margin-top: 28px;
}

.study-benefits h3 { margin-top: 0; }

.study-benefits p {
    margin-bottom: 0;
    line-height: 1.8;
}

.signup-form-container {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid var(--border);
}

.signup-form h2 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea { resize: vertical; min-height: 90px; }

.checkbox-group { display: flex; align-items: flex-start; gap: 10px; }

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 0;
}

.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
.checkmark { flex-shrink: 0; }

.signup-form .btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 14px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .signup-content { grid-template-columns: 1fr; gap: 36px; }
    .signup-form-container { padding: 20px; }
    .team-section .section-title { text-align: center; }
}

/* ─── Eligibility ────────────────────────────────────────────────────────────── */
.eligibility-container {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.eligibility-checklist {
    background: var(--white);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid var(--border);
}

.eligibility-checklist h2 {
    color: var(--navy);
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 700;
}

.checklist-items { margin-bottom: 28px; }
.checklist-item { margin-bottom: 14px; }

.checkbox-wrapper { display: flex; align-items: center; gap: 10px; }

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-wrapper label {
    color: var(--text);
    font-weight: 500;
    cursor: pointer;
    line-height: 1.5;
    font-size: 0.95rem;
}

.signup-action {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.signup-instruction {
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.signup-btn { margin-bottom: 16px; padding: 12px 24px; font-size: 1rem; }

.mypath-logo { margin-top: 14px; }
.logo-small { width: 52px; height: 52px; object-fit: contain; }

.participation-steps {
    background: var(--bg);
    border-radius: 8px;
    padding: 28px;
    border: 1px solid var(--border);
}

.participation-steps h2 {
    color: var(--navy);
    margin-bottom: 14px;
    font-size: 1.4rem;
    font-weight: 700;
}

.steps-intro {
    color: #475569;
    margin-bottom: 24px;
    line-height: 1.65;
    font-size: 0.95rem;
}

.steps-list { display: flex; flex-direction: column; gap: 20px; }

.step-item { display: flex; gap: 14px; align-items: flex-start; }

.step-number {
    background: var(--accent);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.step-content h3 {
    color: var(--navy);
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.95rem;
}

.step-content p {
    color: #475569;
    line-height: 1.65;
    font-size: 0.9rem;
}

/* ─── App Tutorial ───────────────────────────────────────────────────────────── */
.app-tutorial {
    padding: 72px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.tutorial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 36px;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.tutorial-description h3 {
    color: var(--navy);
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 700;
}

.tutorial-description p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.tutorial-features { list-style: none; padding: 0; }

.tutorial-features li {
    color: #475569;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.tutorial-features li::before {
    content: "✓";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ─── Study Signup Section ───────────────────────────────────────────────────── */
.signup-study {
    padding: 72px 0;
    background: var(--white);
}

.study-signup-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 36px;
}

.study-description h3 {
    color: var(--navy);
    margin-bottom: 14px;
    font-size: 1.25rem;
    font-weight: 700;
}

.study-description p {
    color: #475569;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.study-benefits h4 {
    color: var(--navy);
    margin-bottom: 10px;
    font-weight: 600;
}

.study-benefits ul { list-style: none; padding: 0; }

.study-benefits li {
    color: #475569;
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
    font-size: 0.9rem;
}

.study-benefits li::before {
    content: "–";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.study-signup-action {
    background: var(--accent);
    color: var(--white);
    padding: 28px;
    border-radius: 8px;
    text-align: center;
}

.study-signup-action h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 700;
}

.study-signup-action p {
    margin-bottom: 20px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.study-signup-action .btn {
    background: var(--white);
    color: var(--accent);
    font-weight: 700;
    border-color: var(--white);
}

.study-signup-action .btn:hover {
    background: var(--bg);
}

@media (max-width: 768px) {
    .eligibility-container { grid-template-columns: 1fr; gap: 32px; }
    .tutorial-content       { grid-template-columns: 1fr; gap: 32px; }
    .study-signup-content   { grid-template-columns: 1fr; gap: 32px; }
    .eligibility-checklist,
    .participation-steps    { padding: 20px; }
}

/* ─── Video Grid ─────────────────────────────────────────────────────────────── */
.video-grid-section {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.video-grid-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 36px;
    color: var(--navy);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    justify-items: center;
}

.video-grid-item {
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
    max-width: 340px;
    width: 100%;
}

.video-grid-item:hover { border-color: #cbd5e1; }

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 14px;
}

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

.video-description h4 {
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.video-description p {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .video-grid { grid-template-columns: 1fr; gap: 20px; }
    .video-grid-item { max-width: 100%; }
}

/* ─── Signup button disabled ─────────────────────────────────────────────────── */
.signup-btn:disabled {
    background: #94a3b8 !important;
    border-color: #94a3b8 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.signup-btn:disabled:hover {
    transform: none !important;
}

/* ─── App Showcase ───────────────────────────────────────────────────────────── */
.app-showcase {
    padding: 80px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.app-showcase-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--muted);
    max-width: 660px;
    margin: 0 auto 64px;
    line-height: 1.7;
}

.features-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-showcase-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-showcase-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.feature-showcase-wide { grid-column: span 2; }

.feature-image-container {
    position: relative;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.feature-showcase-card:hover .feature-image { transform: scale(1.03); }

.feature-overlay { position: absolute; top: 16px; right: 16px; z-index: 3; }

.feature-badge {
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}

.feature-content { padding: 24px; }

.feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-description {
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.feature-highlights { display: flex; flex-wrap: wrap; gap: 8px; }

.highlight-item {
    background: var(--bg);
    color: #475569;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

.feature-showcase-wide .feature-image-container { height: 220px; }
.feature-showcase-wide .feature-content { padding: 24px 28px; }

@media (max-width: 1024px) {
    .features-showcase-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
    .feature-showcase-wide  { grid-column: span 1; }
}

@media (max-width: 768px) {
    .app-showcase { padding: 64px 0; }
    .features-showcase-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-image-container { height: 200px; }
    .feature-image  { max-width: 130px; }
    .feature-content { padding: 20px; }
    .highlight-item { text-align: center; }
}

/* ─── Our App Section ────────────────────────────────────────────────────────── */
.our-app {
    padding: 80px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.our-app-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.our-app-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.our-app-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.75;
    margin-bottom: 20px;
}

.our-app-features {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.our-app-features li {
    color: #475569;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.our-app-features li::before {
    content: "–";
    color: var(--accent);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.our-app-store { display: flex; }

.appstore-btn {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s;
}

.appstore-btn:hover { opacity: 0.85; }

.appstore-badge {
    width: 180px;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* ─── Blind Person Indoor Navigation ─────────────────────────────────────── */
.blind-navigation {
    padding: 72px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.blind-navigation-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 32px;
}

/* Make the section title and prototype/video card headings red */
.blind-navigation-header .section-title {
    color: #b91c1c;
}

.blind-navigation-video-card h3,
.blind-navigation-card h3 {
    color: #b91c1c;
}



.blind-navigation-summary {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.blind-navigation-videos {
    margin-bottom: 32px;
}

.blind-navigation-video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.blind-navigation-video-card {
    margin-bottom: 0;
}

.blind-navigation-video-preview {
    display: block;
    position: relative;
    text-decoration: none;
    margin-bottom: 16px;
}

.blind-navigation-video-thumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #0f172a;
}

.blind-navigation-video-play {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(15, 23, 42, 0.88);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.blind-navigation-video-preview:hover .blind-navigation-video-thumb {
    border-color: #94a3b8;
}

.video-embed {
    position: relative;
    padding-top: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #0f172a;
    margin-bottom: 16px;
}

.blind-navigation-video-placeholder {
    border-style: dashed;
}

.blind-navigation-video-placeholder h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.blind-navigation-video-placeholder p,
.blind-navigation-video-card p {
    color: #475569;
    line-height: 1.75;
}

.blind-navigation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.blind-navigation-card {
    margin-bottom: 0;
}

.blind-navigation-card--full {
    grid-column: 1 / -1;
}

.blind-navigation-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.blind-navigation-card p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 16px;
}

.blind-navigation-list {
    padding-left: 18px;
    color: #475569;
    display: grid;
    gap: 10px;
}

@media (max-width: 768px) {
    .blind-navigation-video-grid {
        grid-template-columns: 1fr;
    }

    .video-embed--short {
        padding-top: 56.25%;
    }

    .blind-navigation-grid {
        grid-template-columns: 1fr;
    }
}

.our-app-screenshots { width: 100%; }

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: block;
    transition: border-color 0.2s;
}

.screenshot-img:hover { border-color: #94a3b8; }

@media (max-width: 1024px) {
    .our-app-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .screenshot-grid { grid-template-columns: repeat(3, 1fr); }

    .our-app-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .screenshot-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Indoor Localization and Mapping ───────────────────────────────────────── */
.indoor-localization {
    padding: 72px 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.indoor-localization-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 32px;
}

.section-kicker {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.indoor-localization-summary {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.indoor-localization-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.indoor-localization-card {
    margin-bottom: 0;
}

.indoor-localization-card h3 {
    font-size: 1.15rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.indoor-localization-preview {
    margin: 0 0 16px;
}

.indoor-localization-preview-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
}

.indoor-localization-preview figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}


.indoor-localization-list {
    padding-left: 18px;
    color: #475569;
    display: grid;
    gap: 10px;
}

.indoor-localization-btn {
    margin-top: 8px;
}

.indoor-localization-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 768px) {
    .indoor-localization-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Team stats (white card context) ───────────────────────────────────────── */
.team-stats .stat-number { color: var(--navy); }
.team-stats .stat-label  { color: var(--muted); }

/* ─── Previous Members ───────────────────────────────────────────────────────── */
.previous-members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
    margin-bottom: 40px;
}

.previous-member-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 18px 20px;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.previous-member-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--border);
}

.previous-member-card:hover {
    border-color: #cbd5e1;
}

.previous-member-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.previous-member-details { flex: 1; }

.previous-member-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.previous-member-role {
    display: inline-block;
    background: var(--border);
    color: var(--muted);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 6px;
}

.previous-member-education {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

.previous-member-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .previous-members-grid { grid-template-columns: 1fr; gap: 12px; }
    .previous-member-card  { padding: 16px; }
    .previous-member-icon  { width: 36px; height: 36px; }
}
