/* MoUs page only. Shared header and footer styles remain unchanged. */
:root {
    --mou-container: min(1640px, calc(100% - 48px));
    --mou-blue: var(--primary-deep, #174f82);
    --mou-dark: #0b3154;
    --mou-muted: #657788;
    --mou-line: #dce8f3;
}

.mou-container {
    width: 100%;
    max-width: 1640px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2cm;
    box-sizing: border-box;
}

/* Exact 12 cm desktop hero */
.mou-hero {
    position: relative;
    height: 12cm;
    min-height: 12cm;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #082e50 url('../img/hero-slide-3.jpg') center / cover no-repeat;
}

.mou-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 36, 65, .84), rgba(8, 36, 65, .42), rgba(8, 36, 65, .62));
}

.mou-hero-content {
    position: relative;
    z-index: 2;
    padding: 35px 70px;
    color: #fff;
    text-align: center;
}

.mou-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-sage, #b6d3e7);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .17em;
}

.mou-hero-content h1 {
    max-width: 1000px;
    margin: 0 auto 18px;
    color: #fff;
    font-family: var(--font-display, serif);
    font-size: clamp(2.35rem, 4.5vw, 4.25rem);
    font-weight: 500;
    line-height: 1.1;
}

.mou-hero-content p {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(255,255,255,.9);
    font-size: 1.05rem;
    line-height: 1.65;
    text-wrap: balance;
}

.mou-section {
    padding: 68px 0 84px;
    background: #f2f7fa;
}

.mou-section-heading {
    max-width: 800px;
    margin: 0 auto 34px;
    text-align: center;
}

.mou-section-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #7894aa;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .15em;
}

.mou-section-heading h2 {
    margin: 0 0 9px;
    color: var(--mou-dark);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    line-height: 1.2;
}

.mou-section-heading p {
    margin: 0;
    color: var(--mou-muted);
    font-size: .96rem;
    line-height: 1.6;
}

.mou-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.mou-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mou-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(15, 55, 88, .055);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.mou-card:hover {
    transform: translateY(-5px);
    border-color: #bfd5e9;
    box-shadow: 0 18px 40px rgba(15, 55, 88, .11);
}

.mou-card-image {
    height: 205px;
    flex: 0 0 205px;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf3fc, #dceaf6);
}

.mou-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform .35s ease;
}

.mou-card:hover .mou-card-image img { transform: scale(1.035); }

.mou-card-body {
    padding: 25px 23px 28px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.mou-card-year {
    width: fit-content;
    margin-bottom: 15px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(30,79,122,.1);
    color: var(--mou-blue);
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
}

.mou-card-title {
    min-height: 2.7em;
    margin: 0 0 15px;
    color: var(--mou-blue);
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 700;
}

.mou-card-meta {
    margin-bottom: 8px;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    color: var(--mou-muted);
    font-size: .83rem;
    line-height: 1.45;
}

.mou-card-meta.location { margin-bottom: 16px; }
.mou-card-meta i { margin-top: 3px; color: var(--mou-blue); text-align: center; }
.mou-card-desc { margin: 0; color: #4d5d69; font-size: .87rem; line-height: 1.62; }

#goTopBtn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #1a5fbd, #0d3d85);
    color: #fff;
    box-shadow: 0 7px 25px rgba(26,95,189,.35);
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: .25s ease;
}

#goTopBtn.visible { opacity: 1; pointer-events: auto; transform: none; }
.floating-cta .btn { width: 100%; }

@media (max-width: 1199px) {
    :root { --mou-container: min(1120px, calc(100% - 40px)); }
    .mou-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mou-card-image { height: 230px; flex-basis: 230px; }
}

@media (max-width: 767px) {
    :root { --mou-container: calc(100% - 32px); }
    .mou-hero { height: 380px; min-height: 380px; background-position: center; }
    .mou-hero-overlay { background: linear-gradient(180deg, rgba(8,36,65,.34), rgba(8,36,65,.75)); }
    .mou-hero-content { padding: 30px 6px; }
    .mou-eyebrow { font-size: .67rem; }
    .mou-hero-content h1 { margin-bottom: 12px; font-size: clamp(1.85rem, 9vw, 2.45rem); }
    .mou-hero-content p { max-width: 340px; font-size: .86rem; line-height: 1.5; }
    .mou-section { padding: 48px 0 64px; }
    .mou-section-heading { margin-bottom: 28px; }
    .mou-section-heading h2 { font-size: 1.75rem; }
    .mou-section-heading p { font-size: .87rem; }
    .mou-grid { grid-template-columns: 1fr; gap: 18px; }
    .mou-card { border-radius: 16px; }
    .mou-card-image { height: 210px; flex-basis: 210px; }
    .mou-card-body { padding: 23px 20px 25px; }
    .mou-card-title { min-height: 0; font-size: 1.04rem; }
    #goTopBtn { display: none !important; }
}

@media (max-width: 359px) {
    :root { --mou-container: calc(100% - 24px); }
    .mou-card-image { height: 190px; flex-basis: 190px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
