/* ==========================================================================
   main.css  --  Neurotech4All design system
   All pages share this single stylesheet (loaded via base.html).
   Organised into sections matching the template partials.
   ========================================================================== */

/* ── DESIGN TOKENS ─────────────────────────────────────────────────────── */
:root {
    --orange:      #f97316;
    --orange-pale: #fff4ed;
    --navy:        #081843;
    --navy-mid:    #1a3a8f;
    --blue:        #3b6fd4;
    --blue-hover:  #2a5bc4;
    --blue-lt:     #6390e8;
    --blue-pale:   #dce8ff;
    --blue-bg:     #f0f5ff;
    --cyan:        #0ea5e9;
    --white:       #ffffff;
    --text:        #1a2035;
    --muted:       #5a6a8a;
    --border:      #d6e0f8;
    --shadow-sm:   0 2px 8px rgba(15,40,100,.08);
    --shadow-md:   0 4px 20px rgba(15,40,100,.13);
    --shadow-lg:   0 8px 40px rgba(15,40,100,.18);
    --r:           18px;
    --r-lg:        28px;
    --t:           0.3s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ──────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: #fff; line-height: 1.6; overflow-x: hidden; }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }

/* ── UTILITIES ──────────────────────────────────────────────────────────── */
.container    { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section       { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 60px; }

.chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--blue); background: var(--blue-pale);
    padding: 6px 14px; border-radius: 100px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.75rem,4vw,2.75rem); font-weight: 800; line-height: 1.15; color: var(--navy); }
.section-desc  { font-size: 1rem; color: var(--muted); line-height: 1.8; max-width: 600px; margin: .9rem auto 0; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.btn         { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 100px; font-size: .92rem; font-weight: 700; transition: var(--t); cursor: pointer; border: none; font-family: inherit; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 16px rgba(29,85,224,.32); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,85,224,.4); }
.btn-ghost   { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.22); border-color: #fff; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); background: var(--blue-pale); transform: translateY(-2px); }

/* ── NAVIGATION ─────────────────────────────────────────────────────────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); transition: var(--t); overflow: visible; }
.nav.scrolled { box-shadow: 0 2px 20px rgba(15,40,100,.1); border-bottom-color: transparent; }
.nav-inner  { display: flex; align-items: center; justify-content: space-between; }
.nav-brand  { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.nav-logo   { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links  { display: flex; align-items: center; gap: 4px; }
.nav-link   { font-size: .95rem; font-weight: 600; color: var(--muted); padding: 10px 15px; border-radius: 8px; transition: var(--t); }
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-pale); }
.nav-cta    { background: var(--blue); color: #fff !important; border-radius: 100px; padding: 10px 22px !important; }
.nav-cta:hover { background: var(--blue-hover) !important; color: #fff !important; }

/* Hamburger button */
.nav-toggle { display: none; width: 40px; height: 40px; border-radius: 10px; padding: 0; cursor: pointer; z-index: 1001; border: 1.5px solid var(--border); background: #fff; transition: var(--t); position: relative; flex-shrink: 0; }
.nav-toggle:hover { background: var(--blue-pale); border-color: var(--blue); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--t); position: absolute; left: 50%; transform: translateX(-50%); }
.nav-toggle span:nth-child(1) { top: calc(50% - 7px); }
.nav-toggle span:nth-child(2) { top: calc(50% - 1px); }
.nav-toggle span:nth-child(3) { top: calc(50% + 5px); }
/* Hamburger open state: three lines animate to an X */
.nav-toggle.open span:nth-child(1) { top: calc(50% - 1px); transform: translateX(-50%) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-50%) scaleX(0); }
.nav-toggle.open span:nth-child(3) { top: calc(50% - 1px); transform: translateX(-50%) rotate(-45deg); }

