/* Royal Media College site styles */
:root {
  --navy: #110A4F;
  --navy-deep: #0B0734;
  --violet: #3A2FA0;
  --yellow: #E4CE00;
  --yellow-hover: #F2DD1F;
  --ink: #14123A;
  --body: #3A3756;
  --muted: #4A4766;
  --soft: #F6F5FC;
  --tint: #EDEAFB;
  --line: #E6E4F2;
  --line-strong: #D7D4EA;
  --on-navy: #CFCBEE;
  --on-navy-muted: #B9B4E8;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body { font-family: 'Work Sans', sans-serif; color: var(--ink); background: #fff; }
.rmc a { color: inherit; text-decoration: none; }
.rmc-display { font-family: 'Fjalla One', sans-serif; font-weight: 400; letter-spacing: .01em; }
.rmc-wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.rmc-section { padding-top: 80px; padding-bottom: 80px; background: #fff; }
.rmc-soft { background: var(--soft); }
.rmc-dark { background: var(--navy); color: #fff; }
.rmc-darker { background: var(--navy-deep); color: #fff; }
.rmc-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.rmc-dark .rmc-eyebrow, .rmc-darker .rmc-eyebrow { color: var(--yellow); }
.rmc-lead { font-size: 17px; line-height: 1.65; color: var(--body); margin: 0; }
.rmc-dark .rmc-lead { color: var(--on-navy); }
.rmc-grid { display: grid; gap: 20px; }
.rmc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rmc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rmc-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rmc-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rmc-split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.rmc-split > * { min-width: 0; }

/* Headings with the growing underline */
.rmc-h2 { font-family: 'Fjalla One', sans-serif; font-weight: 400; font-size: 40px; line-height: 1.15; color: var(--navy); margin: 0 0 12px; transition: color .3s ease; }
.rmc-h2::after { content: ""; display: block; width: 48px; height: 3px; border-radius: 2px; background: var(--yellow); margin-top: 14px; transform-origin: left; transition: width .45s var(--ease); }
.rmc-h2.is-center { text-align: center; }
.rmc-h2.is-center::after { margin-left: auto; margin-right: auto; transform-origin: center; }
.rmc-h2:hover { color: var(--violet); }
.rmc-h2:hover::after { width: 120px; }
.rmc-dark .rmc-h2, .rmc-darker .rmc-h2 { color: #fff; }
.rmc-dark .rmc-h2:hover, .rmc-darker .rmc-h2:hover { color: var(--yellow); }

/* Buttons */
.rmc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 8px; font-weight: 600; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s, color .25s, border-color .25s; }
.rmc-btn-yellow { background: var(--yellow); color: var(--navy) !important; }
.rmc-btn-yellow:hover { background: var(--yellow-hover); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(228, 206, 0, .4); }
.rmc-btn-navy { background: var(--navy); color: #fff !important; }
.rmc-btn-navy:hover { background: var(--violet); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(17, 10, 79, .25); }
.rmc-btn-outline { border-color: var(--navy); color: var(--navy) !important; background: transparent; }
.rmc-btn-outline:hover { background: var(--navy); color: #fff !important; }
.rmc-btn-ghost { border-color: #6F68B8; color: #fff !important; background: transparent; }
.rmc-btn-ghost:hover { border-color: var(--yellow); color: var(--yellow) !important; }
.rmc-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Utility bar and navbar */
.rmc-topbar { background: var(--navy); color: #E7E5FA; font-size: 13px; }
.rmc-topbar .rmc-wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.rmc-topbar a:hover { color: var(--yellow); }
.rmc-topbar-links { display: flex; gap: 20px; }
.rmc-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--line); }
.rmc-header .rmc-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 12px; padding-bottom: 12px; }
.rmc-brand { display: flex; align-items: center; gap: 12px; }
.rmc-logo { position: relative; display: inline-flex; align-items: center; gap: 12px; color: #1090E8; }
.rmc-logo .rmc-logo-mark, .rmc-logo .rmc-image[data-auto-height] { height: 54px; width: auto; flex: none; }
.rmc-logo-text { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-left: 12px; border-left: 1.5px solid #1090E8; min-height: 48px; }
.rmc-logo-name { font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 21px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; }
.rmc-logo-sub { font-family: 'Work Sans', sans-serif; font-weight: 300; font-size: 14px; line-height: 1; letter-spacing: .55em; text-transform: uppercase; }
.rmc-logo.is-small .rmc-logo-mark, .rmc-logo.is-small .rmc-image[data-auto-height] { height: 40px; }
.rmc-logo.is-small .rmc-logo-name { font-size: 17px; }
.rmc-logo.is-small .rmc-logo-sub { font-size: 11px; }
@media (max-width: 640px) {
  .rmc-logo .rmc-logo-mark, .rmc-logo .rmc-image[data-auto-height] { height: 42px; }
  .rmc-logo-name { font-size: 16px; }
  .rmc-logo-sub { font-size: 10px; }
}
.rmc-toggle { margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--navy); display: none; align-items: center; justify-content: center; font-size: 20px; }
.rmc-menu { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.rmc-menu a:not(.rmc-btn) { position: relative; padding: 6px 0; transition: color .25s; }
.rmc-menu a:not(.rmc-btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.rmc-menu a:not(.rmc-btn):hover, .rmc-menu a.is-active { color: var(--violet); }
.rmc-menu a:not(.rmc-btn):hover::after, .rmc-menu a.is-active::after { transform: scaleX(1); }
.rmc-menu .rmc-btn { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Page hero */
.rmc-hero { background: var(--navy); color: #fff; }
.rmc-hero .rmc-wrap { padding-top: 64px; padding-bottom: 64px; }
.rmc-hero h1 { font-family: 'Fjalla One', sans-serif; font-weight: 400; font-size: 52px; line-height: 1.1; margin: 0 0 16px; }
.rmc-hero-copy > * { animation: rmc-rise .8s var(--ease) both; }
.rmc-hero-copy > *:nth-child(2) { animation-delay: .1s; }
.rmc-hero-copy > *:nth-child(3) { animation-delay: .2s; }
.rmc-hero-copy > *:nth-child(4) { animation-delay: .3s; }
.rmc-hero-copy > *:nth-child(5) { animation-delay: .4s; }
.rmc-hero-cover { position: relative; overflow: hidden; display: flex; align-items: center; min-height: 0; max-height: 460px; background: var(--navy); }
.rmc-hero-cover .rmc-hero-bg, .rmc-hero-cover .rmc-image[data-auto-height] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 30%; }
.rmc-hero-cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 7, 52, .88) 0%, rgba(17, 10, 79, .6) 42%, rgba(17, 10, 79, 0) 75%); }
.rmc-hero-cover > .rmc-wrap { position: relative; z-index: 2; width: 100%; padding-top: 44px; padding-bottom: 44px; }
.rmc-hero-cover h1 { font-size: 46px; margin-bottom: 12px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.rmc-hero-cover .rmc-lead { color: #fff; font-size: 16px; margin-bottom: 20px; }
.rmc-hero-cover .rmc-pill { margin-bottom: 12px; }
.rmc-hero-cover .rmc-deadline { margin-top: 20px; padding: 12px 16px; }
@media (max-width: 640px) {
  .rmc-hero-cover { max-height: none; }
  .rmc-hero-cover h1 { font-size: 32px; }
  .rmc-hero-cover::before { background: linear-gradient(180deg, rgba(11, 7, 52, .85) 0%, rgba(17, 10, 79, .75) 100%); }
  .rmc-hero-cover > .rmc-wrap { padding-top: 56px; padding-bottom: 56px; }
}
.rmc-crumbs { font-size: 13px; color: var(--on-navy-muted); margin-bottom: 14px; }
.rmc-crumbs a:hover { color: var(--yellow); }
.rmc-pill { display: inline-block; background: rgba(228, 206, 0, .16); color: var(--yellow); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.rmc-home-hero h1 { font-size: 60px; line-height: 1.08; }
.rmc-home-hero .rmc-lead { font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.rmc-deadline { display: inline-flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 12px; background: rgba(255, 255, 255, .07); margin-top: 28px; }
.rmc-deadline strong { font-family: 'Fjalla One', sans-serif; font-weight: 400; font-size: 32px; color: var(--yellow); }
.rmc-deadline span { font-size: 14px; line-height: 1.4; color: #E7E5FA; }
.rmc-media { border-radius: 20px; overflow: hidden; background: #1E1670; }
.rmc-media img, .rmc-media video, .rmc-media .rmc-image[data-auto-height] { display: block; width: 100%; height: 100%; object-fit: cover; }
.rmc-hero .rmc-lead { color: var(--on-navy); }

/* Cards */
.rmc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.rmc-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(17, 10, 79, .16); border-color: var(--violet); }
.rmc-mono { width: 48px; height: 48px; flex: none; border-radius: 12px; background: var(--navy); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 20px; transition: background .3s, color .3s, transform .45s var(--ease); }
.rmc-card:hover .rmc-mono { background: var(--yellow); color: var(--navy); transform: rotate(-8deg) scale(1.08); }
.rmc-card-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--navy); transition: color .3s; }
.rmc-card:hover .rmc-card-title { color: var(--violet); }
.rmc-tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--tint); color: var(--violet); transition: background .3s, color .3s; }
.rmc-card:hover .rmc-tag { background: var(--navy); color: #fff; }
.rmc-card-text { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }
.rmc-card-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--violet); transition: letter-spacing .3s; }
.rmc-card:hover .rmc-card-link { letter-spacing: .02em; }

.rmc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--body); }
.rmc-check i, .rmc-check svg { color: var(--violet); margin-top: 4px; flex: none; }

.rmc-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 16px; height: 48px; flex: 0 1 340px; min-width: 240px; color: #6B6890; transition: border-color .25s, box-shadow .25s; }
.rmc-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(58, 47, 160, .12); }
.rmc-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 15px; background: transparent; min-width: 0; color: var(--ink); }
.rmc-section-head { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; }
.rmc-empty { background: #fff; border: 1px dashed #C9C5E2; border-radius: 14px; padding: 40px; text-align: center; color: var(--muted); }

.rmc-chip { min-height: 44px; padding: 0 18px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; color: var(--navy); border: 1px solid var(--line-strong); transition: background .25s, color .25s, border-color .25s; }
.rmc-chip:hover { border-color: var(--navy); }
.rmc-chip[aria-pressed="true"], .rmc-chip[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Stats */
.rmc-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; transition: transform .35s var(--ease), box-shadow .35s; }
.rmc-stat:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(17, 10, 79, .12); }
.rmc-stat-value { font-family: 'Fjalla One', sans-serif; font-size: 56px; line-height: 1; color: var(--navy); transition: color .3s; }
.rmc-stat-line { display: block; width: 40px; height: 3px; background: var(--yellow); margin: 16px 0 10px; transition: width .45s var(--ease); }
.rmc-stat:hover .rmc-stat-value { color: var(--violet); }
.rmc-stat:hover .rmc-stat-line { width: 100px; }
.rmc-stat-label { font-size: 15px; color: var(--muted); }
.rmc-award { position: relative; background: var(--navy); color: #fff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; }
.rmc-award img, .rmc-award .rmc-image[data-auto-height] { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center top; transition: transform .6s var(--ease); }
.rmc-award:hover img { transform: scale(1.04); }
.rmc-award::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11, 7, 52, 0) 45%, rgba(11, 7, 52, .92) 100%); }
.rmc-award-caption { position: relative; z-index: 2; padding: 24px; }

