/* IESR site styles — aligned with iesr.netlify.app */
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap");

html {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.65;
    color: #334155;
}

.iesr-site-footer {
    overflow: hidden;
    margin-bottom: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

/* Body copy — match grid-conference prose across cards, forms, and CMS content */
p,
li,
dd,
dt,
label,
input,
textarea,
select,
button,
td,
th,
blockquote,
figcaption,
small,
.prose,
.prose p,
.prose li,
.prose td,
.prose th,
.prose blockquote,
.departments-content,
.departments-content p,
.departments-content li,
.departments-content td,
.departments-content th,
.core-values-content,
.core-values-content p,
.core-values-content li,
[class*="__prose"],
[class*="__text"],
[class*="__body"],
[class*="__excerpt"],
[class*="__lead"],
[class*="__description"],
[class*="__hint"],
[class*="__label"]:not([class*="__card-label"]):not([class*="__title"]),
[class*="__input"],
[class*="__checkbox"],
[class*="__error"],
[class*="__meta"],
[class*="__notice-title"],
[class*="__notice-body"],
[class*="__mandate-col-body"],
[class*="__home-pillar"],
[class*="__home-grid-conf__text"],
[class*="__contact-form"],
[class*="__apply-step-card"],
[class*="__apply-progress"],
[class*="__dept-card__excerpt"],
[class*="__about__card"],
[class*="__about__lead"],
[class*="__research-areas__card-body"],
[class*="__stats__desc"],
[class*="__notices-panel"] {
    font-family: var(--font-body);
}

.departments-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.departments-content p,
.departments-content li {
    line-height: 1.75;
}

.departments-content p + p {
    margin-top: 1rem;
}

:root {
    --navy: #002b5c;
    --navy-dark: #001a3a;
    --navy-light: #003d7a;
    --gold: rgb(249, 202, 34);
    --gold-light: rgb(252, 224, 90);
    --gold-dark: rgb(220, 175, 28);
    --white: #fff;
    --font-heading: "Outfit", sans-serif;
    --font-body: "Lexend Deca", "Helvetica Neue", sans-serif;
    --max-width: 1280px;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --radius-md: 10px;
    --radius-full: 9999px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

/* ── Header ── */
.iesr-header {
    position: relative;
    z-index: 100;
}

/* Inner pages: header floats over page hero (no top gap) */
.iesr-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.iesr-header__wrapper {
    position: absolute;
    top: var(--space-xl);
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: flex-start;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iesr-header__wrapper--sticky {
    position: fixed;
    top: 0;
    max-width: 100%;
    width: 100%;
    padding: 0;
    gap: 0;
}

.iesr-header__card {
    flex: 1;
    background: rgba(0, 43, 92, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iesr-header__wrapper--sticky .iesr-header__card {
    background: var(--navy);
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.iesr-header__wrapper--sticky .iesr-header__top-row {
    display: flex;
    border-radius: 0;
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
}

.iesr-header__wrapper--sticky .iesr-header__divider {
    display: block;
}

.iesr-header__wrapper--sticky .iesr-header__bottom-row {
    padding: 0 var(--space-2xl);
}

.iesr-header__top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.48rem var(--space-lg);
    background: var(--white);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border-bottom: 1px solid rgba(0, 43, 92, 0.1);
}

.iesr-header__top-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.iesr-header__top-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.895rem;
    font-weight: 600;
    color: var(--navy-dark);
    white-space: nowrap;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.iesr-header__top-link:not(:first-child)::before {
    content: "";
    width: 1px;
    height: 0.9em;
    margin: 0 0.85rem;
    background: rgba(0, 43, 92, 0.16);
    flex-shrink: 0;
}

.iesr-header__top-link:hover {
    opacity: 0.65;
}

.iesr-header__top-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.iesr-header__social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.9rem;
    border-left: 1px solid rgba(0, 43, 92, 0.14);
}

.iesr-header__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 50%;
    color: #fff;
    background: var(--navy);
    border: 1px solid var(--navy-dark);
    box-shadow: 0 1px 2px rgba(0, 26, 58, 0.18);
    text-decoration: none;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.iesr-header__social-link svg {
    width: 15px;
    height: 15px;
    display: block;
}

.iesr-header__social-link:hover {
    color: var(--navy-dark);
    background: var(--gold, #c9a227);
    border-color: #b8921f;
    box-shadow: 0 3px 8px rgba(0, 26, 58, 0.22);
    transform: translateY(-2px);
}

.iesr-header__access-btn {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--navy-dark);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.iesr-header__access-btn:hover {
    background: rgba(0, 43, 92, 0.1);
}

.iesr-header__portal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    background: var(--navy);
    border: 2px solid var(--navy);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
}

.iesr-header__portal-btn:hover {
    background: var(--navy-dark);
    border-color: var(--navy-dark);
}

.iesr-header__divider {
    height: 1px;
    background: rgba(0, 43, 92, 0.08);
}

.iesr-header__bottom-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    height: 84px;
    padding: 0 var(--space-lg);
    transition: padding 0.4s;
}

.iesr-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: var(--space-md);
    text-decoration: none;
}

.iesr-header__logo img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

.iesr-header__nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.iesr-header__nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.iesr-header__nav-link {
    padding: 0.45rem 0.75rem;
    font-family: var(--font-body);
    font-size: 1.107rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    transition: color var(--transition-fast);
    text-decoration: none;
}

.iesr-header__nav-link:hover,
.iesr-header__nav-link--active {
    color: var(--gold);
    font-weight: 600;
}

.iesr-header__nav-link--disabled {
    color: rgba(255, 255, 255, 0.58);
    cursor: default;
    pointer-events: none;
    font-weight: 500;
}

.iesr-header__nav-item {
    position: relative;
}

.iesr-header__nav-link--dropdown {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.iesr-header__chevron {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.iesr-header__nav-item:hover .iesr-header__chevron {
    transform: rotate(180deg);
}

.iesr-header__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    padding: 0.4rem 0;
    background: rgba(0, 20, 46, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 200;
}

.iesr-header__dropdown--mega {
    min-width: 39rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 1rem;
}

.iesr-header__nav-item:hover .iesr-header__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.iesr-header__dropdown-label {
    font-family: var(--font-body);
    font-size: 1.107rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.iesr-header__dropdown-link {
    display: block;
    padding: 0.6rem 1rem;
    font-family: var(--font-body);
    font-size: 1.107rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.iesr-header__dropdown-link:hover {
    color: var(--gold);
    background: rgba(245, 166, 35, 0.07);
    padding-left: 1.2rem;
}

.iesr-header__dropdown-link--disabled {
    color: rgba(255, 255, 255, 0.42);
    cursor: default;
    pointer-events: none;
}

.iesr-header__search {
    margin-left: var(--space-md);
    flex-shrink: 0;
}

.iesr-header__search-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: border-color var(--transition-fast), background var(--transition-fast), box-shadow 0.3s ease;
}

.iesr-header__search--open .iesr-header__search-form {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 1px rgba(245, 166, 35, 0.12);
}

.iesr-header__search-input {
    width: 0;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.875rem;
    opacity: 0;
    transition: width 0.35s ease, padding 0.35s ease, opacity 0.25s ease;
}

.iesr-header__search--open .iesr-header__search-input {
    width: min(220px, 28vw);
    padding: 0 0.35rem 0 0.95rem;
    opacity: 1;
}

.iesr-header__search-input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.iesr-header__search-input:focus {
    outline: none;
}

.iesr-header__search-btn {
    width: 36px;
    height: 32px;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.iesr-header__search-btn:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.iesr-header__search-close {
    display: none;
}

.iesr-header__search--open .iesr-header__search-icon {
    display: none;
}

.iesr-header__search--open .iesr-header__search-close {
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.iesr-header__menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.iesr-header__menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
}

/* Mobile drawer */
.iesr-header__backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 15, 30, 0.85);
    backdrop-filter: blur(6px);
}

.iesr-header__backdrop--open {
    display: block;
}

.iesr-header__drawer {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: min(88%, 320px);
    z-index: 1000;
    padding: 1rem 1.125rem 1.25rem;
    background: var(--navy-dark);
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.3);
}

.iesr-header__drawer--open {
    right: 0;
}

.iesr-header__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.iesr-header__drawer-search {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.35rem 0.35rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.iesr-header__drawer-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.75rem;
}

.iesr-header__drawer-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.iesr-header__drawer-search-input:focus {
    outline: none;
}

.iesr-header__drawer-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.iesr-header__drawer-search-btn:hover {
    color: var(--gold);
    background: rgba(245, 166, 35, 0.15);
}

.iesr-header__drawer-title {
    font-family: var(--font-body);
    font-size: 0.675rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.75;
}

.iesr-header__drawer-utilities {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.iesr-header__drawer-util-link {
    display: block;
    padding: 0.3rem 0;
    font-family: var(--font-body);
    font-size: 0.817rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.iesr-header__drawer-util-link + .iesr-header__drawer-util-link {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0.125rem;
    padding-top: 0.425rem;
}

.iesr-header__drawer-util-link:hover {
    color: var(--gold);
}

.iesr-header__drawer-util-link--gold {
    color: var(--gold);
}

.iesr-header__drawer-nav {
    display: flex;
    flex-direction: column;
}

.iesr-header__close-btn {
    padding: 0.4rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.iesr-header__close-btn:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.iesr-header__drawer-link,
.iesr-header__drawer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0;
    font-family: var(--font-body);
    font-size: 0.84375rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.92);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: none;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.iesr-header__drawer-link:hover,
.iesr-header__drawer-toggle:hover {
    color: var(--gold);
}

.iesr-header__drawer-link--disabled {
    color: rgba(255, 255, 255, 0.48);
    cursor: default;
    pointer-events: none;
}

.iesr-header__drawer-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.iesr-header__drawer-link--inline {
    flex: 1;
    border-bottom: none;
    padding-right: 0.25rem;
}

.iesr-header__drawer-expand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    background: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.iesr-header__drawer-expand:hover {
    color: var(--gold);
}

.iesr-header__drawer-chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.iesr-header__drawer-group--open .iesr-header__drawer-chevron {
    transform: rotate(180deg);
}

.iesr-header__drawer-submenu {
    padding: 0.25rem 0 0.375rem 0.625rem;
    margin-bottom: 0.125rem;
    border-left: 2px solid rgba(247, 214, 38, 0.35);
}

.iesr-header__drawer-sublink {
    display: block;
    padding: 0.3rem 0;
    font-family: var(--font-body);
    font-size: 0.84375rem;
    font-weight: 600;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.iesr-header__drawer-sublink:hover {
    color: var(--gold);
}

.iesr-header__drawer-sublink--disabled {
    display: block;
    color: rgba(255, 255, 255, 0.42);
    cursor: default;
    pointer-events: none;
}

.iesr-header__drawer-sublink--emph {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.iesr-header__drawer-sublink--muted {
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
}

.iesr-header__drawer-label {
    margin: 0.375rem 0 0.125rem;
    font-size: 0.4125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 214, 38, 0.85);
}

.iesr-header__drawer-footer {
    margin-top: 0.875rem;
    padding-top: 0.625rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.iesr-header__drawer-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.35rem 0;
    border: none;
    background: none;
    font-family: var(--font-body);
    font-size: 0.675rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.iesr-header__drawer-theme-btn:hover {
    color: var(--gold);
}

.iesr-header__drawer-meta {
    display: block;
    padding: 0.25rem 0;
    font-family: var(--font-body);
    font-size: 0.675rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.iesr-header__drawer-meta:hover {
    color: var(--gold);
}

.iesr-header__drawer-meta--gold {
    color: var(--gold);
}

/* Page title band (inner pages) — header floats on top like home hero */
.iesr-page-heading {
    position: relative;
    overflow: hidden;
    background-color: var(--navy-dark);
    background-image: var(--iesr-page-header-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 9rem var(--space-md) 2.25rem;
}

/* Dark tint over header background (all inner pages; home uses #home hero only) */
.iesr-page-heading::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(0, 20, 48, 0.62) 0%,
        rgba(0, 26, 58, 0.68) 45%,
        rgba(0, 35, 75, 0.72) 100%
    ),
    linear-gradient(
        180deg,
        rgba(0, 15, 35, 0.35) 0%,
        rgba(0, 26, 58, 0.55) 100%
    );
}

.iesr-page-heading::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.06;
    background-image: radial-gradient(circle at 2px 2px, white 1px, transparent 0);
    background-size: 40px 40px;
    pointer-events: none;
}

.iesr-page-heading__inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.iesr-page-heading__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    text-shadow: 0 1px 12px rgba(0, 26, 58, 0.55);
}

.iesr-page-heading__accent {
    display: block;
    width: 5rem;
    height: 0.375rem;
    margin: var(--space-md) auto 0;
    border-radius: var(--radius-full);
    background: var(--gold);
}

/* First block after overlay header when there is no page heading */
.iesr-header--overlay + *:not(#home):not(.iesr-page-heading) {
    padding-top: 7.8rem;
}

@media (min-width: 768px) {
    .iesr-page-heading {
        padding: 11.4rem var(--space-xl) 3rem;
    }
}

/* ── Department cards (homepage) ── */
.iesr-dept-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 8px 30px rgba(0, 43, 92, 0.18);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.iesr-dept-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 43, 92, 0.28);
}

.iesr-dept-card__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.iesr-dept-card:hover .iesr-dept-card__bg {
    transform: scale(1.06);
}

.iesr-dept-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 26, 58, 0.15) 0%,
        rgba(0, 26, 58, 0.55) 45%,
        rgba(0, 26, 58, 0.92) 100%
    );
    transition: opacity 0.35s ease;
}

