/*
 * Department and course detail templates
 * Scoped to .bc-programme-detail so the original Boitekanelo theme/navigation remains untouched.
 */

.bc-programme-detail {
    --bc-prog-navy: #071f52;
    --bc-prog-blue: #1f3480;
    --bc-prog-green: #159b5a;
    --bc-prog-gold: #e2ab20;
    --bc-prog-ink: #142445;
    --bc-prog-muted: #6d7a93;
    --bc-prog-soft: #f3faf7;
    --bc-prog-soft-blue: #f5f8fc;
    --bc-prog-line: #dbe7ef;
    --bc-prog-shadow: 0 24px 58px rgba(7, 31, 82, 0.10);
    color: var(--bc-prog-ink);
    background: #fff;
    overflow: hidden;
}


.bc-programme-detail *,
.bc-programme-detail *::before,
.bc-programme-detail *::after {
    box-sizing: border-box;
}

.bc-programme-detail [id] {
    scroll-margin-top: 150px;
}

.bc-programme-container {
    width: min(1760px, calc(100% - clamp(32px, 8vw, 132px)));
    margin: 0 auto;
}

.bc-programme-section {
    position: relative;
    padding: clamp(34px, 4.6vw, 70px) 0;
}

.bc-department-detail .bc-programme-section {
    padding: clamp(28px, 3.4vw, 52px) 0;
}

.bc-programme-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--bc-prog-green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.22em;
    line-height: 1.2;
    text-transform: uppercase;
}

.bc-programme-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(22px, 3vw, 34px);
    color: rgba(7, 31, 82, 0.58);
    font-size: 13px;
    font-weight: 800;
}

.bc-programme-breadcrumb a {
    color: var(--bc-prog-blue);
}

.bc-programme-breadcrumb span:last-child {
    color: var(--bc-prog-muted);
}

.bc-programme-hero {
    position: relative;
    padding: clamp(36px, 4.6vw, 72px) 0 clamp(34px, 4.4vw, 64px);
    background:
        radial-gradient(circle at 5% 12%, rgba(21, 155, 90, 0.10) 0 13%, transparent 14%),
        radial-gradient(circle at 96% 89%, rgba(21, 155, 90, 0.14) 0 10%, transparent 11%),
        linear-gradient(111deg, #fff 0 58%, #f2faf7 58% 100%);
    isolation: isolate;
}

.bc-programme-hero::before {
    content: "";
    position: absolute;
    top: 58px;
    left: 43%;
    z-index: 0;
    width: 110px;
    height: 172px;
    opacity: 0.30;
    transform: rotate(-28deg);
    pointer-events: none;
    background:
        radial-gradient(circle, var(--bc-prog-gold) 0 7px, transparent 8px) 0 0 / 38px 38px,
        linear-gradient(135deg, transparent 38%, var(--bc-prog-gold) 39% 42%, transparent 43%) 0 0 / 38px 38px;
}

.bc-programme-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 0 51%;
    z-index: 0;
    clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(243, 250, 247, 0.94));
    pointer-events: none;
}

.bc-programme-hero__grid {
    position: relative;
    z-index: 1;
    min-height: clamp(430px, 33vw, 590px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
    align-items: center;
    gap: clamp(30px, 4vw, 76px);
}

.bc-programme-hero__copy {
    position: relative;
    z-index: 3;
}

.bc-programme-hero h1 {
    max-width: 760px;
    margin: 0 0 22px !important;
    color: var(--bc-prog-navy);
    font-size: clamp(44px, 4.4vw, 78px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.bc-programme-hero h1::after,
.bc-programme-section-title h2::after,
.bc-programme-copy-card h2::after,
.bc-course-overview h2::after {
    content: "";
    display: block;
    width: 108px;
    height: 9px;
    margin-top: 16px;
    border-radius: 999px;
    background: var(--bc-prog-gold);
    clip-path: ellipse(50% 36% at 50% 50%);
}

.bc-programme-section-title:not(.bc-programme-section-title--split) h2::after {
    margin-left: auto;
    margin-right: auto;
}

.bc-programme-hero p {
    max-width: 660px;
    margin: 0 0 28px !important;
    color: #3f4a60;
    font-size: clamp(17px, 1.28vw, 22px);
    line-height: 1.62;
}

.bc-programme-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.bc-programme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.bc-programme-btn:hover {
    transform: translateY(-2px);
}

.bc-programme-btn--primary {
    color: #fff;
    background: var(--bc-prog-blue);
    box-shadow: 0 17px 34px rgba(31, 52, 128, 0.18);
}

.bc-programme-btn--primary:hover,
.bc-programme-btn--green:hover {
    color: var(--bc-prog-navy);
    background: var(--bc-prog-gold);
}

.bc-programme-btn--green {
    color: #fff;
    background: var(--bc-prog-green);
    box-shadow: 0 17px 34px rgba(21, 155, 90, 0.18);
}

.bc-programme-btn--outline {
    color: var(--bc-prog-green);
    background: #fff;
    border-color: rgba(21, 155, 90, 0.42);
}

.bc-programme-btn--outline:hover {
    color: #fff;
    background: var(--bc-prog-green);
}

.bc-programme-btn--outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.44);
}

.bc-programme-btn--outline-light:hover {
    color: var(--bc-prog-navy);
    background: #fff;
}

.bc-programme-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bc-prog-green);
    font-size: 14px;
    font-weight: 900;
}

.bc-programme-link--button {
    justify-self: end;
    align-self: end;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(21, 155, 90, 0.28);
    border-radius: 999px;
    color: var(--bc-prog-green);
    background: #fff;
    box-shadow: 0 12px 30px rgba(7, 31, 82, 0.06);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.bc-programme-link--button:hover {
    color: #fff;
    background: var(--bc-prog-green);
    border-color: var(--bc-prog-green);
    transform: translateY(-2px);
}

.bc-programme-hero__visual {
    position: relative;
    z-index: 1;
    height: clamp(370px, 31vw, 540px);
    overflow: hidden;
    border-radius: 260px 0 0 260px;
    box-shadow: -24px 30px 68px rgba(7, 31, 82, 0.12);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 100%);
}

.bc-programme-hero__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0, rgba(255, 255, 255, 0.20) 20%, transparent 42%),
        linear-gradient(180deg, transparent 74%, rgba(243, 250, 247, 0.70));
    pointer-events: none;
}

.bc-programme-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    width: 8px;
    background: linear-gradient(180deg, var(--bc-prog-green), var(--bc-prog-gold));
    opacity: 0.9;
}

