:root {
    --orange: #f88b00;
    --orange-deep: #ff4d00;
    --red: #cb0234;
    --magenta: #f2295b;
    --gold: #d3b574;
    --ink: #272629;
    --navy: #16163f;
    --muted: #5e5c63;
    --line: #eadfdf;
    --paper: #fffdfb;
    --soft: #f6f1ec;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(39, 38, 41, 0.08);
    --max: 1140px;
    --serif: "Merriweather", Georgia, serif;
    --sans: "Poppins", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.3; margin: 0 0 0.6rem; }
p { margin: 0 0 1rem; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -40px;
    background: var(--navy);
    color: white;
    padding: 0.5rem 0.8rem;
    z-index: 20;
}
.skip-link:focus { top: 0.5rem; }

.topbar {
    background: linear-gradient(110deg, var(--orange-deep) 41%, var(--red) 100%);
    color: white;
    font-size: 0.86rem;
}
.topbar a { color: white; text-decoration: none; }
.topbar-inner, .hrd-strip-inner, .footer-bottom-inner, .nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar-contacts, .social, .footer-list, .site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.topbar-contacts, .social { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; }
.social { gap: 0.45rem; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.social-icon svg { width: 15px; height: 15px; display: block; }
.social-icon:hover { background: white; color: var(--red); }
.topbar-inner { min-height: 42px; }

.identity { background: white; padding: 1.1rem 0 0.8rem; }
.identity-grid {
    display: grid;
    grid-template-columns: 140px 1fr 140px;
    gap: 1.2rem;
    align-items: center;
}
.portrait { width: 100%; object-fit: contain; }
.identity-text { text-align: center; }
.invocation { letter-spacing: 0.08em; color: var(--red); font-weight: 600; margin-bottom: 0.2rem; }
.trust { margin: 0; color: var(--navy); font-weight: 600; }
.college {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    margin: 0.2rem 0;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.accredit, .place { color: var(--muted); font-size: 0.92rem; margin: 0.15rem 0; }

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 30;
    background: white;
    border-top: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(22, 22, 63, 0.06);
}
.nav-bar { min-height: 78px; }
.brand img { width: 210px; height: auto; }
.site-nav > ul { display: flex; align-items: center; gap: 0.15rem; }
.site-nav a {
    display: block;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.7rem 0.55rem;
}
.site-nav > ul > li > a { position: relative; }
.site-nav > ul > li > a[aria-current="page"],
.site-nav > ul > li > a:hover {
    color: var(--red);
}
.site-nav > ul > li > a[aria-current="page"]::after,
.site-nav > ul > li > a:hover::after {
    content: "";
    position: absolute;
    left: 0.55rem;
    right: 0.55rem;
    bottom: 0.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), var(--red));
}
.has-sub { position: relative; }
.has-sub > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 0.4rem;
    z-index: 5;
}
.has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
.has-sub > ul a { border-radius: 8px; }
.has-sub > ul a:hover { background: var(--soft); }
.btn {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 0.7rem 1.1rem;
    font: 600 0.92rem var(--sans);
    text-decoration: none;
    cursor: pointer;
}
.btn-apply, .btn-primary {
    background: linear-gradient(120deg, var(--orange) 0%, var(--magenta) 100%);
    color: white;
}
.btn-apply:hover, .btn-primary:hover { color: white; filter: brightness(1.05); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    height: 2px;
    width: 18px;
    background: var(--ink);
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.hrd-strip { background: var(--navy); color: white; font-size: 0.9rem; }
.hrd-strip a { color: var(--gold); text-decoration: none; }
.hrd-strip-inner { min-height: 52px; flex-wrap: wrap; padding: 0.45rem 0; }
.search-form { display: flex; margin-left: auto; }
.search-form input, .form-grid input, .form-grid textarea {
    border: 1px solid #d9d2cc;
    border-radius: 8px 0 0 8px;
    padding: 0.45rem 0.7rem;
    font: inherit;
}
.search-form button {
    border: 0;
    background: var(--gold);
    color: var(--navy);
    font-weight: 600;
    border-radius: 0 8px 8px 0;
    padding: 0 0.8rem;
    cursor: pointer;
}

.hero {
    position: relative;
    min-height: 68vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: white;
    background: #1a1a1a;
    padding: 4rem 1rem;
    overflow: hidden;
}
.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}
.hero-inner { position: relative; max-width: 900px; }
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: capitalize;
}
.hero p { font-size: 1.05rem; }

.section { padding: 4rem 0; }
.section-soft { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 2rem; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.kicker { color: var(--orange-deep); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: -3rem;
    position: relative;
}
.stat {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
    padding: 1.4rem 0.8rem;
}
.stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--red);
    font-family: var(--serif);
    line-height: 1;
}
.stat span { color: var(--muted); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem; align-items: center; }
.prose p:last-child { margin-bottom: 0; }

