:root {
    --navy: #07385a;
    --blue: #0b5d8f;
    --sky: #e9f4fb;
    --teal: #108a7a;
    --gold: #d4a946;
    --ink: #1d2b36;
    --muted: #667784;
    --line: #dce7ee;
    --white: #fff;
    --shadow: 0 18px 50px rgba(10, 56, 86, .11);
    --radius: 22px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #f7fafc;
    line-height: 1.65
}

a {
    color: inherit;
    text-decoration: none
}

img {
    max-width: 100%;
    display: block
}

.container {
    width: min(1180px, calc(100% - 36px));
    margin: auto
}

.topbar {
    background: var(--navy);
    color: #dcebf4;
    font-size: 13px
}

.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0
}

.topbar a {
    color: #fff;
    font-weight: 700
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(7, 56, 90, .08)
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 84px
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2px solid #d9e7f0;
    background: #fff url('https://mris.in/assets/images/Logo.jpg') center/cover no-repeat;
    box-shadow: 0 6px 20px rgba(7, 56, 90, .12)
}

.brand-text strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
    letter-spacing: .01em
}

.brand-text span {
    display: block;
    color: var(--muted);
    font-size: 12px
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px
}

.nav>a,
.dropdown-toggle {
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #314956
}

.nav>a:hover,
.nav>a.active,
.nav-dropdown.active-group>.dropdown-toggle,
.dropdown-toggle:hover {
    background: var(--sky);
    color: var(--blue)
}

.nav-dropdown {
    position: relative
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer
}

.caret {
    font-size: 11px;
    transition: transform .2s ease
}

.dropdown-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 230px;
    padding: 9px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: .18s ease;
    z-index: 80
}

.dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #314956;
    white-space: nowrap
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    background: var(--sky);
    color: var(--blue)
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.nav-dropdown:hover .caret,
.nav-dropdown.open .caret {
    transform: rotate(180deg)
}

.menu-btn {
    display: none;
    border: 0;
    background: var(--sky);
    color: var(--navy);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 20px
}

.hero {
    background: linear-gradient(110deg, rgba(4, 38, 61, .94), rgba(8, 87, 124, .86)), url('https://mris.in/assets/images/banner3.jpg') center/cover no-repeat;
    color: white;
    min-height: 520px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden
}

.hero:after {
    content: "";
    position: absolute;
    right: -90px;
    top: -120px;
    width: 420px;
    height: 420px;
    border: 80px solid rgba(255, 255, 255, .06);
    border-radius: 50%
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 54px;
    align-items: center;
    padding: 76px 0
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    color: #cbe9f7
}

.hero h1 {
    font-size: clamp(40px, 5vw, 70px);
    line-height: 1.03;
    margin: 16px 0 20px;
    max-width: 820px
}

.hero p {
    max-width: 720px;
    font-size: 18px;
    color: #d7ebf6
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 800;
    border: 1px solid transparent
}

.btn-primary {
    background: var(--gold);
    color: #24333e
}

.btn-ghost {
    border-color: rgba(255, 255, 255, .45);
    color: white
}

.hero-card {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    backdrop-filter: blur(9px);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow)
}

.hero-card h3 {
    margin: 0 0 6px
}

.hero-card .stat {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px
}

.stat div {
    background: rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 18px
}

.stat b {
    font-size: 26px;
    display: block
}

.section {
    padding: 74px 0
}

.section.tight {
    padding: 46px 0
}

.section-title {
    max-width: 760px;
    margin-bottom: 30px
}

.section-title .kicker {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--teal)
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    margin: 8px 0 12px;
    color: var(--navy)
}

.section-title p {
    color: var(--muted);
    margin: 0
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 8px 26px rgba(17, 53, 75, .05)
}

.card h3 {
    margin: 4px 0 10px;
    color: var(--navy)
}

.icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--sky);
    display: grid;
    place-items: center;
    color: var(--blue);
    font-weight: 900;
    font-size: 20px
}

.page-hero {
    background: linear-gradient(110deg, #07385a, #0b6b8b);
    color: white;
    padding: 62px 0 54px
}

.breadcrumbs {
    font-size: 13px;
    color: #c9e0ec;
    margin-bottom: 10px
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 58px);
    margin: 0 0 8px
}

.page-hero p {
    color: #d5eaf4;
    max-width: 760px;
    margin: 0
}

.content {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow)
}

.content h2,
.content h3 {
    color: var(--navy)
}

.content ul,
.content ol {
    padding-left: 22px
}

.content li {
    margin: .45rem 0
}

.split {
    display: grid;
    grid-template-columns: 1fr .82fr;
    gap: 30px;
    align-items: start
}

