/* =====================================================================
   SOCS — Bhiksu University of Sri Lanka
   Professional main stylesheet
   Cleaned, consolidated and duplicate-free
   ===================================================================== */


/* 01. Base */
:root {
    --maroon: #72001d;
    --maroon-dark: #46000f;
    --maroon-deep: #2e000b;
    --gold: #e7b633;
    --gold-bright: #f6c945;
    --cream: #fff9ed;
    --soft: #f8f5f1;
    --white: #ffffff;
    --ink: #201d1e;
    --muted: #6e6668;
    --line: #e9e0e2;
    --shadow-sm: 0 8px 28px rgba(57, 0, 15, .08);
    --shadow-lg: 0 24px 70px rgba(57, 0, 15, .16);
    --radius: 20px;
    --transition: .28s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--maroon);
    text-decoration: none;
    transition: color var(--transition), transform var(--transition), background var(--transition), border-color var(--transition);
}

a:hover {
    color: var(--maroon-dark);
}

img {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.18;
    font-weight: 700;
    letter-spacing: -.025em;
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--gold);
    color: var(--maroon-deep);
}


/* 02. Accessibility */
.skip-link {
    position: fixed;
    z-index: 99999;
    left: 1rem;
    top: -100px;
    background: var(--gold);
    color: var(--maroon-deep);
    padding: .75rem 1rem;
    border-radius: 8px;
}

.skip-link:focus {
    top: 1rem;
}


/* 03. Header and Navigation */
.utility-bar {
    background: var(--maroon-deep);
    color: rgba(255,255,255,.78);
    font-size: .72rem;
}

.utility-bar .container-xl {
    min-height: 36px;
}

.utility-links, .utility-meta {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.utility-links a {
    color: rgba(255,255,255,.72);
    font-weight: 600;
    letter-spacing: .06em;
}

.utility-links a:hover {
    color: var(--gold-bright);
}

.utility-meta i {
    color: var(--gold);
    margin-right: .35rem;
}

.site-header {
    background: #fff9ed;
    position: relative;
    z-index: 1020;
}

.site-header.scrolled {
    box-shadow: none;
}

.brand-area {
    background: radial-gradient(circle at top left, rgba(231, 182, 51, .18), transparent 32%), linear-gradient(135deg, #ffffff 0%, #fff9ed 56%, #fff3d6 100%);
    border-bottom: 1px solid rgba(114, 0, 29, .10);
    padding: 18px 0;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo img {
    max-height: 92px;
    object-position: left center;
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
}

.brand-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
    flex-shrink: 0;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    padding: 12px 18px;
    color: #240009;
    text-decoration: none;
    border-left: 1px solid rgba(114, 0, 29, .14);
    transition: all .25s ease;
}

.quick-action i {
    place-items: center;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #72001d;
    background: rgba(114, 0, 29, 0.06);
    font-size: 1rem;
}

.quick-action span {
    display: flex;
    flex-direction: column;
    color: #170006;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
}

.quick-action small {
    margin-bottom: .12rem;
    display: block;
    color: #6b4b53;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1;
}

.search-trigger {
    place-items: center;
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #72001d;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.25s ease;
}

.search-trigger:hover {
    color: var(--maroon-deep);
    background: #4b0012;
    transform: translateY(-1px);
}

.main-navbar {
    background: var(--maroon);
    padding: 0;
    min-height: 61px;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 10px 28px rgba(46, 0, 11, .08);
    will-change: box-shadow;
}

.main-navbar.nav-scrolled {
    box-shadow: 0 14px 34px rgba(46,0,11,.18);
}

.main-navbar .navbar-nav {
    min-height: 61px;
    align-items: stretch;
}

.main-navbar .nav-item {
    display: flex;
    align-items: stretch;
}

.main-navbar .nav-link {
    color: rgba(255,255,255,.9);
    display: flex;
    align-items: center;
    padding: 0 1rem !important;
    font-size: .84rem;
    font-weight: 600;
    position: relative;
}

.main-navbar .nav-link::after:not(.dropdown-toggle) {
    display: none;
}

.main-navbar .nav-link:hover, .main-navbar .nav-link.active {
    color: var(--gold-bright);
}

.main-navbar .nav-link.active::before {
    content: "";
    position: absolute;
    height: 3px;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    background: var(--gold);
}

.navbar-toggler {
    margin: .65rem 0;
    border-color: rgba(255,255,255,.4);
    filter: invert(1);
}

.navbar-brand-mobile {
    color: var(--white);
    font-weight: 800;
    letter-spacing: .08em;
}

.nav-portal-btn {
    color: var(--maroon-deep);
    background: var(--gold);
    padding: .68rem 1rem;
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
}

.nav-portal-btn:hover {
    background: var(--gold-bright);
    color: var(--maroon-deep);
    transform: translateY(-1px);
}

.dropdown-menu {
    border: 0;
    border-radius: 0 0 14px 14px;
    padding: .65rem;
    box-shadow: var(--shadow-lg);
    margin: 0;
    min-width: 260px;
}

.dropdown-item {
    border-radius: 8px;
    padding: .7rem .8rem;
    font-size: .82rem;
    font-weight: 500;
}

.dropdown-item i {
    width: 25px;
    color: var(--maroon);
    display: inline-block;
}

.dropdown-item:hover {
    background: var(--cream);
    color: var(--maroon);
}

.mega-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 2rem 0;
    border-radius: 0;
}

.mega-label {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .68rem;
    font-weight: 700;
    color: var(--maroon);
}

.mega-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .75rem;
    border-radius: 12px;
    color: var(--ink);
}