/* ── PAGE HERO (used on news listing and overview pages) ─────────────────── */
.page-hero {
    background-color: var(--blue-bg);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d55e0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    padding: 140px 0 72px; text-align: center;
}
.page-hero h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; color: var(--navy); margin-bottom: 12px; letter-spacing: -.02em; }
.page-hero p  { font-size: 1.05rem; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ── HOMEPAGE HERO ───────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background-color: var(--blue-bg); background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231d55e0' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); min-height: 780px; display: flex; align-items: center; padding: 120px 0; }
.hero > .container { width: 100%; }
.hero-visual {
    position: absolute; right: 0; top: 0; bottom: 0; width: 45%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent), linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
    mask-image: linear-gradient(to right, transparent, black 22%, black 78%, transparent), linear-gradient(to bottom, transparent 0%, black 10%, black 100%);
    -webkit-mask-composite: destination-in; mask-composite: intersect;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.hero-fade { position: absolute; top: 0; left: 0; bottom: 0; width: 75%; background: linear-gradient(to right, var(--blue-bg) 15%, rgba(240,245,255,.8) 40%, rgba(240,245,255,.2) 65%, transparent); pointer-events: none; }
.hero-content { position: relative; z-index: 2; max-width: 520px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--blue-pale); color: var(--blue); font-size: .75rem; font-weight: 700; letter-spacing: .07em; padding: 6px 14px; border-radius: 6px; margin-bottom: 20px; }
.hero-h1 { font-size: clamp(2rem,4.5vw,3.4rem); font-weight: 800; line-height: 1.12; color: var(--navy); margin-bottom: 18px; letter-spacing: -.02em; }
.hero-h1 .accent { color: var(--blue); }
.hero-sub { font-size: 1.05rem; color: var(--muted); line-height: 1.8; max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── ABOUT SECTION ───────────────────────────────────────────────────────── */
.about { background: #fff; }
.about-intro { font-size: 1.18rem; font-weight: 500; color: var(--navy); line-height: 1.75; margin-bottom: 0; }
.about-cols  { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin: 32px 0 40px; }
.about-body  { font-size: .97rem; color: var(--muted); line-height: 1.9; }

/* ── OUR WORK / WORK PACKAGES ───────────────────────────────────────────── */
.work { background: var(--blue-bg); }
.work-subhead { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 6px; }
.obj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 16px; margin-top: 28px; }
.obj-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 26px 22px; display: flex; gap: 16px; align-items: flex-start; transition: var(--t); }
.obj-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.obj-num  { font-size: 2.2rem; font-weight: 800; color: var(--blue-pale); line-height: 1; flex-shrink: 0; margin-top: -5px; }
.obj-text { font-size: .87rem; color: var(--muted); line-height: 1.65; font-weight: 500; }
.wp-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr)); gap: 22px; margin-top: 28px; }
.wp { background: #fff; border: 1px solid var(--border); border-radius: var(--r); padding: 0; position: relative; overflow: hidden; transition: var(--t); }
.wp:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.wp-img   { width: 100%; height: 190px; object-fit: cover; display: block; }
.wp-body  { padding: 24px 26px 26px; }
.wp-title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; line-height: 1.35; }
.wp-desc  { font-size: .86rem; color: var(--muted); line-height: 1.7; }

/* ── TEAM ────────────────────────────────────────────────────────────────── */
.team { background: #fff; }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.member { width: 195px; flex-shrink: 0; background: var(--blue-bg); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--t); text-align: center; }
.member:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--blue-pale); }
.member-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: linear-gradient(135deg, var(--blue), var(--cyan)); }
.member-img      { width: 100%; height: 100%; object-fit: cover; transition: var(--t); }
.member-img.broken { visibility: hidden; }
.member:hover .member-img { transform: scale(1.06); }
.member-overlay  { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,67,.85), transparent 55%); display: flex; align-items: flex-end; justify-content: center; padding: 14px; opacity: 0; transition: var(--t); }
.member:hover .member-overlay { opacity: 1; }
.member-socials  { display: flex; gap: 8px; }
.member-socials a { width: 30px; height: 30px; background: #fff; border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: .8rem; transition: var(--t); }
.member-socials a:hover { background: var(--blue); color: #fff; }
.member-info { padding: 14px; }
.member-name { font-size: .88rem; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.member-role { font-size: .76rem; color: var(--muted); line-height: 1.4; }

/* ── NEWS STRIP (homepage carousel) ─────────────────────────────────────── */
.news-strip { background: var(--navy); padding: 80px 0; }
.news-strip .chip { background: rgba(255,255,255,.1); color: rgba(255,255,255,.88); border: 1px solid rgba(255,255,255,.18); }
.news-strip .section-title { color: #fff; }
.news-strip .section-desc  { color: rgba(255,255,255,.55); }
.news-slide { display: none; }
.news-slide.active { display: block; animation: news-fade .45s ease; }
@keyframes news-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); overflow: hidden; transition: var(--t); cursor: pointer; }
.news-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.news-thumb { width: 100%; height: 175px; object-fit: cover; }
.news-thumb-ph { width: 100%; height: 175px; background: linear-gradient(135deg, var(--navy-mid), var(--blue-lt)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25); font-size: 2rem; }
.news-body { padding: 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.news-date { font-size: .75rem; color: rgba(255,255,255,.4); }
.news-tag  { font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: rgba(79,134,247,.2); color: #93b8ff; }
.news-h    { font-size: .93rem; font-weight: 700; color: #fff; line-height: 1.4; margin-bottom: 8px; }
.news-teaser { font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; }
.carousel-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.2); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .95rem; transition: var(--t); font-family: inherit; }
.carousel-btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.carousel-btn:disabled { opacity: .3; cursor: default; }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dot  { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: var(--t); border: none; padding: 0; }
.carousel-dot.active { background: #fff; width: 24px; border-radius: 4px; }
.news-footer { text-align: center; margin-top: 36px; }

/* ── NEWS LISTING PAGE ───────────────────────────────────────────────────── */
.filters-bar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 64px; z-index: 100; padding: 14px 0; }
.filters-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 100px; font-size: .84rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: #fff; color: var(--muted); transition: var(--t); font-family: inherit; }
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.filter-search { margin-left: auto; position: relative; }
.filter-search input { padding: 9px 14px 9px 38px; border: 1.5px solid var(--border); border-radius: 100px; font-family: inherit; font-size: .84rem; color: var(--text); background: var(--blue-bg); outline: none; transition: var(--t); width: 220px; }
.filter-search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29,85,224,.1); }
.filter-search i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .85rem; }

