/* =========================================================
   Template Universitas-1 | Navy + Gold academic theme
   ========================================================= */
:root {
    --primary: #0b2a5b;
    --primary-dark: #071c3d;
    --primary-light: #e8eef8;
    --accent: #c8962e;
    --accent-dark: #a67a1f;
    --accent-light: #fbf3e2;
    --accent-soft: #f5d68f;
    --primary-mid: #1e4a8f;
    --primary-rgb: 11, 42, 91;
    --primary-dark-rgb: 7, 28, 61;
    --accent-rgb: 200, 150, 46;
    --accent-soft-rgb: 245, 214, 143;
    --bg-section: #f6f8fc;
    --text: #1f2937;
    --muted: #5b6474;
    --border: #e2e7ef;
    --white: #ffffff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(var(--primary-rgb), 0.08);
    --shadow-lg: 0 20px 50px rgba(var(--primary-rgb), 0.16);
    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-dark); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--primary); line-height: 1.25; font-weight: 700; }
p { margin-bottom: 1rem; }
ul { list-style: none; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Utility bar ---------- */
.utility-bar { background: var(--primary-dark); color: rgba(255,255,255,.75); font-size: .8rem; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; flex-wrap: wrap; }
.utility-info { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.utility-info span { display: inline-flex; align-items: center; gap: .4rem; }
.utility-info svg { width: 14px; height: 14px; color: var(--accent); }
.utility-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.utility-links a { color: rgba(255,255,255,.9); font-weight: 500; }
.utility-links a:hover { color: var(--accent); }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 3px solid var(--accent); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: .85rem; padding-bottom: .85rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--primary); }
.brand:hover { color: var(--primary); }
.brand-crest { width: 52px; height: 52px; flex-shrink: 0; }
.brand-text strong { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.15; letter-spacing: .01em; }
.brand-text small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 2px; }

.main-nav > ul { display: flex; align-items: center; gap: .15rem; }
.main-nav li { position: relative; }
.main-nav a, .main-nav .nav-group > span { display: block; padding: .55rem .8rem; font-size: .9rem; font-weight: 600; color: var(--text); border-radius: 8px; cursor: pointer; white-space: nowrap; }
.main-nav a:hover, .main-nav .nav-group:hover > span { color: var(--primary); background: var(--primary-light); }
.main-nav a.active, .main-nav .nav-group:has(a.active) > span { color: var(--primary); background: var(--primary-light); }
.nav-group > span::after { content: ''; display: inline-block; margin-left: .35rem; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.nav-group ul { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .5rem; border-top: 3px solid var(--accent); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s; }
.nav-group:hover ul, .nav-group:focus-within ul { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-group ul a { font-weight: 500; padding: .55rem .8rem; }
.main-nav .nav-cta { background: var(--accent); color: var(--white); margin-left: .35rem; }
.main-nav .nav-cta:hover, .main-nav .nav-cta.active { background: var(--accent-dark); color: var(--white); }
.mobile-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: .45rem; cursor: pointer; color: var(--primary); }
.mobile-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 2px solid transparent; cursor: pointer; transition: all .2s; font-family: var(--sans); }
.btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--accent); color: var(--white); }
.btn-gold:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn-navy { background: var(--primary); color: var(--white); }
.btn-navy:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--primary); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-group { display: flex; gap: .85rem; flex-wrap: wrap; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; background-size: cover; background-position: center; color: var(--white); }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(var(--primary-dark-rgb),.94) 0%, rgba(var(--primary-rgb),.82) 45%, rgba(var(--primary-rgb),.25) 100%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(var(--accent-rgb),.18); border: 1px solid rgba(var(--accent-rgb),.5); color: var(--accent-soft); padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--accent-soft); font-style: italic; }
.hero .lead { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 600px; margin-bottom: 2rem; }
.hero-card { background: rgba(255,255,255,.97); color: var(--text); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-lg); border-top: 5px solid var(--accent); }
.hero-card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.hero-card p { color: var(--muted); font-size: .92rem; }
.hero-card ul { margin: 1rem 0 1.25rem; }
.hero-card li { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.hero-card li strong { color: var(--primary); }

/* ---------- Page banner (sub pages) ---------- */
.page-banner { position: relative; padding: 5rem 0 4rem; background-size: cover; background-position: center; color: var(--white); }
.page-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--primary-dark-rgb),.95), rgba(var(--primary-rgb),.75)); }
.page-banner .container { position: relative; }
.page-banner h1 { color: var(--white); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.page-banner p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0; }
.crumb { font-size: .85rem; color: var(--accent-soft); margin-bottom: .75rem; }
.crumb a { color: var(--accent-soft); }
.crumb a:hover { color: var(--white); }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
section.alt { background: var(--bg-section); }
section.navy { background: var(--primary); color: rgba(255,255,255,.85); }
section.navy h2, section.navy h3 { color: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head.left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-block; color: var(--accent-dark); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .85rem; }
.section-head h2::after { content: ''; display: block; width: 64px; height: 3px; background: var(--accent); margin: 1rem auto 0; }
.section-head.left h2::after { margin-left: 0; }
.section-head p { color: var(--muted); }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--primary); position: relative; margin-top: -60px; z-index: 5; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; }
.stats-strip > div { padding: 1.75rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip .num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent-soft); font-weight: 700; line-height: 1.1; }
.stats-strip .label { color: rgba(255,255,255,.75); font-size: .85rem; margin-top: .3rem; }