.mega-link:hover {
    background: var(--cream);
    color: var(--maroon);
    transform: translateX(3px);
}

.mega-link > span {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--maroon);
    color: var(--gold);
    display: grid;
    place-items: center;
    flex: 0 0 42px;
}

.mega-link div {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.mega-link strong {
    font-size: .83rem;
}

.mega-link small {
    color: var(--muted);
    font-size: .68rem;
    margin-top: .2rem;
}

.mega-hons {
    border-left: 1px solid var(--line);
    padding-left: 2rem;
}


/* 04. Buttons and Section Helpers */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: .86rem;
    padding: .72rem 1.2rem;
}

.btn-lg {
    padding: .9rem 1.35rem;
    font-size: .92rem;
}

.btn-maroon {
    color: var(--white);
    background: var(--maroon);
    border-color: var(--maroon);
}

.btn-maroon:hover {
    color: var(--white);
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
    transform: translateY(-1px);
}

.btn-outline-maroon {
    color: var(--maroon);
    border-color: var(--maroon);
}

.btn-outline-maroon:hover {
    color: var(--white);
    background: var(--maroon);
    border-color: var(--maroon);
}

.btn-gold {
    color: var(--maroon-deep);
    background: var(--gold);
    border-color: var(--gold);
}

.btn-gold:hover {
    color: var(--maroon-deep);
    background: var(--gold-bright);
    border-color: var(--gold-bright);
    transform: translateY(-1px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--maroon);
    text-transform: uppercase;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    margin-bottom: .8rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--gold);
}

.eyebrow-light {
    color: var(--gold-bright);
}

.section-space {
    padding: 92px 0;
}

.section-soft {
    background: var(--soft);
}

.section-cream {
    background: var(--cream);
}

.section-heading {
    max-width: 720px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.35rem);
    color: var(--maroon-deep);
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--muted);
    font-size: 1rem;
}


/* 05. Home Hero and Stats */
.home-hero {
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    background: linear-gradient(95deg, rgba(46,0,11,.98) 0%, rgba(114,0,29,.94) 48%, rgba(114,0,29,.78) 100%), radial-gradient(circle at 85% 25%, rgba(246,201,69,.22), transparent 30%);
    min-height: 690px;
    padding: 94px 0 124px;
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(246,201,69,.2);
    border-radius: 50%;
    right: -150px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 80px rgba(246,201,69,.04), 0 0 0 160px rgba(246,201,69,.025);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr .75fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 2;
    padding-bottom: 18px;
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 5.6vw, 5.3rem);
    max-width: 940px;
    margin: 0 0 1.4rem;
    letter-spacing: -.05em;
}

.hero-copy h1 span {
    color: var(--gold-bright);
}

.hero-copy > p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255,255,255,.78);
    max-width: 760px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2rem;
}

.hero-feature-card {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.14);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 1.8rem;
    position: relative;
}

.hero-feature-card::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 5px;
    background: var(--gold);
    left: 1.8rem;
    top: 0;
    border-radius: 0 0 4px 4px;
}