/* News listing grid (different from homepage carousel grid) */
.news-section { padding: 64px 0 96px; }
.news-list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.news-list-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.news-list-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-pale); }
.news-list-thumb { width: 100%; height: 200px; object-fit: cover; transition: var(--t); }
.news-list-card:hover .news-list-thumb { transform: scale(1.04); }
.news-list-thumb-wrap { overflow: hidden; display: block; }
.news-list-thumb-ph { width: 100%; height: 200px; background: linear-gradient(135deg, var(--navy-mid), var(--blue-lt)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.25); font-size: 2.5rem; }
.news-list-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.news-list-date { font-size: .76rem; color: var(--muted); }
.news-list-tag  { font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: var(--blue-pale); color: var(--blue); }
.news-list-h    { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.4; cursor: pointer; transition: color var(--t); }
.news-list-h:hover { color: var(--blue); }
.news-list-teaser { font-size: .85rem; color: var(--muted); line-height: 1.7; flex: 1; }
.news-list-author-wrap { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); }
.news-author-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .75rem; font-weight: 700; flex-shrink: 0; }
.news-author-name { font-size: .78rem; color: var(--muted); font-weight: 600; }
.news-read-more { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--blue); transition: var(--t); margin-top: 4px; }
.news-read-more:hover { color: var(--navy); gap: 9px; }
.no-results { display: none; text-align: center; padding: 80px 0; color: var(--muted); }
.no-results i { font-size: 2.5rem; margin-bottom: 16px; display: block; color: var(--border); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 56px; }
.page-btn { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--border); background: #fff; color: var(--muted); font-size: .88rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; transition: var(--t); }
.page-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.page-btn.active  { background: var(--blue); color: #fff; border-color: var(--blue); }
.page-btn:disabled { opacity: .35; cursor: default; }

/* ── NEWS POST (article) ─────────────────────────────────────────────────── */
.article-hero { margin-top: 64px; position: relative; height: 420px; overflow: hidden; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,67,.75) 0%, rgba(8,24,67,.2) 60%, transparent 100%); }
.article-hero-meta { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; }
.article-hero-meta .container { max-width: 820px; }

.article-wrap   { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.article-header { padding: 44px 0 32px; border-bottom: 1px solid var(--border); }
.article-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.art-tag     { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 100px; background: var(--blue-pale); color: var(--blue); }
.art-date    { font-size: .83rem; color: var(--muted); }
.art-author  { font-size: .83rem; color: var(--muted); }
.art-dot     { color: var(--border); }
.art-reading { font-size: .83rem; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.article-title  { font-size: clamp(1.7rem,4vw,2.4rem); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 16px; }
.article-teaser { font-size: 1.05rem; color: var(--muted); line-height: 1.8; }

.article-content { padding: 44px 0 64px; }
.article-content h2 { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin: 48px 0 16px; line-height: 1.25; }
.article-content h3 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin: 40px 0 14px; line-height: 1.3; }
.article-content h4 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 32px 0 12px; }
.article-content p  { font-size: 1rem; color: var(--text); line-height: 1.9; margin-bottom: 20px; }
.article-content a  { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--navy); }
.article-content em     { font-style: italic; }
.article-content strong { font-weight: 700; color: var(--navy); }
.article-content ul, .article-content ol { margin: 16px 0 20px 24px; }
.article-content li { font-size: 1rem; color: var(--text); line-height: 1.8; margin-bottom: 8px; }
.article-content ul li { list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content blockquote { border-left: 3px solid var(--blue); padding: 16px 20px; margin: 28px 0; background: var(--blue-bg); border-radius: 0 var(--r) var(--r) 0; }
.article-content blockquote p { color: var(--navy); font-style: italic; margin-bottom: 0; }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.article-content iframe { border-radius: var(--r); margin: 28px 0; }

/* Images inside article Markdown body */
.article-content img, .news-img {
    width: 100%; border-radius: var(--r); margin: 28px 0;
    object-fit: cover; max-height: 420px;
}
.article-caption { font-size: .8rem; color: var(--muted); margin-top: -18px; margin-bottom: 28px; text-align: center; font-style: italic; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 48px; }
.article-tags-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 4px; align-self: center; }