.iesr-dept-card:hover .iesr-dept-card__overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 26, 58, 0.2) 0%,
        rgba(0, 26, 58, 0.65) 50%,
        rgba(0, 43, 92, 0.95) 100%
    );
}

.iesr-dept-card__content {
    position: relative;
    z-index: 2;
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
}

.iesr-dept-card__title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    margin: 0 0 var(--space-sm);
}

.iesr-dept-card__excerpt {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.iesr-dept-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gold);
    transition: gap 0.2s ease, color 0.2s ease;
}

.iesr-dept-card:hover .iesr-dept-card__link {
    gap: 0.55rem;
    color: var(--gold-light);
}

@media (min-width: 768px) {
    .iesr-dept-card {
        min-height: 300px;
    }

    .iesr-dept-card__title {
        font-size: 1.15rem;
    }
}

/* ── Hero ── */
.iesr-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    background: var(--navy-dark);
    overflow: hidden;
}

.iesr-hero__mandate {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: auto;
}

.iesr-hero__mandate::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 26, 58, 0) 0%,
        rgba(0, 26, 58, 0.45) 38%,
        rgba(0, 26, 58, 0.82) 72%,
        rgba(0, 26, 58, 0.94) 100%
    );
}

.iesr-hero__mandate-inner {
    position: relative;
    z-index: 1;
}

.iesr-hero__mandate-title {
    margin: 0 0 1rem;
    font-family: var(--font-heading);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.iesr-hero__mandate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.iesr-hero__mandate-col {
    padding: 0;
}

.iesr-hero__mandate-col--link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.iesr-hero__mandate-col--link:hover .iesr-hero__mandate-col-title,
.iesr-hero__mandate-col--link:focus-visible .iesr-hero__mandate-col-title {
    color: var(--gold);
}

.iesr-hero__mandate-col--link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.iesr-hero__mandate-col-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    transition: color 0.2s ease;
}

.iesr-hero__mandate-col-body {
    margin: 0;
    font-size: 0.975rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

@media (max-width: 767px) {
    .iesr-hero__mandate-inner {
        padding-left: 0;
        padding-right: 0;
    }

    .iesr-hero__mandate-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.75rem;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem 0.35rem;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    }

    .iesr-hero__mandate-grid::-webkit-scrollbar {
        height: 4px;
    }

    .iesr-hero__mandate-grid::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 9999px;
    }

    .iesr-hero__mandate-col,
    .iesr-hero__mandate-col--link {
        flex: 0 0 auto;
        min-width: 10.5rem;
        max-width: 13.5rem;
        scroll-snap-align: start;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: 0.625rem;
        background: rgba(0, 26, 58, 0.35);
    }

    .iesr-hero__mandate-col-title {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .iesr-hero__mandate-col-body {
        display: none;
    }
}