.hero-feature-card i {
    font-size: 2rem;
    color: var(--gold);
}

.hero-feature-card h2 {
    font-size: 1.45rem;
    margin: 1rem 0 .7rem;
}

.hero-feature-card p {
    color: rgba(255,255,255,.7);
    font-size: .86rem;
}

.hero-feature-card a {
    color: var(--gold-bright);
    font-weight: 600;
    font-size: .82rem;
}

.hero-scroll {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    z-index: 3;
    bottom: 86px;
}

.hero-scroll i {
    display: block;
    text-align: center;
    font-size: 1rem;
    animation: bob 1.8s infinite;
}

.stats-strip {
    margin-top: -54px;
    position: relative;
    z-index: 6;
}

.stats-panel {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-radius: 18px;
    overflow: hidden;
}

.stat-item {
    text-align: center;
    position: relative;
    padding: 1.35rem 1.5rem;
}

.stat-item + .stat-item::before {
    content: "";
    position: absolute;
    top: 28%;
    bottom: 28%;
    left: 0;
    width: 1px;
    background: var(--line);
}

.stat-number {
    color: var(--maroon);
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -.04em;
    display: block;
}

.stat-label {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 500;
}


/* 06. Introduction and Disciplines */
.intro-copy {
    padding-right: 2rem;
}

.intro-copy h2 {
    font-size: clamp(2rem,4vw,3.3rem);
    color: var(--maroon-deep);
}

.intro-copy p {
    color: var(--muted);
}

.intro-accent {
    border-left: 4px solid var(--gold);
    padding: .2rem 0 .2rem 1.2rem;
    font-weight: 600;
    color: var(--maroon);
    margin: 1.5rem 0;
}

.discipline-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 1rem;
}

.discipline-card {
    border: 1px solid var(--line);
    padding: 1.15rem;
    border-radius: 15px;
    background: var(--white);
    transition: all var(--transition);
}

.discipline-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(114,0,29,.2);
}

.discipline-card i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--cream);
    color: var(--maroon);
    margin-bottom: .8rem;
}

.discipline-card h3 {
    font-size: .95rem;
    color: var(--maroon-deep);
}

.discipline-card p {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.55;
}


/* 07. Head Message */
.head-section {
    background: var(--maroon-deep);
    color: var(--white);
    overflow: hidden;
}

.head-photo-wrap {
    position: relative;
    max-width: 520px;
    margin: auto;
}

.head-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.head-photo-wrap::before {
    content: "";
    position: absolute;
    inset: -18px 35px 35px -18px;
    border: 2px solid var(--gold);
    border-radius: 24px;
    z-index: 1;
}

.head-message-copy h2 {
    font-size: clamp(2rem,4vw,3.5rem);
}

.quote-mark {
    font-size: 4rem;
    color: var(--gold);
    line-height: 1;
    opacity: .8;
}

.head-message-copy p {
    color: rgba(255,255,255,.74);
    font-size: 1rem;
}

.head-signature {
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.13);
    margin-top: 1.5rem;
}

.head-signature strong {
    display: block;
    color: var(--gold-bright);
    font-size: .95rem;
}

.head-signature span {
    color: rgba(255,255,255,.62);
    font-size: .78rem;
}


/* 08. Programmes and Curriculum */
.programme-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.programme-card::after {
    content: "";
    width: 100px;
    height: 100px;
    background: var(--cream);
    border-radius: 50%;
    position: absolute;
    right: -35px;
    top: -35px;
    transition: transform var(--transition);
}

.programme-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.programme-card:hover::after {
    transform: scale(1.5);
}

.programme-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--maroon);
    color: var(--gold);
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.programme-card .level {
    color: var(--maroon);
    text-transform: uppercase;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.programme-card h3 {
    font-size: 1.22rem;
    color: var(--maroon-deep);
    margin: .45rem 0 .8rem;
}

.programme-card p {
    color: var(--muted);
    font-size: .8rem;
    flex: 1;
}

.programme-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
    margin-top: 1.1rem;
    font-size: .72rem;
}

.programme-card .card-meta span {
    color: var(--muted);
}

.programme-card .card-meta strong {
    color: var(--maroon);
}