.bc-programme-hero__visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transform: scale(1.025);
}

.bc-programme-hero__grid--full {
    grid-template-columns: 1fr;
    min-height: auto;
}

.bc-department-hero--text-only {
    padding: clamp(44px, 5vw, 78px) 0 clamp(36px, 4vw, 60px);
    background:
        radial-gradient(circle at 0 4%, rgba(21, 155, 90, 0.12), transparent 25%),
        radial-gradient(circle at 96% 84%, rgba(226, 171, 32, 0.10), transparent 24%),
        linear-gradient(135deg, #fff 0%, #f4faf7 100%);
}

.bc-department-hero--text-only::after {
    display: none;
}

.bc-department-hero--text-only .bc-programme-hero__copy {
    max-width: 1280px;
}

.bc-department-hero--text-only .bc-programme-hero__copy p {
    max-width: 1220px;
    color: #46536a;
}

.bc-programme-prose,
.bc-programme-prose p,
.bc-programme-prose li {
    color: #4a566a;
    font-size: 16px;
    line-height: 1.78;
}

.bc-programme-prose p {
    display: block !important;
    margin: 0 0 15px !important;
}

.bc-programme-prose p:last-child {
    margin-bottom: 0 !important;
}

.bc-programme-prose ul,
.bc-programme-prose ol {
    margin: 14px 0 0;
    padding-left: 22px;
}

.bc-programme-section-title {
    max-width: 920px;
    margin: 0 auto 36px;
    text-align: center;
}

.bc-department-detail .bc-programme-section-title {
    margin-bottom: clamp(20px, 2.4vw, 30px);
}

.bc-programme-section-title--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.6fr);
    gap: 32px;
    align-items: end;
    text-align: left;
}

.bc-programme-section-title h2,
.bc-programme-copy-card h2,
.bc-course-overview h2 {
    margin: 0;
    color: var(--bc-prog-navy);
    font-size: clamp(34px, 3.8vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.bc-programme-section-title p,
.bc-programme-copy-card > p {
    margin: 14px 0 0;
    color: var(--bc-prog-muted);
    font-size: 17px;
    line-height: 1.72;
}

.bc-programme-copy-card {
    height: 100%;
    padding: clamp(28px, 3.4vw, 50px);
    border: 1px solid var(--bc-prog-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--bc-prog-shadow);
}

/* Department detail */

.bc-department-intro {
    background:
        radial-gradient(circle at 0 0, rgba(21, 155, 90, 0.08), transparent 28%),
        #fff;
}

.bc-department-intro__grid,
.bc-department-research__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(520px, 1.12fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: stretch;
}

.bc-department-focus-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bc-department-focus-grid article {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 18px;
    padding: 28px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 42px rgba(7, 31, 82, 0.06);
}

.bc-department-focus-grid i,
.bc-department-research-items i,
.bc-course-career-grid i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 17px;
    color: var(--bc-prog-green);
    background: rgba(21, 155, 90, 0.10);
    font-size: 30px;
}

.bc-department-focus-grid h3,
.bc-department-research-items h3,
.bc-programme-course-card h3,
.bc-department-staff-card h3,
.bc-programme-news-card h3 {
    margin: 0;
    color: var(--bc-prog-navy);
    font-weight: 900;
    line-height: 1.25;
}

.bc-department-focus-grid p,
.bc-department-research-items p,
.bc-programme-course-card p,
.bc-programme-news-card p {
    margin: 8px 0 0;
    color: var(--bc-prog-muted);
    font-size: 15px;
    line-height: 1.65;
}

.bc-department-head-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: start;
    padding: clamp(26px, 3vw, 44px);
    border: 1px solid var(--bc-prog-line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 98% 20%, rgba(21, 155, 90, 0.10), transparent 22%),
        #fff;
    box-shadow: var(--bc-prog-shadow);
}

.bc-department-head-card::after {
    content: "";
    position: absolute;
    right: 34px;
    bottom: 28px;
    width: 122px;
    height: 122px;
    opacity: 0.16;
    background: radial-gradient(circle, var(--bc-prog-green) 0 2px, transparent 3px) 0 0 / 18px 18px;
    pointer-events: none;
}

.bc-department-head-card__image {
    align-self: start;
    height: clamp(260px, 24vw, 360px);
    overflow: hidden;
    border-radius: 22px;
    background: var(--bc-prog-soft);
}

.bc-department-head-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.bc-department-head-card__image span,
.bc-department-staff-card__image span {
    width: 100%;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bc-prog-green);
    font-size: 82px;
    font-weight: 900;
}

.bc-department-head-card__content {
    position: relative;
    z-index: 1;
    align-self: start;
}

.bc-department-head-card__content h2 {
    margin: 0 0 6px;
    color: var(--bc-prog-navy);
    font-size: clamp(30px, 2.8vw, 46px);
    line-height: 1.1;
}

.bc-department-head-card__role {
    color: var(--bc-prog-green) !important;
    font-weight: 900;
}

.bc-programme-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bc-programme-course-card {
    overflow: hidden;
    border: 1px solid var(--bc-prog-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 46px rgba(7, 31, 82, 0.07);
}

.bc-programme-course-card > img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
    background: var(--bc-prog-soft-blue);
}

.bc-programme-course-card > div {
    padding: 25px;
}

.bc-programme-course-card span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--bc-prog-green);
    background: rgba(21, 155, 90, 0.09);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bc-programme-course-card h3 {
    font-size: 22px;
}

.bc-programme-course-card h3 a {
    color: inherit;
}

.bc-programme-course-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 22px;
}

.bc-programme-course-card__meta small,
.bc-programme-course-card__meta a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--bc-prog-green);
    font-weight: 900;
}

.bc-department-staff {
    background: linear-gradient(180deg, #fff, var(--bc-prog-soft));
}

.bc-department-staff-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.bc-department-staff-card {
    overflow: hidden;
    border: 1px solid var(--bc-prog-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 38px rgba(7, 31, 82, 0.06);
}

.bc-department-staff-card__image {
    height: 190px;
    min-height: 190px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--bc-prog-soft-blue);
}

.bc-department-staff-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.bc-department-staff-card h3,
.bc-department-staff-card p,
.bc-department-staff-card a {
    margin-inline: 18px;
}

.bc-department-staff-card h3 {
    margin-top: 18px;
    font-size: 18px;
}

.bc-department-staff-card p {
    color: var(--bc-prog-muted);
    font-size: 14px;
    line-height: 1.55;
}

.bc-department-staff-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: var(--bc-prog-green);
    font-weight: 900;
}