@media (min-width: 768px) {
    .iesr-hero__mandate-title {
        font-size: 0.98rem;
        margin-bottom: 1.15rem;
    }

    .iesr-hero__mandate-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 0;
    }

    .iesr-hero__mandate-col {
        padding: 0 1.25rem;
        box-sizing: border-box;
    }

    .iesr-hero__mandate-col:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.22);
    }

    .iesr-hero__mandate-col-title {
        font-size: 1.2rem;
    }

    .iesr-hero__mandate-col-body {
        font-size: 1.05rem;
    }
}

@media (min-width: 1024px) {
    .iesr-hero__mandate-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0;
    }

    .iesr-hero__mandate-col {
        padding: 0 1rem;
        box-sizing: border-box;
        border-right: 1px solid rgba(255, 255, 255, 0.22);
    }

    .iesr-hero__mandate-col:last-child {
        border-right: none;
    }

    .iesr-hero__mandate-col-title {
        font-size: 1.05rem;
    }

    .iesr-hero__mandate-col-body {
        font-size: 0.9rem;
    }
}

/* ── About row + notices panel ── */
.iesr-about-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.iesr-about-row__main {
    flex: 1;
    min-width: 0;
}

.iesr-notices-panel {
    flex-shrink: 0;
}

.iesr-notices-panel__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #001a3a 0%, #134bb5 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 26, 58, 0.12);
}

.iesr-notices-panel__header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.iesr-notices-panel__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(249, 202, 34, 0.18);
    color: var(--gold);
    flex-shrink: 0;
}

.iesr-notices-panel__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #fff;
}

.iesr-notices-panel__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.iesr-notices-panel__link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.iesr-notices-panel__link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(249, 202, 34, 0.35);
}

.iesr-notices-panel__date {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold);
}

.iesr-notices-panel__notice-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.92);
}

.iesr-notices-panel__all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

.iesr-notices-panel__all:hover {
    color: var(--gold-light);
}

.iesr-notices-panel--standalone {
    width: 100%;
}

.iesr-notices-panel__list--standalone {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .iesr-notices-panel__list--standalone {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .iesr-about-row {
        flex-direction: row;
        align-items: flex-start;
        gap: 2.5rem;
    }

    .iesr-notices-panel {
        width: min(360px, 34%);
    }
}

.iesr-hero__video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.iesr-hero__bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.iesr-hero__media-cycle {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.iesr-hero__slideshow {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.iesr-hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.iesr-hero__slide--active {
    opacity: 1;
}

.iesr-hero__video--cycle {
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
}

.iesr-hero__video--cycle.iesr-hero__video--active {
    opacity: 1;
    z-index: 1;
}

.iesr-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    min-height: 100%;
    /* Match homepage department card overlay for readable caption + notices */
    background: linear-gradient(
        180deg,
        rgba(0, 26, 58, 0.1) 0%,
        rgba(0, 26, 58, 0.25) 42%,
        rgba(0, 26, 58, 0.52) 72%,
        rgba(0, 26, 58, 0.72) 100%
    ),
    linear-gradient(
        90deg,
        rgba(0, 26, 58, 0.36) 0%,
        rgba(0, 26, 58, 0.225) 42%,
        rgba(0, 26, 58, 0.125) 100%
    );
}

.iesr-hero__content {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 230px var(--space-xl) var(--space-3xl);
}

.iesr-hero__left {
    max-width: 576px;
    animation: iesrHeroFadeIn 0.8s forwards;
}

@keyframes iesrHeroFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.iesr-hero__subheading {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 0.45rem 0.95rem 0.45rem 0.85rem;
    border-left: 3px solid var(--gold);
    background: linear-gradient(90deg, rgba(0, 26, 58, 0.72) 0%, rgba(0, 26, 58, 0.2) 70%, transparent 100%);
    font-family: var(--font-heading);
    font-size: clamp(0.768rem, 1.488vw, 0.912rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.iesr-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(1.944rem, 4.666vw, 2.954rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.iesr-hero__title-line {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.iesr-hero__title-accent {
    color: #f9ca22;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: currentColor;
    filter: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.iesr-hero__description {
    max-width: 480px;
    margin-bottom: var(--space-2xl);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.iesr-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.iesr-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-base);
    text-decoration: none;
}

.iesr-btn--primary {
    background: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.iesr-btn--primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.iesr-btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.iesr-btn--outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(245, 166, 35, 0.08);
}

/* Extra-pronounced CTA button (e.g. Join IESR) */
.iesr-btn--cta {
    background: linear-gradient(135deg, #f9ca22 0%, #f5a623 100%);
    color: #001a3a;
    border-color: rgba(249, 202, 34, 0.95);
    padding: 0.9rem 2.15rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow:
        0 10px 30px rgba(245, 166, 35, 0.28),
        0 0 0 4px rgba(249, 202, 34, 0.16);
    transform: translateY(-1px);
}

.iesr-btn--cta:hover {
    background: linear-gradient(135deg, #ffe463 0%, #f9ca22 55%, #f5a623 100%);
    box-shadow:
        0 14px 38px rgba(245, 166, 35, 0.35),
        0 0 0 6px rgba(249, 202, 34, 0.2);
    transform: translateY(-3px);
}

.iesr-btn--cta:focus-visible {
    outline: none;
    box-shadow:
        0 14px 38px rgba(245, 166, 35, 0.35),
        0 0 0 4px rgba(0, 26, 58, 0.28),
        0 0 0 8px rgba(249, 202, 34, 0.25);
}

.iesr-btn--secondary {
    background: transparent;
    color: #134bb5;
    border-color: #134bb5;
}

.iesr-btn--secondary:hover {
    background: #134bb5;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(19, 75, 181, 0.25);
}

@media (max-width: 480px) {
    .iesr-btn--cta {
        width: 100%;
        justify-content: center;
    }
}

/* Hero tab bar */
.iesr-hero__tab-bar {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.iesr-hero__tab-inner {
    display: flex;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.iesr-hero__tab-list {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.iesr-hero__tab-list::-webkit-scrollbar {
    display: none;
}

.iesr-hero__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 1.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    text-decoration: none;
    transition: color var(--transition-base);
}

.iesr-hero__tab:hover {
    color: var(--white);
}

.iesr-hero__tab--active {
    color: var(--gold);
    font-weight: 600;
}

.iesr-hero__tab--active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: var(--gold);
    border-radius: 3px 3px 0 0;
}

@media (max-width: 1100px) {
    .iesr-header__nav-links {
        display: none;
    }
    .iesr-header__search {
        display: none;
    }
    .iesr-header__drawer-search {
        display: flex;
    }
    .iesr-header__menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .iesr-header__wrapper {
        padding: 0.5rem var(--space-md);
    }
    .iesr-header__wrapper--sticky {
        padding: 0;
    }
    .iesr-header__top-links {
        display: none;
    }
    .iesr-header__social {
        padding-left: 0;
        border-left: none;
    }
    .iesr-header__top-row {
        justify-content: flex-end;
    }
    .iesr-header__bottom-row {
        height: 76px;
        padding: 0 var(--space-md);
    }
    .iesr-header__wrapper--sticky .iesr-header__bottom-row {
        padding: 0 var(--space-md);
    }
    .iesr-header__wrapper--sticky .iesr-header__top-row {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
    .iesr-hero {
        min-height: 49vh;
    }
    .iesr-hero__content {
        padding: 130px var(--space-md) var(--space-xl);
    }
    .iesr-hero__left {
        max-width: 100%;
    }
    .iesr-hero__mandate {
        display: none;
    }
    .iesr-hero__tab-inner {
        padding: 0 var(--space-sm);
    }
    .iesr-hero__tab {
        padding: 0.8rem 1rem;
        font-size: 0.82rem;
    }
}

/* ── Homepage / global impact statistics (above footer) ── */
.iesr-stats {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #001a3a 0%, #134bb5 48%, #0e3a8a 100%);
}

.iesr-stats__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 50%, rgba(249, 202, 34, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.iesr-stats__intro {
    margin-bottom: 2rem;
}

.iesr-stats__eyebrow {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.iesr-stats__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--white);
}

.iesr-stats__row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

.iesr-stats__item {
    position: relative;
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1.5rem;
}

.iesr-stats__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

.iesr-stats__link:hover {
    opacity: 0.92;
}

.iesr-stats__link:hover .iesr-stats__value {
    color: #ffe066;
}

.iesr-stats__link:hover .iesr-stats__label {
    color: #fff;
}

.iesr-stats__item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

@media (min-width: 640px) {
    .iesr-stats__item {
        flex: 1 1 0;
        min-width: 0;
        padding: 1rem 1.25rem;
    }

    .iesr-stats__item:not(:last-child) {
        border-bottom: none;
    }

    .iesr-stats__item:not(:last-child)::after {
        content: "";
        position: absolute;
        right: 0;
        top: 12%;
        height: 76%;
        width: 1px;
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(249, 202, 34, 0.55) 20%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(249, 202, 34, 0.55) 80%,
            transparent 100%
        );
    }
}

.iesr-stats__value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.iesr-stats__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    max-width: 13rem;
}

@media (min-width: 1024px) {
    .iesr-stats__label {
        font-size: 0.875rem;
        max-width: 15rem;
    }
}

/* ── Our Partners (below IESR in Numbers) ── */
.iesr-partners {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #001a3a 0%, #134bb5 48%, #0e3a8a 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.iesr-partners__glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 80% at 92% 50%, rgba(249, 202, 34, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 50% 70% at 8% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
}

.iesr-partners__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
}

@media (min-width: 1024px) {
    .iesr-partners__inner {
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
    }
}

.iesr-partners__header {
    flex-shrink: 0;
    text-align: center;
}

@media (min-width: 1024px) {
    .iesr-partners__header {
        width: 11.5rem;
        text-align: left;
        padding-right: 0.25rem;
        border-right: 1px solid rgba(255, 255, 255, 0.16);
    }
}

.iesr-partners__eyebrow {
    display: inline-block;
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #f9ca22;
}

.iesr-partners__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 2.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--white);
}

.iesr-partners__panel {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 768px) {
    .iesr-partners__panel {
        padding: 0.75rem 0.875rem;
    }
}

.iesr-partners__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.625rem;
    align-items: stretch;
    justify-items: stretch;
}

.iesr-partners__viewport--marquee {
    container-type: inline-size;
    container-name: partners-marquee;
    overflow: hidden;
    width: 100%;
    --partner-visible: 4;
    --partner-gap: 0.625rem;
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 0.75rem,
        #000 calc(100% - 0.75rem),
        transparent 100%
    );
}

.iesr-partners__track--marquee {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: max-content;
    gap: var(--partner-gap);
    animation: iesr-partners-marquee calc(var(--partner-count, 6) * 4.8s) linear infinite;
    will-change: transform;
}

.iesr-partners__viewport--marquee .iesr-partners__item {
    flex: 0 0 calc((100cqw - (var(--partner-visible) - 1) * var(--partner-gap)) / var(--partner-visible));
    width: calc((100cqw - (var(--partner-visible) - 1) * var(--partner-gap)) / var(--partner-visible));
    max-width: calc((100cqw - (var(--partner-visible) - 1) * var(--partner-gap)) / var(--partner-visible));
}

@keyframes iesr-partners-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - (var(--partner-gap) / 2)));
    }
}