/* Events */
.rmc-events { display: flex; flex-wrap: wrap; gap: 24px; }
.rmc-event-list { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rmc-event-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 52px; padding: 10px 16px; border-radius: 10px; border: 0; text-align: left; font: inherit; cursor: pointer; background: rgba(255, 255, 255, .06); color: #fff; transition: background .25s, color .25s, transform .3s var(--ease); }
.rmc-event-btn:hover { transform: translateX(8px); }
.rmc-event-btn[aria-selected="true"] { background: var(--yellow); color: var(--navy); }
.rmc-event-btn strong { font-size: 15px; font-weight: 600; }
.rmc-event-btn span { font-size: 13px; opacity: .85; }
.rmc-event-panel { flex: 2 1 520px; min-width: 0; min-height: 420px; position: relative; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; gap: 10px; }
.rmc-event-panel img, .rmc-event-panel .rmc-image[data-auto-height] { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rmc-event-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 10, 79, .1) 30%, rgba(17, 10, 79, .9)); z-index: 1; }
.rmc-event-panel > *:not(img) { position: relative; z-index: 2; }
.rmc-event-panel h3 { font-family: 'Fjalla One', sans-serif; font-weight: 400; font-size: 44px; line-height: 1.1; margin: 0; }
.rmc-event-panel p { font-size: 18px; color: var(--yellow); margin: 0; }
.rmc-event-panel.is-swapping > *:not(img) { animation: rmc-rise .5s var(--ease) both; }

