/* ============================================================
   SITE.CSS — Clean Academic Style
   ============================================================ */

:root {
    --navy:       #1a2744;
    --navy-light: #253563;
    --accent:     #c8892a;
    --accent-lt:  #f0c87a;
    --text:       #1e2328;
    --text-muted: #5a6375;
    --border:     #dde1ea;
    --bg-off:     #f7f8fa;
    --white:      #ffffff;
    --radius:     6px;
    --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
    --shadow-md:  0 4px 16px rgba(0,0,0,.12);
    --transition: .2s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, h5 {
    font-family: 'Lora', serif;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* ---- Header / Navbar ---- */
.site-header {
    background: var(--navy);
    border-bottom: 3px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    padding-top: .4rem;
    padding-bottom: .4rem;
}

.brand-acronym {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-lt);
    letter-spacing: .08em;
}

.brand-subtitle {
    font-size: .7rem;
    color: rgba(255,255,255,.6);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,.82);
    font-size: .88rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .5rem .9rem;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-lt);
    background: rgba(255,255,255,.07);
}

/* ---- Page Hero ---- */
.page-hero {
    background: var(--navy);
    padding: 3.5rem 0 2.5rem;
    margin-bottom: 3rem;
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: .5rem;
}

.page-hero .lead {
    color: rgba(255,255,255,.7);
    font-size: 1.1rem;
    max-width: 680px;
}

/* ---- Home Hero ---- */
.home-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1e3a5f 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-lt), var(--accent));
}

.home-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.home-hero .lead {
    color: rgba(255,255,255,.78);
    font-size: 1.15rem;
    max-width: 640px;
    margin-bottom: 2rem;
}

/* ---- Section ---- */
.section { padding: 3.5rem 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: .6rem;
}

/* ---- Cards ---- */
.card-study {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-study:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-study-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

.card-study-img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-off);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.card-study-body {
    padding: 1.2rem 1.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-study-title {
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .4rem;
}

.card-study-dates {
    font-size: .8rem;
    color: var(--text-muted);
    margin-bottom: .75rem;
}

.card-study-desc {
    font-size: .92rem;
    color: var(--text-muted);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-study-link {
    display: inline-block;
    margin-top: .9rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: .03em;
}

.card-study-link:hover { color: var(--navy); }

/* ---- Search Bar (Collaborative Studies) ---- */
.search-panel {
    background: var(--bg-off);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
    margin-bottom: 2.5rem;
}

.search-panel label {
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .3rem;
}

/* ---- Study Detail ---- */
.study-detail-header {
    background: var(--navy);
    padding: 3rem 0 2rem;
    margin-bottom: 2.5rem;
}

.study-detail-header h1 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: .5rem;
}

.study-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border-radius: 20px;
    padding: .25rem .85rem;
    font-size: .82rem;
    color: rgba(255,255,255,.8);
}

.records-table th {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.records-table td { vertical-align: middle; }

.records-table .record-thumb {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 3px;
}

/* ---- Pagination ---- */
.pagination .page-link {
    color: var(--navy);
    border-color: var(--border);
    font-size: .9rem;
}

.pagination .page-item.active .page-link {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ---- Static page content ---- */
.content-body { max-width: 820px; }
.content-body h2 { margin-top: 2rem; margin-bottom: .8rem; font-size: 1.5rem; }
.content-body h3 { margin-top: 1.5rem; font-size: 1.2rem; color: var(--navy-light); }
.content-body p { margin-bottom: 1.1rem; }
.content-body ul, .content-body ol { margin-bottom: 1.1rem; padding-left: 1.5rem; }
.content-body li { margin-bottom: .4rem; }

/* Team cards */
.card-team {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.card-team-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto .9rem;
    display: block;
    border: 3px solid var(--border);
}

.card-team-avatar-placeholder {
    width: 90px; height: 90px;
    border-radius: 50%;
    background: var(--bg-off);
    margin: 0 auto .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-muted);
    border: 3px solid var(--border);
}

.card-team-name {
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: .2rem;
}

.card-team-role {
    font-size: .82rem;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: .5rem;
}

.card-team-affil {
    font-size: .82rem;
    color: var(--text-muted);
}

/* ---- Paper / Publication item ---- */
.pub-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.pub-item:last-child { border-bottom: none; }

.pub-title {
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: var(--navy);
    margin-bottom: .2rem;
}

.pub-authors { font-size: .88rem; color: var(--text-muted); margin-bottom: .15rem; }
.pub-venue { font-size: .85rem; font-style: italic; color: var(--text-muted); }
.pub-links { margin-top: .5rem; display: flex; gap: .75rem; }

.pub-link {
    font-size: .8rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 3px;
    padding: .1rem .55rem;
    transition: background var(--transition), color var(--transition);
}

.pub-link:hover { background: var(--accent); color: var(--white); }

/* ---- Footer ---- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,.6);
    padding: 1.8rem 0;
    margin-top: 4rem;
    font-size: .88rem;
}

.site-footer p { margin: 0; }
/* ---- Forms ----
.footer-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: .5rem 0 1.5rem;
}

.footer-logos img {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    opacity: .55;
    filter: brightness(0) invert(1);
    transition: opacity var(--transition);
}

.footer-logos img:hover { opacity: .85; }

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,.12);
    margin: 0 0 1.4rem;
}
 */

/* ---- Utilities ---- */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    border: none;
    font-weight: 600;
    letter-spacing: .03em;
    padding: .5rem 1.3rem;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.btn-accent:hover { background: #a8711e; color: var(--white); }

.btn-outline-navy {
    color: var(--navy);
    border: 1.5px solid var(--navy);
    font-weight: 600;
    border-radius: var(--radius);
    padding: .5rem 1.3rem;
    background: transparent;
    transition: background var(--transition), color var(--transition);
}

.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.divider-accent {
    width: 48px; height: 3px;
    background: var(--accent);
    border: none;
    margin: .75rem 0 1.5rem;
}