.iesr-partners__viewport--marquee:hover .iesr-partners__track--marquee {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .iesr-partners__track--marquee {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }

    .iesr-partners__viewport--marquee {
        mask-image: none;
        overflow: visible;
    }
}

.iesr-partners__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
    width: 100%;
    height: 100%;
    min-height: 4.75rem;
    padding: 0.375rem 0.25rem 0.5rem;
    text-decoration: none;
    color: inherit;
}

.iesr-partners__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
    width: 100%;
    height: 100%;
    min-height: 4.75rem;
    padding: 0.375rem 0.25rem 0.5rem;
}

@media (max-width: 1023px) {
    .iesr-partners__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .iesr-partners__viewport--marquee {
        --partner-visible: 3;
    }
}

@media (min-width: 1024px) {
    .iesr-partners__viewport--marquee {
        --partner-visible: 4;
    }
}

@media (max-width: 639px) {
    .iesr-partners__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .iesr-partners__viewport--marquee {
        --partner-visible: 2;
        --partner-gap: 0.5rem;
    }

    .iesr-partners__panel {
        padding: 0.5rem 0.625rem;
    }
}

.iesr-partners__item {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 5.5rem;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 0.625rem;
    box-shadow: 0 2px 10px rgba(0, 26, 58, 0.14);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.iesr-partners__item:hover {
    transform: translateY(-2px);
    border-color: rgba(249, 202, 34, 0.7);
    box-shadow:
        0 6px 16px rgba(0, 26, 58, 0.2),
        0 0 0 1px rgba(249, 202, 34, 0.2);
}

.iesr-partners__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 2.75rem;
    flex: 1 1 auto;
}

.iesr-partners__logo {
    display: block;
    max-width: 92%;
    max-height: 2.75rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.iesr-partners__name {
    width: 100%;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    color: #0f172a;
    letter-spacing: 0.01em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.iesr-partners__link:hover .iesr-partners__name {
    color: #134bb5;
}

@media (min-width: 640px) {
    .iesr-partners__name {
        font-size: 0.6875rem;
    }

    .iesr-partners__logo-wrap {
        min-height: 3rem;
    }

    .iesr-partners__logo {
        max-height: 3rem;
    }
}

/* ── Footer navigation ── */
.iesr-footer__heading {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.iesr-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.iesr-footer__links a {
    color: rgba(226, 232, 240, 0.85);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.iesr-footer__links a:hover {
    color: var(--gold-light);
}

.iesr-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.iesr-footer__logo-link {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.iesr-footer__logo {
    display: block;
    max-height: 3.5rem;
    width: auto;
    object-fit: contain;
}

.iesr-footer__address,
.iesr-footer__contact-line {
    margin: 0;
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(226, 232, 240, 0.85);
}

.iesr-footer__contact-line a,
.iesr-footer__address a {
    color: rgba(226, 232, 240, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.iesr-footer__contact-line a:hover,
.iesr-footer__address a:hover {
    color: var(--gold-light);
}

.iesr-whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    max-width: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-full);
    background: #22c55e;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(34, 197, 94, 0.35);
    text-decoration: none;
    box-sizing: border-box;
    transition: background var(--transition-fast);
}

.iesr-whatsapp-fab__icon {
    flex: 0 0 22px;
    flex-shrink: 0;
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    display: block;
}

.iesr-whatsapp-fab__label {
    flex-shrink: 0;
    font-size: inherit;
    line-height: 1;
}

.iesr-whatsapp-fab:hover {
    background: #16a34a;
}

@media (max-width: 480px) {
    .iesr-header__top-row,
    .iesr-header__divider {
        display: none;
    }
    .iesr-header__card {
        border-radius: 16px;
    }
    .iesr-header__wrapper--sticky .iesr-header__card {
        border-radius: 0;
    }
}

/* ── About page ── */
.iesr-about {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .iesr-about {
        gap: 2.5rem;
    }
}

.iesr-about__badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(247, 214, 38, 0.2);
    padding: 0.2rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7a6200;
    margin-bottom: 0.5rem;
}

.iesr-about__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.iesr-about__lead .departments-content {
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: justify;
}

.iesr-about__lead .departments-content p,
.iesr-about__lead .departments-content li {
    font-family: var(--font-body);
    line-height: 1.869; /* leading-relaxed (1.625) + 15% */
}

.iesr-about__cards .departments-content,
.iesr-about__cards .core-values-content,
.iesr-about__cards .prose {
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: justify;
}

.iesr-about__cards .departments-content p,
.iesr-about__cards .departments-content li,
.iesr-about__cards .core-values-content p,
.iesr-about__cards .core-values-content li,
.iesr-about__cards .iesr-about__text-sm,
.iesr-about__card--values .core-values-content ul li,
.iesr-about__card--values .core-values-content ol li,
.iesr-about__values-list li {
    font-family: var(--font-body);
    line-height: 1.869;
}

.iesr-about__cards .iesr-about__text-sm {
    font-size: 1rem;
}

.iesr-about__cards {
    display: grid;
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .iesr-about__cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        align-items: stretch;
    }
}

.iesr-about__card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.iesr-about__card-label {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #134bb5;
    margin: 0 0 0.5rem;
}

.iesr-about__card--mv .iesr-about__card-label {
    margin-bottom: 0.625rem;
}

.iesr-about__mv-heading {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}

.iesr-about__mv-block + .iesr-about__mv-block--divider {
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid #e2e8f0;
}

.iesr-about__card--values .core-values-content ul,
.iesr-about__card--values .core-values-content ol,
.iesr-about__values-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iesr-about__card--values .core-values-content ul li,
.iesr-about__card--values .core-values-content ol li,
.iesr-about__values-list li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.125rem;
    font-size: 1rem;
    font-weight: 500;
    color: #475569;
    line-height: 1.869;
}

.iesr-about__card--values .core-values-content ul li + li,
.iesr-about__values-list li + li {
    margin-top: 0.125rem;
}

.iesr-about__card--values .core-values-content ul li::before,
.iesr-about__values-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: #134bb5;
}

.iesr-about__card--values .core-values-content ul li span {
    color: inherit;
}

.iesr-about__card--values .core-values-content ol {
    counter-reset: core-values;
}

.iesr-about__card--values .core-values-content ol li {
    padding-left: 1.5rem;
    counter-increment: core-values;
}

.iesr-about__card--values .core-values-content ol li::before {
    content: counter(core-values) '.';
    top: 0.15em;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #134bb5;
    font-size: 0.875rem;
    font-weight: 600;
}

.iesr-about__text-sm {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: #475569;
}

.iesr-about__panel {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
    .iesr-about__panel {
        padding: 1.5rem 1.75rem;
    }
}

.iesr-about__panel-head {
    margin-bottom: 1rem;
}

.iesr-about__eyebrow {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #94a3b8;
}

.iesr-about__section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #0f172a;
    margin: 0.35rem 0 0;
}