/* 09. Content Sections */
.portal-section {
    background: linear-gradient(135deg,var(--maroon-dark),var(--maroon));
    color: var(--white);
}

.portal-card {
    height: 100%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 1.25rem;
    color: var(--white);
    transition: all var(--transition);
}

.portal-card:hover {
    background: var(--white);
    color: var(--maroon-deep);
    transform: translateY(-5px);
}

.portal-card i {
    color: var(--gold);
    font-size: 1.35rem;
}

.portal-card h3 {
    font-size: .98rem;
    margin: .9rem 0 .4rem;
}

.portal-card p {
    font-size: .72rem;
    color: rgba(255,255,255,.64);
}

.portal-card:hover p {
    color: var(--muted);
}

.news-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 1.5rem;
    transition: all var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.news-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--cream);
    color: var(--maroon);
    font-size: 1.25rem;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin: 1.1rem 0 .75rem;
    font-size: .66rem;
}

.news-category {
    background: var(--maroon);
    color: var(--white);
    border-radius: 30px;
    padding: .25rem .6rem;
}

.news-date {
    color: var(--muted);
    padding: .25rem 0;
}

.news-card h3 {
    color: var(--maroon-deep);
    font-size: 1.08rem;
}

.news-card p {
    color: var(--muted);
    font-size: .78rem;
}

.news-card a {
    font-size: .75rem;
    font-weight: 700;
}

.page-hero {
    background: linear-gradient(120deg,var(--maroon-deep),var(--maroon));
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 92px 0 74px;
}


/* 05. Home Hero and Stats */
.page-hero-content {
    max-width: 860px;
    position: relative;
    z-index: 2;
}


/* 09. Content Sections */
.page-hero h1 {
    font-size: clamp(2.5rem,5vw,4.7rem);
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 720px;
    color: rgba(255,255,255,.75);
    font-size: 1.02rem;
}

.page-hero .breadcrumb {
    margin-top: 2rem;
    margin-bottom: 0;
}

.page-hero .breadcrumb-item, .page-hero .breadcrumb-item.active {
    color: rgba(255,255,255,.58);
    font-size: .72rem;
}

.page-hero .breadcrumb-item a {
    color: var(--gold-bright);
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,.35);
}


/* 05. Home Hero and Stats */
.hero-orbit {
    position: absolute;
    border: 1px solid rgba(246,201,69,.16);
    border-radius: 50%;
}

.hero-orbit-one {
    width: 480px;
    height: 480px;
    right: -100px;
    top: -220px;
    box-shadow: 0 0 0 70px rgba(246,201,69,.03);
}

.hero-orbit-two {
    width: 210px;
    height: 210px;
    right: 22%;
    bottom: -140px;
}


/* 09. Content Sections */
.content-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.content-card h2, .content-card h3 {
    color: var(--maroon-deep);
}

.content-card p, .content-card li {
    color: var(--muted);
}

.value-card {
    height: 100%;
    padding: 1.6rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
}

.value-card .icon-box {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    background: var(--maroon);
    color: var(--gold);
    border-radius: 16px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-size: 1.15rem;
    color: var(--maroon-deep);
}

.value-card p {
    font-size: .82rem;
    color: var(--muted);
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    padding: 0 0 2rem 1.5rem;
}

.timeline-item::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 4px solid var(--gold);
    background: var(--maroon);
    border-radius: 50%;
    position: absolute;
    left: -2rem;
    top: .3rem;
}

.timeline-year {
    color: var(--maroon);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.timeline-item h3 {
    font-size: 1.2rem;
    color: var(--maroon-deep);
}

.timeline-item p {
    color: var(--muted);
    font-size: .85rem;
}


/* 08. Programmes and Curriculum */
.programme-hero {
    background: linear-gradient(125deg,var(--maroon-deep),var(--maroon));
    color: var(--white);
    padding: 86px 0;
    position: relative;
    overflow: hidden;
}

.programme-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(246,201,69,.18);
    right: -120px;
    top: -190px;
    box-shadow: 0 0 0 70px rgba(246,201,69,.035);
}