.bc-department-research {
    background:
        radial-gradient(circle at 100% 8%, rgba(226, 171, 32, 0.08), transparent 24%),
        #fff;
}

.bc-department-research__grid {
    align-items: center;
}

.bc-department-research__grid > div:first-child h2 {
    max-width: 560px;
    margin: 0 0 18px;
    color: var(--bc-prog-navy);
    font-size: clamp(36px, 4vw, 60px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.bc-department-research__grid > div:first-child p {
    max-width: 560px;
    color: var(--bc-prog-muted);
    font-size: 18px;
    line-height: 1.75;
}

.bc-department-research__heading {
    margin-bottom: 28px;
}

.bc-department-research__heading h2 {
    max-width: 780px;
}

.bc-department-research__heading p {
    max-width: 570px;
    margin: 0;
    align-self: end;
    color: var(--bc-prog-muted);
    font-size: 17px;
    line-height: 1.7;
}

.bc-department-research-items {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.bc-department-research-items article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(7, 31, 82, 0.06);
}

.bc-department-research-items--wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bc-department-research-items--wide article {
    min-height: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
}

.bc-department-research-items--wide h3 {
    font-size: clamp(18px, 1.15vw, 22px);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.bc-department-research-items--wide p {
    font-size: 15px;
    line-height: 1.65;
}

.bc-programme-news {
    background: linear-gradient(180deg, var(--bc-prog-soft), #fff);
}

.bc-programme-news .bc-programme-section-title--split {
    align-items: end;
    margin-bottom: 28px;
}

.bc-programme-news .bc-programme-section-title h2 {
    max-width: 760px;
}

.bc-department-gallery {
    margin-top: 0 !important;
    padding-top: clamp(26px, 3vw, 44px) !important;
    padding-bottom: clamp(28px, 3.4vw, 50px) !important;
    background:
        radial-gradient(circle at 95% 10%, rgba(226, 171, 32, 0.08), transparent 22%),
        linear-gradient(180deg, #fff, #f8fcfa);
}

.bc-department-gallery .bc-programme-section-title {
    margin-bottom: clamp(18px, 2vw, 28px);
}

.bc-department-gallery .bc-programme-section-title p {
    max-width: 660px;
    margin-inline: auto;
}

.bc-department-gallery .shape-line {
    display: none;
}

.bc-department-gallery .isotop-button.button-transparent {
    width: max-content;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 30px;
    padding: 6px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 999px;
    background: #f1f5f6;
}

.bc-department-gallery .isotop-button.button-transparent button {
    height: 42px;
    min-width: 92px;
    margin: 0;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--bc-prog-ink);
    background: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 40px;
    text-transform: none;
}

.bc-department-gallery .isotop-button.button-transparent button::after {
    display: none;
}

.bc-department-gallery .isotop-button.button-transparent button:hover,
.bc-department-gallery .isotop-button.button-transparent button.is-checked {
    color: #fff;
    background: var(--bc-prog-blue);
    border-color: var(--bc-prog-blue);
}

.bc-department-gallery .gallery-grid-wrap {
    height: auto !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 1.8vw, 24px);
    margin: 0 !important;
    align-items: start;
}

.bc-department-gallery .edu-gallery-grid,
.bc-department-gallery__grid--count-1 .edu-gallery-grid {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    padding: 0 !important;
    transform: none !important;
}

.bc-department-gallery__grid--count-1 {
    max-width: 620px;
    grid-template-columns: minmax(0, 1fr);
    margin-inline: auto !important;
}

.bc-department-gallery__grid--count-2 {
    max-width: 960px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: auto !important;
}

.bc-department-gallery .edu-gallery-grid .thumbnail {
    aspect-ratio: 16 / 10;
    height: clamp(190px, 18vw, 280px);
    max-height: 280px;
    overflow: hidden;
    border: 1px solid var(--bc-prog-line);
    border-radius: 18px;
    background: var(--bc-prog-soft-blue);
    box-shadow: 0 18px 42px rgba(7, 31, 82, 0.06);
}

.bc-department-gallery .edu-gallery-grid .thumbnail::before {
    z-index: 1;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(7, 31, 82, 0.05), rgba(7, 31, 82, 0.65));
}

.bc-department-gallery .edu-gallery-grid .thumbnail img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 0;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bc-department-gallery .edu-gallery-grid:hover .thumbnail img {
    transform: scale(1.045);
}

.bc-department-gallery .edu-gallery-grid .zoom-icon {
    z-index: 2;
    width: 50px;
    height: 50px;
    color: var(--bc-prog-navy);
    line-height: 50px;
}

.bc-programme-news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.bc-programme-news-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 31, 82, 0.06);
}

.bc-programme-news-grid .bc-programme-news-card {
    grid-template-columns: 1fr;
    align-items: stretch;
    height: 100%;
}

.bc-programme-news-grid .bc-programme-news-card:only-child {
    width: min(100%, 560px);
    justify-self: start;
}

.bc-programme-news-card img {
    width: 100%;
    height: 132px;
    border-radius: 16px;
    object-fit: cover;
}

.bc-programme-news-grid .bc-programme-news-card img {
    height: clamp(170px, 13vw, 210px);
}

.bc-programme-news-card time {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--bc-prog-green);
    font-size: 13px;
    font-weight: 900;
}

.bc-programme-news-card h3 {
    font-size: 20px;
    line-height: 1.28;
}

.bc-programme-news-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Course detail */

.bc-course-detail .bc-programme-section {
    padding: clamp(28px, 3.4vw, 54px) 0;
}

.bc-course-hero .bc-programme-container {
    width: min(1880px, calc(100% - clamp(32px, 5vw, 96px)));
}

.bc-course-hero__grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
}

.bc-course-hero .bc-programme-hero__copy {
    width: min(100%, 1540px);
    max-width: none;
}

.bc-course-hero h1 {
    width: min(100%, 1500px);
    max-width: none;
    font-size: clamp(48px, 4.45vw, 88px);
}

.bc-course-hero p {
    width: min(100%, 1500px);
    max-width: none;
}

.bc-course-hero::after {
    inset: 55% 0 0 0;
}

.bc-course-feature-strip {
    position: relative;
    z-index: 3;
    margin-top: -30px;
}

