/*
Theme Name: Selfhood
Theme URI: https://selfhood-hu.eu
Author: Selfhood Non-Profit Ltd.
Description: Custom theme for Selfhood Non-Profit Ltd. Includes the Projects content type — no plugins required.
Version: 4.0
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* =========================================================
   PALETTE  (from the logo)
   ========================================================= */
:root {
    --navy-900: #0e1a2d;
    --navy-800: #14253f;
    --navy-700: #1b3355;
    --navy-600: #24446e;
    --gold-500: #e0a458;
    --gold-400: #ebb877;
    --gold-100: #f8ecd9;
    --sand-50:  #faf7f2;
    --white:    #ffffff;
    --grey-700: #4a5568;
    --grey-500: #7a8699;
    --grey-200: #e4e7ec;
}

/* =========================================================
   BASE
   ========================================================= */
* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    color: var(--grey-700);
    line-height: 1.7;
    background: var(--sand-50);
}

main { flex: 1 0 auto; }

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

h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.25; margin-top: 0; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 30px; }

.narrow-wrap { max-width: 780px; margin: 0 auto; }

.section { padding: 76px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.section-eyebrow,
.hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 12px;
}

.section-head h2 { font-size: 34px; font-weight: 800; margin: 0; letter-spacing: -0.6px; }

.empty-state { text-align: center; padding: 60px 0; color: var(--grey-500); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border-radius: 6px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.22s ease;
    border: 1.5px solid transparent;
}

.btn-primary, .btn-primary:visited { background: var(--navy-700); color: var(--white) !important; }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-2px); }

.btn-gold, .btn-gold:visited { background: var(--gold-500); color: var(--navy-900) !important; }
.btn-gold:hover { background: var(--gold-400); transform: translateY(-2px); }

.btn-ghost, .btn-ghost:visited { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400) !important; }

.btn-outline, .btn-outline:visited { background: transparent; color: var(--navy-700) !important; border-color: var(--grey-200); }
.btn-outline:hover { border-color: var(--navy-700); background: var(--white); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.site-logo img { height: 62px; width: auto; }

.site-logo-text {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy-800) !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}

.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }

.main-nav a, .main-nav a:visited {
    display: block;
    text-decoration: none !important;
    color: var(--navy-800) !important;
    font-weight: 600;
    font-size: 14.5px;
    padding: 9px 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.main-nav a:hover { background: var(--sand-50); color: var(--navy-700) !important; }

.main-nav .current-menu-item > a {
    color: var(--gold-500) !important;
    box-shadow: inset 0 -2px 0 var(--gold-500);
    border-radius: 0;
}

.menu-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--navy-800); cursor: pointer; }

@media (max-width: 820px) {
    .main-nav { display: none; }
    .menu-toggle { display: block; }
    .site-logo img { height: 50px; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    position: relative;
    overflow: hidden;
    padding: 96px 0 104px;
}

.hero::before {
    content: '';
    position: absolute;
    width: 620px; height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,164,88,0.16) 0%, transparent 66%);
    top: -280px; right: -160px;
}

.hero::after {
    content: '';
    position: absolute;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(36,68,110,0.5) 0%, transparent 68%);
    bottom: -240px; left: -120px;
}

.hero .container { position: relative; z-index: 2; }
.hero-inner { max-width: 720px; }

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -1.4px;
    margin: 0 0 20px;
}

.hero-lead { font-size: 18px; color: rgba(255,255,255,0.76); margin: 0 0 34px; max-width: 600px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 700px) {
    .hero { padding: 64px 0 72px; }
    .hero h1 { font-size: 36px; }
}

/* =========================================================
   PAGE HERO
   ========================================================= */
.page-hero {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%);
    padding: 66px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    width: 520px; height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224,164,88,0.14) 0%, transparent 66%);
    top: -260px; right: -120px;
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 { font-size: 42px; font-weight: 800; color: var(--white); letter-spacing: -1px; margin: 0; }

.page-hero-lead { font-size: 16.5px; color: rgba(255,255,255,0.72); max-width: 620px; margin: 16px auto 0; }