.programme-level {
    display: inline-block;
    color: var(--maroon-deep);
    background: var(--gold);
    border-radius: 30px;
    padding: .35rem .8rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.programme-hero h1 {
    font-size: clamp(2.4rem,5vw,4.7rem);
    margin: 1rem 0;
    max-width: 900px;
}

.programme-hero p {
    color: rgba(255,255,255,.74);
    max-width: 760px;
}

.programme-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.programme-meta span {
    font-size: .74rem;
    color: rgba(255,255,255,.78);
    padding: .55rem .8rem;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
}

.programme-meta i {
    color: var(--gold);
    margin-right: .35rem;
}

.programme-symbol {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(246,201,69,.35);
    display: inline-grid;
    place-items: center;
    box-shadow: 0 0 0 28px rgba(246,201,69,.06),0 0 0 56px rgba(246,201,69,.03);
    position: relative;
    z-index: 2;
}

.programme-symbol i {
    font-size: 4.5rem;
    color: var(--gold);
}

.curriculum-accordion .accordion-item {
    border: 1px solid var(--line);
    border-radius: 16px!important;
    overflow: hidden;
    margin-bottom: 1rem;
}

.curriculum-accordion .accordion-button {
    font-weight: 700;
    color: var(--maroon-deep);
    padding: 1.2rem 1.4rem;
    background: var(--white);
    box-shadow: none;
    display: flex;
    justify-content: space-between;
}

.curriculum-accordion .accordion-button:not(.collapsed) {
    color: var(--white);
    background: var(--maroon);
}

.curriculum-accordion .accordion-button small {
    font-size: .67rem;
    font-weight: 500;
    margin-left: auto;
    margin-right: 1rem;
    opacity: .7;
}

.curriculum-accordion .accordion-button::after {
    filter: none;
}

.curriculum-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.course-table th {
    background: var(--cream);
    color: var(--maroon);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 1rem;
    white-space: nowrap;
}

.course-table td {
    padding: 1rem;
    font-size: .78rem;
    color: var(--ink);
    vertical-align: middle;
    border-color: var(--line);
}

.course-code {
    font-weight: 700;
    color: var(--maroon);
    white-space: nowrap;
}

.semester-badge {
    display: inline-block;
    background: var(--soft);
    border: 1px solid var(--line);
    padding: .28rem .55rem;
    border-radius: 30px;
    color: var(--muted);
    font-size: .66rem;
    white-space: nowrap;
}

.sidebar-card {
    top: 90px;
    border-radius: var(--radius);
    background: var(--cream);
    padding: 1.8rem;
    border: 1px solid rgba(231,182,51,.35);
}

.sidebar-card h3 {
    color: var(--maroon-deep);
}

.sidebar-card p {
    color: var(--muted);
    font-size: .82rem;
}

.sidebar-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 0;
    border-top: 1px solid rgba(114,0,29,.1);
}

.sidebar-stat strong {
    color: var(--maroon);
    font-size: 1.8rem;
    min-width: 52px;
}

.sidebar-stat span {
    color: var(--muted);
    font-size: .76rem;
}

.programme-mini-card {
    display: block;
    height: 100%;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
}

.programme-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.programme-mini-card i {
    color: var(--maroon);
    font-size: 1.5rem;
}

.programme-mini-card > span {
    display: block;
    color: var(--muted);
    font-size: .64rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: .8rem;
}

.programme-mini-card h3 {
    color: var(--maroon-deep);
    font-size: 1.1rem;
    margin: .25rem 0 .8rem;
}

.programme-mini-card small {
    color: var(--maroon);
    font-weight: 600;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.filter-btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    border-radius: 30px;
    padding: .55rem 1rem;
    font-size: .74rem;
    font-weight: 600;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--maroon);
    border-color: var(--maroon);
    color: var(--white);
}


/* 10. Staff Profiles */
.staff-card {
    height: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: all var(--transition);
}

.staff-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.staff-photo {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg,var(--maroon-dark),var(--maroon));
    display: grid;
    place-items: center;
    overflow: hidden;
}

.staff-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.staff-photo i {
    font-size: 5rem;
    color: rgba(255,255,255,.35);
}

.staff-body {
    padding: 1.5rem;
}

.staff-role {
    color: var(--maroon);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.staff-body h3 {
    font-size: 1.15rem;
    color: var(--maroon-deep);
    margin: .45rem 0;
}

.staff-area {
    color: var(--muted);
    font-size: .76rem;
}

.staff-contact {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    border-top: 1px solid var(--line);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: .72rem;
}

.staff-actions {
    margin-top: 1.1rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.staff-actions .btn {
    font-size: .74rem;
    padding: .58rem .85rem;
}

.staff-profile-photo {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg,var(--maroon-dark),var(--maroon));
    min-height: 300px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
}

.staff-profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: center 20%;
}