.bc-course-feature-strip .bc-programme-container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--bc-prog-shadow);
    backdrop-filter: blur(10px);
}

.bc-course-feature-strip article {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 98px;
    padding: 16px;
    border: 1px solid rgba(226, 233, 240, 0.92);
    border-radius: 20px;
    color: var(--bc-prog-navy);
    background:
        radial-gradient(circle at 100% 0, rgba(21, 155, 90, 0.08), transparent 46%),
        #fff;
    font-weight: 900;
}

.bc-course-feature-strip article:first-child,
.bc-course-feature-strip article:nth-child(4) {
    background:
        radial-gradient(circle at 100% 0, rgba(226, 171, 32, 0.11), transparent 46%),
        #fff;
}

.bc-course-feature-strip i {
    flex: 0 0 auto;
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--bc-prog-green);
    background: rgba(21, 155, 90, 0.10);
    font-size: 24px;
}

.bc-course-feature-strip small {
    display: block;
    margin-bottom: 3px;
    color: var(--bc-prog-muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.13em;
    line-height: 1.15;
    text-transform: uppercase;
}

.bc-course-feature-strip strong {
    display: block;
    color: var(--bc-prog-navy);
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.25;
}

.bc-course-overview__grid {
    display: grid;
    grid-template-columns: minmax(380px, 0.82fr) minmax(620px, 1.18fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: stretch;
}

.bc-course-overview__grid > article {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bc-course-overview h2 {
    font-size: clamp(30px, 2.8vw, 42px);
}

.bc-course-overview__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 14px;
    align-self: start;
    align-content: start;
}

.bc-course-overview__gallery figure {
    aspect-ratio: 1 / 1;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--bc-prog-line);
    border-radius: 24px;
    background: var(--bc-prog-soft-blue);
    box-shadow: var(--bc-prog-shadow);
}

.bc-course-overview__gallery figure.is-large {
    grid-row: auto;
    min-height: 0;
}

.bc-course-overview__gallery figure:nth-child(4) {
    grid-column: auto;
    min-height: 0;
}

.bc-course-gallery-trigger {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: zoom-in;
}

.bc-course-overview__gallery img,
.bc-course-gallery-trigger img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.24s ease;
}

.bc-course-gallery-trigger:hover img,
.bc-course-gallery-trigger:focus-visible img {
    transform: scale(1.035);
}

.bc-course-gallery-trigger:focus-visible {
    outline: 4px solid var(--bc-prog-gold);
    outline-offset: -4px;
}

.bc-course-gallery-trigger__cue {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 50%;
    color: #fff;
    background: rgba(7, 31, 82, 0.78);
    box-shadow: 0 12px 28px rgba(7, 31, 82, 0.24);
    backdrop-filter: blur(7px);
}

.bc-course-lightbox-open {
    overflow: hidden;
}

.bc-course-lightbox[hidden] {
    display: none;
}

.bc-course-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: clamp(20px, 4vw, 64px);
    opacity: 0;
    background: rgba(3, 13, 41, 0.94);
    backdrop-filter: blur(10px);
    transition: opacity 0.18s ease;
}

.bc-course-lightbox.is-open {
    opacity: 1;
}

.bc-course-lightbox figure {
    width: min(1240px, 100%);
    max-height: calc(100vh - clamp(70px, 10vw, 130px));
    display: grid;
    gap: 12px;
    margin: 0;
}

.bc-course-lightbox img {
    width: 100%;
    max-height: calc(100vh - clamp(112px, 13vw, 170px));
    display: block;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.46);
}

.bc-course-lightbox figcaption {
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
    text-align: center;
}

.bc-course-lightbox__close {
    position: fixed;
    top: clamp(16px, 2.4vw, 34px);
    right: clamp(16px, 2.4vw, 34px);
    z-index: 3;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    font-size: 21px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.bc-course-lightbox__close:hover,
.bc-course-lightbox__close:focus-visible {
    color: var(--bc-prog-navy);
    background: var(--bc-prog-gold);
    transform: rotate(5deg);
    outline: none;
}

.bc-course-admissions {
    background: linear-gradient(180deg, var(--bc-prog-soft), #fff);
}

.bc-course-admissions-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 52px);
    align-items: start;
}

.bc-course-admissions-card h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 3vw, 46px);
}

.bc-course-inline-admissions {
    margin-top: clamp(28px, 3vw, 42px);
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--bc-prog-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0, rgba(21, 155, 90, 0.08), transparent 42%),
        linear-gradient(135deg, #fff, var(--bc-prog-soft));
    box-shadow: 0 18px 42px rgba(7, 31, 82, 0.06);
}

.bc-course-inline-admissions h3 {
    margin: 0 0 16px;
    color: var(--bc-prog-navy);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.18;
}

.bc-course-inline-admissions .bc-programme-prose {
    font-size: clamp(16px, 1.25vw, 19px);
}

.bc-course-careers {
    background: linear-gradient(180deg, #fff, var(--bc-prog-soft));
}

.bc-course-career-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.bc-course-career-grid article {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 96px;
    padding: 20px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 38px rgba(7, 31, 82, 0.05);
}

.bc-course-career-grid span {
    color: var(--bc-prog-navy);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
}

.bc-course-curriculum {
    background: #fff;
}

.bc-course-year-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.bc-course-year-grid::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 5%;
    right: 5%;
    height: 1px;
    border-top: 1px dashed rgba(21, 155, 90, 0.42);
}

.bc-course-year-grid article {
    position: relative;
    min-height: 280px;
    padding: 0 24px 24px;
    border: 1px solid var(--bc-prog-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(7, 31, 82, 0.06);
}

.bc-course-year-grid article > span {
    position: relative;
    z-index: 2;
    display: table;
    margin: 0 auto 22px;
    padding: 7px 18px;
    border-radius: 999px;
    color: #fff;
    background: var(--bc-prog-green);
    font-size: 12px;
    font-weight: 900;
}

.bc-course-year-grid i {
    display: flex;
    width: 60px;
    height: 60px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--bc-prog-green);
    background: rgba(21, 155, 90, 0.10);
    font-size: 30px;
}

.bc-course-year-grid ul {
    margin: 0;
    padding-left: 18px;
}

.bc-course-year-grid li {
    margin: 0 0 9px;
    color: #536078;
    font-size: 15px;
    line-height: 1.55;
}

