/* ============================================
   BASED IN BUDAPEST — Master Stylesheet v2
   Design: Editorial / Monocle-inspired
   Palette anchored to logo's teal-green
   ============================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Core palette — drawn from the logo's green */
    --green: #1a6b5a;
    --green-deep: #104a3e;
    --green-light: #e8f5f0;
    --green-wash: #f2faf7;

    /* Hungarian red — accent only */
    --red: #C8102E;
    --red-dark: #9B0A20;
    --red-light: #fef0f2;

    /* Neutrals */
    --ink: #1a1a1a;
    --ink-soft: #2d2d2d;
    --body: #4a4a4a;
    --caption: #777777;
    --muted: #aaaaaa;
    --rule: #e0e0e0;
    --rule-light: #f0f0f0;
    --paper: #fafaf8;
    --white: #ffffff;

    /* Accent — gold for warmth */
    --gold: #c9a84c;
    --gold-light: #fdf8ec;

    /* Institute colours */
    --mcc-accent: #2563EB;  --mcc-bg: #EFF6FF;
    --danube-accent: #D97706; --danube-bg: #FFFBEB;
    --mki-accent: #7C3AED;  --mki-bg: #F5F3FF;
    --cfr-accent: #059669;  --cfr-bg: #ECFDF5;

    /* System */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.1);
    --radius: 8px;
    --radius-lg: 16px;
    --radius-pill: 100px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1120px;
    --header-h: 60px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--paper);
    color: var(--body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-children .animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.stagger-children .animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.stagger-children .animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.stagger-children .animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.stagger-children .animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.stagger-children .animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* ============================================
   NAVIGATION — Thin, editorial
   ============================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(250,250,248,0.85);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid var(--rule);
    height: var(--header-h);
    transition: box-shadow 0.3s var(--ease);
}

.site-nav.scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--green);
    letter-spacing: -0.01em;
    transition: opacity 0.15s ease;
}
.nav-brand:hover { opacity: 0.6; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links a {
    padding: 0.4rem 0.75rem;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--caption);
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.75rem;
    right: 0.75rem;
    height: 1.5px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s var(--ease);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active {
    color: var(--green);
    font-weight: 600;
}
.nav-links a.active::after {
    transform: scaleX(1);
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}
.nav-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 1px;
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* ============================================
   HERO — White, logo-first, editorial
   ============================================ */
.hero {
    position: relative;
    padding: 4rem 2rem 3rem;
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    overflow: hidden;
}

/* Subtle ornamental line pattern behind hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red), var(--gold), var(--green));
    opacity: 0.7;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    max-width: 480px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s var(--ease) both;
}

.hero h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.45;
    margin-bottom: 1rem;
    max-width: 620px;
    color: var(--ink);
    animation: fadeUp 0.7s var(--ease) 0.1s both;
}

.hero-subtitle {
    font-size: 0.95rem;
    max-width: 520px;
    margin-bottom: 2rem;
    animation: fadeUp 0.7s var(--ease) 0.2s both;
    color: var(--caption);
    line-height: 1.65;
}

.hero-rule {
    width: 60px;
    height: 1.5px;
    background: var(--green);
    margin-bottom: 2rem;
    animation: fadeUp 0.7s var(--ease) 0.25s both;
}

.institute-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    animation: fadeUp 0.7s var(--ease) 0.3s both;
}

.institute-pill {
    padding: 0.4rem 1rem;
    background: var(--green-wash);
    border: 1px solid var(--green-light);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    transition: all 0.25s var(--ease);
    letter-spacing: 0.03em;
}

.institute-pill:hover {
    background: var(--green);
    color: var(--white);
    border-color: var(--green);
    transform: translateY(-1px);
}

/* ============================================
   PAGE HEADER (Sub-pages)
   ============================================ */
.page-header {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    padding: 3rem 0;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red), var(--gold), var(--green));
    opacity: 0.5;
}

.page-header h1 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 400;
    color: var(--ink);
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
}

.page-header p {
    font-size: 1rem;
    color: var(--caption);
    max-width: 500px;
}

/* ============================================
   SEARCH
   ============================================ */
.search-container {
    margin-bottom: 2.5rem;
    position: relative;
    max-width: 560px;
}

.search-bar {
    width: 100%;
    padding: 0.85rem 2.75rem 0.85rem 1.125rem;
    font-size: 0.875rem;
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-pill);
    background: var(--white);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    font-family: inherit;
    color: var(--ink);
}

.search-bar::placeholder { color: var(--muted); }

.search-bar:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(26,107,90,0.08);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