.staff-profile-photo i {
    font-size: 7rem;
    color: rgba(255,255,255,.34);
}

.profile-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: .45rem .75rem;
    font-size: .76rem;
    color: var(--muted);
    margin: .25rem .25rem .25rem 0;
}

.profile-chip i {
    color: var(--maroon);
}

.profile-detail-list {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
}

.profile-detail-list div {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    border-top: 1px solid var(--line);
    padding-top: .75rem;
    color: var(--muted);
    font-size: .86rem;
}

.profile-detail-list i {
    color: var(--maroon);
    font-size: 1.05rem;
}


/* 11. Resources and Forms */
.resource-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.resource-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.resource-card .icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    border-radius: 14px;
    background: var(--cream);
    color: var(--maroon);
    font-size: 1.2rem;
}

.resource-card h3 {
    font-size: 1rem;
    color: var(--maroon-deep);
    margin-bottom: .4rem;
}

.resource-card p {
    color: var(--muted);
    font-size: .76rem;
}

.resource-card small {
    color: var(--maroon);
    font-weight: 600;
}

.notice-box {
    border-left: 4px solid var(--gold);
    background: var(--cream);
    padding: 1.2rem 1.4rem;
    border-radius: 0 12px 12px 0;
    color: var(--muted);
    font-size: .83rem;
}

.notice-box strong {
    color: var(--maroon-deep);
}

.contact-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.contact-card i {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--maroon);
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1.05rem;
    color: var(--maroon-deep);
}

.contact-card p, .contact-card a {
    font-size: .8rem;
    color: var(--muted);
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.form-label {
    color: var(--maroon-deep);
    font-size: .74rem;
    font-weight: 600;
}

.form-control, .form-select {
    border-color: var(--line);
    border-radius: 10px;
    padding: .78rem .9rem;
    font-size: .82rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .22rem rgba(231,182,51,.18);
}

.hp-field {
    position: absolute!important;
    left: -10000px!important;
    width: 1px!important;
    height: 1px!important;
    overflow: hidden!important;
}


/* 12. Search */
.search-modal .modal-content {
    border: 0;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}


/* 14. Other */
.search-close {
    position: absolute;
    right: 1.2rem;
    top: 1.2rem;
    z-index: 2;
}


/* 12. Search */
.search-modal h2 {
    color: var(--maroon-deep);
    font-size: clamp(2rem,4vw,3.2rem);
}

.search-form .input-group-text {
    background: var(--cream);
    border-color: var(--line);
    color: var(--maroon);
}

.search-suggestions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
    font-size: .72rem;
}

.search-suggestions span {
    color: var(--muted);
}

.search-suggestions a {
    background: var(--soft);
    border-radius: 30px;
    padding: .35rem .7rem;
    font-weight: 600;
}

.search-result {
    display: block;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.3rem;
    color: var(--ink);
    height: 100%;
}

.search-result:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
}

.search-result .type {
    color: var(--maroon);
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.search-result h3 {
    font-size: 1.05rem;
    color: var(--maroon-deep);
    margin: .4rem 0;
}

.search-result p {
    color: var(--muted);
    font-size: .76rem;
}


/* 13. Footer and Utilities */
.prefooter-cta {
    background: var(--soft);
    padding: 0 0 76px;
}

.cta-panel {
    background: linear-gradient(115deg,var(--maroon-deep),var(--maroon));
    color: var(--white);
    border-radius: 28px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--shadow-lg);
}

.cta-panel h2 {
    max-width: 760px;
    font-size: clamp(1.8rem,3.3vw,3rem);
    margin-bottom: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    justify-content: flex-end;
    min-width: max-content;
}

.site-footer {
    background: #210008;
    color: rgba(255,255,255,.7);
}

.footer-main {
    padding: 72px 0 50px;
}

.footer-logo {
    max-width: 390px;
    width: 100%;
    background: var(--white);
    border-radius: 12px;
    padding: .6rem;
    margin-bottom: 1.3rem;
}

.site-footer p {
    font-size: .78rem;
    max-width: 430px;
}