.bc-course-info {
    background: linear-gradient(180deg, var(--bc-prog-soft), #fff);
}

.bc-programme-final-cta {
    padding-bottom: clamp(48px, 5vw, 80px);
}

.bc-programme-final-cta__card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: center;
    padding: clamp(28px, 3.4vw, 50px);
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 0, rgba(21, 155, 90, 0.24), transparent 28%),
        linear-gradient(135deg, var(--bc-prog-navy), #102e79);
    box-shadow: 0 28px 60px rgba(7, 31, 82, 0.18);
}

.bc-programme-final-cta__card .bc-programme-eyebrow {
    color: var(--bc-prog-gold);
}

.bc-programme-final-cta__card h2 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.bc-department-join .bc-school-join__card {
    border-radius: clamp(24px, 3vw, 38px);
}

.bc-department-join .bc-school-join__actions {
    justify-self: end;
}

.bc-department-join .bc-school-join__actions .bc-programme-btn--green {
    min-height: 58px;
    padding-inline: 28px;
    border-color: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    color: #ffffff;
    background: rgba(17, 48, 120, 0.72);
    box-shadow: 0 14px 30px rgba(2, 17, 60, 0.12);
}

.bc-department-join .bc-school-join__actions .bc-programme-btn--green:hover,
.bc-department-join .bc-school-join__actions .bc-programme-btn--green:focus {
    color: #ffffff;
    background: rgba(24, 60, 143, 0.94);
}

@media only screen and (max-width: 1399px) {
    .bc-programme-card-grid,
    .bc-programme-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-course-facts-strip .bc-programme-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bc-department-gallery .gallery-grid-wrap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-department-staff-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 1199px) {
    .bc-programme-container {
        width: min(100% - 40px, 1040px);
    }

    .bc-course-hero .bc-programme-container {
        width: min(100% - 40px, 1040px);
    }

    .bc-programme-hero__grid,
    .bc-course-hero__grid,
    .bc-department-intro__grid,
    .bc-department-research__grid,
    .bc-course-overview__grid {
        grid-template-columns: 1fr;
    }

    .bc-programme-hero::after {
        inset: 46% 0 0 0;
        clip-path: none;
    }

    .bc-department-research-items,
    .bc-department-research-items--wide,
    .bc-course-career-grid,
    .bc-course-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (max-width: 991px) {
    .bc-programme-section {
        padding: 38px 0;
    }

    .bc-programme-hero__grid {
        min-height: auto;
    }

    .bc-programme-hero__visual {
        height: 360px;
        border-radius: 28px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .bc-programme-hero__visual::after {
        inset: auto 0 0;
        width: 100%;
        height: 7px;
    }

    .bc-programme-section-title--split,
    .bc-department-head-card,
    .bc-programme-final-cta__card {
        grid-template-columns: 1fr;
    }

    .bc-programme-link--button {
        justify-self: start;
    }

    .bc-course-admissions-card,
    .bc-course-overview__grid {
        grid-template-columns: 1fr;
    }

    .bc-course-feature-strip {
        margin-top: 22px;
    }

    .bc-course-feature-strip .bc-programme-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-course-feature-strip article:nth-child(odd) {
        border-left: 0;
    }

    .bc-department-gallery .gallery-grid-wrap,
    .bc-department-gallery__grid--count-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-programme-card-grid,
    .bc-programme-news-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 767px) {
    .bc-programme-container {
        width: calc(100% - 30px);
    }

    .bc-programme-hero {
        padding-top: 30px;
    }

    .bc-programme-hero h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .bc-programme-hero p {
        font-size: 16px;
    }

    .bc-programme-btn {
        width: 100%;
        min-height: 48px;
    }

    .bc-department-focus-grid,
    .bc-department-research-items,
    .bc-department-research-items--wide,
    .bc-course-career-grid,
    .bc-course-year-grid,
    .bc-course-feature-strip .bc-programme-container {
        grid-template-columns: 1fr;
    }

    .bc-course-feature-strip article,
    .bc-course-feature-strip article:nth-child(odd) {
        justify-content: flex-start;
        border-left: 0;
        border-top: 1px solid var(--bc-prog-line);
    }

    .bc-course-feature-strip article:first-child {
        border-top: 0;
    }

    .bc-course-facts-strip .bc-programme-container {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
    }

    .bc-course-facts-strip article,
    .bc-course-facts-strip article:nth-child(odd),
    .bc-course-facts-strip article:first-child {
        min-height: 82px;
        border: 1px solid rgba(226, 233, 240, 0.92);
        border-radius: 18px;
    }

    .bc-course-overview__gallery {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }

    .bc-course-overview__gallery figure,
    .bc-course-overview__gallery figure.is-large,
    .bc-course-overview__gallery figure:nth-child(4) {
        grid-row: auto;
        grid-column: auto;
        min-height: 220px;
    }

    .bc-department-focus-grid article,
    .bc-department-research-items--wide article,
    .bc-course-career-grid article,
    .bc-programme-news-card,
    .bc-programme-news-card--row {
        grid-template-columns: 1fr;
    }

    .bc-department-gallery .isotop-button.button-transparent {
        width: 100%;
        border-radius: 24px;
    }

    .bc-department-gallery .isotop-button.button-transparent button {
        flex: 1 1 auto;
    }

    .bc-department-gallery .gallery-grid-wrap,
    .bc-department-gallery__grid--count-1,
    .bc-department-gallery__grid--count-2 {
        max-width: none;
        grid-template-columns: 1fr;
    }

    .bc-department-gallery .edu-gallery-grid .thumbnail {
        height: 220px;
    }

    .bc-programme-news-card img,
    .bc-programme-news-grid .bc-programme-news-card img {
        height: 190px;
    }

    .bc-department-staff-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-course-year-grid::before {
        display: none;
    }
}

@media only screen and (max-width: 575px) {
    .bc-programme-hero__visual,
    .bc-department-head-card__image {
        height: 300px;
    }

    .bc-course-overview__gallery figure,
    .bc-course-overview__gallery figure.is-large,
    .bc-course-overview__gallery figure:nth-child(4) {
        min-height: 190px;
    }

    .bc-programme-copy-card,
    .bc-department-head-card,
    .bc-programme-final-cta__card {
        padding: 24px;
        border-radius: 22px;
    }

    .bc-department-staff-grid {
        grid-template-columns: 1fr;
    }

    .bc-programme-course-card > img {
        height: 190px;
    }
}

/* Department detail page refinements. */
.bc-department-about {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 4% 12%, rgba(21, 155, 90, 0.10), transparent 22%),
        radial-gradient(circle at 96% 86%, rgba(31, 52, 128, 0.07), transparent 24%),
        #ffffff;
}

.bc-department-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(460px, 1.06fr);
    gap: clamp(34px, 5vw, 76px);
    align-items: stretch;
}