/* ---------- Grid & cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: all .25s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: transparent; }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.card-icon svg { width: 26px; height: 26px; }
.card.gold-top { border-top: 4px solid var(--accent); }
.card .more { display: inline-flex; margin-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--accent-dark); }

.photo-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: all .25s; display: flex; flex-direction: column; }
.photo-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.photo-card .thumb { height: 210px; background-size: cover; background-position: center; }
.photo-card .body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.photo-card .meta { font-size: .78rem; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.photo-card h3 { font-size: 1.12rem; margin-bottom: .55rem; }
.photo-card p { color: var(--muted); font-size: .92rem; margin-bottom: 0; }

/* ---------- Faculty tiles ---------- */
.faculty-tile { display: flex; gap: 1rem; align-items: flex-start; padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--border); transition: all .25s; color: var(--text); }
.faculty-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); color: var(--text); }
.faculty-tile .badge { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--primary); color: var(--accent-soft); font-family: var(--serif); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .78rem; letter-spacing: .02em; }
.faculty-tile h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.faculty-tile p { font-size: .88rem; color: var(--muted); margin: 0; }

.faculty-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; scroll-margin-top: 110px; }
.faculty-block header { background: var(--primary); color: var(--white); padding: 1.25rem 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.faculty-block header h3 { color: var(--white); font-size: 1.3rem; }
.faculty-block header span { background: var(--accent); color: var(--white); font-size: .78rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.faculty-block .inner { padding: 1.5rem 1.75rem; }
.faculty-block .inner > p { color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); }
th { background: var(--primary-light); color: var(--primary); text-align: left; padding: .85rem 1rem; font-weight: 700; white-space: nowrap; }
td { padding: .8rem 1rem; border-top: 1px solid var(--border); vertical-align: top; }
tr:hover td { background: #fafbfe; }
.pill { display: inline-block; padding: .15rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.pill-a { background: #dcfce7; color: #166534; }
.pill-b { background: var(--primary-light); color: var(--primary); }
.pill-u { background: var(--accent-light); color: var(--accent-dark); }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-img { border-radius: var(--radius); min-height: 400px; background-size: cover; background-position: center; box-shadow: var(--shadow-lg); position: relative; }
.split-img .tag { position: absolute; left: -18px; bottom: 28px; background: var(--accent); color: var(--white); padding: 1rem 1.25rem; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: .9rem; }
.split-img .tag strong { display: block; font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .75rem; }
.check-list li::before { content: ''; position: absolute; left: 0; top: .3rem; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-light); }
.check-list li::after { content: ''; position: absolute; left: 7px; top: calc(.3rem + 5px); width: 5px; height: 9px; border: solid var(--accent-dark); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* ---------- Rector message ---------- */
.rector { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.rector-photo { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, var(--primary), var(--primary-dark)); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--accent-soft); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.rector-photo::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(var(--accent-soft-rgb),.35); border-radius: 10px; }
.rector-photo svg { width: 110px; height: 110px; opacity: .9; }
.rector-photo span { margin-top: 1rem; font-family: var(--serif); font-size: 1.1rem; color: var(--white); }
.quote { font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: var(--primary); border-left: 4px solid var(--accent); padding-left: 1.25rem; margin: 1.25rem 0 1.5rem; line-height: 1.5; }
.signature strong { display: block; font-family: var(--serif); color: var(--primary); font-size: 1.1rem; }
.signature small { color: var(--muted); }

/* ---------- People ---------- */
.person { text-align: center; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem 1.25rem; }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; background: linear-gradient(135deg, var(--primary), var(--primary-mid)); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; border: 4px solid var(--accent-light); }
.person h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.person p { color: var(--muted); font-size: .88rem; margin: 0; }
.person .role { color: var(--accent-dark); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.org-chart { text-align: center; }
.org-level { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; position: relative; }
.org-box { background: var(--white); border: 2px solid var(--primary); color: var(--primary); padding: .75rem 1.25rem; border-radius: 10px; font-weight: 600; font-size: .9rem; min-width: 180px; }
.org-box.top { background: var(--primary); color: var(--white); }
.org-box.gold { border-color: var(--accent); color: var(--accent-dark); }
.org-line { width: 2px; height: 22px; background: var(--accent); margin: -0.5rem auto .75rem; }

/* ---------- Timeline / steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.25rem 1.5rem 1.5rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -20px; left: 1.5rem; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--white); font-family: var(--serif); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(var(--accent-rgb),.4); }
.step h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }
.timeline { position: relative; padding-left: 2rem; border-left: 3px solid var(--primary-light); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-item::before { content: ''; position: absolute; left: calc(-2rem - 9px); top: .35rem; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent); }
.timeline-item .year { font-family: var(--serif); font-weight: 700; color: var(--accent-dark); font-size: 1.1rem; }
.timeline-item h3 { font-size: 1.1rem; margin: .2rem 0 .4rem; }
.timeline-item p { color: var(--muted); margin: 0; }

/* ---------- Agenda ---------- */
.agenda-item { display: flex; gap: 1.1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-date { flex-shrink: 0; width: 64px; text-align: center; background: var(--primary); color: var(--white); border-radius: 10px; padding: .5rem 0; line-height: 1.1; }
.agenda-date strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--accent-soft); }
.agenda-date small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.agenda-item h4 { font-family: var(--sans); font-size: .98rem; margin-bottom: .2rem; color: var(--text); }
.agenda-item p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: .85rem; overflow: hidden; }
.faq summary { padding: 1.1rem 1.4rem; font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-dark); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding: 1rem 1.4rem 1.2rem; color: var(--muted); margin: 0; }