.site-footer h3 {
    color: var(--gold);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1.2rem;
}

.site-footer .col-lg-2 > a {
    display: block;
    color: rgba(255,255,255,.68);
    font-size: .74rem;
    padding: .28rem 0;
}

.site-footer .col-lg-2 > a:hover {
    color: var(--gold);
    transform: translateX(3px);
}

.footer-socials {
    display: flex;
    gap: .5rem;
    margin-top: 1.2rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    color: var(--white);
}

.footer-socials a:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--maroon-deep);
    transform: translateY(-2px);
}


/* 11. Resources and Forms */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.contact-list li {
    display: flex;
    gap: .8rem;
    font-size: .76rem;
}

.contact-list i {
    color: var(--gold);
}

.contact-list a {
    color: rgba(255,255,255,.7);
}

.contact-list a:hover {
    color: var(--gold);
}


/* 13. Footer and Utilities */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    font-size: .66rem;
    color: rgba(255,255,255,.48);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--gold);
    color: var(--maroon-deep);
    display: grid;
    place-items: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    box-shadow: var(--shadow-sm);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-notice {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1100;
    max-width: 460px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    border-radius: 16px;
    padding: 1rem 1.1rem;
    display: none;
    align-items: center;
    gap: 1rem;
}

.cookie-notice.show {
    display: flex;
}

.cookie-notice strong {
    color: var(--maroon-deep);
    font-size: .8rem;
}

.cookie-notice p {
    color: var(--muted);
    font-size: .67rem;
    line-height: 1.5;
    margin: .2rem 0 0;
}

.empty-state {
    border: 1px dashed rgba(114,0,29,.25);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    background: var(--cream);
}

.empty-state i {
    font-size: 2.6rem;
    color: var(--maroon);
}

.empty-state h2, .empty-state h3 {
    color: var(--maroon-deep);
    margin-top: 1rem;
}

.empty-state p {
    color: var(--muted);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}


/* 03. Header and Navigation */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: #46000f;
    min-width: 0;
}

.brand-logo-wrap {
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(114, 0, 29, 0.12);
    box-shadow: 0 16px 36px rgba(70, 0, 15, 0.12);
}

.brand-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
}

.brand-copy {
    flex-direction: column;
    min-width: 0;
    display: block;
    line-height: 1.25;
}

.brand-kicker {
    color: #9b6b00;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.brand-copy strong {
    max-width: 760px;
    display: block;
    color: #72001d;
    font-size: clamp(1.05rem, 1.8vw, 1.45rem);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.brand-copy small {
    display: block;
    margin-top: 4px;
    color: #4d2530;
    font-size: clamp(0.82rem, 1.2vw, 1rem);
    font-weight: 500;
}

.mobile-nav-brand {
    color: #fff;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
}

.main-navbar .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
    padding: 7px 10px;
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 .18rem rgba(231, 182, 51, .35);
}

.main-navbar .navbar-toggler-icon {
    filter: invert(1) grayscale(1) brightness(3);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    margin: 0;
    min-width: 0;
}

.navbar-brand img {
    width: 76px;
    height: 76px;
    object-fit: contain;
    display: block;
    background: var(--white);
    border: 1px solid rgba(114, 0, 29, .10);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 10px 26px rgba(70, 0, 15, .12);
}

.quick-action:hover {
    color: #72001d;
    transform: translateY(-1px);
}


/* 05. Home Hero and Stats */
.stats-strip + .section-space {
    padding-top: 68px;
}


/* 15. Animations */
@keyframes bob {
    50% { transform: translateY(6px); }
}