/* =========================================================
   VALUE CARDS
   ========================================================= */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

@media (max-width: 900px) { .value-grid { grid-template-columns: 1fr; } }

.value-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    padding: 34px 30px 30px;
    transition: all 0.25s ease;
}

.value-card:hover {
    border-color: var(--gold-500);
    box-shadow: 0 12px 32px rgba(20,37,63,0.09);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold-500);
    background: var(--gold-100);
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.value-card h3 { font-size: 20px; margin: 0 0 12px; }
.value-card p { margin: 0; font-size: 15px; }

/* =========================================================
   PROJECT LIST
   ========================================================= */
.project-list { display: flex; flex-direction: column; gap: 18px; }

.project-row, .project-row:visited {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: center;
    background: var(--sand-50);
    border: 1px solid var(--grey-200);
    border-left: 4px solid var(--grey-200);
    border-radius: 10px;
    padding: 26px 30px;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.25s ease;
}

.project-row:hover {
    background: var(--gold-100);
    border-color: rgba(224, 164, 88, 0.45);
    border-left-color: var(--gold-500);
    box-shadow: 0 10px 30px rgba(20,37,63,0.09);
    transform: translateX(4px);
}

.project-row:hover .project-row-period {
    background: var(--white);
}

@media (max-width: 760px) {
    .project-row { grid-template-columns: 1fr; gap: 18px; padding: 22px 24px; }
}

.project-row-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 8px;
    padding: 14px;
}

.project-row-logo img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }

.project-no-logo { font-size: 34px; font-weight: 800; color: var(--navy-700); opacity: 0.22; }

.project-row-title { font-size: 18px; font-weight: 700; color: var(--navy-800); margin: 0 0 8px; line-height: 1.4; }

.project-row-acronym { color: var(--gold-500); white-space: nowrap; }

.project-row-role { font-size: 14px; font-weight: 600; color: var(--grey-500); margin: 0 0 6px; }

.project-row-programme { font-size: 14.5px; color: var(--grey-700); margin: 0 0 14px; }

.project-row-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.project-row-period {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--navy-700);
    background: var(--gold-100);
    padding: 4px 12px;
    border-radius: 4px;
}

.project-row-more { font-size: 13.5px; font-weight: 700; color: var(--gold-500); opacity: 0; transition: opacity 0.25s ease; }

.project-row:hover .project-row-more { opacity: 1; }

@media (max-width: 760px) { .project-row-more { opacity: 1; } }

.section-cta { text-align: center; margin-top: 44px; }

/* =========================================================
   CTA BAND
   ========================================================= */
.section-cta-band { padding-bottom: 90px; }

.cta-band {
    background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-900) 100%);
    border-radius: 12px;
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); font-size: 27px; margin: 0 0 6px; }
.cta-band p { color: rgba(255,255,255,0.7); margin: 0; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }

@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } }

.about-main h2 {
    font-size: 25px;
    margin-top: 38px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold-100);
}

.about-main h2:first-child { margin-top: 0; }

.about-side { display: flex; flex-direction: column; gap: 16px; }

.stat-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-left: 4px solid var(--navy-700);
    border-radius: 8px;
    padding: 22px 24px;
}

.stat-card-gold { border-left-color: var(--gold-500); }

.stat-number { display: block; font-size: 30px; font-weight: 800; color: var(--navy-800); line-height: 1.1; }
.stat-label { display: block; font-size: 13.5px; color: var(--grey-500); margin-top: 4px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }

@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-main h2 { font-size: 25px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-100); }

.contact-side { display: flex; flex-direction: column; gap: 14px; }

.contact-card { background: var(--white); border: 1px solid var(--grey-200); border-radius: 8px; padding: 20px 24px; }

.contact-card-dark { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border-color: transparent; }
.contact-card-dark .contact-label { color: var(--gold-400); }
.contact-card-dark .contact-value { color: var(--white) !important; }

.contact-label {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 6px;
}

.contact-value, a.contact-value:visited {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--navy-800) !important;
    text-decoration: none !important;
}

a.contact-value:hover { color: var(--gold-500) !important; }

/* =========================================================
   SINGLE PROJECT
   ========================================================= */