.iesr-about__themes {
    display: grid;
    gap: 0.625rem;
}

@media (min-width: 640px) {
    .iesr-about__themes {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .iesr-about__themes {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.iesr-about__theme {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.75rem 0.875rem;
}

.iesr-about__theme-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

/* ── Research department — research areas cards ── */
.iesr-dept--research .iesr-research-areas {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.iesr-research-areas__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin: 0 0 1rem;
}

.iesr-research-areas__heading::after {
    content: '';
    display: block;
    width: 3rem;
    height: 0.2rem;
    margin: 0.5rem auto 0;
    background: var(--gold);
    border-radius: 9999px;
}

.iesr-research-areas__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .iesr-research-areas__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .iesr-research-areas__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.875rem;
    }
}

.iesr-research-areas__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #134bb5;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.iesr-research-areas__card:hover {
    border-color: rgba(19, 75, 181, 0.35);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.iesr-research-areas__card-title {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

.iesr-research-areas__card-body {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #475569;
}

.iesr-research-areas__card-body p {
    margin: 0.375rem 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #134bb5;
}

.iesr-research-areas__card-body p:first-child {
    margin-top: 0;
}

.iesr-research-areas__card-body ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.iesr-research-areas__card-body ul + ul {
    margin-top: 0.25rem;
}

.iesr-research-areas__card-body ul li {
    position: relative;
    padding: 0.15rem 0 0.15rem 0.875rem;
}

.iesr-research-areas__card-body ul li + li {
    margin-top: 0.1rem;
}

.iesr-research-areas__card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #134bb5;
}

.iesr-research-areas__fallback {
    font-size: 0.875rem;
}

/* ── Research department — structured page sections ── */
.iesr-research-dept {
    --dept-fs: 0.9375rem;
    --dept-fs-heading: 1.125rem;
    --dept-fs-title: 1rem;
    --dept-fs-label: 0.8125rem;
    --dept-lh: 1.65;
    font-size: var(--dept-fs);
    line-height: var(--dept-lh);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0;
}

@media (min-width: 768px) {
    .iesr-research-dept {
        gap: 2.25rem;
    }
}

.iesr-dept-cta {
    margin: 0 0 1.5rem;
}

.iesr-dept-cta--inline {
    margin: 1.25rem 0 0;
}

.iesr-research-dept__section {
    padding-top: 0;
}

.iesr-research-dept__section + .iesr-research-dept__section {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.iesr-research-dept__section--hero {
    border-top: none;
    padding-top: 0;
}

.iesr-research-dept__section--last {
    padding-bottom: 0.5rem;
}

.iesr-research-dept__heading {
    font-family: var(--font-heading);
    font-size: var(--dept-fs-heading);
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.35;
}

.iesr-research-dept__card-title {
    font-family: var(--font-heading);
    font-size: var(--dept-fs-heading);
    font-weight: 700;
    color: #134bb5;
    margin: 0 0 0.75rem;
    line-height: 1.35;
}

.iesr-research-dept__eyebrow {
    font-size: var(--dept-fs-label);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}

.iesr-research-dept__prose {
    font-family: var(--font-body);
    font-size: inherit;
    line-height: var(--dept-lh);
    color: #475569;
}

.iesr-research-dept__prose p + p {
    margin-top: 0.75rem;
}

.iesr-research-dept__prose--lead {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: inherit;
    font-weight: 600;
    color: #334155;
}

.iesr-research-dept__prose--spaced {
    margin-bottom: 1rem;
}

.iesr-research-dept__prose--spaced p + p {
    margin-top: 0.75rem;
}

/* Shared card grids */
.iesr-research-dept__card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.iesr-research-dept__card-grid--spaced {
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .iesr-research-dept__card-grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .iesr-research-dept__card-grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.iesr-research-dept__intro-card,
.iesr-research-dept__area-card,
.iesr-research-dept__highlight-card,
.iesr-research-dept__mini-card,
.iesr-research-dept__closing-card,
.iesr-research-dept__poc-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    padding: 1.125rem 1.25rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.iesr-research-dept__intro-card {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 55%);
    border-left: 4px solid var(--gold);
}

.iesr-research-dept__highlight-card {
    border-left: 4px solid #134bb5;
}

.iesr-research-dept__mini-card {
    border-left: 3px solid var(--gold);
    font-size: inherit;
    line-height: var(--dept-lh);
    color: #334155;
}

.iesr-research-dept__mini-card p {
    margin: 0;
}

.iesr-research-dept__closing-card {
    margin-top: 1rem;
    background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 100%);
    border-color: #cbd5e1;
}

.iesr-research-dept__area-title {
    font-family: var(--font-heading);
    font-size: var(--dept-fs-title);
    font-weight: 700;
    color: #134bb5;
    margin: 0 0 0.625rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid rgba(245, 166, 35, 0.45);
    line-height: 1.35;
}

.iesr-research-dept__list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: var(--dept-lh);
    color: #475569;
}

.iesr-research-dept__list--compact li {
    padding: 0.15rem 0 0.15rem 0.875rem;
}

.iesr-research-dept__list li {
    position: relative;
    padding: 0.2rem 0 0.2rem 1rem;
}

.iesr-research-dept__list li + li {
    margin-top: 0.2rem;
}

.iesr-research-dept__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: #134bb5;
}

/* Programme / accreditation cards */
.iesr-research-dept__programme-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--gold);
    border-radius: 0.875rem;
    padding: 1rem 1.125rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    height: 100%;
}