/* 16. Responsive Styles */
@media (max-width: 1199.98px) {
    .main-navbar {
        padding: .35rem 0;
    }

    .main-navbar .navbar-nav {
        min-height: 0;
        padding: 1rem 0;
    }

    .main-navbar .nav-item {
        display: block;
    }

    .main-navbar .nav-link {
        padding: .65rem .2rem!important;
    }

    .main-navbar .nav-link.active::before {
        display: none;
    }

    .nav-portal-btn {
        display: inline-flex;
        margin-bottom: 1rem;
    }

    .mega-menu {
        position: static!important;
        padding: .8rem!important;
    }

    .mega-menu .container-xl {
        padding: 0;
    }

    .mega-hons {
        border-left: 0;
        padding-left: calc(var(--bs-gutter-x)*.5);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-feature-card {
        max-width: 520px;
    }

    .home-hero {
        min-height: 640px;
        padding: 78px 0 118px;
    }

}

@media (max-width: 991.98px) {
    .brand-row {
        align-items: center;
        gap: 14px;
    }

    .brand-logo img {
        width: min(590px,75vw);
    }

    .section-space {
        padding: 72px 0;
    }

    .stats-panel {
        grid-template-columns: repeat(2, 1fr);
        box-shadow: var(--shadow-sm);
    }

    .stat-item:nth-child(3)::before {
        display: none;
    }

    .intro-copy {
        padding-right: 0;
    }

    .cta-panel {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-actions {
        justify-content: flex-start;
        min-width: 0;
    }

    .programme-symbol {
        width: 140px;
        height: 140px;
    }

    .programme-symbol i {
        font-size: 3.4rem;
    }

    .brand-area {
        padding: 14px 0;
    }

    .brand-link {
        gap: 13px;
    }

    .brand-logo-wrap {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
        border-radius: 18px;
    }

    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-kicker {
        font-size: 0.66rem;
    }

    .brand-copy strong {
        font-size: 0.95rem;
        line-height: 1.2;
    }

    .brand-copy small {
        font-size: 0.76rem;
    }

    .brand-actions {
        margin-left: auto;
        gap: 8px;
    }

    .navbar-brand img {
        width: 58px;
        height: 58px;
        border-radius: 14px;
        padding: 6px;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(70, 0, 15, .10);
    }

    .search-trigger {
        width: 44px;
        height: 44px;
        font-size: 1rem;
        flex: 0 0 auto;
    }

    .home-hero {
        min-height: auto;
        padding: 72px 0 84px;
    }

    .hero-scroll {
        display: none;
    }

    .stats-strip {
        margin-top: 0;
        padding-top: 18px;
        background: #ffffff;
    }

    .stat-item + .stat-item::before {
        display: none;
    }

    .stats-strip + .section-space {
        padding-top: 56px;
    }

}

@media (max-width: 767.98px) {
    .brand-row {
        min-height: 82px;
    }

    .brand-logo img {
        width: min(490px,80vw);
        max-height: 68px;
    }

    .search-trigger {
        width: 42px;
        height: 42px;
    }

    .home-hero {
        min-height: 680px;
    }

    .home-hero::after {
        width: 360px;
        height: 360px;
        right: -220px;
    }

    .hero-copy h1 {
        font-size: 2.7rem;
    }

    .stats-strip {
        margin-top: -28px;
    }

    .stats-panel {
        border-radius: 16px;
    }

    .stat-item {
        padding: 1.1rem .6rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: .65rem;
    }

    .discipline-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 72px 0 58px;
    }

    .page-hero h1 {
        font-size: 2.6rem;
    }

    .programme-hero {
        padding: 68px 0;
    }

    .programme-meta {
        gap: .5rem;
    }

    .programme-meta span {
        width: 100%;
    }

    .course-table td, .course-table th {
        min-width: 140px;
    }

    .course-table td:nth-child(2), .course-table th:nth-child(2) {
        min-width: 360px;
    }

    .cta-panel {
        padding: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .cookie-notice {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }

}

@media (max-width: 575.98px) {
    .brand-logo img {
        width: 52px;
        height: 52px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .stats-panel {
        grid-template-columns: 1fr;
    }

    .stat-item + .stat-item::before {
        display: none;
    }

    .stat-item:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .stat-item:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .section-heading h2 {
        font-size: 2.1rem;
    }

    .head-photo-wrap::before {
        inset: -10px 24px 24px -10px;
    }

    .content-card, .contact-form {
        padding: 1.35rem;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .brand-row {
        flex-wrap: nowrap;
        align-items: center;
    }

    .brand-copy strong {
        font-size: 0.98rem;
        max-width: 220px;
    }

    .brand-kicker {
        display: none;
    }

    .brand-copy small {
        font-size: 0.72rem;
    }

    .brand-logo-wrap {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 15px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
    }

    .navbar-brand {
        gap: 10px;
    }

    .navbar-brand img {
        width: 52px;
        height: 52px;
    }

    .stat-item {
        padding: 1.1rem;
    }

}