.article-nav { display: flex; justify-content: space-between; align-items: center; padding: 40px 0; border-top: 1px solid var(--border); margin-top: 16px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--blue); transition: var(--t); }
.back-link:hover { color: var(--navy); gap: 12px; }

.article-refs { padding: 14px 0 32px; }
.article-refs-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 14px; }
.ref-item { font-size: .83rem; color: var(--muted); line-height: 1.7; padding-left: 16px; border-left: 2px solid var(--border); margin-bottom: 10px; }
.ref-item a { color: var(--blue); font-weight: 600; }

/* Related posts */
.related { background: var(--blue-bg); padding: 72px 0; }
.related-inner { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.related-title { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 32px; }
.related-grid  { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; }
.rel-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: var(--t); display: flex; flex-direction: column; }
.rel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rel-thumb { width: 100%; height: 160px; object-fit: cover; display: block; }
.rel-body  { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.rel-meta  { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.rel-tag   { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; padding: 3px 10px; border-radius: 100px; background: var(--blue-pale); color: var(--blue); }
.rel-date  { font-size: .75rem; color: var(--muted); }
.rel-h     { font-size: .95rem; font-weight: 700; color: var(--navy); line-height: 1.4; margin-bottom: 8px; }
.rel-teaser { font-size: .83rem; color: var(--muted); line-height: 1.65; flex: 1; }
.rel-link  { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--blue); margin-top: 14px; transition: var(--t); }
.rel-link:hover { gap: 9px; color: var(--navy); }

/* ── PARTNERS ────────────────────────────────────────────────────────────── */
.partners { background: #fff; }
.partners-row { display: flex; flex-wrap: wrap; gap: 48px 56px; justify-content: center; align-items: center; margin-top: 48px; }
.partner { display: flex; align-items: center; justify-content: center; transition: var(--t); }
.partner:hover { transform: scale(1.08); }
.partner img { max-height: 90px; max-width: 220px; width: auto; object-fit: contain; }
.partner-name { font-size: .95rem; font-weight: 700; color: var(--navy); text-align: center; }

/* ── CONTACT ─────────────────────────────────────────────────────────────── */
.contact { background: var(--blue-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.contact-side-title { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.contact-side-desc  { font-size: .9rem; color: var(--muted); line-height: 1.8; margin-bottom: 28px; }
.c-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.c-icon   { width: 42px; height: 42px; background: var(--blue); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; flex-shrink: 0; }
.c-label  { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 2px; }
.c-val    { font-size: .88rem; color: var(--text); font-weight: 600; }
.c-socials { display: flex; gap: 10px; margin-top: 28px; }
.c-social  { width: 42px; height: 42px; background: var(--blue); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; transition: var(--t); }
.c-social:hover { background: var(--navy); transform: translateY(-3px); }
.c-form   { background: #fff; border-radius: var(--r-lg); padding: 38px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.f-group  { margin-bottom: 18px; }
.f-row    { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-label  { display: block; font-size: .8rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.f-input  { width: 100%; padding: 12px 15px; border: 1.5px solid var(--border); border-radius: 10px; font-family: inherit; font-size: .88rem; color: var(--text); background: var(--blue-bg); transition: var(--t); outline: none; }
.f-input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(29,85,224,.1); }
.f-input::placeholder { color: var(--muted); opacity: .7; }
textarea.f-input { resize: vertical; min-height: 126px; }
.f-submit { width: 100%; padding: 15px; background: var(--blue); color: #fff; border-radius: 10px; font-size: .92rem; font-weight: 700; cursor: pointer; border: none; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: var(--t); }
.f-submit:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(29,85,224,.33); }

/* ── OVERVIEW / ABOUT PAGE ───────────────────────────────────────────────── */
.overview-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 56px; max-width: 1180px; margin: 0 auto; padding: 0 24px; align-items: start; }
.toc-sidebar { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 28px 0; }
.toc-title   { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.toc-link    { display: block; font-size: .85rem; color: var(--muted); padding: 6px 0 6px 14px; border-left: 2px solid var(--border); transition: var(--t); line-height: 1.4; }
.toc-link:hover, .toc-link.active { color: var(--blue); border-left-color: var(--blue); }
.overview-content section[id] { scroll-margin-top: 100px; }
.overview-content { padding: 64px 0; }
.ov-section { margin-bottom: 72px; padding-bottom: 72px; border-bottom: 1px solid var(--border); }
.ov-section:last-of-type { border-bottom: none; }
.ov-chip    { display: inline-flex; align-items: center; gap: 7px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); background: var(--blue-pale); padding: 5px 13px; border-radius: 100px; margin-bottom: 14px; }
.ov-h2      { font-size: clamp(1.6rem,3.5vw,2.2rem); font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 20px; }
.ov-lead    { font-size: 1.05rem; color: var(--navy); line-height: 1.85; font-weight: 500; margin-bottom: 20px; }
.ov-p       { font-size: .97rem; color: var(--muted); line-height: 1.9; margin-bottom: 18px; }
.ov-p a     { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.ov-p a:hover { color: var(--navy); }
.ov-img     { width: 100%; border-radius: var(--r); margin: 28px 0; object-fit: cover; max-height: 400px; }
.ov-caption { font-size: .8rem; color: var(--muted); margin-top: -20px; margin-bottom: 28px; font-style: italic; }
.ov-obj-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.ov-obj-list  { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 14px; margin-bottom: 32px; }
.ov-obj-item  { background: var(--blue-bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; font-size: .88rem; color: var(--muted); line-height: 1.6; }
.ov-obj-item strong { color: var(--navy); }
.ov-refs      { margin-top: 20px; }
.ov-refs-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 14px; }
.ov-ref-item  { font-size: .82rem; color: var(--muted); line-height: 1.7; padding-left: 16px; border-left: 2px solid var(--border); margin-bottom: 10px; }
.ov-ref-item a { color: var(--blue); font-weight: 600; }
.ref-back { color: var(--blue); font-size: .82em; margin-left: 6px; opacity: .65; transition: var(--t); font-weight: 700; }
.ref-back:hover { opacity: 1; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.footer      { background: #040d28; color: rgba(255,255,255,.55); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.footer-logo  { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; }
.footer-name  { font-size: 1rem; font-weight: 800; color: #fff; }
.footer-desc  { font-size: .83rem; line-height: 1.75; margin-bottom: 16px; }
.footer-col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-link  { display: block; font-size: .84rem; color: rgba(255,255,255,.5); padding: 4px 0; transition: var(--t); }
.footer-link:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy   { font-size: .8rem; }
.footer-socials { display: flex; gap: 8px; }
.footer-social  { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); font-size: .85rem; transition: var(--t); }
.footer-social:hover { border-color: var(--blue); color: #fff; background: var(--blue); }

/* ── SCROLL-IN ANIMATIONS ────────────────────────────────────────────────── */
.fi { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fi.show { opacity: 1; transform: translateY(0); }
.fi.d1 { transition-delay: .1s; }
.fi.d2 { transition-delay: .2s; }
.fi.d3 { transition-delay: .3s; }
.fi.d4 { transition-delay: .4s; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid     { grid-template-columns: 1fr 1fr; }
    .overview-wrap   { grid-template-columns: 1fr; }
    .toc-sidebar     { display: none; }
}
@media (max-width: 768px) {
    section { padding: 64px 0; }
    /* Mobile nav: links drop down below the navbar */
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(15,40,100,.1); padding: 12px 0; gap: 0; }
    .nav-links.open { display: flex; }
    .nav-links.open li { width: 100%; }
    .nav-links.open .nav-link { display: block; padding: 13px 24px; border-radius: 0; font-size: 1rem; color: var(--navy); width: 100%; }
    .nav-links.open .nav-cta  { margin: 12px 16px 4px; border-radius: 100px; text-align: center; display: block; width: calc(100% - 32px); padding: 12px 24px !important; }
    .nav-toggle { display: block; }
    .hero { min-height: 640px; padding: 130px 0 80px; }
    .hero-visual, .hero-fade { display: none; }
    .hero-content { max-width: 100%; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-badge { display: none; }
    .about-cols  { grid-template-columns: 1fr; }
    .news-grid   { grid-template-columns: 1fr; }
    .news-list-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr; }
    .filter-search { width: 100%; order: -1; }
    .filter-search input { width: 100%; }
    .article-hero { height: 280px; }
    .f-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-actions   { flex-direction: column; align-items: center; }
    .wp-grid, .obj-grid { grid-template-columns: 1fr; }
}