/* ============================================
   SECTION HEADERS — editorial rule
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--ink);
    gap: 1rem;
}

.section-header h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 400;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.view-all {
    color: var(--green);
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.25s var(--ease), color 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.view-all:hover { gap: 0.5rem; color: var(--green-deep); }

/* ============================================
   FILTERS
   ============================================ */
.filters {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.filter-btn {
    padding: 0.4rem 1rem;
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--caption);
    transition: all 0.2s var(--ease);
    letter-spacing: 0.01em;
}
.filter-btn:hover { border-color: var(--caption); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ============================================
   EVENT CARDS — Clean, date-prominent
   ============================================ */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--rule);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}

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

.event-date {
    background: var(--green);
    color: var(--white);
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.event-day {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
}

.event-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
    font-weight: 600;
}

.event-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-meta {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0.625rem;
}

.event-tag {
    font-size: 0.625rem;
    padding: 0.175rem 0.5rem;
    background: var(--rule-light);
    border-radius: var(--radius-pill);
    font-weight: 700;
    color: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.event-tag.mcc    { background: var(--mcc-bg); color: var(--mcc-accent); }
.event-tag.danube { background: var(--danube-bg); color: var(--danube-accent); }
.event-tag.mki    { background: var(--mki-bg); color: var(--mki-accent); }
.event-tag.cfr    { background: var(--cfr-bg); color: var(--cfr-accent); }

.event-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    color: var(--ink);
}

.event-description {
    font-size: 0.825rem;
    color: var(--caption);
    line-height: 1.6;
    margin-bottom: 0.875rem;
    flex: 1;
}

.event-location {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: auto;
}
.event-location svg { flex-shrink: 0; opacity: 0.5; }

.event-time {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.25rem;
    font-weight: 500;
}

.event-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    margin-top: 0.75rem;
    transition: gap 0.2s var(--ease);
}
.event-link:hover { gap: 0.5rem; }

/* ============================================
   NEWS CARDS — Image-topped
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--rule);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: flex;
    flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.news-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

/* Sophisticated pattern blocks — editorial illustration style */
.news-image.pattern-1 {
    background: var(--green);
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.04) 20px, rgba(255,255,255,0.04) 40px);
}
.news-image.pattern-1::after {
    content: 'MCC';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    font-weight: 400;
    line-height: 1;
}

.news-image.pattern-2 {
    background: var(--mki-accent);
    background-image:
        radial-gradient(circle 2px at 20px 20px, rgba(255,255,255,0.08) 100%, transparent 0),
        radial-gradient(circle 2px at 60px 60px, rgba(255,255,255,0.08) 100%, transparent 0);
    background-size: 80px 80px;
}
.news-image.pattern-2::after {
    content: 'MKI';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    font-weight: 400;
    line-height: 1;
}

.news-image.pattern-3 {
    background: var(--danube-accent);
    background-image: linear-gradient(135deg, rgba(255,255,255,0.05) 25%, transparent 25%),
                      linear-gradient(225deg, rgba(255,255,255,0.05) 25%, transparent 25%),
                      linear-gradient(315deg, rgba(255,255,255,0.05) 25%, transparent 25%),
                      linear-gradient(45deg, rgba(255,255,255,0.05) 25%, transparent 25%);
    background-size: 40px 40px;
    background-position: 0 0, 20px 0, 20px -20px, 0 20px;
}
.news-image.pattern-3::after {
    content: 'Danube';
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 3rem;
    color: rgba(255,255,255,0.1);
    font-weight: 400;
    line-height: 1;
}

.news-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}

.news-category {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
}

.news-date {
    color: var(--muted);
    font-size: 0.75rem;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    color: var(--ink);
}

.news-excerpt {
    color: var(--caption);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0.875rem;
    flex: 1;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rule-light);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.01em;
}

/* ============================================
   PUBLICATIONS — Left-bordered, scholarly
   ============================================ */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 3.5rem;
}

.publication-item {
    background: var(--white);
    padding: 1.5rem 1.75rem;
    border-radius: var(--radius);
    border-left: 3px solid var(--green);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.publication-item:hover {
    transform: translateX(3px);
    box-shadow: var(--shadow-md);
}

.publication-item:nth-child(2) { border-left-color: var(--gold); }
.publication-item:nth-child(3) { border-left-color: var(--red); }
.publication-item:nth-child(4) { border-left-color: var(--mki-accent); }

.publication-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.publication-type {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-weight: 700;
}

.publication-date {
    font-size: 0.75rem;
    color: var(--muted);
    white-space: nowrap;
}

.publication-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    margin-bottom: 0.375rem;
    color: var(--ink);
    line-height: 1.3;
}

