:root {
  --ricobed-primary: #312F92;
  --ricobed-primary-dark: #201E62;
  --ricobed-primary-light: #4846AD;
  --ricobed-secondary: #EB2024;
  --ricobed-accent: #EB2024;
  --ricobed-gold: #EB2024;
  --ricobed-bg: #FFFFFF;
  --ricobed-light: #F3F3FC;
  --ricobed-text: #212529;
}
body.portal-body { background: var(--ricobed-light); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }

/* Solid brand colour on primary action buttons */
.btn-primary {
  background: var(--ricobed-primary);
  border-color: var(--ricobed-primary);
  color: #fff;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:disabled,
.btn-primary.show {
  background: var(--ricobed-primary-dark, var(--ricobed-primary));
  border-color: var(--ricobed-primary-dark, var(--ricobed-primary));
  color: #fff;
}
.portal-nav { background: linear-gradient(90deg, var(--ricobed-primary), var(--ricobed-primary-light)); }
.portal-main { flex: 1 0 auto; max-width: 1400px; }
.portal-footer { background: #fff; border-top: 1px solid #e3e6ea; }

/* Two-tier student header */
.portal-header { z-index: 1020; }
.portal-topbar .navbar-brand { max-width: 60vw; }
.portal-topnav .nav-link { color: rgba(255,255,255,.85); }
.portal-topnav .nav-link:hover { color: #fff; }
.portal-menubar { background: var(--ricobed-primary-dark); box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.public-menubar { background: var(--ricobed-primary-dark); }
.public-menubar .portal-menu-link:hover { background: rgba(0,0,0,.12); }
.portal-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.portal-menu-link {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem .8rem; color: #cfdcee; text-decoration: none;
  font-size: .88rem; white-space: nowrap; border-bottom: 3px solid transparent;
}
.portal-menu-link i { font-size: .95rem; }
.portal-menu-link:hover { color: #fff; background: rgba(255,255,255,.07); }
.portal-menu-link.active { color: #fff; border-bottom-color: var(--ricobed-gold); background: rgba(255,255,255,.05); }
/* Mobile nav — hamburger + collapsible submenus */
.nav-toggle { display: none; width: 100%; align-items: center; gap: .5rem;
              padding: .6rem 1rem; background: transparent; border: 0;
              color: #fff; font-weight: 600; font-size: 1rem; }
.nav-toggle i { font-size: 1.3rem; }
.sub-toggle { display: inline-flex; align-items: center; background: transparent; border: 0;
              color: #fff; padding: .5rem .4rem; }
.sub-toggle i { font-size: .75rem; transition: transform .15s; }
.portal-menu li.open > .menu-item-row .sub-toggle i,
.portal-menu li.has-children:hover > .menu-item-row .sub-toggle i { transform: rotate(180deg); }
.portal-menu li.has-children.open > .menu-sub { display: block; }
.menu-item-row { display: flex; align-items: center; }
@media (max-width: 991.98px) {
  .nav-toggle { display: flex; }
  .portal-menu { display: none; flex-direction: column; flex-wrap: nowrap;
                 width: 100%; padding-bottom: .5rem; }
  .portal-menu.open { display: flex; }
  .portal-menu li { width: 100%; }
  .portal-menu-link { flex: 1 1 auto; padding: .65rem 1rem; }
  .sub-toggle { display: inline-flex; flex: 0 0 auto; }
  .portal-menu li.open > .menu-item-row .sub-toggle i { transform: rotate(180deg); }
}
@media (min-width: 992px) {
  .portal-menu { display: flex; }
}

.profile-card { background: linear-gradient(135deg, var(--ricobed-primary), var(--ricobed-primary-light)); color: #fff; border: none; }
.profile-card .avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.6); background: #fff; }
.nav-avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.stat-card { border: none; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.stat-card .stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: #889; }
.stat-card .stat-value { font-size: 1.3rem; font-weight: 700; }
.stat-card-link { transition: .15s; }
.stat-card-link:hover { box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb,49,47,146),.18); transform: translateY(-2px); }
.shortcut-card { border: 1px solid #e3e6ea; border-radius: .6rem; padding: .9rem; text-align: center; background: #fff; transition: .15s; text-decoration: none; color: var(--ricobed-primary); display: block; height: 100%; }
.shortcut-card:hover { border-color: var(--ricobed-primary); box-shadow: 0 2px 8px rgba(var(--bs-primary-rgb,49,47,146),.15); transform: translateY(-2px); }
.shortcut-card i { font-size: 1.5rem; display: block; margin-bottom: .3rem; }
.workflow-step { display: flex; gap: .8rem; align-items: flex-start; padding: .6rem 0; border-bottom: 1px dashed #e3e6ea; }
.workflow-step:last-child { border-bottom: none; }
.workflow-step .step-icon { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .85rem; }
.workflow-done .step-icon { background: var(--ricobed-accent); color: #fff; }
.workflow-pending .step-icon { background: #dee2e6; color: #555; }
.workflow-next .step-icon { background: var(--ricobed-gold); color: #fff; }

/* Admin */
body.admin-body { background: var(--ricobed-light); }
.admin-sidebar { width: 240px; min-width: 240px; flex: 0 0 240px; min-height: 100vh; background: var(--ricobed-primary-dark); position: sticky; top: 0; height: 100vh; }
.sidebar-section { color: #7f93ad; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: .8rem 1rem .25rem; }
.sidebar-section-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; color: #7f93ad; font-size: .68rem; text-transform: uppercase;
  letter-spacing: .08em; padding: .7rem 1rem .35rem; text-align: left; }
.sidebar-section-toggle:hover { color: #c9d4e2; }
.sidebar-chevron { font-size: .65rem; transition: transform .2s; }
.sidebar-section-toggle:not(.collapsed) .sidebar-chevron { transform: rotate(180deg); }
#admin-nav .collapse .sidebar-link { padding-left: 1.5rem; }

/* settings page */
.settings-nav .list-group-item { font-size: .9rem; }
.settings-nav .list-group-item.active { background: var(--ricobed-primary); border-color: var(--ricobed-primary); }
.settings-nav .list-group-item.active .small { color: rgba(255,255,255,.75); }
.settings-key { font-size: .68rem; color: #8896ab; }
.settings-row { border-bottom: 1px dashed #eef1f5; padding-bottom: .5rem; }
.settings-row:last-of-type { border-bottom: 0; }
.sidebar-link { display: block; color: #c9d4e2; text-decoration: none; padding: .45rem 1rem; font-size: .9rem; }
.sidebar-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar-link.active { background: var(--ricobed-primary); color: #fff; border-left: 3px solid var(--ricobed-gold); }
.sidebar-link i { width: 1.2rem; display: inline-block; }

/* mobile drawer backdrop — hidden by default */
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
  .admin-sidebar { position: fixed; z-index: 1040; transform: translateX(-100%); transition: .2s; }
  .admin-sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .sidebar-backdrop.show { display: block; position: fixed; inset: 0; z-index: 1039; background: rgba(0,0,0,.45); }
  .admin-body main { padding: .75rem !important; }
}
@media (max-width: 575.98px) {
  .stat-card .stat-value { font-size: 1.05rem; }
  .stat-card .stat-label { font-size: .62rem; }
}
@media print {
  .portal-nav, .portal-footer, .admin-sidebar, .navbar, .btn, .no-print { display: none !important; }
  body { background: #fff; }
}
.table td, .table th { vertical-align: middle; }

/* Pill-style On/Off status switch */
.status-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .22rem .6rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; line-height: 1.2; vertical-align: middle;
  user-select: none; white-space: nowrap;
}
.status-switch .ss-knob {
  width: .62rem; height: .62rem; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.2); flex: 0 0 auto;
}
.status-switch.on { flex-direction: row-reverse; background: #198754; color: #fff; }
.status-switch.off { background: #adb5bd; color: #fff; }

/* Settings page pill switches — green Active / gray Inactive */
.settings-switch .form-check-input {
  cursor: pointer; width: 2.6em; height: 1.3em;
  background-color: #adb5bd; border-color: #adb5bd;
}
.settings-switch .form-check-label { margin-left: .6rem; }
.settings-switch .form-check-input:focus { box-shadow: 0 0 0 .15rem rgba(25,135,84,.25); }
.settings-switch .form-check-input:checked { background-color: #198754; border-color: #198754; }
.settings-switch .sw-on { display: none; color: #198754; font-weight: 600; }
.settings-switch .sw-off { color: #6c757d; font-weight: 600; }
.settings-switch .form-check-input:checked ~ .form-check-label .sw-on { display: inline; }
.settings-switch .form-check-input:checked ~ .form-check-label .sw-off { display: none; }
.exam-card { border: 2px solid var(--ricobed-primary); border-radius: .8rem; }
.exam-card .card-header { background: var(--ricobed-primary); color: #fff; }

/* CMS — nested menu dropdown (public menubar) */
.portal-menu li.has-children { position: relative; }
.portal-menu .menu-sub {
  display: none; position: absolute; top: 100%; left: 0; z-index: 50;
  min-width: 200px; margin: 0; padding: .35rem 0; list-style: none;
  background: #fff; border: 1px solid rgba(0,0,0,.12); border-radius: .375rem;
  box-shadow: 0 6px 18px rgba(0,0,0,.14);
}
.portal-menu li.has-children:hover > .menu-sub,
.portal-menu li.has-children:focus-within > .menu-sub { display: block; }
.portal-menu .menu-sub .portal-menu-link { color: #212529 !important; padding: .45rem .9rem; display: flex; gap: .5rem; align-items: center; }
.portal-menu .menu-sub .portal-menu-link:hover { background: #f1f3f5; }
@media (max-width: 991.98px) {
  /* mobile: submenus are hidden until the chevron is tapped — rendered as a
     light card so children clearly read as nested items on the dark bar */
  .portal-menu li.has-children .menu-sub {
    position: static; display: none; margin: .15rem .6rem .4rem;
    background: #fff; border: 0; border-radius: .4rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.25); padding: .3rem 0;
  }
  .portal-menu li.has-children.open > .menu-sub { display: block; }
  .portal-menu li.has-children .menu-sub .portal-menu-link {
    color: #212529 !important; padding: .5rem 1rem; font-weight: 500;
  }
  .portal-menu li.has-children .menu-sub .portal-menu-link:hover {
    background: #f1f3f5; color: var(--ricobed-primary) !important;
  }
  .portal-menu li.has-children .menu-sub .portal-menu-link i { color: var(--ricobed-primary); }
}

/* ============ RICOBED hero slider ============ */
.hslider { position: relative; overflow: hidden; outline: none; }
.hslider:focus-visible { box-shadow: inset 0 0 0 2px var(--ricobed-primary); }
.hs-h-full   { height: 100vh; }
.hs-h-large  { height: 72vh; min-height: 480px; }
.hs-h-medium { height: 56vh; min-height: 420px; }
.hs-h-custom { height: var(--hs-h, 520px); }
@media (max-width: 767px) {
  .hs-h-full, .hs-h-large, .hs-h-medium, .hs-h-custom { height: 62vw; min-height: 340px; }
}

.hs-item { position: absolute; inset: 0; opacity: 0; pointer-events: none; color: #fff;
           transition: opacity var(--hs-trans) ease, transform var(--hs-trans) ease; }
.hs-item.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.hs-item.hs-leaving { opacity: 0; z-index: 1; }
.hs-item picture, .hs-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-img { object-fit: cover; }
.hs-fit-contain { object-fit: contain; background: rgba(0,0,0,.45); }
.hs-overlay { position: absolute; inset: 0; z-index: 1; }

.hs-content { position: relative; z-index: 2; height: 100%;
              display: flex; flex-direction: column; justify-content: center;
              padding: 4rem 6vw; max-width: 1200px; margin: 0 auto;
              text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.hs-v-top    .hs-content { justify-content: flex-start; padding-top: 3rem; }
.hs-v-bottom .hs-content { justify-content: flex-end; padding-bottom: 4rem; }
.hs-a-center .hs-content { align-items: center; text-align: center; }
.hs-a-right  .hs-content { align-items: flex-end; text-align: right; }
.hs-sub { font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-bottom: .4rem; }
.hs-desc { max-width: 620px; }
.hs-a-center .hs-desc, .hs-a-right .hs-desc { margin-left: auto; }

/* arrows */
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
            width: 44px; height: 44px; border: 0; border-radius: 50%;
            background: rgba(0,0,0,.35); color: #fff; font-size: 1.1rem; }
.hs-arrow:hover { background: rgba(0,0,0,.6); }
.hs-prev { left: 14px; } .hs-next { right: 14px; }

/* pagination */
.hs-pager { position: absolute; z-index: 5; bottom: 14px; left: 0; right: 0;
            display: flex; justify-content: center; gap: 8px; }
.hs-pager button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0;
                   background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.hs-pager button.is-on { background: #fff; transform: scale(1.25); }
.hs-pager-numbers button { width: 26px; height: 26px; border-radius: 6px; font-size: .75rem; font-weight: 700; }
.hs-pager-progress { bottom: 0; }
.hs-progress { width: 100%; height: 4px; background: rgba(255,255,255,.25); }
.hs-progress i { display: block; height: 100%; width: 0; background: #fff; }

/* text entrance animations */
.hs-anim-fade-up { opacity: 0; transform: translateY(22px); }
.hs-anim-fade { opacity: 0; }
.hs-anim-slide-left { opacity: 0; transform: translateX(-28px); }
.hs-item.is-active .hs-content { opacity: 1; transform: none;
  transition: opacity var(--hs-anim) ease .12s, transform var(--hs-anim) ease .12s; }
.hs-anim-none { opacity: 1; transform: none; transition: none; }

/* ---- transitions ---- */
/* fade & crossfade: defaults above */
/* horizontal / vertical slides */
.hs-slide-ltr .hs-item { transform: translateX(-100%); }
.hs-slide-ltr .hs-item.is-active { transform: translateX(0); }
.hs-slide-ltr .hs-item.hs-leaving { transform: translateX(100%); }
.hs-slide-rtl .hs-item { transform: translateX(100%); }
.hs-slide-rtl .hs-item.is-active { transform: translateX(0); }
.hs-slide-rtl .hs-item.hs-leaving { transform: translateX(-100%); }
.hs-slide-ttb .hs-item { transform: translateY(-100%); }
.hs-slide-ttb .hs-item.is-active { transform: translateY(0); }
.hs-slide-ttb .hs-item.hs-leaving { transform: translateY(100%); }
.hs-slide-btt .hs-item { transform: translateY(100%); }
.hs-slide-btt .hs-item.is-active { transform: translateY(0); }
.hs-slide-btt .hs-item.hs-leaving { transform: translateY(-100%); }
/* zoom */
.hs-zoom-in  .hs-item { transform: scale(.82); }
.hs-zoom-in  .hs-item.is-active { transform: scale(1); }
.hs-zoom-in  .hs-item.hs-leaving { transform: scale(1.06); }
.hs-zoom-out .hs-item { transform: scale(1.18); }
.hs-zoom-out .hs-item.is-active { transform: scale(1); }
.hs-zoom-out .hs-item.hs-leaving { transform: scale(.94); }
/* coverflow-lite */
.hs-coverflow .hs-item { transform: perspective(1100px) rotateY(-32deg) scale(.85); transform-origin: center right; }
.hs-coverflow .hs-item.is-active { transform: perspective(1100px) rotateY(0) scale(1); }
.hs-coverflow .hs-item.hs-leaving { transform: perspective(1100px) rotateY(32deg) scale(.85); transform-origin: center left; }
/* ken burns: fade swap + slow continuous zoom/pan on the image while active */
@keyframes hsKenBurns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(-1.5%,-1.5%); } }
.hs-kenburns .hs-item.is-active .hs-img { animation: hsKenBurns var(--hs-dwell, 8s) ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .hs-item, .hs-item .hs-content, .hs-img { transition: none !important; animation: none !important; }
  .hs-anim-fade-up, .hs-anim-fade, .hs-anim-slide-left { opacity: 1; transform: none; }
}

/* hero slider — split layout (text left, image right at uniform size) + content wrapper */
.hs-split-in { position: relative; z-index: 2; height: 100%; }
.hs-item:not(.hs-split) .hs-split-in { display: block; }
.hs-item.hs-split .hs-split-in { display: flex; align-items: center; gap: 2rem; padding: 3rem 6vw; }
.hs-item.hs-split .hs-content { position: relative; z-index: 2; flex: 1 1 auto; padding: 0; max-width: none; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hs-item.hs-split .hs-split-img { flex: 0 0 auto; text-align: center; }
/* every slide image renders in the same fixed frame regardless of source size */
.hs-item.hs-split .hs-split-img img { width: 360px; height: 180px; object-fit: contain; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
@media (max-width: 991.98px) {
  .hs-item.hs-split .hs-split-img { display: none; }
  .hs-item.hs-split .hs-split-in { padding: 2.5rem 6vw; }
}

/* contained (logo/small) slide images sit centred, same hero box as cover slides */
.hs-fit-contain { object-fit: contain; padding: 1.2rem; background: transparent; }
@media (max-width: 767px) { .hs-fit-contain { object-position: 50% 50% !important; } }

/* logo slides: small fixed crest anchored to the side opposite the text */
.hs-img-logo { position: absolute; bottom: 1rem; z-index: 1;
               max-height: 140px; max-width: 220px; width: auto; height: auto;
               filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.hs-img-logo.hs-side-left  { left: 1rem; }
.hs-img-logo.hs-side-right { right: 1rem; }
.hs-img-logo.hs-side-center { right: 1rem; }
@media (max-width: 767px) { .hs-img-logo { max-height: 90px; right: 1rem; left: auto; } }

/* ============ CMS footer ============ */
.cms-footer { background: var(--cf-bg, #312F92); color: var(--cf-text, #fff); margin-top: auto; }
.cms-footer a { color: var(--cf-muted, #B9B8E4); text-decoration: none; }
.cms-footer a:hover { color: #fff; text-decoration: underline; }
.cf-brand { font-weight: 800; font-size: 1.15rem; line-height: 1.1; color: var(--cf-text, #fff); }
.cf-tag { font-size: .72rem; color: var(--cf-muted, #B9B8E4); max-width: 300px; }
.cf-desc { font-size: .82rem; color: var(--cf-muted, #B9B8E4); max-width: 320px; }
.cf-head { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em;
           padding-bottom: .45rem; margin-bottom: .6rem; border-bottom: 2px solid var(--cf-accent, #EB2024);
           color: var(--cf-text, #fff); display: inline-block; }
.cf-links { list-style: none; margin: 0; padding: 0; }
.cf-links li { margin-bottom: .4rem; font-size: .85rem; }
.cf-links li a { color: var(--cf-muted, #B9B8E4); }
.cf-links li a::before { content: "›"; color: var(--cf-text, #fff); margin-right: .35rem; }
.cf-contact li::before { content: none; }
.cf-contact li { color: var(--cf-muted, #B9B8E4); }
.cf-contact li i { color: var(--cf-text, #fff); margin-right: .35rem; }
.cf-soc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
          border-radius: 50%; background: rgba(255,255,255,.12); color: #fff !important; font-size: .85rem; }
.cf-soc:hover { background: var(--cf-accent, #EB2024); text-decoration: none; }
.cf-bottom { border-top: 1px solid rgba(255,255,255,.15); font-size: .78rem; color: var(--cf-muted, #B9B8E4); }
.cf-dev { color: var(--cf-muted, #B9B8E4); }
.cf-dev:hover { color: #fff; }

/* sidebar sub-group labels (inside collapsible sections) */
.sidebar-subhead { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
                   color: rgba(255,255,255,.4); padding: .65rem 1rem .15rem; }
.sidebar-subhead:first-child { padding-top: .25rem; }
.hs-img-logo.hs-side-center { left: 50%; right: auto; transform: translateX(-50%); }

/* ---- professional homepage section bands ---- */
.home-sec { padding: 3.5rem 0; }
.home-sec-alt { background: #f5f6fa; }
.home-band { /* full-width colored band */ }
.home-head { text-align: center; margin-bottom: 2rem; }
.home-head h2 { font-weight: 800; color: #22224a; margin-bottom: 0; }
.home-head .hh-bar { display: block; width: 56px; height: 4px; border-radius: 2px;
                     background: var(--ricobed-secondary, #EB2024); margin: .65rem auto 0; }
.home-body { font-size: 1.02rem; color: #3c3f55; }
.home-body h1, .home-body h2, .home-body h3 { color: #22224a; }
.home-card { background: #fff; border: 1px solid #e6e8f0; border-radius: .5rem; padding: 1rem 1.1rem;
             height: 100%; transition: transform .15s, box-shadow .15s; }
.home-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(49,47,146,.10); }
.home-sec-alt .home-card { background: #fff; }
.prog-card { display: block; background: #fff; border: 1px solid #e6e8f0; border-radius: .5rem;
             padding: 1rem 1.1rem; height: 100%; text-decoration: none; color: inherit;
             transition: transform .15s, box-shadow .15s, border-color .15s; }
.prog-card:hover { border-color: var(--ricobed-primary); box-shadow: 0 6px 18px rgba(49,47,146,.14);
                   transform: translateY(-2px); color: inherit; }
.prog-ico { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center;
            justify-content: center; background: rgba(49,47,146,.09); color: var(--ricobed-primary); }
.home-date { font-size: .72rem; color: var(--ricobed-primary); font-weight: 600; letter-spacing: .02em; }
.ev-date { flex: none; width: 46px; text-align: center; border-radius: .375rem; overflow: hidden;
           border: 1px solid #e6e8f0; }
.ev-date .ev-d { background: var(--ricobed-primary); color: #fff; font-weight: 800; padding: .2rem 0; }
.ev-date .ev-m { font-size: .68rem; font-weight: 700; color: #6c757d; padding: .1rem 0; background: #fff; }
.home-ico { font-size: 1.6rem; color: var(--ricobed-primary); }
.home-stat .stat-value { font-size: 2.1rem; font-weight: 800; }
@media (max-width: 767px) { .home-sec { padding: 2.25rem 0; } }

/* keep images inside homepage tiles within the card bounds */
.home-card img, .home-body img, .prog-card img { max-width: 100%; height: auto; }
.home-card img { border-radius: .375rem; }

/* uniform image thumbnails inside homepage tiles — keeps cards compact */
.home-card img { display: block; width: 100%; height: 160px; aspect-ratio: 16/9;
                 object-fit: cover; border-radius: .375rem; margin: .5rem 0; }

/* bound images in the Quill editor + CMS content areas */
.ql-editor img, .cms-content img { max-width: 100%; height: auto; }

/* programme card image */
.prog-card-img { display:block; width:calc(100% + 2.2rem); margin:-1rem -1.1rem .6rem;
                 max-width:none; height:150px; aspect-ratio:21/10; object-fit:cover;
                 border-radius:.5rem .5rem 0 0; }

/* footer newsletter */
.cf-subscribe input { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.cf-subscribe input::placeholder { color: var(--cf-muted); }
.cf-subscribe input:focus { background: rgba(255,255,255,.16); color: #fff; border-color: var(--cf-accent); }