.iesr-research-dept__programme-card--accent {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.iesr-research-dept__programme-title {
    font-family: var(--font-heading);
    font-size: var(--dept-fs-title);
    font-weight: 700;
    color: #134bb5;
    margin: 0 0 0.4rem;
    line-height: 1.35;
}

.iesr-research-dept__programme-text {
    font-size: inherit;
    line-height: var(--dept-lh);
    color: #475569;
    margin: 0 0 0.5rem;
}

.iesr-research-dept__programme-text--note {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: inherit;
    color: #64748b;
}

/* PoC compact cards */
.iesr-research-dept__poc-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.iesr-research-dept__poc-card-media {
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: #e2e8f0;
}

.iesr-research-dept__poc-card-body {
    padding: 1rem 1.125rem 1.125rem;
}

.iesr-research-dept__poc-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.iesr-research-dept__poc-title {
    font-family: var(--font-heading);
    font-size: var(--dept-fs-title);
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 0.5rem;
}

/* Chips for impact points, programmes, clients */
.iesr-research-dept__chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.iesr-research-dept__chip-grid--flush {
    margin-bottom: 0;
}

.iesr-research-dept__area-card--spaced {
    margin-bottom: 1rem;
}

.iesr-research-dept__chip {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: inherit;
    font-weight: 500;
    line-height: 1.4;
    color: #334155;
}

.iesr-research-dept__chip--client {
    background: #fff;
}

/* Department photo gallery */
.iesr-research-dept__photo-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .iesr-research-dept__photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .iesr-research-dept__photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.iesr-research-dept__photo-card {
    margin: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.iesr-research-dept__photo-card-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e2e8f0;
}

.iesr-research-dept__photo-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.iesr-research-dept__photo-caption {
    padding: 0.75rem 1rem;
    font-size: inherit;
    font-weight: 600;
    line-height: var(--dept-lh);
    color: #334155;
    text-align: center;
}

/* Legacy list layout (unused on dept pages but kept for compatibility) */
.iesr-research-dept__areas {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.iesr-research-dept__programmes {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

.iesr-research-dept__impact-list {
    display: grid;
    gap: 0.5rem 1.5rem;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    max-width: 42rem;
}

@media (min-width: 640px) {
    .iesr-research-dept__impact-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.iesr-research-dept__impact-list li {
    position: relative;
    padding-left: 1.125rem;
    font-size: inherit;
    line-height: var(--dept-lh);
    color: #334155;
}

.iesr-research-dept__impact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--gold);
}

.iesr-organogram-photo {
    max-width: 100%;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* /structure — names & positions +10% */
.iesr-structure-organogram__name--root {
    font-size: 1.2375rem;
    line-height: 1.35;
}

.iesr-structure-organogram__title--root {
    font-size: 0.9625rem;
    line-height: 1.45;
}

.iesr-structure-organogram__name--deputy {
    font-size: 0.9625rem;
    line-height: 1.35;
}

.iesr-structure-organogram__title--deputy {
    font-size: 0.825rem;
    line-height: 1.45;
}

.iesr-structure-organogram__name--staff {
    font-size: 0.9625rem;
    line-height: 1.35;
}

.iesr-structure-organogram__title--staff {
    font-size: 0.825rem;
    line-height: 1.45;
}

.iesr-gallery-photo {
    max-width: 100%;
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.iesr-home-pillar__grid {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .iesr-home-pillar__grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 2rem;
    }

    .iesr-home-pillar__grid--reverse .iesr-home-pillar__content {
        order: 2;
    }

    .iesr-home-pillar__grid--reverse .iesr-home-pillar__media {
        order: 1;
    }
}

.iesr-home-pillar__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.iesr-home-pillar__text {
    margin: 0.75rem 0 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.869;
    color: #475569;
    max-width: 40rem;
}

.iesr-home-pillar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.iesr-home-pillar__media {
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.iesr-home-pillar__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 3;
    object-fit: cover;
}

.iesr-contact-form__label {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.iesr-contact-form__input {
    display: block;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #0f172a;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.iesr-contact-form__input:focus {
    outline: none;
    border-color: #134bb5;
    box-shadow: 0 0 0 3px rgba(19, 75, 181, 0.15);
}

.iesr-contact-form__textarea {
    min-height: 8rem;
    resize: vertical;
}

.iesr-contact-form__checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
}

.iesr-contact-form__checkbox {
    margin-top: 0.2rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: #134bb5;
}

.iesr-contact-form__error {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #dc2626;
}

/* Apply flow — 3-step progress */
.iesr-apply-progress {
    margin-bottom: 2rem;
}

.iesr-apply-progress__list {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .iesr-apply-progress__list {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
}

.iesr-apply-progress__step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.iesr-apply-progress__marker {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    border: 2px solid #cbd5e1;
    color: #64748b;
    background: #fff;
}

.iesr-apply-progress__check {
    width: 1.125rem;
    height: 1.125rem;
}

.iesr-apply-progress__step--current .iesr-apply-progress__marker {
    border-color: #134bb5;
    background: #134bb5;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(19, 75, 181, 0.15);
}

.iesr-apply-progress__step--complete .iesr-apply-progress__marker {
    border-color: #16a34a;
    background: #16a34a;
    color: #fff;
}

.iesr-apply-progress__step--upcoming .iesr-apply-progress__label {
    color: #64748b;
}

.iesr-apply-progress__text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    padding-top: 0.125rem;
}

.iesr-apply-progress__label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.iesr-apply-progress__step--current .iesr-apply-progress__label {
    color: #134bb5;
}

.iesr-apply-progress__optional {
    font-weight: 500;
    color: #64748b;
    font-size: 0.75rem;
}

.iesr-apply-progress__hint {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.iesr-apply-progress__bar {
    height: 0.375rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.iesr-apply-progress__bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #134bb5, #16a34a);
    border-radius: 9999px;
    transition: width 0.4s ease;
}

.iesr-apply-step-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

@media (min-width: 768px) {
    .iesr-apply-step-card {
        padding: 2rem;
    }
}

.iesr-apply-step-card__heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #134bb5;
}

.iesr-apply-step-card__badge {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: #134bb5;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.iesr-apply-step-card__badge--optional {
    background: #64748b;
}

.iesr-apply-step-card__badge--complete {
    background: #16a34a;
}

.iesr-apply-step-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.iesr-apply-step-card--muted {
    border-style: dashed;
    background: #f8fafc;
}

.iesr-apply-step-card--complete {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

/* M-Pesa waiting state */
.iesr-mpesa-waiting {
    text-align: center;
    padding: 1.5rem 1rem;
}

.iesr-mpesa-waiting__spinner {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border: 3px solid #fde68a;
    border-top-color: #d97706;
    border-radius: 50%;
    animation: iesr-mpesa-spin 0.85s linear infinite;
}

@keyframes iesr-mpesa-spin {
    to { transform: rotate(360deg); }
}

.iesr-mpesa-waiting__dots::after {
    content: '';
    animation: iesr-mpesa-dots 1.4s steps(4, end) infinite;
}

@keyframes iesr-mpesa-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

.iesr-mpesa-waiting__title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0;
}

.iesr-mpesa-waiting__text {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #b45309;
    line-height: 1.5;
}

.iesr-mpesa-waiting__hint {
    margin: 0.75rem 0 0;
    font-size: 0.75rem;
    color: #a16207;
}

/* ── Grid Conference page ── */
.iesr-grid-conference {
    display: grid;
    gap: 2.5rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .iesr-grid-conference {
        grid-template-columns: minmax(0, 1fr) 18rem;
        gap: 3rem;
    }
}

@media (min-width: 1280px) {
    .iesr-grid-conference {
        grid-template-columns: minmax(0, 1fr) 20rem;
    }
}

.iesr-grid-conference__lead {
    font-size: 1.125rem;
    line-height: 1.65;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 1.25rem;
}

@media (min-width: 768px) {
    .iesr-grid-conference__lead {
        font-size: 1.25rem;
    }
}

.iesr-grid-conference__prose {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
    margin: 0 0 1rem;
}

.iesr-grid-conference__section {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid #e2e8f0;
}

.iesr-grid-conference__section--last {
    padding-bottom: 0.25rem;
}

.iesr-grid-conference__heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
    line-height: 1.35;
}

@media (min-width: 768px) {
    .iesr-grid-conference__heading {
        font-size: 1.375rem;
    }
}

.iesr-grid-conference__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.iesr-grid-conference__list li {
    font-family: var(--font-body);
    position: relative;
    padding-left: 1.125rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #475569;
}

.iesr-grid-conference__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: #134bb5;
}

.iesr-grid-conference__sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .iesr-grid-conference__sidebar {
        position: sticky;
        top: 6rem;
    }
}