/* ---------- Values / misi ---------- */
.vision-box { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border-radius: var(--radius); padding: 3rem; text-align: center; position: relative; overflow: hidden; }
.vision-box::before { content: '\201C'; position: absolute; top: -30px; left: 24px; font-family: var(--serif); font-size: 12rem; color: rgba(var(--accent-soft-rgb),.15); line-height: 1; }
.vision-box h2 { color: var(--accent-soft); font-size: 1.1rem; letter-spacing: .2em; text-transform: uppercase; font-family: var(--sans); margin-bottom: 1rem; }
.vision-box p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.5; margin: 0; position: relative; }
.numbered li { display: flex; gap: 1.1rem; padding: 1.1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: 12px; margin-bottom: .85rem; }
.numbered li b { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; font-family: var(--serif); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background-size: cover; background-position: center; padding: 5rem 0; color: var(--white); text-align: center; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: rgba(var(--primary-dark-rgb),.88); }
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 640px; margin: 0 auto 2rem; }
.cta-band .btn-group { justify-content: center; }

/* ---------- Notice ---------- */
.notice { display: flex; gap: 1rem; background: var(--accent-light); border: 1px solid rgba(var(--accent-rgb),.35); border-left: 5px solid var(--accent); border-radius: 12px; padding: 1.25rem 1.5rem; color: var(--accent-dark); }
.notice svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--accent-dark); }
.notice p { margin: 0; }