/* Steps */
.rmc-step { padding-top: 18px; border-top: 3px solid var(--yellow); transition: border-color .3s; }
.rmc-step:hover { border-top-color: var(--navy); }
.rmc-step-n { display: inline-block; font-family: 'Fjalla One', sans-serif; font-size: 28px; color: var(--navy); transition: transform .35s var(--ease), color .3s; }
.rmc-step:hover .rmc-step-n { transform: translateX(8px); color: var(--violet); }
.rmc-step h3 { font-size: 18px; font-weight: 600; margin: 10px 0 8px; transition: color .3s; }
.rmc-step:hover h3 { color: var(--violet); }
.rmc-step p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.rmc-step-box { background: var(--soft); border-radius: 14px; padding: 22px; transition: transform .35s var(--ease), box-shadow .35s; }
.rmc-step-box:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(17, 10, 79, .1); }
.rmc-step-dot { width: 40px; height: 40px; border-radius: 999px; background: var(--navy); color: var(--yellow); font-family: 'Fjalla One', sans-serif; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }

/* Downloads */
.rmc-dl { flex: 1 1 220px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s; }
.rmc-dl:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(17, 10, 79, .18); }
.rmc-dl:hover i, .rmc-dl:hover svg { animation: rmc-bob .8s ease-in-out infinite; }
.rmc-dl strong { display: block; font-weight: 600; }
.rmc-dl small { font-size: 13px; opacity: .8; }
.rmc-dl-navy { background: var(--navy); color: #fff !important; }
.rmc-dl-navy i, .rmc-dl-navy svg { color: var(--yellow); }
.rmc-dl-light { background: #fff; border: 1.5px solid var(--navy); color: var(--navy) !important; }
.rmc-cover { flex: 0 1 300px; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 40px rgba(17, 10, 79, .25); transform: rotate(2deg); transition: transform .5s var(--ease); }
.rmc-cover:hover { transform: rotate(0) scale(1.03); }
.rmc-cover img { display: block; width: 100%; height: auto; }

/* Promise */
.rmc-promise { display: flex; flex-direction: column; gap: 12px; }
.rmc-promise-icon { width: 56px; height: 56px; border-radius: 14px; background: rgba(228, 206, 0, .14); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .45s var(--ease), background .3s; }
.rmc-promise:hover .rmc-promise-icon { transform: rotate(-10deg) scale(1.1); background: rgba(228, 206, 0, .3); }
.rmc-promise h3 { font-family: 'Fjalla One', sans-serif; font-weight: 400; font-size: 26px; color: var(--yellow); margin: 0; transition: color .3s; }
.rmc-promise:hover h3 { color: #fff; }
.rmc-promise p { font-size: 15px; line-height: 1.6; color: var(--on-navy); margin: 0; }

/* People */
.rmc-person { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: #fff; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.rmc-person:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(17, 10, 79, .14); border-color: var(--violet); }
.rmc-person.is-lead { background: var(--navy); color: #fff; border-color: var(--navy); padding: 22px; }
.rmc-avatar { width: 60px; height: 60px; flex: none; border-radius: 999px; overflow: hidden; background: var(--tint); color: var(--violet); display: flex; align-items: center; justify-content: center; font-family: 'Fjalla One', sans-serif; font-size: 20px; transition: transform .45s var(--ease); }
.rmc-person.is-lead .rmc-avatar { width: 72px; height: 72px; background: var(--yellow); color: var(--navy); font-size: 24px; }
.rmc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rmc-person:hover .rmc-avatar { transform: scale(1.1) rotate(-6deg); }
.rmc-person strong { display: block; font-size: 16px; font-weight: 600; color: var(--navy); }
.rmc-person.is-lead strong { color: #fff; font-size: 17px; }
.rmc-person span { font-size: 14px; color: #5A5778; }
.rmc-person.is-lead span { color: var(--on-navy); }

/* Staff slider: every group sits in the same cell so the height never jumps */
.rmc-staff-stage { display: grid; }
.rmc-staff-group { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .5s ease, transform .5s var(--ease), visibility 0s linear .5s; }
.rmc-staff-group.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease, transform .5s var(--ease); }
.rmc-staff-group.is-active > * { animation: rmc-rise .6s var(--ease) both; }
.rmc-staff-group.is-active > *:nth-child(2) { animation-delay: .08s; }
.rmc-staff-group.is-active > *:nth-child(3) { animation-delay: .16s; }
.rmc-staff-dots { display: flex; justify-content: center; gap: 4px; margin-top: 20px; }
.rmc-staff-dot { position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.rmc-staff-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 999px; background: var(--line-strong); transform: translate(-50%, -50%); transition: width .35s var(--ease), background .25s; }
.rmc-staff-dot:hover::before { background: var(--violet); }
.rmc-staff-dot[aria-selected="true"]::before { width: 28px; background: var(--navy); }

/* Partners */
.rmc-partner { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.rmc-partner:hover { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(17, 10, 79, .12); border-color: var(--yellow); }
.rmc-partner img { width: 110px; height: 110px; object-fit: contain; border-radius: 10px; }
.rmc-partner strong { font-size: 15px; font-weight: 600; color: var(--navy); transition: color .3s; }
.rmc-partner:hover strong { color: var(--violet); }
.rmc-partner span { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* Video tile */
.rmc-video { position: relative; border-radius: 20px; overflow: hidden; background: #000; min-height: 320px; }
.rmc-video video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .rmc-video { min-height: 0; aspect-ratio: 16 / 9; } }

/* Panels, forms, FAQ */
.rmc-panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px rgba(17, 10, 79, .08); }
.rmc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rmc-field input, .rmc-field textarea { height: 48px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 400; background: #fff; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.rmc-field textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.rmc-field input:focus, .rmc-field textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(58, 47, 160, .12); }
.rmc-faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; transition: border-color .25s; }
.rmc-faq[open] { border-color: var(--violet); }
.rmc-faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 600; color: var(--navy); }
.rmc-faq summary::-webkit-details-marker { display: none; }
.rmc-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--violet); transition: transform .3s var(--ease); }
.rmc-faq[open] summary::after { transform: rotate(45deg); }
.rmc-faq div { padding: 0 20px 18px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.rmc-contact-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 8px; transition: transform .35s var(--ease), box-shadow .35s; }
.rmc-contact-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(17, 10, 79, .1); }
.rmc-contact-card i { color: var(--violet); font-size: 22px; }
.rmc-contact-card a:hover { color: var(--violet); }
.rmc-map { border: 0; width: 100%; min-height: 360px; border-radius: 18px; }

/* Gallery */
.rmc-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 14px; }
.rmc-gallery a { display: block; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; transition: transform .4s var(--ease), box-shadow .4s; }
.rmc-gallery a.is-wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.rmc-gallery a:hover { transform: scale(1.03); box-shadow: 0 18px 34px rgba(17, 10, 79, .18); }
.rmc-gallery img.img-thumbnail, .rmc-gallery .rmc-image[data-auto-height] { width: 100%; height: 100%; object-fit: cover; padding: 0; border: 0; border-radius: 0; }

/* CTA band and footer */
.rmc-cta-band { background: var(--yellow); color: var(--navy); }
.rmc-cta-band .rmc-wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding-top: 44px; padding-bottom: 44px; }
.rmc-cta-band h2 { font-family: 'Fjalla One', sans-serif; font-weight: 400; font-size: 30px; margin: 0 0 4px; }
.rmc-cta-band p { margin: 0; font-size: 16px; color: #2A2560; }
.rmc-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 14px; }
.rmc-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.rmc-footer h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--yellow); margin: 0 0 14px; }
.rmc-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.rmc-footer a { transition: color .25s; }
.rmc-footer a:hover { color: var(--yellow); }
.rmc-footer iframe { width: 100%; height: 180px; border: 0; border-radius: 12px; }
.rmc-footer-contact { display: flex; flex-direction: column; gap: 12px; line-height: 1.55; }
.rmc-footer-contact a { color: #fff; }
.rmc-fb { background: #fff; color: var(--ink) !important; border-radius: 12px; padding: 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; transition: transform .3s var(--ease); }
.rmc-fb:hover { transform: translateY(-3px); color: var(--ink) !important; }
.rmc-fb img { width: 48px; height: 48px; border-radius: 999px; object-fit: contain; }
.rmc-fb small { display: block; color: #5A5778; font-size: 13px; }
.rmc-socials { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rmc-footer-base { border-top: 1px solid #2E2678; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 28px; font-size: 13px; }
.rmc-footer-base img { height: 40px; width: auto; }

/* Motion */
@keyframes rmc-rise { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
@keyframes rmc-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rmc-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
@supports (animation-timeline: view()) {
  .rmc-reveal { animation: rmc-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  .rmc-h2::after { animation: rmc-grow linear both; animation-timeline: view(); animation-range: entry 10% entry 80%; }
}

/* Responsive */
@media (max-width: 991px) {
  .rmc-grid-4, .rmc-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmc-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmc-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmc-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rmc-toggle { display: inline-flex; }
  .rmc-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .rmc-menu.is-open { display: flex; }
  .rmc-menu a:not(.rmc-btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .rmc-menu .rmc-btn { margin-top: 12px; }
}
@media (max-width: 640px) {
  .rmc-section { padding-top: 56px; padding-bottom: 56px; }
  .rmc-wrap { padding-left: 16px; padding-right: 16px; }
  .rmc-grid-2, .rmc-grid-3, .rmc-grid-4, .rmc-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .rmc-grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rmc-hero h1, .rmc-home-hero h1 { font-size: 36px; }
  .rmc-h2 { font-size: 30px; }
  .rmc-stat-value { font-size: 44px; }
  .rmc-event-panel { min-height: 300px; padding: 22px; }
  .rmc-event-panel h3 { font-size: 30px; }
  .rmc-topbar-address { display: none; }
  .rmc-brand img { height: 40px; }
}
/* Section over a static photo: the image stays put while the content scrolls over it */
.rmc-parallax { position: relative; background-color: var(--navy-deep); background-image: var(--parallax-image); background-size: cover; background-position: center; background-repeat: no-repeat; }
.rmc-parallax::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(11, 7, 52, .72), rgba(11, 7, 52, .84)); }
.rmc-parallax > * { position: relative; z-index: 1; }
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
  .rmc-parallax { background-attachment: fixed; }
}

/* Phone and tablet polish */
body.rmc { overflow-x: clip; }
.rmc img, .rmc video, .rmc iframe { max-width: 100%; }
.rmc table th, .rmc table td { overflow-wrap: anywhere; }
@media (max-width: 991px) {
  .rmc-staff-group.rmc-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .rmc-staff-group .rmc-person { flex-direction: column; text-align: center; padding: 16px 10px; }
  .rmc-hero h1 { font-size: 44px; }
  .rmc-home-hero h1, .rmc-hero-cover h1 { font-size: 42px; }
}
@media (max-width: 767px) {
  .rmc-staff-group.rmc-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .rmc-staff-group .rmc-person { flex-direction: row; text-align: left; padding: 18px; }
}
@media (max-width: 640px) {
  /* odd last card spans the row instead of sitting alone */
  .rmc-grid-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rmc-split { gap: 28px; }
  .rmc-section-head { margin-bottom: 24px; }
  .rmc-search { flex: 1 1 100%; min-width: 0; }
  .rmc-btn-row .rmc-btn { flex: 1 1 100%; }
  .rmc-deadline { width: 100%; }
  .rmc-dl { flex-basis: 100%; }
  .rmc-cover { flex: 0 1 240px; margin: 0 auto; }
  .rmc-cta-band h2 { font-size: 26px; }
  .rmc-cta-band .rmc-btn-row .rmc-btn { flex: 1 1 100%; }
  .rmc-panel { padding: 20px; }
  .rmc-faq summary { padding: 14px 16px; font-size: 15px; }
  .rmc-footer-grid { padding-top: 40px; gap: 28px; }
  .rmc-footer ul a { display: inline-block; padding: 6px 0; }
  .rmc-topbar { font-size: 12px; }
  .rmc-topbar-links { width: 100%; justify-content: space-between; }
  .rmc-topbar-links a { padding: 4px 0; }
  .rmc-footer-base { flex-direction: column; align-items: flex-start; }
  /* older pages: justified text leaves large gaps on a narrow screen */
  .rmc .fotn, .rmc .text-justify, .rmc .dasi, .rmc p, .rmc td { text-align: left !important; }
  .rmc .display-3, .rmc .display-4 { font-size: 2rem; }
  .rmc .display-5, .rmc .display-6 { font-size: 1.5rem; }
  .rmc .table-bordered th, .rmc .table-bordered td { padding: 8px; font-size: 14px; }
  .rmc .btn { min-height: 44px; }
  .rmc .form-control, .rmc .form-select { min-height: 44px; font-size: 16px; }
}
@media (max-width: 380px) {
  .rmc-logo-sub { letter-spacing: .4em; }
  .rmc-grid-5 { grid-template-columns: minmax(0, 1fr); }
  .rmc-hero h1, .rmc-home-hero h1, .rmc-hero-cover h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