.media-panel {
    min-height: 350px;
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(7, 56, 90, .1), rgba(16, 138, 122, .18)), url('https://mris.in/assets/images/Building.jpg') center/cover no-repeat;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden
}

.media-panel::after {
    content: "MRIS • Imphal";
    position: absolute;
    left: 18px;
    bottom: 18px;
    background: rgba(3, 30, 48, .76);
    color: white;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800
}

.vision {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px
}

.vision .card {
    background: #f8fcfe
}

.table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 850px
}

th,
td {
    padding: 14px 13px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    font-size: 14px
}

th {
    background: #eef7fb;
    color: var(--navy);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em
}

tr:last-child td {
    border-bottom: 0
}

.timeline {
    position: relative;
    margin-top: 10px
}

.timeline:before {
    content: "";
    position: absolute;
    left: 12px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #b7d8e7
}

.timeline-item {
    position: relative;
    padding-left: 42px;
    margin: 0 0 24px
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: 4px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 4px solid #fff;
    box-shadow: 0 0 0 1px #c8dce6
}

.timeline-item b {
    color: var(--navy);
    font-size: 17px
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #e7f3f8, #d4e9f0);
    border: 1px solid var(--line)
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.gallery-item span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    background: rgba(6, 42, 62, .78);
    color: white;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 26px
}

.contact-list {
    display: grid;
    gap: 14px
}

.contact-line {
    display: flex;
    gap: 13px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff
}

.contact-line b {
    display: block;
    color: var(--navy)
}

.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.form input,
.form textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbdce6;
    border-radius: 12px;
    font: inherit
}

.form textarea {
    grid-column: 1/-1;
    min-height: 140px
}

.footer {
    background: #062c46;
    color: #cfe0ea;
    margin-top: 30px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 34px;
    padding: 50px 0
}

.footer h4 {
    color: white;
    margin-top: 0
}

.footer a {
    display: block;
    padding: 3px 0;
    color: #d9e8ef
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 16px 0;
    font-size: 13px;
    color: #a9c0cd
}

.pill {
    display: inline-block;
    background: #e8f5f3;
    color: #0d6e62;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 12px
}

.notice {
    padding: 14px 16px;
    border-left: 4px solid var(--gold);
    background: #fff9e8;
    border-radius: 0 12px 12px 0;
    margin: 18px 0
}

.cta {
    background: linear-gradient(135deg, #0b5d8f, #0f8879);
    color: white;
    border-radius: 24px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.cta h3 {
    font-size: 28px;
    margin: 0
}

.objectives-grid .objective-card {
    display: flex;
    flex-direction: column;
    gap: 12px
}

.objective-card p {
    margin: 0;
    color: #405563
}

.mobile-only {
    display: none
}

@media(max-width:1020px) {
    .nav {
        position: absolute;
        left: 18px;
        right: 18px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: white;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 10px;
        border-radius: 18px;
        max-height: calc(100vh - 110px);
        overflow: auto
    }

    .nav.open {
        display: flex
    }

    .nav>a {
        padding: 12px
    }

    .nav-dropdown {
        width: 100%
    }

    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px;
        text-align: left
    }

    .dropdown-menu {
        position: static;
        min-width: 0;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid var(--line);
        border-radius: 0;
        margin: 4px 0 5px 15px;
        padding: 2px 0 2px 9px
    }

    .nav-dropdown.open .dropdown-menu {
        display: block
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none
    }

    .nav-dropdown.open:hover .dropdown-menu {
        display: block
    }

    .dropdown-menu a {
        white-space: normal;
        padding: 10px 12px
    }

    .menu-btn {
        display: block
    }

    .hero-grid,
    .split,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .hero-card {
        max-width: 580px
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid>div:first-child {
        grid-column: 1/-1
    }
}

@media(max-width:700px) {
    .topbar .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px
    }

    .brand-text span {
        display: none
    }

    .brand-mark {
        width: 48px;
        height: 48px
    }

    .header-row {
        min-height: 72px
    }

    .hero {
        min-height: auto
    }

    .hero-grid {
        padding: 58px 0
    }

    .hero h1 {
        font-size: 42px
    }

    .grid-2,
    .grid-3,
    .vision,
    .gallery,
    .form {
        grid-template-columns: 1fr
    }

    .section {
        padding: 54px 0
    }

    .content {
        padding: 22px
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .footer-grid>div:first-child {
        grid-column: auto
    }

    .form textarea {
        grid-column: auto
    }

    .cta {
        align-items: flex-start;
        flex-direction: column
    }

    .gallery {
        grid-template-columns: 1fr 1fr
    }

    .hero-card {
        display: none
    }
}

@media(max-width:460px) {
    .gallery {
        grid-template-columns: 1fr
    }

    .container {
        width: min(100% - 24px, 1180px)
    }
}