.project-hero { padding-bottom: 96px; }

.breadcrumb, .breadcrumb:visited {
    display: inline-block;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.breadcrumb:hover { color: var(--gold-400) !important; }

.project-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    max-width: 720px;
    margin: 14px auto 18px;
    font-style: italic;
}

.project-period-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-400);
    background: rgba(224,164,88,0.14);
    border: 1px solid rgba(224,164,88,0.4);
    padding: 6px 20px;
    border-radius: 4px;
}

.project-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin: -60px 0 84px;
    position: relative;
    z-index: 5;
}

@media (max-width: 900px) { .project-single-layout { grid-template-columns: 1fr; } }

.project-single-main {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(20,37,63,0.08);
    padding: 40px 44px 36px;
}

@media (max-width: 600px) { .project-single-main { padding: 30px 24px 28px; } }

.block-title {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-500);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--gold-100);
}

.rich-text { font-size: 16px; line-height: 1.8; }
.rich-text p { margin: 0 0 18px; }
.rich-text h2, .rich-text h3 { margin-top: 32px; margin-bottom: 12px; }
.rich-text ul, .rich-text ol { padding-left: 22px; }
.rich-text li { margin-bottom: 8px; }
.rich-text a { color: var(--navy-700); }

.publication-block { margin-top: 42px; }

.publication-text {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--grey-500);
    background: var(--sand-50);
    border-left: 3px solid var(--gold-500);
    border-radius: 0 6px 6px 0;
    padding: 16px 20px;
    margin: 0;
}

.back-link, .back-link:visited {
    display: block;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-200);
    color: var(--grey-500) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
}

.back-link:hover { color: var(--navy-700) !important; }

.project-single-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 116px; }

@media (max-width: 900px) { .project-single-side { position: static; } }

.side-logo {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(20,37,63,0.07);
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.side-logo img { max-height: 140px; width: auto; object-fit: contain; }

.side-facts {
    background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-900) 100%);
    border-radius: 12px;
    padding: 26px 26px 24px;
}

.side-facts h3 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-400);
    margin: 0 0 16px;
}

.fact { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.09); }
.fact:last-of-type { border-bottom: none; }

.fact-label { font-size: 11.5px; color: rgba(255,255,255,0.5); letter-spacing: 0.4px; }
.fact-value { font-size: 15.5px; font-weight: 600; color: var(--white); }
.fact-value-small { font-size: 12.5px !important; font-weight: 500 !important; word-break: break-word; line-height: 1.45; }

.side-btn { margin-top: 18px; width: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { flex-shrink: 0; background: var(--navy-900); margin-top: auto; }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding: 56px 0 40px; }

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

.footer-logo-wrap { margin-bottom: 18px; }

.footer-logo-link { display: inline-block; background: var(--white); border-radius: 8px; padding: 10px 16px; }
.footer-logo-link img { height: 78px; width: auto; }
.footer-logo-link.site-logo-text { background: none; padding: 0; color: var(--white) !important; font-size: 20px; }

.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14.5px; margin: 0; max-width: 320px; }

.footer-col h4 {
    color: var(--gold-400);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }

.footer-col a, .footer-col a:visited {
    color: rgba(255,255,255,0.72) !important;
    text-decoration: none !important;
    font-size: 14.5px;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--gold-400) !important; }

.footer-contact li { color: rgba(255,255,255,0.72); font-size: 14.5px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0 26px; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,0.42); font-size: 13.5px; margin: 0; }

/* --- About: extended stat cards --- */
.stat-label-top {
    font-size: 11.5px !important;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--gold-500) !important;
    margin-top: 0 !important;
    margin-bottom: 12px;
}

.stat-card-programmes { border-left-color: var(--gold-500); }

.stat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.stat-list li {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy-800);
    padding-left: 14px;
    position: relative;
}

.stat-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-500);
}

.stat-card-partners { border-left-color: var(--navy-600); }

.stat-partner {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.4;
    margin: 0 0 11px;
    padding-left: 13px;
    position: relative;
}

.stat-partner:last-child { margin-bottom: 0; }