.slider { position: relative; }
.slides { overflow: hidden; border-radius: 18px; background: #111; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide img { width: 100%; max-height: 560px; object-fit: contain; background: #111; margin: 0 auto; }
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
}
.slider-btn.prev { left: 0.6rem; }
.slider-btn.next { right: 0.6rem; }

.cards, .video-grid, .mou-grid, .gallery-grid, .analytics-grid {
    display: grid;
    gap: 1rem;
}
.cards, .video-grid { grid-template-columns: repeat(4, 1fr); }
.event-card, .video-card, .mou-card, .info-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.event-card img { width: 100%; height: 160px; object-fit: cover; }
.event-card div, .video-card, .mou-card, .info-card { padding: 1rem; }
.event-card h3, .video-card h3 { font-size: 1.05rem; }
.video-grid { grid-template-columns: repeat(3, 1fr); }
.video-card { min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, #fff, #fff4ea); }
.play {
    align-self: flex-start;
    border: 0;
    background: var(--navy);
    color: white;
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    cursor: pointer;
    font: 600 0.85rem var(--sans);
}
.video-frame { aspect-ratio: 16/9; background: #111; border-radius: 12px; overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

.page-hero {
    background: linear-gradient(120deg, #2a120c 0%, var(--red) 70%, var(--orange) 130%);
    color: white;
    padding: 3.2rem 0;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { margin: 0; opacity: 0.9; }
.page { padding: 3rem 0 4rem; }
.page-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 2rem; align-items: start; }
.panel { background: white; border-radius: 16px; box-shadow: var(--shadow); padding: 1.2rem; }
.team-role { color: var(--red); font-weight: 600; }

.faq details {
    background: white;
    border-radius: 12px;
    margin-bottom: 0.7rem;
    box-shadow: var(--shadow);
    padding: 0.2rem 1rem;
}
.faq summary { cursor: pointer; font-weight: 600; padding: 0.8rem 0; }
.gallery-grid { grid-template-columns: repeat(3, 1fr); }
.gallery-grid button {
    border: 0;
    padding: 0;
    background: #111;
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
}
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; }
.mou-grid { grid-template-columns: repeat(3, 1fr); }
.mou-card h2 { font-size: 1.3rem; }
.analytics-grid { grid-template-columns: 1fr 1fr; }
.analytics-grid figure, .figure {
    margin: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.analytics-grid figcaption, .figure figcaption { padding: 0.8rem 1rem 1rem; color: var(--muted); }

.form-grid { display: grid; gap: 0.8rem; }
.form-grid label { font-weight: 600; font-size: 0.92rem; }
.form-grid input, .form-grid textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d9d2cc;
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 10px; padding: 0.8rem 1rem; margin-bottom: 1rem; }
.alert-ok { background: #e8f7ee; color: #0f6b32; }
.alert-bad { background: #fdecef; color: #9d1230; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 0.45rem; }

.site-footer { background: var(--navy); color: #f3efe9; padding-top: 3rem; }
.site-footer h2 { color: var(--gold); font-size: 1.25rem; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 1.5rem; }
.footer-logo { width: min(100%, 280px); background: white; border-radius: 10px; padding: 0.4rem; }
.footer-list li { margin-bottom: 0.35rem; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0; font-size: 0.9rem; }
.missing-media {
    display: grid;
    place-items: center;
    min-height: 140px;
    background: repeating-linear-gradient(45deg, #f3ece4, #f3ece4 10px, #efe4d8 10px, #efe4d8 20px);
    color: var(--muted);
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
}
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    display: none;
    place-items: center;
    z-index: 50;
    padding: 1rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-width: min(1000px, 100%); max-height: 88vh; }
.lightbox button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 0;
    background: white;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

@media (max-width: 980px) {
    .identity-grid { grid-template-columns: 90px 1fr 90px; }
    .stats, .cards, .footer-grid { grid-template-columns: 1fr 1fr; }
    .video-grid, .gallery-grid, .mou-grid, .page-layout, .split { grid-template-columns: 1fr; }
    .nav-toggle { display: grid; place-items: center; }
    .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: white; border-top: 1px solid var(--line); padding: 0.5rem 1rem 1rem; }
    .site-nav.is-open { display: block; }
    .site-nav > ul { flex-direction: column; align-items: stretch; }
    .has-sub > ul { position: static; display: block; box-shadow: none; padding-left: 0.6rem; }
    .btn-apply { display: none; }
    .search-form { width: 100%; margin-left: 0; }
    .search-form input { flex: 1; }
}
@media (max-width: 640px) {
    .identity-grid { grid-template-columns: 1fr; }
    .portrait { max-width: 160px; margin: 0 auto; }
    .stats, .cards, .footer-grid, .analytics-grid { grid-template-columns: 1fr; }
    .topbar-inner { align-items: flex-start; flex-direction: column; padding: 0.45rem 0; }
    .footer-bottom-inner { flex-direction: column; }
}