.publication-authors {
    font-size: 0.775rem;
    color: var(--muted);
    margin-bottom: 0.625rem;
}

.publication-excerpt {
    color: var(--body);
    line-height: 1.7;
    margin-bottom: 0.875rem;
    font-size: 0.85rem;
}

.publication-footer {
    display: flex;
    gap: 0.875rem;
    align-items: center;
}

.read-more {
    color: var(--green);
    font-weight: 600;
    font-size: 0.775rem;
    transition: color 0.15s ease;
}
.read-more:hover { color: var(--green-deep); }

/* ============================================
   INSTITUTE CARDS
   ============================================ */
.institutes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.institute-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--rule);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.institute-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.institute-card.mcc    { border-top-color: var(--mcc-accent); }
.institute-card.danube { border-top-color: var(--danube-accent); }
.institute-card.mki    { border-top-color: var(--mki-accent); }
.institute-card.cfr    { border-top-color: var(--cfr-accent); }

.institute-card h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    margin-bottom: 0.625rem;
    color: var(--ink);
    font-weight: 400;
}

.institute-card p {
    line-height: 1.7;
    margin-bottom: 0.625rem;
    color: var(--body);
    font-size: 0.85rem;
}

.institute-card .focus-areas {
    font-size: 0.8rem;
    color: var(--caption);
    margin-bottom: 1rem;
}
.institute-card .focus-areas strong { color: var(--body); }

.institute-link {
    color: var(--green);
    font-weight: 600;
    font-size: 0.825rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s var(--ease);
}
.institute-link:hover { gap: 0.5rem; }

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.about-content h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.5rem;
    margin: 2.5rem 0 0.875rem;
    color: var(--ink);
    font-weight: 400;
}

.about-content p {
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.about-content ul { margin-bottom: 1.5rem; }

.about-content li {
    line-height: 1.8;
    padding: 0.3rem 0;
    padding-left: 1.125rem;
    position: relative;
    font-size: 0.95rem;
}
.about-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.about-content .disclaimer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================
   MEDIA — Coming Soon
   ============================================ */
.coming-soon {
    background: var(--white);
    padding: 4rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
    border: 1.5px dashed var(--rule);
}

.coming-soon h2 {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--muted);
    font-weight: 400;
}

.coming-soon p {
    color: var(--caption);
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ============================================
   FOOTER — Dark, clean
   ============================================ */
.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,0.45);
    padding: 2.5rem 0 1.75rem;
    margin-top: 3.5rem;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-brand {
    font-family: 'Instrument Serif', Georgia, serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.4rem;
}

.footer-tagline {
    font-size: 0.775rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.775rem;
    color: rgba(255,255,255,0.45);
    transition: color 0.15s ease;
}
.footer-links a:hover { color: rgba(255,255,255,0.85); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 1.75rem auto 0;
    padding: 1.25rem 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 0.7rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============================================
   SCROLL-TO-TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.15s ease;
    pointer-events: none;
    z-index: 999;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--green-deep); }

/* ============================================
   LIVE DOT
   ============================================ */
.live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    margin-right: 0.3rem;
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    :root { --header-h: 52px; }
    .container { padding: 0 1.25rem; }

    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: 0; bottom: 0;
        width: 260px;
        background: var(--white);
        flex-direction: column;
        padding: 4.5rem 1.5rem 2rem;
        gap: 0.125rem;
        box-shadow: var(--shadow-xl);
        transform: translateX(100%);
        transition: transform 0.3s var(--ease);
        z-index: 1000;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a { padding: 0.65rem 0.75rem; font-size: 0.925rem; }
    .nav-links a::after { display: none; }

    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 999; }
    .nav-overlay.open { display: block; }

    .hero { padding: 2.5rem 1.25rem 2rem; }
    .hero-logo { max-width: 300px; }
    .hero h1 { font-size: 1.25rem; }
    .hero-subtitle { font-size: 0.875rem; }

    .events-grid, .news-grid { grid-template-columns: 1fr; }
    .institutes-grid { grid-template-columns: 1fr; }

    .section-header { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
    .page-header { padding: 2rem 0; }
    .page-header h1 { font-size: 1.75rem; }

    .footer-inner { flex-direction: column; gap: 1.25rem; }
    .footer-links { flex-wrap: wrap; gap: 0.875rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .filters { gap: 0.25rem; }
    .filter-btn { padding: 0.35rem 0.75rem; font-size: 0.75rem; }
    .institute-pills { gap: 0.375rem; }
    .institute-pill { font-size: 0.675rem; padding: 0.35rem 0.75rem; }
}
