:root {
  --brand: #0f4c81;
  --brand-2: #1f7a8c;
  --ink: #0f172a;
  --muted: #516072;
  --bg: #f4f7fb;
  --card: #ffffff;
  --line: #dbe4ef;
  --dark: #08263f;
  --shadow: 0 18px 50px rgba(9, 30, 66, 0.08);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, Arial, sans-serif; color: var(--ink); background: #ffffff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(219,228,239,0.9); }
.topbar { background: #08263f; color: #ffffff; font-size: 13px; padding: 8px 0; }
.topbar a { color: #ffffff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.main-header { position: relative; z-index: 20; background: #ffffff; padding: 12px 0; }
.main-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: nowrap; }
.brand { display:flex; align-items:center; gap:14px; min-width:220px; max-width:260px; flex-shrink:0; }
.brand img { width:60px; height:60px; object-fit:contain; background:#fff; border-radius:14px; box-shadow:0 10px 30px rgba(9,30,66,0.08); padding:4px; }
.brand-copy, .brand > div { display:flex; flex-direction:column; }
.brand-name { display:block; font-size:16px; font-weight:800; line-height:1.1; color:#0f172a; }
.brand-tag { display:block; font-size:10px; line-height:1.35; color:var(--muted); max-width:170px; }
.nav-toggle { display:none; border:none; background:transparent; font-size:28px; cursor:pointer; }
.main-nav { flex:1; display:flex; justify-content:center; align-items:center; }
.main-nav > ul { list-style:none; display:flex; align-items:center; gap:18px; margin:0; padding:0; flex-wrap:nowrap; }
.main-nav li { position:relative; }
.main-nav a { font-size:13px; font-weight:700; color:#223245; text-decoration:none; white-space:nowrap; }
.main-nav a:hover, .text-link:hover { color: var(--brand); }
.main-nav .dropdown { position:absolute; top:calc(100% + 12px); left:0; min-width:240px; background:#ffffff; border-radius:16px; box-shadow:0 16px 40px rgba(0,0,0,0.12); padding:10px 0; display:none; z-index:50; list-style:none; margin:0; }
.main-nav .dropdown li { display:block; width:100%; margin:0; }
.main-nav .dropdown a { display:block; width:100%; padding:10px 16px; font-size:14px; font-weight:500; white-space:nowrap; }
.main-nav .dropdown a:hover { background:#f4f7fb; }
.has-dropdown:hover > .dropdown { display:block; }
.header-actions { display:flex; align-items:center; gap:10px; flex-shrink:0; }
.btn { display:inline-flex; align-items:center; justify-content:center; padding:14px 20px; border-radius:999px; font-weight:700; font-size:14px; transition:0.2s ease; }
.header-actions .btn { padding:12px 18px; font-size:14px; }
.btn-primary { background:var(--brand); color:#ffffff; }
.btn-primary:hover { background:#0b3d67; }
.btn-secondary { background:#ffffff; color:var(--ink); }
.btn-outline { border:1px solid var(--brand); color:var(--brand); background:transparent; }
.btn-outline:hover { background:#eef6ff; }

.hero-home { position:relative; overflow:hidden; margin-top:0; background:linear-gradient(135deg,#eff6ff 0%,#f8fbfe 65%,#edf7f9 100%); }
.hero-backdrop { position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,38,63,0.84), rgba(8,38,63,0.32)), url("/static/core/img/mmisu_banner.8d928364965f.jpg") center/cover no-repeat; clip-path: ellipse(72% 100% at 78% 0%); }
.hero-grid { position:relative; display:grid; grid-template-columns:1.3fr .8fr; gap:28px; padding:72px 0 54px; }
.hero-copy { color:#ffffff; padding:34px 0; max-width:700px; }
.eyebrow { display:inline-flex; margin-bottom:14px; text-transform:uppercase; letter-spacing:.12em; font-size:12px; font-weight:700; color:var(--brand-2); }
.hero-copy h1, .page-hero h1 { margin:0 0 14px; font-size:clamp(2.4rem, 5vw, 4.2rem); line-height:1.05; }
.hero-copy p { margin:0; font-size:18px; max-width:620px; color:rgba(255,255,255,0.92); }
.hero-meta { display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.hero-meta span { padding:10px 14px; border-radius:999px; background:rgba(255,255,255,0.12); backdrop-filter:blur(8px); border:1px solid rgba(255,255,255,0.18); font-size:14px; }
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; margin-top:26px; }
.hero-panel, .spotlight-box, .portal-card, .program-card, .profile-card, .news-card, .article-card, .guideline-card, .featured-band-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); }
.hero-panel { padding:26px; align-self:end; margin-top:70px; }
.hero-panel h3 { margin-top:0; font-size:1.2rem; }
.mini-links { display:grid; gap:12px; }
.mini-links a { display:block; padding:14px; border-radius:16px; background:#f6f9fc; border:1px solid #e6edf5; }
.mini-links span { display:block; font-size:14px; color:var(--muted); }
.hero-subnav { display:none !important; }

.section { padding:72px 0; }
.muted-bg { background:var(--bg); }
.dark-band { background:linear-gradient(135deg,#0b2238,#12395b); color:#ffffff; }
.featured-band { background:linear-gradient(135deg,#0b2238,#12395b); color:#ffffff; }
.featured-band-inner { display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:center; }
.featured-band-card { padding:28px; background:rgba(255,255,255,0.08); color:#ffffff; }
.page-hero { background:linear-gradient(180deg,#f7fbff,#edf4f9); border-bottom:1px solid var(--line); }
.page-hero.slim .container { padding:52px 0 34px; }
.page-hero p { color:var(--muted); max-width:760px; font-size:18px; }
.section-heading { margin-bottom:28px; }
.section-heading.center { text-align:center; max-width:850px; margin:0 auto 28px; }
.section-heading.between { display:flex; justify-content:space-between; gap:18px; align-items:end; }
.section-heading h2 { margin:0 0 8px; font-size:clamp(1.8rem,3vw,2.7rem); }
.section-heading p { margin:0; color:var(--muted); }
.section-heading.light p { color:rgba(255,255,255,0.78); }
.light-link { color:#ffffff; }
.portal-grid, .card-grid, .program-grid, .guideline-grid { display:grid; gap:18px; }
.portal-grid { grid-template-columns:repeat(4,1fr); }
.portal-grid-five { grid-template-columns:repeat(5,1fr); }
.card-grid.three-up, .program-grid { grid-template-columns:repeat(3,1fr); }
.guidelines-layout { display:grid; grid-template-columns:1fr 1fr; gap:28px; }
.guideline-grid { grid-template-columns:1fr 1fr; }
.guideline-grid-wide { grid-template-columns:repeat(4,1fr); }
.portal-card, .program-card, .profile-card, .news-card, .article-card, .guideline-card { padding:24px; }
.portal-card:hover { transform:translateY(-4px); border-color:var(--brand); }
.portal-card h3 { margin:0 0 10px; font-size:1.15rem; }
.portal-card p, .program-card p { margin:0 0 16px; color:var(--muted); }
.portal-card span { color:var(--brand); font-weight:700; }
.two-col { display:grid; grid-template-columns:1.1fr .9fr; gap:28px; align-items:center; }
.align-start { align-items:start; }
.spotlight-box { padding:28px; }
.spotlight-item { display:flex; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.spotlight-item:last-child { border-bottom:none; }
.program-card ul, .feature-list { margin:16px 0 0; padding-left:20px; }
.program-card li, .feature-list li { margin-bottom:10px; }
.avatar { width:56px; height:56px; border-radius:50%; background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#ffffff; display:grid; place-items:center; font-weight:800; font-size:22px; margin-bottom:16px; }
.profile-card h3 { margin:0 0 6px; }
.profile-card .role { color:var(--brand); font-weight:700; }
.news-date, .article-meta { color:var(--brand); font-weight:700; font-size:14px; }
.timeline { display:grid; gap:14px; }
.timeline-item { display:grid; grid-template-columns:150px 1fr; gap:18px; padding:18px 0; border-top:1px solid var(--line); }
.timeline-item:first-child { border-top:none; }
.time { font-weight:800; color:var(--brand); }
.content-layout { display:grid; grid-template-columns:1.3fr .7fr; gap:24px; align-items:start; }
.meeting-list { display:grid; gap:12px; }
.meeting-list a { padding:14px 16px; border-radius:16px; background:#ffffff; border:1px solid var(--line); box-shadow:var(--shadow); }
.text-link { font-weight:700; color:var(--brand); }
.lead { font-size:18px; color:#2a3a4d; }
.site-footer { background:#071825; color:rgba(255,255,255,0.86); padding-top:56px; }
.footer-grid { display:grid; grid-template-columns:1.2fr .8fr .8fr .9fr; gap:24px; }
.site-footer h3, .site-footer h4 { color:#ffffff; margin-top:0; }
.site-footer ul { list-style:none; padding:0; margin:0; display:grid; gap:10px; }
.footer-bottom { padding:18px 0 24px; margin-top:24px; border-top:1px solid rgba(255,255,255,0.12); font-size:14px; color:rgba(255,255,255,0.66); }
.muted { color:rgba(255,255,255,0.65); }

@media (max-width: 1400px) {
  .main-header-inner { flex-wrap:wrap; }
  .main-nav { order:3; width:100%; }
  .main-nav > ul { flex-wrap:wrap; justify-content:center; }
  .portal-grid-five { grid-template-columns:repeat(3,1fr); }
}
@media (max-width: 980px) {
  .hero-grid, .two-col, .content-layout, .footer-grid, .program-grid, .portal-grid, .card-grid.three-up, .guidelines-layout, .guideline-grid, .guideline-grid-wide, .featured-band-inner { grid-template-columns:1fr 1fr; }
  .content-layout { grid-template-columns:1fr; }
  .hero-backdrop { clip-path: ellipse(120% 100% at 50% 0%); }
}
@media (max-width: 760px) {
  .topbar-inner { flex-direction:column; align-items:flex-start; }
  .nav-toggle { display:block; }
  .main-nav { display:none; width:100%; }
  .main-nav.open { display:block; }
  .main-nav.open > ul { flex-direction:column; align-items:flex-start; gap:12px; padding-top:12px; }
  .main-nav .dropdown { position:static; display:block; min-width:auto; box-shadow:none; border-radius:0; padding:6px 0 0; background:transparent; }
  .main-nav .dropdown a { padding:8px 0 8px 14px; }
  .hero-grid, .two-col, .portal-grid, .portal-grid-five, .card-grid.three-up, .program-grid, .footer-grid, .guidelines-layout, .guideline-grid, .guideline-grid-wide, .featured-band-inner { grid-template-columns:1fr; }
  .timeline-item { grid-template-columns:1fr; gap:8px; }
  .brand-tag { max-width:240px; }
  .header-actions { width:100%; justify-content:flex-start; }
}