.stat-partner::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold-500);
}

.stat-partner a,
.stat-partner a:visited {
    color: var(--navy-800) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--gold-100);
    transition: all 0.2s ease;
}

.stat-partner a:hover {
    color: var(--gold-500) !important;
    border-bottom-color: var(--gold-500);
}

/* Country label */
.stat-partner em {
    display: block;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--grey-500);
    margin-top: 2px;
}

/* =========================================================
   HERO — logo panel on the right
   ========================================================= */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-grid .hero-inner { max-width: 100%; }

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* soft gold glow behind the panel */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 164, 88, 0.22) 0%, transparent 68%);
    z-index: 0;
}

.hero-logo-panel {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 20px;
    padding: 46px 44px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-width: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo-panel img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .hero-grid { grid-template-columns: 1fr 320px; gap: 40px; }
    .hero-logo-panel { padding: 34px 32px; }
}

@media (max-width: 820px) {
    .hero-grid { grid-template-columns: 1fr; gap: 44px; }
    .hero-visual { order: -1; }
    .hero-logo-panel { max-width: 260px; padding: 28px 26px; }
    .hero-visual::before { width: 300px; height: 300px; }
}

/* =========================================================
   TEAM — cards
   ========================================================= */
.section-team {
    background: var(--white);
    border-top: 1px solid var(--grey-200);
}

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

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

.team-card,
.team-card:visited {
    display: flex;
    flex-direction: column;
    background: var(--sand-50);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-500);
    box-shadow: 0 16px 38px rgba(20, 37, 63, 0.13);
}

/* Fixed 4:5 portrait ratio, whatever the client uploads */
.team-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-initials {
    font-size: 54px;
    font-weight: 800;
    color: var(--gold-400);
    opacity: 0.55;
}

.team-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.team-card-name {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.team-card-position {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--gold-500);
    margin: 0 0 12px;
}

.team-card-bio {
    font-size: 14.5px;
    color: var(--grey-700);
    margin: 0 0 16px;
    flex: 1;
}

.team-card-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-700);
    margin-top: auto;
    transition: color 0.2s ease;
}

.team-card:hover .team-card-more { color: var(--gold-500); }

/* =========================================================
   TEAM — single member
   ========================================================= */
.member-hero { padding-bottom: 96px; }

.member-position {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--gold-400);
    margin: 12px 0 0;
}

.member-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
    margin: -60px 0 84px;
    position: relative;
    z-index: 5;
}

@media (max-width: 900px) {
    .member-layout { grid-template-columns: 1fr; }
    .member-side { order: -1; }
}

.member-main {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(20, 37, 63, 0.08);
    padding: 40px 44px 36px;
}

@media (max-width: 600px) { .member-main { padding: 30px 24px 28px; } }

.member-side { display: flex; flex-direction: column; gap: 18px; }

.member-photo {
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 34px rgba(20, 37, 63, 0.16);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.member-contact-box {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    padding: 24px 26px;
}

.member-contact-box h3 {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-500);
    margin: 0 0 14px;
}

.member-link,
.member-link:visited {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy-800) !important;
    text-decoration: none !important;
    padding: 8px 0;
    border-bottom: 1px solid var(--grey-200);
    transition: color 0.2s ease;
    word-break: break-word;
}

.member-link:hover { color: var(--gold-500) !important; }

.member-cv-btn { margin-top: 18px; width: 100%; }

/* =========================================================
   NEWS — home strip
   ========================================================= */
.section-news {
    background: var(--white);
    border-top: 1px solid var(--grey-200);
}

.news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
}

.news-head h2 {
    font-size: 34px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.6px;
}

.news-nav { display: flex; gap: 8px; flex-shrink: 0; }

.news-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--navy-700);
    color: var(--white);
    font-size: 17px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(20, 37, 63, 0.18);
    transition: all 0.2s ease;
}

.news-arrow:hover:not(:disabled) {
    background: var(--gold-500);
    color: var(--navy-900);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(224, 164, 88, 0.4);
}

.news-arrow:disabled {
    background: var(--grey-200);
    color: var(--grey-500);
    box-shadow: none;
    cursor: default;
}