.bc-department-about__content {
    align-self: start;
    padding-block: 0;
}

.bc-department-about__content .bc-programme-eyebrow {
    display: block;
}

.bc-department-about__content h2 {
    width: 100%;
    max-width: none;
    margin: 10px 0 24px !important;
    color: var(--bc-prog-navy);
    font-size: clamp(34px, 2.8vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.bc-department-about__content > div,
.bc-department-about__content > div p {
    width: 100%;
    max-width: none;
}

.bc-department-about__content h2::after {
    display: block;
    width: 82px;
    height: 7px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bc-prog-gold) 0 68%, var(--bc-prog-green) 68% 100%);
    content: "";
}

.bc-department-about__content .cms-rich-text,
.bc-department-about__content .cms-rich-text p,
.bc-department-about__content > div p {
    color: #4e5e74;
    font-size: clamp(16px, 1.15vw, 18px);
    line-height: 1.78;
}

.bc-department-about__gallery {
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 560px;
    height: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border-radius: 8px;
    background: none;
}

.bc-department-about__gallery::before {
    position: absolute;
    z-index: -1;
    top: -54px;
    right: -48px;
    width: 150px;
    height: 150px;
    border: 22px solid rgba(255, 201, 22, 0.22);
    border-radius: 50%;
    content: "";
}

