:root {
  --red: #c40000;
  --red-dark: #8d0000;
  --red-bright: #e10a0a;
  --red-soft: #f5d8d8;
  --black: #090909;
  --black-2: #121212;
  --black-3: #1b1b1b;
  --white: #fff;
  --cream: #f7f2dc;
  --text: #171717;
  --muted: #686868;
  --line: #dedede;
  --shadow: 0 20px 50px rgba(0,0,0,.16);
  --radius: 18px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--text); background: #fff; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.mcm-banner { position: relative; height: 158px; overflow: hidden; background: #b40000; border-bottom: 8px solid #090909; }
.banner-rays { position: absolute; inset: 0; background: repeating-conic-gradient(from -12deg at 50% 110%, rgba(255,255,255,.09) 0deg 1.3deg, transparent 1.3deg 4deg), linear-gradient(90deg, #a70000, #ca0000 50%, #a70000); }
.mcm-logo { position: absolute; z-index: 3; top: 0; left: 50%; width: min(360px, 85vw); height: 150px; transform: translateX(-50%); object-fit: contain; background: #fff; }
.navbar { background: var(--black); color: #fff; border-bottom: 3px solid var(--red); position: sticky; top: 0; z-index: 20; }
.nav-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 1px; }
.brand img { width: 88px; height: 48px; object-fit: contain; background: #fff; }
.brand span { font-size: .95rem; }
.brand strong { display: block; font-size: .62rem; color: #e9e9e9; letter-spacing: 2px; margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 10px 13px; border-radius: 7px; font-weight: 700; font-size: .9rem; }
.nav-links a:hover { background: rgba(255,255,255,.08); }
.admin-link { border: 1px solid rgba(255,255,255,.25); color: #fff; }
.menu-toggle { display: none; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; padding: 7px 10px; cursor: pointer; }
.hero { position: relative; overflow: hidden; color: #fff; background: var(--black); min-height: 500px; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 50%, rgba(196,0,0,.5), transparent 38%), linear-gradient(110deg, #060606 0%, #151515 55%, #6f0000 100%); }
.hero-pattern { position: absolute; inset: 0; opacity: .17; background: repeating-linear-gradient(115deg, transparent 0 28px, rgba(255,255,255,.25) 29px 30px); clip-path: polygon(55% 0,100% 0,100% 100%,30% 100%); }
.hero-grid { position: relative; z-index: 2; min-height: 500px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; gap: 60px; }
.hero-copy { padding: 65px 0; }
.eyebrow, .section-tag { display: inline-block; color: var(--red-bright); font-size: .72rem; font-weight: 900; letter-spacing: 2.5px; text-transform: uppercase; }
.hero .eyebrow { color: #ffb0b0; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.8rem); line-height: .93; letter-spacing: -3px; margin: 16px 0 25px; text-transform: uppercase; }
.hero h1 em { color: #ef2020; font-style: normal; }
.hero p { max-width: 650px; color: #ddd; font-size: 1.12rem; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { min-height: 48px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-weight: 900; border: 2px solid transparent; cursor: pointer; transition: .2s ease; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 10px 25px rgba(196,0,0,.25); }
.btn-red:hover { background: var(--red-bright); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.65); color: #fff; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-white { background: #fff; color: #111; }
.hero-card { width: min(100%, 330px); justify-self: end; padding: 35px; border: 1px solid rgba(255,255,255,.2); border-top: 5px solid var(--red); background: rgba(0,0,0,.48); box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.hero-card-top { font-size: 4rem; font-weight: 1000; line-height: 1; letter-spacing: -4px; }
.hero-card-title { color: #fff; font-weight: 900; text-transform: uppercase; letter-spacing: 3px; font-size: 1rem; }
.hero-card p { font-size: .82rem; color: #cfcfcf; margin: 20px 0; }
.belt-line { display: flex; gap: 5px; }
.belt-line span { height: 7px; flex: 1; background: #fff; }
.belt-line span:first-child { background: #111; border: 1px solid #555; }
.belt-line span:nth-child(2) { background: var(--red); }
.quick-stats { background: var(--red); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { min-height: 104px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; border-right: 1px solid rgba(255,255,255,.22); }
.stat:first-child { border-left: 1px solid rgba(255,255,255,.22); }
.stat strong { font-size: 1.4rem; opacity: .7; }
.stat span { font-size: .86rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; }
.section { padding: 88px 0; }
.about-section { background: #fff; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.section-heading-left h2, .section-heading-row h2, .contact-box h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -1.5px; margin: 10px 0 20px; }
.section-heading-left h2 span { color: var(--red); }
.red-rule { width: 70px; height: 5px; background: var(--red); }
.about-copy .lead { margin: 0 0 32px; color: #4e4e4e; font-size: 1.1rem; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.values-grid article { padding: 22px; background: #fff; }
.values-grid article > span { color: var(--red); font-weight: 900; font-size: .75rem; }
.values-grid h3 { margin: 7px 0 4px; font-size: 1.08rem; text-transform: uppercase; }
.values-grid p { color: var(--muted); font-size: .9rem; margin: 0; }
.news-section { background: #f4f4f4; border-top: 1px solid #e3e3e3; }
.useful-links-section { background: #fff; }
.useful-links-section h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.02; letter-spacing: -1.5px; margin: 10px 0 28px; }
.useful-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.useful-link-card { min-height: 155px; padding: 26px; display: flex; flex-direction: column; gap: 10px; background: #111; color: #fff; border-left: 5px solid var(--red); transition: transform .2s ease, background .2s ease; }
.useful-link-card:hover { background: var(--red); transform: translateY(-3px); }
.useful-link-card strong { font-size: 1.1rem; text-transform: uppercase; }
.useful-link-card span { color: #d0d0d0; font-size: .9rem; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.section-heading-row h2 { margin-bottom: 8px; }
.section-heading-row p { color: var(--muted); margin: 0; }
.filters { display: flex; gap: 9px; min-width: 390px; }
input, select, textarea { width: 100%; color: #1a1a1a; background: #fff; border: 1px solid #ccc; border-radius: 8px; padding: 12px 13px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,0,0,.08); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { background: #fff; border: 1px solid #ddd; border-top: 4px solid var(--red); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,.06); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-image, .post-placeholder { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #171717 0 8px, #202020 8px 16px); color: #fff; font-size: 1.1rem; font-weight: 1000; letter-spacing: 3px; }
.post-body { padding: 21px; }
.post-meta { color: var(--red); font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1.5px; }
.post-card h3 { margin: 8px 0; line-height: 1.2; font-size: 1.3rem; }
.post-card p { color: #666; margin: 0; white-space: pre-wrap; }
.post-date { margin-top: 15px; color: #999; font-size: .78rem; }
.loading, .empty { grid-column: 1 / -1; text-align: center; padding: 55px; color: #777; }
.contact-section { padding: 80px 0; background: var(--black); color: #fff; }
.supporters-section { padding: 38px 0; background: #fff; border-top: 1px solid var(--line); }
.supporters-section p { margin: 6px 0 0; color: var(--muted); }
.contact-box { position: relative; overflow: hidden; padding: 48px 55px; display: flex; align-items: center; justify-content: space-between; gap: 35px; background: linear-gradient(100deg, #0d0d0d, #1b1b1b); border-left: 7px solid var(--red); }
.contact-box::after { content: 'MCM'; position: absolute; right: -12px; bottom: -60px; color: rgba(255,255,255,.025); font-size: 13rem; font-weight: 1000; line-height: 1; pointer-events: none; }
.contact-box h2 { margin: 8px 0 10px; position: relative; z-index: 1; }
.contact-box p { color: #bdbdbd; margin: 0; position: relative; z-index: 1; }
.contact-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 2; }
footer { background: #050505; color: #fff; border-top: 4px solid var(--red); }
.footer-content { min-height: 125px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 92px; height: 48px; object-fit: contain; background: #fff; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand strong { font-size: .88rem; letter-spacing: 1.2px; }
.footer-brand span { color: #999; font-size: .72rem; margin-top: 3px; }
.footer-copy { display: flex; align-items: center; gap: 20px; color: #999; font-size: .78rem; }
.footer-copy a { color: #fff; font-weight: 800; }
.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; }
.hidden { display: none !important; }
.teachers-section { background: #fff; border-top: 1px solid var(--line); }
.teachers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.teacher-card { overflow: hidden; background: #fff; border: 1px solid #ddd; border-top: 4px solid var(--red); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,0,0,.06); }
.teacher-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #eee; }
.teacher-placeholder { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #171717 0 8px, #202020 8px 16px); color: #fff; font-size: 2rem; font-weight: 1000; letter-spacing: 3px; }
.teacher-info { padding: 20px; }
.teacher-graduation { color: var(--red); font-size: .75rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.teacher-info h3 { margin: 5px 0 8px; font-size: 1.3rem; }
.teacher-info p { margin: 0; color: var(--muted); white-space: pre-wrap; }
.portfolio-section { background: #f4f4f4; border-top: 1px solid #e3e3e3; }
.book-viewer { position: relative; max-width: 1000px; margin: 0 auto; padding: 18px 18px 18px 30px; background: linear-gradient(90deg, #252525, #101010 28px, #e8e4da 29px, #fff 44px); border-radius: 8px; box-shadow: 0 24px 55px rgba(0,0,0,.24); }
.book-viewer iframe { display: block; width: 100%; height: min(78vh, 850px); min-height: 480px; border: 0; background: #fff; }
.book-spine { position: absolute; z-index: 1; inset: 12px auto 12px 12px; width: 17px; background: linear-gradient(90deg, #111, #555 45%, #222); border-radius: 4px 0 0 4px; pointer-events: none; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-card { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 35px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .useful-links-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr 1fr; }
  .section-heading-row { align-items: stretch; flex-direction: column; }
  .filters { min-width: 0; }
}
@media (max-width: 700px) {
  .mcm-banner { height: 125px; }
  .mcm-logo { width: min(300px, 82vw); height: 118px; }
  .nav-inner { min-height: 64px; }
  .brand span { display: none; }
  .brand img { width: 80px; height: 44px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 12px 20px 18px; background: #090909; border-bottom: 3px solid var(--red); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .hero, .hero-grid { min-height: 490px; }
  .hero h1 { letter-spacing: -2px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 85px; }
  .posts-grid { grid-template-columns: 1fr; }
  .teachers-grid { grid-template-columns: 1fr; }
  .book-viewer { padding: 14px 14px 14px 24px; }
  .book-viewer iframe { min-height: 420px; height: 70vh; }
  .filters { flex-direction: column; }
  .contact-box { padding: 35px 28px; flex-direction: column; align-items: flex-start; }
  .footer-content, .footer-copy { flex-direction: column; text-align: center; justify-content: center; padding: 20px 0; }
  .footer-copy { gap: 8px; }
}