.news-strip {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Hide the scrollbar entirely — navigation happens with the arrows */
.news-strip::-webkit-scrollbar { display: none; }

/* Only a few items: centre them, no scrolling feel */
.news-strip-few {
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
}

.news-card,
.news-card:visited {
    flex: 0 0 320px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--sand-50);
    border: 1px solid var(--grey-200);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.news-card:hover {
    transform: translateY(-6px);
    border-color: var(--gold-500);
    box-shadow: 0 16px 38px rgba(20, 37, 63, 0.13);
}

.news-card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
    overflow: hidden;
}

.news-card-media img { width: 100%; height: 100%; object-fit: cover; }

.news-no-image {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(224,164,88,0.25) 0%, transparent 60%),
        linear-gradient(150deg, var(--navy-700), var(--navy-900));
}

.news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--gold-500);
    padding: 4px 12px;
    border-radius: 4px;
}

.news-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--grey-500);
    margin-bottom: 8px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
    letter-spacing: -0.2px;
}

.news-card-text {
    font-size: 14.5px;
    color: var(--grey-700);
    margin: 0 0 16px;
    flex: 1;
}

.news-card-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-500);
    margin-top: auto;
}

@media (max-width: 600px) {
    .news-head { flex-direction: column; align-items: flex-start; }
    .news-card { flex: 0 0 84%; }
}

/* =========================================================
   NEWS — timeline page
   ========================================================= */
.timeline-year {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 48px 0 22px;
}

.timeline-year:first-child { margin-top: 0; }

.timeline-year span {
    font-size: 26px;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.6px;
}

.timeline-year::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--gold-100);
}

.timeline-list {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* vertical line */
.timeline-list::before {
    content: '';
    position: absolute;
    left: 88px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--grey-200);
}

@media (max-width: 700px) {
    .timeline-list::before { display: none; }
}

.timeline-item,
.timeline-item:visited {
    display: grid;
    grid-template-columns: 70px 34px 1fr 160px;
    gap: 0 18px;
    align-items: start;
    padding: 22px 0;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
}

.timeline-item + .timeline-item { border-top: 1px solid var(--grey-200); }

@media (max-width: 700px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 20px 0;
    }
}

.timeline-date {
    text-align: right;
    padding-top: 2px;
}

.timeline-day {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--navy-800);
    line-height: 1;
}

.timeline-month {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--grey-500);
    margin-top: 3px;
}

@media (max-width: 700px) {
    .timeline-date { text-align: left; display: flex; gap: 8px; align-items: baseline; }
    .timeline-day { font-size: 19px; }
}

.timeline-marker {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--grey-200);
    margin: 6px auto 0;
    transition: all 0.25s ease;
    position: relative;
    z-index: 2;
}

@media (max-width: 700px) { .timeline-marker { display: none; } }

.timeline-item:hover .timeline-marker {
    border-color: var(--gold-500);
    transform: scale(1.25);
}

.timeline-badge {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--gold-500);
    padding: 3px 11px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy-800);
    margin: 0 0 6px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.timeline-item:hover .timeline-title { color: var(--gold-500); }

.timeline-location {
    font-size: 13px;
    font-weight: 600;
    color: var(--grey-500);
    margin: 0 0 8px;
}

.timeline-text {
    font-size: 15px;
    color: var(--grey-700);
    margin: 0 0 10px;
}

.timeline-more {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--gold-500);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.timeline-item:hover .timeline-more { opacity: 1; }

@media (max-width: 700px) { .timeline-more { opacity: 1; } }

.timeline-thumb {
    width: 160px;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: var(--sand-50);
}

.timeline-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 700px) {
    .timeline-thumb { width: 100%; aspect-ratio: 16 / 9; }
}

/* =========================================================
   NEWS — single item
   ========================================================= */
.news-hero { padding-bottom: 70px; }

.news-hero-meta {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
    line-height: 1;
}

.news-hero-date,
.news-hero-location {
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.72);
}

.news-hero-sep { color: rgba(255, 255, 255, 0.35); }