/* ---------- Contact ---------- */
.contact-info .item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info .ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--primary); color: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.contact-info .ic svg { width: 22px; height: 22px; }
.contact-info h4 { font-family: var(--sans); font-size: .95rem; margin-bottom: .15rem; }
.contact-info p { margin: 0; color: var(--muted); }
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: .75rem 1rem; border: 1px solid var(--border); border-radius: 10px; font-family: inherit; font-size: .95rem; background: #fbfcfe; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.15); }
.map-frame { width: 100%; height: 380px; border: 0; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.65); padding-top: 4rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer li { margin-bottom: .55rem; }
.footer-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer-brand strong { color: var(--white); font-family: var(--serif); font-size: 1.15rem; line-height: 1.2; }
.footer-contact li { display: flex; gap: .6rem; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .3rem; color: var(--accent); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; }
.footer-social a:hover { background: var(--accent); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0; font-size: .82rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------- Helpers ---------- */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.lead-text { font-size: 1.08rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow-lg); padding: 1rem 20px 1.5rem; max-height: 75vh; overflow-y: auto; }
    .main-nav.open { display: block; }
    .main-nav > ul { flex-direction: column; align-items: stretch; }
    .nav-group ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; padding: 0 0 0 1rem; min-width: 0; }
    .main-nav .nav-cta { margin: .5rem 0 0; text-align: center; }
    .mobile-toggle { display: block; }
    .site-header .container { position: relative; }
}
@media (max-width: 960px) {
    .hero .container, .split, .rector, .grid-2 { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .stats-strip > div:nth-child(2) { border-right: 0; }
    .rector-photo { max-width: 320px; }
    .split-img .tag { left: 16px; }
}
@media (max-width: 640px) {
    section { padding: 3.5rem 0; }
    .hero { min-height: 0; padding: 4rem 0 6rem; }
    .grid-3, .grid-4, .steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
    .utility-links { display: none; }
    .brand-text strong { font-size: 1rem; }
    .brand-crest { width: 44px; height: 44px; }
    .vision-box { padding: 2rem 1.5rem; }
    .split-img { min-height: 280px; }
}

/* ---------- Crest (logo) colors follow theme ---------- */
.c-primary { fill: var(--primary); }
.c-accent { fill: var(--accent); }
.c-soft { fill: var(--accent-soft); }
.s-primary { stroke: var(--primary); }
.s-accent { stroke: var(--accent); }

:root {
    --primary: #7f1d1d;
    --primary-dark: #450a0a;
    --primary-light: #fbeaea;
    --primary-mid: #9f2a2a;
    --accent: #c8962e;
    --accent-dark: #a67a1f;
    --accent-light: #fbf3e2;
    --accent-soft: #f5d68f;
    --bg-section: #fcf6f6;
    --primary-rgb: 127, 29, 29;
    --primary-dark-rgb: 69, 10, 10;
    --accent-rgb: 200, 150, 46;
    --accent-soft-rgb: 245, 214, 143;
}