.iesr-grid-conference__stats-card {
    background: linear-gradient(160deg, #134bb5 0%, #1e5ba8 100%);
    color: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(19, 75, 181, 0.18);
}

.iesr-grid-conference__stats-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.iesr-grid-conference__stats-meta {
    margin: 0.5rem 0 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.iesr-grid-conference__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem 1rem;
    margin: 0;
}

.iesr-grid-conference__stat {
    margin: 0;
}

.iesr-grid-conference__stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: #f9ca22;
}

.iesr-grid-conference__stat-label {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
}

.iesr-grid-conference__themes {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.iesr-grid-conference__themes-label {
    margin: 0 0 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
}

.iesr-grid-conference__theme-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.iesr-grid-conference__theme-tags li {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.35rem 0.625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

/* ── Homepage Grid Conference highlight ── */
.iesr-home-grid-conf {
    background: #f1f5f9;
}

.iesr-home-grid-conf__subtitle {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #334155;
}

.iesr-home-grid-conf__panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 1.75rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #134bb5 0%, #1e5ba8 55%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(19, 75, 181, 0.2);
}

@media (min-width: 768px) {
    .iesr-home-grid-conf__panel {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        padding: 2rem 2.25rem;
    }
}

.iesr-home-grid-conf__main {
    flex: 1;
    min-width: 0;
}

.iesr-home-grid-conf__meta {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.iesr-home-grid-conf__title {
    margin: 0.5rem 0 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}

.iesr-home-grid-conf__text {
    margin: 0.875rem 0 0;
    max-width: 40rem;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.iesr-home-grid-conf__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
}

.iesr-home-grid-conf__highlight {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.iesr-home-grid-conf__highlight-value {
    font-size: 1.375rem;
    font-weight: 800;
    line-height: 1;
    color: #f9ca22;
}

.iesr-home-grid-conf__highlight-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
}

.iesr-home-grid-conf__action {
    flex-shrink: 0;
}

.iesr-home-grid-conf__action .iesr-btn {
    white-space: nowrap;
}

@media (max-width: 767px) {
    .iesr-home-grid-conf__action .iesr-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ── News & Events page (body copy matches grid-conference prose) ── */
.iesr-news {
    font-family: var(--font-body);
}

.iesr-news__date {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.iesr-news__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #134bb5;
    margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
    .iesr-news__title {
        font-size: 1.25rem;
    }
}

.iesr-news__title--article {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #064699;
}

@media (min-width: 768px) {
    .iesr-news__title--article {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .iesr-news__title--article {
        font-size: 2.25rem;
    }
}

.iesr-news__excerpt,
.iesr-news__content,
.iesr-news__content p,
.iesr-news__back,
.iesr-news__read-more,
.iesr-news__nav-link {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.iesr-news__excerpt {
    margin: 0 0 1rem;
}

.iesr-news__excerpt p {
    margin: 0;
}

.iesr-news__content p + p {
    margin-top: 1rem;
}

.iesr-news__read-more {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #134bb5;
    text-decoration: none;
}

.iesr-news__read-more:hover {
    color: #1e40af;
}

.iesr-news__read-more--muted {
    color: #94a3b8;
}

.iesr-news__back,
.iesr-news__nav-link {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #064699;
    text-decoration: none;
}

.iesr-news__nav-link {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background: #f1f5f9;
}

.iesr-news__card {
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.iesr-news__card-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .iesr-news__card-body {
        padding: 1.5rem;
    }
}

.iesr-news__article {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.iesr-news__article-body {
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .iesr-news__article-body {
        padding: 2rem;
    }
}

.iesr-news__article-date {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.5rem;
}

/* ── Search results ── */
.iesr-search {
    font-family: var(--font-body);
}

.iesr-search__form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.iesr-search__input {
    flex: 1 1 16rem;
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
}

.iesr-search__input:focus {
    outline: none;
    border-color: #064699;
    box-shadow: 0 0 0 3px rgba(6, 70, 153, 0.12);
}

.iesr-search__submit {
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.iesr-search__submit:hover {
    background: var(--navy-dark);
}

.iesr-search__lead {
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
}

.iesr-search__results {
    display: grid;
    gap: 1rem;
}

.iesr-search__card {
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.iesr-search__type {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #064699;
}

.iesr-search__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.35;
}

.iesr-search__title a {
    color: #0f172a;
    text-decoration: none;
}

.iesr-search__title a:hover {
    color: #064699;
}

.iesr-search__excerpt {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
}

.iesr-search__link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.85rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #064699;
    text-decoration: none;
}

.iesr-search__link:hover {
    color: var(--navy-dark);
}

/* ── Academic & Professional courses (body copy matches grid-conference prose) ── */
.iesr-courses {
    font-family: var(--font-body);
}

.iesr-courses__intro,
.iesr-courses__prose,
.iesr-courses__prose p,
.iesr-courses__empty,
.iesr-courses__note,
.iesr-courses__list li,
.iesr-courses__table td,
.iesr-courses__table th,
.iesr-courses__table p,
.iesr-courses__apply-note,
.iesr-courses__apply-btn {
    font-family: var(--font-body);
}

.iesr-courses__intro,
.iesr-courses__prose,
.iesr-courses__prose p,
.iesr-courses__empty,
.iesr-courses__note,
.iesr-courses__list li,
.iesr-courses__table td,
.iesr-courses__apply-note {
    font-size: 1rem;
    line-height: 1.75;
    color: #475569;
}

.iesr-courses__intro {
    margin: 0 0 2rem;
    max-width: 48rem;
}

.iesr-courses__heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #134bb5;
}

@media (min-width: 768px) {
    .iesr-courses__heading {
        font-size: 1.5rem;
    }
}

.iesr-courses__category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
    margin: 0;
}

.iesr-courses__search-wrap {
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.iesr-courses__search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

.iesr-courses__search-total {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0;
    white-space: nowrap;
}

.iesr-courses__search-total-value {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: #134bb5;
}

.iesr-courses__search-total-label {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.iesr-courses__search-label {
    display: block;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
}

.iesr-courses__search-input {
    width: 100%;
    max-width: none;
    padding: 0.85rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: #0f172a;
    background: #fff;
}

.iesr-courses__search-input:focus {
    outline: none;
    border-color: #134bb5;
    box-shadow: 0 0 0 3px rgba(19, 75, 181, 0.12);
}

.iesr-courses__search-empty {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #92400e;
    font-size: 0.9375rem;
}

.iesr-courses__accordion {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.iesr-courses__accordion-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.iesr-courses__accordion-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border: none;
    background: linear-gradient(to right, #134bb5, #1e5ba8);
    color: #fff;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: filter var(--transition-fast);
}

.iesr-courses__accordion-toggle:hover {
    filter: brightness(1.05);
}

.iesr-courses__accordion-title {
    flex: 1;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.iesr-courses__accordion-count {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    white-space: nowrap;
}

.iesr-courses__accordion-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.iesr-courses__accordion-item--open .iesr-courses__accordion-icon {
    transform: rotate(180deg);
}

.iesr-courses__accordion-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.iesr-courses__accordion-item--open .iesr-courses__accordion-panel {
    display: block;
}

.iesr-courses__cell-code {
    font-weight: 700;
    color: #134bb5;
    font-size: 0.875rem;
}

.iesr-courses__extra--spaced {
    margin-top: 0;
}

.iesr-courses__section {
    margin-bottom: 2.5rem;
}

.iesr-courses__section--spaced {
    margin-bottom: 4rem;
}

.iesr-courses__table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.iesr-courses__table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    text-align: left;
}

.iesr-courses__table thead tr {
    background: #134bb5;
    color: #fff;
}

.iesr-courses__table thead th {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
}

.iesr-courses__table--light thead tr {
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.iesr-courses__table--light thead th {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #475569;
}

.iesr-courses__table tbody tr {
    border-bottom: 1px solid #f1f5f9;
}

.iesr-courses__table tbody tr:hover {
    background: #f8fafc;
}

.iesr-courses__table td {
    padding: 0.75rem 1rem;
    vertical-align: top;
}

.iesr-courses__table--professional td {
    padding: 1rem 1.5rem;
}

.iesr-courses__cell-name {
    font-weight: 600;
    color: #0f172a;
}

.iesr-courses__cell-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.125rem;
}

.iesr-courses__cell-fee {
    font-weight: 700;
    color: #134bb5;
}

.iesr-courses__card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.iesr-courses__card-header {
    background: linear-gradient(to right, #134bb5, #1e5ba8);
    color: #fff;
    padding: 1rem 1.5rem;
}

.iesr-courses__extra {
    background: #f8fafc;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 2rem 2.5rem;
}

.iesr-courses__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .iesr-courses__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .iesr-courses__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.iesr-courses__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
}

.iesr-courses__list-marker {
    color: #134bb5;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.iesr-courses__footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.iesr-courses__apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #f9ca22;
    padding: 0.875rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background-color 0.2s ease;
}

.iesr-courses__apply-btn:hover {
    background: #facc15;
}

.iesr-courses__apply-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.iesr-courses__apply-note {
    margin: 1rem 0 0;
    font-size: 0.875rem;
}

.iesr-courses__link {
    font-family: var(--font-body);
    font-weight: 600;
    color: #134bb5;
    text-decoration: none;
}

.iesr-courses__link:hover {
    text-decoration: underline;
}

.iesr-courses__empty {
    padding: 2.5rem;
    text-align: center;
}

.iesr-courses__heading--plain {
    border-bottom: none;
    padding-bottom: 0;
}

.iesr-courses__prose--spaced-top {
    margin-top: 2rem;
    margin-bottom: 0;
}

.iesr-courses__top-apply {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.iesr-courses__apply-note--inline {
    margin: 0;
    flex: 1 1 12rem;
}

.iesr-courses__alert {
    font-family: var(--font-body);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #78350f;
    padding: 0.75rem 1rem;
}

/* ── Department page layout (sidebar + tabs) ── */
.iesr-dept-page {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.iesr-dept-page__about {
    padding: 1.5rem 1.5rem 1.75rem;
    border: 1px solid #d5deeb;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.iesr-dept-page__about-head {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid #134bb5;
}

.iesr-dept-page__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #134bb5;
}

.iesr-dept-page__about-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

/* Body copy — same Lexend Deca stack / rhythm as /about */
.iesr-dept-page .departments-content,
.iesr-dept-page .departments-content p,
.iesr-dept-page .departments-content li,
.iesr-dept-page .departments-content td,
.iesr-dept-page .departments-content th,
.iesr-dept-page .prose,
.iesr-dept-page .prose p,
.iesr-dept-page .prose li,
.iesr-dept-page .iesr-dept-page__empty {
    font-family: var(--font-body);
}

.iesr-dept-page .departments-content {
    font-size: 1rem;
    color: #475569;
}

.iesr-dept-page .departments-content p,
.iesr-dept-page .departments-content li {
    line-height: 1.869; /* match /about leading-relaxed + 15% */
}

.iesr-dept-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

/* Fit management-structure deputy photo (260px) + label inside one card */
@media (min-width: 1024px) {
    .iesr-dept-page__grid {
        grid-template-columns: 17.5rem minmax(0, 1fr);
        gap: 1.75rem;
    }
}

.iesr-dept-page__sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .iesr-dept-page__sidebar {
        position: sticky;
        top: 7.5rem;
    }
}

.iesr-dept-hod {
    margin: 0;
}

.iesr-dept-hod__eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #134bb5;
}

.iesr-dept-hod__card {
    overflow: hidden;
    border: 1px solid #134bb5;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(19, 75, 181, 0.18);
}

.iesr-dept-hod__photo {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    background: #e2e8f0;
}

.iesr-dept-hod__meta {
    padding: 0.9rem 1rem 1.05rem;
    background: linear-gradient(90deg, #134bb5 0%, #1e5ba8 100%);
    color: #fff;
    text-align: center;
}

.iesr-dept-hod__name {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 0.9625rem;
    font-weight: 700;
    line-height: 1.35;
    color: #fff;
}

.iesr-dept-hod__title {
    margin: 0.25rem 0 0;
    font-size: 0.825rem;
    font-weight: 500;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.iesr-dept-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.85rem 0.75rem 0.75rem;
    border: 1px solid #d5deeb;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.iesr-dept-tabs__heading {
    margin: 0 0.15rem;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: #134bb5;
    line-height: 1.35;
}

.iesr-dept-tabs__list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
}

@media (min-width: 1024px) {
    .iesr-dept-tabs__list {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
}

.iesr-dept-tabs__btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #334155;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 650;
    text-align: left;
    padding: 0.7rem 0.85rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.iesr-dept-tabs__btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.iesr-dept-tabs__btn--active,
.iesr-dept-tabs__btn[aria-selected="true"] {
    background: #134bb5;
    color: #fff;
}

.iesr-dept-page__main {
    min-width: 0;
    border: 1px solid #d5deeb;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    padding: 1.35rem 1.35rem 1.6rem;
    min-height: 16rem;
}

.iesr-dept-page__panel-title {
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e2e8f0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 750;
    color: #134bb5;
}

.iesr-dept-page__empty {
    margin: 0;
    font-size: 0.9375rem;
    color: #64748b;
    font-style: italic;
}

.iesr-dept-page__body h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.05rem;
    color: #134bb5;
}

.iesr-dept-page__body h3:first-child {
    margin-top: 0;
}

.iesr-dept-page__body h4 {
    margin: 0.9rem 0 0.35rem;
    font-size: 0.95rem;
    color: #1e293b;
}

.iesr-dept-page__body p {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    color: #475569;
    line-height: 1.869;
}

.iesr-dept-page__body .iesr-dept-accordion__gallery,
.iesr-dept-accordion__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.iesr-dept-accordion__gallery-item {
    margin: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.iesr-dept-accordion__gallery-item img {
    display: block !important;
    width: 100%;
    height: 7.5rem;
    object-fit: cover;
}

.iesr-dept-accordion__gallery-item figcaption {
    padding: 0.4rem 0.5rem;
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
}

.iesr-dept-cta--inline {
    margin-bottom: 1rem;
}

.iesr-dept-cta--after-about {
    margin-top: 1.5rem;
}

/* Consultant application modal (UMC) */
body.iesr-consultant-modal-open {
    overflow: hidden;
}

.iesr-consultant-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.iesr-consultant-modal[hidden] {
    display: none;
}

.iesr-consultant-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
}

.iesr-consultant-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: min(90vh, 40rem);
    overflow: auto;
    background: #fff;
    border-radius: 0.85rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
    padding: 1.25rem 1.35rem 1.4rem;
}

.iesr-consultant-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.iesr-consultant-modal__title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 750;
    color: #134bb5;
    line-height: 1.3;
}

.iesr-consultant-modal__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 1.75rem;
    line-height: 1;
    padding: 0 0.25rem;
    cursor: pointer;
}

.iesr-consultant-modal__close:hover {
    color: #0f172a;
}

.iesr-consultant-modal__errors {
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 0.5rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    font-size: 0.875rem;
}

.iesr-consultant-modal__errors ul {
    margin: 0;
    padding-left: 1.1rem;
}

.iesr-consultant-modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.iesr-consultant-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.iesr-consultant-modal__field input[type="text"],
.iesr-consultant-modal__field input[type="email"],
.iesr-consultant-modal__field input[type="date"],
.iesr-consultant-modal__field input[type="file"] {
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    color: #0f172a;
    background: #fff;
}

.iesr-consultant-modal__field input[type="file"] {
    padding: 0.45rem 0.5rem;
}

.iesr-consultant-modal__field small {
    font-weight: 500;
    font-size: 0.75rem;
    color: #64748b;
}

.iesr-consultant-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.35rem;
}

.iesr-btn--ghost {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

.iesr-btn--ghost:hover {
    background: #e2e8f0;
    color: #0f172a;
}

/* ── Resources portal (slim chrome) ── */
.iesr-resources-nav {
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.iesr-resources-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
}

.iesr-resources-nav__brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.iesr-resources-nav__logo {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
}

.iesr-resources-nav__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.15rem;
}

.iesr-resources-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.iesr-resources-nav__link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.iesr-resources-nav__link + .iesr-resources-nav__link {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

@media (max-width: 640px) {
    .iesr-resources-nav__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .iesr-resources-nav__link + .iesr-resources-nav__link {
        border-left: none;
    }
}