.news-hero-badge {
    align-self: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--navy-900);
    background: var(--gold-500);
    padding: 4px 12px;
    border-radius: 4px;
}

.news-single {
    max-width: 820px;
    margin: -40px auto 84px;
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(20, 37, 63, 0.08);
    padding: 40px 46px 36px;
    position: relative;
    z-index: 5;
}

@media (max-width: 600px) { .news-single { padding: 28px 24px 26px; } }

.news-single-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
    aspect-ratio: 16 / 9;
    background: var(--sand-50);
}

.news-single-image img { width: 100%; height: 100%; object-fit: cover; }

.news-external-btn { margin-top: 20px; }

/* --- Hero grid: overflow protection --- */
.hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
}

.hero-grid > * { min-width: 0; }

.hero-visual { min-width: 0; max-width: 100%; }

.hero-logo-panel { max-width: min(360px, 100%); }

.hero-logo-panel img { max-width: 100%; }

/* Collapse earlier so the panel never gets squeezed */
@media (max-width: 940px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-logo-panel { max-width: 260px; padding: 28px 26px; }
    .hero-visual::before { width: 300px; height: 300px; }
}

/* --- Section rhythm: news sits directly under the hero --- */
.section-news {
    background: var(--white);
    border-top: none;
}

/* Values now follows news -> give it the sand background back
   so the two white blocks don't merge into one */
.section-values {
    background: var(--sand-50);
    border-top: 1px solid var(--grey-200);
}

.section-projects {
    background: var(--white);
    border-top: 1px solid var(--grey-200);
}

/* --- 404 --- */
.notfound-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0 40px;
}

.post-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--grey-200);
}

.post-item h2 { font-size: 21px; margin: 0 0 8px; }
.post-item h2 a { color: var(--navy-800); text-decoration: none; }
.post-item h2 a:hover { color: var(--gold-500); }

/* =========================================================
   NEWS SINGLE — richer layout
   ========================================================= */

/* Wider card + gold accent bar on top */
.news-single {
    max-width: 900px;
    padding-top: 46px;
    border-top: 4px solid var(--gold-500);
}

/* Lead paragraph: the first paragraph stands out */
.news-single .rich-text > p:first-of-type {
    font-size: 19px;
    line-height: 1.65;
    color: var(--navy-800);
    font-weight: 500;
    padding-left: 20px;
    border-left: 3px solid var(--gold-500);
    margin-bottom: 30px;
}

.news-single .rich-text {
    font-size: 16.5px;
    line-height: 1.85;
}

.news-single .rich-text h2,
.news-single .rich-text h3 {
    color: var(--navy-800);
    margin-top: 40px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-100);
}

/* =========================================================
   IMAGES INSIDE ARTICLES
   ========================================================= */

/* Any inserted image behaves */
.rich-text img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Full-width single image */
.rich-text .size-full,
.rich-text .size-large,
.rich-text .aligncenter {
    display: block;
    width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(20, 37, 63, 0.12);
}

/* Left / right floated images */
.rich-text .alignleft {
    float: left;
    margin: 8px 28px 20px 0;
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20, 37, 63, 0.12);
}

.rich-text .alignright {
    float: right;
    margin: 8px 0 20px 28px;
    max-width: 45%;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20, 37, 63, 0.12);
}

.rich-text .alignnone {
    display: block;
    margin: 26px 0;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(20, 37, 63, 0.12);
}

@media (max-width: 640px) {
    .rich-text .alignleft,
    .rich-text .alignright {
        float: none;
        max-width: 100%;
        margin: 24px 0;
    }
}

/* Captions */
.rich-text .wp-caption {
    max-width: 100%;
    margin: 30px 0;
}

.rich-text .wp-caption img { border-radius: 10px; }

.rich-text .wp-caption-text,
.rich-text figcaption {
    font-size: 13.5px;
    color: var(--grey-500);
    font-style: italic;
    text-align: center;
    margin-top: 10px;
    padding: 0 10px;
}

/* =========================================================
   GALLERY  —  Add Media → Create Gallery
   ========================================================= */
.rich-text .gallery {
    display: grid;
    gap: 14px;
    margin: 34px 0;
    /* neutralise the default WP float layout */
    width: 100%;
}