.bc-department-about__gallery::after {
    position: absolute;
    z-index: 0;
    bottom: 0;
    left: 0;
    width: 132px;
    height: 112px;
    border-radius: 0 0 0 38px;
    opacity: 0.24;
    background: radial-gradient(circle, #ffffff 0 3px, transparent 4px) 0 0 / 22px 22px;
    content: "";
    pointer-events: none;
}

.bc-department-about__figure {
    position: relative;
    z-index: 1;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    background: var(--bc-prog-soft-blue);
    box-shadow: 0 18px 34px rgba(7, 20, 61, 0.22);
}

.bc-department-about__figure:first-child {
    border-radius: 44px 20px 20px 20px;
}

.bc-department-about__figure:last-child {
    border-radius: 20px 20px 44px 20px;
}

.bc-department-about__figure .cms-lightbox-gallery__item,
.bc-department-about__figure img {
    width: 100%;
    height: 100%;
}

.bc-department-about__figure img {
    display: block;
    object-fit: cover;
    transition: transform 450ms ease, filter 450ms ease;
}

.bc-department-about__figure:hover img {
    filter: saturate(1.06) contrast(1.02);
    transform: scale(1.045);
}

.bc-department-about__gallery .cms-lightbox-gallery__zoom {
    z-index: 3;
    opacity: 1;
    transform: none;
    background: rgba(7, 31, 82, 0.78);
    backdrop-filter: blur(6px);
}

.bc-department-cms-head-entry {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(180deg, #f2faf6 0%, #ffffff 100%);
}

.bc-department-cms-head-entry::before {
    position: absolute;
    z-index: -1;
    top: -150px;
    right: -100px;
    width: 360px;
    height: 360px;
    border: 46px solid rgba(31, 52, 122, 0.06);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 34px rgba(226, 171, 32, 0.05),
        0 0 0 74px rgba(21, 155, 90, 0.035);
}

.bc-department-cms-head-entry::after {
    position: absolute;
    z-index: -1;
    bottom: 22px;
    left: 2%;
    width: 160px;
    height: 110px;
    content: "";
    opacity: 0.34;
    background: radial-gradient(circle, rgba(21, 155, 90, 0.5) 0 3px, transparent 4px) 0 0 / 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent);
    mask-image: linear-gradient(90deg, #000, transparent);
}

.bc-department-cms-head-entry .bc-cms-leadership-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(31, 52, 122, 0.14);
    padding: clamp(28px, 3vw, 40px);
    box-shadow: 0 30px 70px rgba(7, 31, 82, 0.14);
}

.bc-department-cms-head-entry .bc-cms-leadership-card::before {
    position: absolute;
    inset: 0 0 auto;
    height: 142px;
    content: "";
    background:
        radial-gradient(circle at 84% 22%, rgba(226, 171, 32, 0.36) 0 30px, transparent 31px),
        radial-gradient(circle at 13% 88%, rgba(21, 155, 90, 0.3) 0 38px, transparent 39px),
        linear-gradient(135deg, #071f52 0%, #223c89 100%);
}

.bc-department-cms-head-entry .bc-cms-leadership-message__grid {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: clamp(18px, 1.8vw, 42px);
    align-items: stretch;
}

.bc-department-cms-head-entry .bc-cms-leadership-card__profile,
.bc-department-cms-head-entry .bc-cms-leadership-card__contact,
.bc-department-cms-head-entry .bc-cms-leadership-card__button {
    position: relative;
    z-index: 1;
}

.bc-department-cms-head-entry .bc-cms-leadership-card__profile {
    margin-top: 26px;
}

.bc-department-cms-head-entry .bc-cms-leadership-card__avatar {
    width: clamp(148px, 12vw, 176px);
    margin-bottom: 24px;
    border-color: #ffffff;
    box-shadow: none;
}

.bc-department-cms-head-entry .bc-cms-leadership-card__profile > strong {
    font-size: clamp(24px, 2vw, 30px);
}

.bc-department-cms-head-entry .bc-cms-leadership-card__profile > span:not(.bc-cms-leadership-card__avatar) {
    color: #64728b;
    font-weight: 700;
}

.bc-department-cms-head-entry .bc-cms-leadership-card__contact {
    margin-top: 20px;
}

.bc-department-cms-head-entry .bc-cms-leadership-card__button {
    min-height: 52px;
    margin-top: 22px;
    border: 0;
    background: linear-gradient(110deg, #071f52, #294ca0);
    box-shadow: 0 14px 28px rgba(7, 31, 82, 0.18);
}

.bc-department-cms-head-entry .bc-cms-leadership-message__content {
    position: relative;
    overflow: hidden;
    border-color: rgba(21, 155, 90, 0.18);
    padding: clamp(28px, 3vw, 44px);
    background:
        linear-gradient(90deg, #e2ab20, #159b5a, #1f3480) 0 0 / 100% 6px no-repeat,
        radial-gradient(circle at 96% 7%, rgba(226, 171, 32, 0.1), transparent 24%),
        #ffffff;
    box-shadow: 0 30px 72px rgba(7, 31, 82, 0.1);
}

.bc-department-cms-head-entry .bc-cms-leadership-message__content::before {
    position: absolute;
    top: 16px;
    right: 28px;
    color: rgba(31, 52, 128, 0.055);
    content: "\201C";
    font-family: Georgia, serif;
    font-size: clamp(120px, 12vw, 188px);
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}

.bc-department-cms-head-entry .bc-cms-leadership-message__content > * {
    position: relative;
    z-index: 1;
}

.bc-department-cms-head-entry .bc-cms-leadership-message__content .bc-programme-section-title {
    margin-bottom: 14px;
}

.bc-department-cms-head-entry .bc-cms-leadership-message__content .bc-programme-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(21, 155, 90, 0.2);
    border-radius: 999px;
    background: rgba(21, 155, 90, 0.08);
}

.bc-department-cms-head-entry .bc-cms-leadership-message__body {
    max-width: 74ch;
    color: #43536c;
    font-size: clamp(17px, 1.25vw, 19px);
    line-height: 1.72;
}

.bc-department-cms-head-entry .bc-cms-leadership-message__body p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}

.bc-department-cms-head-entry .bc-cms-leadership-message__body p + p {
    margin-top: 20px;
}

@media (max-width: 991px) {
    .bc-department-cms-head-entry .bc-cms-leadership-message__grid {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
    }

    .bc-department-cms-head-entry .bc-cms-leadership-card {
        width: min(100%, 620px);
    }
}

@media (max-width: 575px) {
    .bc-department-cms-head-entry .bc-cms-leadership-card {
        padding: 26px 22px;
    }

    .bc-department-cms-head-entry .bc-cms-leadership-message__content::before {
        right: 8px;
    }
}

.bc-cms-collection--programmes-programme-image-cards .bc-programme-course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bc-cms-collection--programmes-programme-image-cards .bc-programme-course-card:hover,
.bc-cms-collection--programmes-programme-image-cards .bc-programme-course-card:focus-visible {
    border-color: rgba(21, 155, 90, 0.44);
    box-shadow: 0 28px 58px rgba(7, 31, 82, 0.13);
    transform: translateY(-6px);
}

.bc-cms-collection--programmes-programme-image-cards .bc-programme-course-card > div {
    display: flex;
    min-height: 280px;
    flex: 1;
    flex-direction: column;
}

.bc-cms-card__browse {
    display: inline-flex !important;
    width: fit-content;
    align-items: center;
    gap: 9px;
    margin: auto 0 0 !important;
    padding: 12px 16px !important;
    border-radius: 10px !important;
    color: #ffffff !important;
    background: var(--bc-prog-blue) !important;
    font-size: 13px !important;
    font-weight: 900;
    letter-spacing: 0.04em !important;
    text-transform: none !important;
}

.bc-cms-card__browse i {
    transition: transform 0.2s ease;
}

.bc-programme-course-card:hover .bc-cms-card__browse i {
    transform: translateX(4px);
}

.bc-cms-collection--features-horizontal-feature-cards {
    position: relative;
    overflow: hidden;
    color: #13295f;
    background:
        radial-gradient(circle at 94% 0%, rgba(22, 160, 90, 0.14), transparent 27%),
        radial-gradient(circle at 4% 100%, rgba(247, 189, 22, 0.16), transparent 26%),
        linear-gradient(135deg, #f7fbff 0%, #eef8f4 100%) !important;
}

.bc-cms-collection--features-horizontal-feature-cards::before {
    position: absolute;
    top: 0;
    right: 5%;
    width: 280px;
    height: 100%;
    content: "";
    opacity: 0.5;
    background: radial-gradient(circle, rgba(22, 160, 90, 0.2) 0 3px, transparent 4px) 0 0 / 30px 30px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent);
    mask-image: linear-gradient(180deg, #000, transparent);
    pointer-events: none;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-container {
    position: relative;
    z-index: 1;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-eyebrow {
    color: #159b5a;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-section-title h2,
.bc-cms-collection--features-horizontal-feature-cards .bc-cms-section-intro {
    color: #13295f;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-cms-section-intro,
.bc-cms-collection--features-horizontal-feature-cards .bc-cms-section-intro p {
    color: #5a6b86;
    font-size: 18px;
    line-height: 1.72;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-card-grid {
    counter-reset: department-research;
    gap: clamp(18px, 2vw, 28px);
}

.bc-cms-collection.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card {
    position: relative;
    counter-increment: department-research;
    overflow: visible;
    display: flex;
    min-height: 330px;
    flex-direction: column;
    border: 1px solid rgba(19, 41, 95, 0.1);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(19, 41, 95, 0.1);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.bc-cms-collection.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card:hover,
.bc-cms-collection.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card:focus-visible {
    border-color: rgba(21, 155, 90, 0.42);
    box-shadow: 0 26px 54px rgba(19, 41, 95, 0.16);
    transform: translateY(-6px);
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card::after {
    position: absolute;
    top: 24px;
    right: 26px;
    color: rgba(19, 41, 95, 0.12);
    content: "0" counter(department-research);
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-cms-card__icon {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    margin: 28px 28px 0;
    border: 8px solid rgba(247, 189, 22, 0.18);
    border-radius: 50%;
    color: #13295f;
    background: linear-gradient(145deg, #ffd34a, #f4b914);
    box-shadow: 0 10px 22px rgba(226, 171, 32, 0.26);
    font-size: 34px;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-cms-card__icon i {
    color: #13295f;
    font-size: 32px !important;
    line-height: 1;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card h3 {
    margin-top: 0;
    color: #13295f;
    font-size: clamp(21px, 1.45vw, 26px);
    line-height: 1.2;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-cms-card__text,
.bc-cms-collection--features-horizontal-feature-cards .bc-cms-card__text p {
    color: #5a6b86;
    font-size: 16px;
    line-height: 1.72;
}

.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card > div {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px 28px 30px;
}

.bc-cms-collection--academic_staff-standard {
    background:
        radial-gradient(circle at 5% 8%, rgba(226, 171, 32, 0.09), transparent 22%),
        linear-gradient(180deg, #f5faf8, #ffffff) !important;
}

.bc-cms-collection.bc-cms-collection--academic_staff-standard .bc-programme-card-grid {
    width: min(100%, 1500px);
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 18px;
    margin-inline: auto;
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border-radius: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card:hover {
    box-shadow: 0 28px 58px rgba(7, 31, 82, 0.13);
    transform: translateY(-5px);
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card > img,
.bc-cms-profile-card__photo-placeholder {
    width: 100%;
    height: 220px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center top;
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card > picture {
    display: block;
    width: 100%;
    height: 220px;
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card > picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.bc-cms-profile-card__photo-placeholder {
    display: grid !important;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border-radius: 0 !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 70% 20%, rgba(226, 171, 32, 0.46), transparent 23%),
        linear-gradient(145deg, #1f3480, #159b5a) !important;
}

.bc-cms-profile-card__photo-placeholder b {
    font-size: 62px;
    letter-spacing: -0.05em;
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card > div {
    min-height: 216px;
    flex: 1;
    gap: 10px;
}

.bc-cms-collection--academic_staff-standard .bc-cms-profile-card h3 {
    min-height: 1.35em;
    font-size: clamp(18px, 1.3vw, 21px);
    line-height: 1.18;
}

.bc-cms-collection--academic_staff-standard .bc-cms-card__text {
    display: none;
}

.bc-cms-collection--academic_staff-standard .bc-research-profile-card__contact {
    margin-top: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.bc-cms-collection--academic_staff-standard .bc-research-profile-card__contact > a,
.bc-cms-collection--academic_staff-standard .bc-research-profile-card__contact > span {
    font-size: clamp(11px, 0.9vw, 12.5px);
}

.bc-cms-collection--academic_staff-standard .bc-research-profile-card__contact span {
    display: block;
    margin: 0;
    padding: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.bc-cms-collection--academic_staff-standard .bc-research-text-button {
    margin-top: 0;
}

.bc-cms-collection--academic_staff-standard .bc-research-profile-card__contact em {
    overflow: visible;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
}

.bc-cms-collection.bc-department-gallery .bc-cms-image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: auto;
    gap: 16px;
}

.bc-cms-collection.bc-department-gallery .bc-cms-image-grid figure {
    aspect-ratio: 4 / 3;
    grid-column: auto;
    grid-row: auto;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 22px 52px rgba(7, 31, 82, 0.12);
}

.bc-cms-collection.bc-department-gallery .bc-cms-image-grid figure:first-child,
.bc-cms-collection.bc-department-gallery .bc-cms-image-grid figure:only-child {
    grid-column: auto;
    grid-row: auto;
}

.bc-cms-collection.bc-department-gallery .bc-cms-image-grid a,
.bc-cms-collection.bc-department-gallery .bc-cms-image-grid img {
    width: 100%;
    height: 100%;
}

.bc-cms-collection.bc-department-gallery .bc-cms-image-grid img {
    aspect-ratio: auto;
}

.bc-cms-collection.bc-department-gallery .bc-cms-image-grid figcaption {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 34px 18px 16px;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(7, 31, 82, 0.88));
    pointer-events: none;
}

.bc-cms-empty-state {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    margin-top: 26px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px dashed rgba(31, 52, 128, 0.26);
    border-radius: 20px;
    color: #526078;
    background: linear-gradient(135deg, #f7fafc, #f2faf6);
    text-align: left;
}

.bc-cms-empty-state > span {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0 !important;
    place-items: center;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: linear-gradient(145deg, #1f3480, #159b5a) !important;
    font-size: 28px !important;
}

.bc-cms-empty-state h3 {
    margin: 0 0 6px !important;
    color: var(--bc-prog-navy);
    font-size: 24px;
}

.bc-cms-empty-state p {
    margin: 0 !important;
}

.bc-cms-collection--latest_news-compact-news-list .bc-programme-section-title {
    margin-bottom: 20px;
}

@media (max-width: 1199px) {
    .bc-department-about__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(410px, 1.1fr);
        gap: 34px;
    }

    .bc-cms-collection.bc-cms-collection--academic_staff-standard .bc-programme-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .bc-department-about__grid {
        grid-template-columns: 1fr;
    }

    .bc-department-about__content h2 {
        max-width: none;
        font-size: clamp(34px, 7vw, 48px);
        white-space: normal;
        text-wrap: balance;
    }

    .bc-department-about__gallery {
        min-height: 500px;
    }

    .bc-cms-collection--features-horizontal-feature-cards .bc-programme-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bc-cms-collection.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card {
        min-height: 300px;
    }

    .bc-cms-collection.bc-cms-collection--academic_staff-standard .bc-programme-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .bc-department-join .bc-school-join__actions {
        justify-self: start;
    }

    .bc-cms-collection.bc-department-gallery .bc-cms-image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .bc-department-about__gallery {
        min-height: 420px;
        gap: 8px;
        padding: 0;
        border-radius: 8px;
    }

    .bc-department-about__figure,
    .bc-department-about__figure:first-child,
    .bc-department-about__figure:last-child {
        border-radius: 14px;
    }

    .bc-cms-collection--features-horizontal-feature-cards .bc-programme-card-grid {
        grid-template-columns: 1fr;
    }

    .bc-cms-collection.bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card {
        min-height: 0;
    }

    .bc-cms-collection--features-horizontal-feature-cards .bc-cms-card__icon {
        width: 76px;
        height: 76px;
        margin: 24px 24px 0;
    }

    .bc-cms-collection--features-horizontal-feature-cards .bc-programme-course-card > div {
        padding: 18px 24px 26px;
    }

    .bc-cms-collection.bc-cms-collection--academic_staff-standard .bc-programme-card-grid {
        width: min(100%, 440px);
        grid-template-columns: 1fr !important;
    }

    .bc-cms-collection--academic_staff-standard .bc-cms-profile-card > img,
    .bc-cms-profile-card__photo-placeholder {
        height: 260px;
    }

    .bc-cms-collection--academic_staff-standard .bc-cms-profile-card > picture,
    .bc-cms-collection--academic_staff-standard .bc-cms-profile-card > picture img {
        height: 260px;
    }

    .bc-cms-collection.bc-department-gallery .bc-cms-image-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        grid-auto-rows: auto;
    }

    .bc-cms-collection.bc-department-gallery .bc-cms-image-grid figure,
    .bc-cms-collection.bc-department-gallery .bc-cms-image-grid figure:first-child,
    .bc-cms-collection.bc-department-gallery .bc-cms-image-grid figure:only-child {
        grid-column: auto;
        grid-row: auto;
    }

    .bc-cms-empty-state {
        align-items: flex-start;
        flex-direction: column;
    }
}