.rich-text .gallery::after { content: none; }

.rich-text .gallery-columns-1 { grid-template-columns: 1fr; }
.rich-text .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.rich-text .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.rich-text .gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.rich-text .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 700px) {
    .rich-text .gallery-columns-3,
    .rich-text .gallery-columns-4,
    .rich-text .gallery-columns-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 460px) {
    .rich-text .gallery { grid-template-columns: 1fr !important; }
}

.rich-text .gallery .gallery-item {
    /* WP adds inline width % and dl/dd margins — override all of it */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block;
}

.rich-text .gallery .gallery-icon {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    background: none;
    border: none;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
    border-radius: 10px;
}

.rich-text .gallery .gallery-icon a {
    display: block;
    line-height: 0;
    border: none;
    text-decoration: none;
}

.rich-text .gallery .gallery-icon img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: none !important;
    border-radius: 10px;
    display: block;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 16px rgba(20, 37, 63, 0.10);
    image-rendering: auto;
}

.rich-text .gallery .gallery-item:hover .gallery-icon img {
    transform: scale(1.04);
}

.rich-text .gallery .gallery-caption {
    display: block;
    margin: 0 !important;
    font-size: 12.5px;
    color: var(--grey-500);
    font-style: italic;
    margin-top: 8px;
    padding: 0 4px;
    line-height: 1.45;
}

/* First item spans both columns in a 2-column gallery with odd count:
   gives that "1 big + 2 small" collage feel automatically */
.rich-text .gallery-columns-2 .gallery-item:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
}

.rich-text .gallery-columns-2 .gallery-item:first-child:nth-last-child(odd) .gallery-icon img {
    aspect-ratio: 16 / 9;
}

/* --- Featured image as a banner between hero and card --- */
.news-banner {
    max-width: 1000px;
    margin: -60px auto 0;
    position: relative;
    z-index: 6;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    background: var(--navy-800);
    box-shadow: 0 18px 50px rgba(20, 37, 63, 0.28);
    border: 5px solid var(--white);
}

.news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 700px) {
    .news-banner { aspect-ratio: 16 / 9; margin-top: -40px; }
}

/* When a banner is present the card sits normally underneath */
.news-single-under-banner {
    margin-top: 28px;
}

/* No banner -> keep the overlap so it isn't a flat white block */
.news-single { margin-top: -40px; }

/* =========================================================
   ADMIN BAR OFFSET
   =========================================================
   When logged in, WordPress shows a fixed 32px toolbar at the
   top. A sticky header with top:0 would slide underneath it.
   Visitors never see this — it only affects logged-in users.
   ========================================================= */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

/* On small screens WP makes the toolbar non-fixed while scrolling */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0;
    }
}




/* =========================================================
   RESEARCH PARTNERS  —  clean single-column table
   ========================================================= */
.partners-band {
    margin-top: 56px;
    padding-top: 30px;
    border-top: 2px solid var(--gold-100);
}

.partners-band-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy-800);
    letter-spacing: -0.5px;
    margin: 0 0 6px;
    padding-bottom: 14px;
    position: relative;
}

/* small gold underline under the heading */
.partners-band-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 52px;
    height: 3px;
    background: var(--gold-500);
    border-radius: 2px;
}

.partners-list {
    display: block;
    margin-top: 18px;
}

.partner-item,
.partner-item:visited {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 4px;
    border-bottom: 1px solid var(--grey-200);
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.2s ease;
}

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

a.partner-item:hover {
    padding-left: 10px;
    padding-right: 10px;
    background: var(--white);
}

.partner-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-800);
    line-height: 1.5;
    margin: 0;
    flex: 1;
    transition: color 0.2s ease;
}

.partner-title b {
    color: var(--gold-500);
    font-weight: 700;
    white-space: nowrap;
}

a.partner-item:hover .partner-title { color: var(--navy-700); }

.partner-place {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--grey-500);
    text-align: right;
    min-width: 78px;
}

@media (max-width: 620px) {
    .partner-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .partner-place { text-align: left; min-width: 0; }
}
