
/* =========================================
   HIPS CAMPUS — MAIN STYLESHEET
========================================= */

:root {
    --navy: #102a39;
    --deep: #081f2e;
    --blue: #173e50;
    --gold: #d7b36b;
    --gold2: #a77b37;
    --cream: #f6f3ec;
    --ink: #192e39;
    --muted: #5d6e76;
    --line: #dedfd9;
    --white: #fff;
    --shadow: 0 18px 45px #142d3910;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fdfcf9;
    font: 16px/1.65 system-ui, -apple-system, 'Segoe UI', 'Nirmala UI', sans-serif;
}

html[lang=si] body {
    font-family: 'Nirmala UI', 'Iskoola Pota', 'Noto Sans Sinhala', system-ui, sans-serif;
}

h1, h2, h3, p {
    margin: 0 0 1rem;
}

h1, h2, h3 {
    line-height: 1.2;
}

h1, h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    letter-spacing: -.035em;
}

html[lang=si] h1,
html[lang=si] h2 {
    font-family: inherit;
    letter-spacing: 0;
    line-height: 1.45;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
}

h2 {
    font-size: clamp(1.8rem, 3.1vw, 2.8rem);
}

h3 {
    font-size: 1.22rem;
}

p {
    color: var(--muted);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font: inherit;
}

button, a {
    touch-action: manipulation;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .52;
}

svg {
    width: 23px;
    height: 23px;
    flex: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #b28236;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.wrap {
    width: min(1190px, calc(100% - 72px));
    margin: auto;
}

.skip {
    position: fixed;
    top: -100px;
    left: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
}

.skip:focus {
    top: 10px;
}

/* =========================================
   TOP BAR
========================================= */

.topbar {
    background: var(--deep);
    color: #dbe1e2;
    font-size: .77rem;
    letter-spacing: .035em;
}

.topinner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 43px;
}

.topinner > a {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
}

.topinner svg {
    width: 15px;
    height: 15px;
    color: var(--gold);
}

.languages {
    display: flex;
    border-left: 1px solid #ffffff28;
    padding-left: 17px;
    gap: 12px;
}

.languages a {
    padding: 3px 8px;
    border-radius: 3px;
}

.languages a[aria-current] {
    background: #d7b36b;
    color: var(--deep);
    font-weight: 700;
}

/* =========================================
   HEADER AND NAVIGATION
========================================= */

header {
    background: #fff;
    border-bottom: 1px solid #e3e4dd;
    position: relative;
    z-index: 5;
}

.navrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 145px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.header-logo {
    display: block;
    width: 350px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

.brand strong {
    font: 700 24px/1.15 Georgia, serif;
    letter-spacing: .045em;
    color: var(--navy);
    display: block;
}

.brand strong i {
    font-style: normal;
    color: var(--gold2);
}

.brand small {
    font-size: 10px;
    line-height: 1.4;
    max-width: 230px;
    display: block;
    color: var(--muted);
    margin-top: 5px;
}

nav {
    display: flex;
    align-items: center;
    gap: 21px;
    font-size: .88rem;
    font-weight: 600;
}

nav > a:not(.btn) {
    padding: 30px 0;
    white-space: nowrap;
    position: relative;
}

nav > a[aria-current]::after {
    position: absolute;
    content: '';
    bottom: 19px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gold2);
}

nav > a:hover {
    color: var(--gold2);
}

.menubtn {
    display: none;
    border: 0;
    background: transparent;
    color: var(--navy);
}

/* =========================================
   INSTITUTE CREST
========================================= */

.crest {
    display: grid;
    place-items: center;
    position: relative;
    width: 62px;
    height: 64px;
    flex: none;
}

.crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.crest-fallback {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    align-content: center;
    color: var(--blue);
    background: #f7f3e9;
    border: 1px solid #bda06a;
    border-radius: 47% 47% 43% 43%;
    gap: 0;
}

.crest-fallback svg {
    width: 34px;
    height: 34px;
}

.crest-fallback b {
    font: 700 13px Georgia, serif;
}

.crest img.broken {
    visibility: hidden;
}

.crest img.broken + .crest-fallback {
    display: grid;
}

/* =========================================
   BUTTONS
========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 48px;
    padding: 13px 21px;
    font-size: .9rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 4px;
    line-height: 1.4;
    text-align: center;
    transition: transform .18s, background .18s;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn svg,
.textlink svg {
    width: 19px;
    height: 19px;
}

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

.primary:hover {
    background: #e6c789;
}

.dark,
.navapply {
    background: var(--navy);
    color: #fff;
}

.navapply {
    padding: 12px 14px;
    min-height: 43px;
    white-space: nowrap;
}

.ghost {
    border-color: #ffffff65;
    color: #fff;
    background: transparent;
}

.outline {
    border-color: #b89b65;
    background: transparent;
    color: var(--navy);
}

.textlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold2);
    font-weight: 700;
    font-size: .92rem;
}

/* =========================================
   HOMEPAGE BACKGROUND
========================================= */

.hero {
    background-color: #102a39;
    background-image: url('/media/home-background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 75vh;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.herogrid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    min-height: 550px;
    padding: 64px 0 58px;
    gap: 30px;
}

.eyebrow {
    display: block;
    text-transform: uppercase;
    font-weight: 750;
    color: var(--gold2);
    letter-spacing: .14em;
    font-size: .76rem;
    margin-bottom: 14px;
}

.light {
    color: #ead09a;
    display: flex;
    align-items: center;
    gap: 12px;
}

.goldline {
    width: 34px;
    height: 1px;
    background: #e4c58a;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.8rem);
    line-height: 1.03;
    margin: 0 0 17px;
}

.hero h1 em {
    color: #e2c17e;
    font-weight: 400;
}

.hero h2 {
    font: 500 1.28rem/1.5 system-ui, sans-serif;
    letter-spacing: 0;
    color: #f0e2c2;
    margin-bottom: 12px;
}

.hero p {
    color: #c7d4d8;
    max-width: 520px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-caption {
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #a9bbc0;
    margin-top: 30px;
}

/* =========================================
   LEGACY DECORATIVE ARTWORK
========================================= */

.heroart {
    position: relative;
    min-height: 430px;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.hero .heroart {
    display: none;
}

.arch {
    position: absolute;
    inset: 0 8% 6%;
    border: 1px solid #c3a26585;
    border-radius: 50% 50% 0 0 / 48% 48% 0 0;
    z-index: -1;
    box-shadow: 0 0 50px #d9b57409 inset;
}

.arch2 {
    inset: 23px 12% 6%;
    border-color: #c3a26545;
}

.arch3 {
    inset: 48px 17% 6%;
    border-color: #c3a26580;
    background: radial-gradient(ellipse at center, #caa96d12, transparent 70%);
}

.artseal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--gold);
    gap: 15px;
    padding: 50px 10px 30px;
}

.artseal .crest {
    width: 220px;
    height: 220px;
    filter: drop-shadow(0 10px 22px #00111c66);
}

.artseal .crest-fallback {
    border: 2px solid #d6b36b;
    background: #e9e1ce;
    color: #143d50;
}

.artseal .crest-fallback svg {
    width: 100px;
    height: 100px;
}

.artseal .crest-fallback b {
    font-size: 36px;
}

.sealtext {
    font: 500 26px Georgia, serif;
    letter-spacing: .14em;
}

.artseal > span {
    font-size: 9px;
    letter-spacing: .21em;
}

.artbase {
    height: 5px;
    position: absolute;
    bottom: 6%;
    width: 93%;
    background: linear-gradient(90deg, transparent, #d4b16a, transparent);
}

.spark {
    position: absolute;
    font-size: 22px;
    color: #e4c58a;
}

.s1 {
    left: 5%;
    top: 20%;
}

.s2 {
    right: 4%;
    bottom: 24%;
}

/* =========================================
   GENERAL WEBSITE SECTIONS
========================================= */

.benefits {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.benefitgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.benefitgrid > div {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 100px;
    padding: 20px 25px;
    border-right: 1px solid var(--line);
}

.benefitgrid > div:first-child {
    padding-left: 0;
}

.benefitgrid > div:last-child {
    border-right: 0;
}

.benefiticon,
.roundicon {
    display: grid;
    place-items: center;
    border: 1px solid #d9c8a7;
    background: #f7f2e8;
    color: #97713c;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    flex: none;
}

.benefitgrid b {
    font-size: .98rem;
}

.benefitgrid small {
    margin-left: auto;
    color: #b4b8b5;
    font: 14px Georgia, serif;
}

.section {
    padding-top: 72px;
    padding-bottom: 72px;
}

.sectionheading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 26px;
}

.sectionheading p {
    max-width: 660px;
    margin-bottom: 0;
}

.sectionheading h2 {
    margin-bottom: 10px;
}

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

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* =========================================
   INNER PAGE HEADINGS
========================================= */

.pagehead {
    background: radial-gradient(ellipse at right, #235165, #0b2738 75%);
    padding: 68px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.pagehead h1 {
    max-width: 950px;
    margin: 0 0 15px;
    font-size: clamp(2.25rem, 4vw, 4.1rem);
}

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

.pagehead p {
    color: #cbd8dc;
    max-width: 800px;
    margin-bottom: 0;
    font-size: 1.08rem;
}

/* =========================================
   COURSES PAGE
========================================= */

.coursegrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.coursecard {
    border: 1px solid var(--line);
    background: white;
    box-shadow: var(--shadow);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.courseart {
    height: 142px;
    background: linear-gradient(140deg, #0e2d3e, #245568);
    color: var(--gold);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.courseart svg {
    width: 55px;
    height: 55px;
}

.courseart span {
    font-size: .8rem;
    letter-spacing: .1em;
}

.coursebody {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.coursebody h3 {
    font-size: 1.35rem;
}

.coursebody p {
    flex: 1;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.facts {
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 15px;
    margin-bottom: 15px;
}

.facts span {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: .82rem;
    color: var(--muted);
}

.facts svg {
    width: 17px;
    height: 17px;
    color: var(--gold2);
}

.searchlabel {
    display: block;
    max-width: 480px;
    font-weight: 650;
    margin-bottom: 25px;
}

.searchlabel input {
    display: block;
    width: 100%;
    margin-top: 8px;
}

.emptycourses {
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #d8d5ca;
    border-left: 4px solid #c7a161;
    border-radius: 5px;
    background: #fff;
    padding: 28px;
    box-shadow: var(--shadow);
}

.emptycourses p {
    margin-bottom: 0;
}

.emptycourses h3 {
    margin-bottom: 6px;
}

.emptycourses .btn {
    margin-left: auto;
    flex-shrink: 0;
}

/* =========================================
   COURSE DETAILS PAGE
========================================= */

.detailgrid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.detailgrid article h2 {
    margin-top: 30px;
}

.multiline {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.detailbox {
    border: 1px solid var(--line);
    padding: 28px;
    background: white;
    align-self: start;
}

.detailbox > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 13px 0;
}

.detailbox > div span {
    color: var(--muted);
}

.detailbox > div strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.detailbox > .btn {
    display: flex;
    margin-top: 16px;
}

/* =========================================
   ABOUT US PAGE
========================================= */

.aboutseal {
    background: var(--cream);
    display: grid;
    place-items: center;
    min-height: 300px;
    border: 1px solid #d8c6a2;
}

.aboutseal .crest {
    width: 200px;
    height: 200px;
}

.infoCard {
    background: #fff;
    border: 1px solid var(--line);
    padding: 34px;
    box-shadow: var(--shadow);
}

.infoCard .roundicon {
    margin-bottom: 22px;
}

/* =========================================
   SCHOLARSHIPS PAGE
========================================= */

.scholarart {
    min-height: 245px;
    position: relative;
    background: radial-gradient(ellipse at center, #255268, #102c3d);
    border: 1px solid #d3af6c;
    outline: 1px solid #bca270;
    outline-offset: -10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e7ca89;
    padding: 30px;
    gap: 4px;
    text-align: center;
}

.scholarart svg {
    width: 60px;
    height: 60px;
}

.scholarart > span {
    font-size: 20px;
}

.scholarart strong {
    font: 500 40px Georgia, serif;
    letter-spacing: .15em;
}

.scholarart small {
    font-size: 13px;
    letter-spacing: .11em;
}

.offerbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: #f7f2e5;
    border: 1px solid #dfd0ad;
    padding: 35px;
}

.offerbox p {
    max-width: 800px;
    margin-bottom: 0;
}

.offerbox > .btn {
    flex-shrink: 0;
}

/* =========================================
   CAMPUS ANTHEM PAGE
========================================= */

.anthemcard {
    background: var(--deep);
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    align-items: center;
    gap: 55px;
    color: white;
    border: 1px solid var(--gold);
    border-radius: 5px;
}

.anthemcard p {
    color: #cad6d7;
}

.record {
    aspect-ratio: 1;
    max-width: 350px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: repeating-radial-gradient(
        circle,
        #192c36 0 4px,
        #29404c 5px,
        #182d39 6px 8px
    );
    box-shadow: 0 10px 40px #0005;
    border: 1px solid #a78c60;
}

.record > div {
    width: 47%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #e1c388;
    display: grid;
    place-items: center;
}

.record .crest {
    width: 68%;
    height: 68%;
}

audio {
    display: block;
    margin: 20px 0;
    width: 100%;
    max-width: 360px;
}

.anthemcard .muted {
    font-size: .9rem;
    margin: 15px 0 0;
}

/* =========================================
   CONTACT PAGE
========================================= */

.phonebig {
    font-size: 1.6rem;
    color: var(--navy);
    font-weight: 700;
    display: block;
    margin: 10px 0 22px;
}

/* =========================================
   FOOTER — COMPACT DESIGN
========================================= */

footer {
    background: #0b2433;
    color: #c6d2d7;
    padding: 30px 0 16px;
}

.footergrid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr;
    gap: 40px;
    padding: 0;
}

.footer-logo {
    display: block;
    width: 130px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

footer .footbrand {
    min-width: 0;
    margin-bottom: 10px;
}

.footergrid > div:not(:first-child) > a {
    display: block;
    font-size: .9rem;
    margin: 8px 0;
}

.footergrid h3 {
    color: var(--gold);
    font-size: .93rem;
}

.footbrand strong {
    color: #fff;
}

.footbrand small {
    color: #b9c8cd;
}

footer p {
    color: #afc1c8;
    margin-top: 10px;
    margin-bottom: 0;
}

.copyright {
    border-top: 1px solid #ffffff20;
    margin-top: 20px;
    padding-top: 12px;
    font-size: .78rem;
    color: #a5b8bf;
}

/* =========================================
   FLOATING WHATSAPP BUTTON
========================================= */

.floating-wa {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-wa > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #168650;
    color: white;
    box-shadow: 0 5px 24px #062d2760;
    position: relative;
}

.floating-wa > span::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #24a765;
    border-radius: 50%;
    animation: pulse 2.6s infinite;
}

.floating-wa svg {
    width: 32px;
    height: 32px;
}

.floating-wa b {
    background: #fff;
    color: #193c32;
    border: 1px solid #dae5dc;
    padding: 7px 11px;
    font-size: .8rem;
    border-radius: 4px;
    box-shadow: 0 4px 16px #0001;
}

.floating-wa:hover > span {
    background: #08663a;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    70%, 100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* =========================================
   ADMINISTRATOR DASHBOARD
========================================= */

.adminbody {
    background: #f4f5f1;
}

.adminheader {
    border-top: 4px solid var(--gold2);
}

.adminheader .navrow {
    min-height: 80px;
}

.adminmark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    background: var(--navy);
    color: var(--gold);
    font: 700 30px Georgia, serif;
    border: 1px solid var(--gold);
    border-radius: 4px;
}

.adminmain {
    padding: 40px 0 70px;
}

.adminmain h1 {
    font-size: 2.8rem;
    margin-top: 10px;
}

.adminmain h2 {
    font: 650 1.35rem/1.4 system-ui, sans-serif;
    letter-spacing: 0;
}

.loginbox {
    width: min(470px, 100%);
    margin: 45px auto;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold2);
    padding: 35px;
    box-shadow: var(--shadow);
}

.loginbox h1 {
    font-size: 2.3rem;
}

.loginbox button {
    width: 100%;
    margin-top: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 16px 0;
    font-size: .86rem;
    font-weight: 650;
}

.field input,
.field textarea,
.searchlabel input {
    background: #fff;
    border: 1px solid #c8d1d3;
    border-radius: 4px;
    min-height: 45px;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 400;
    width: 100%;
}

.field textarea {
    resize: vertical;
}

.adminheading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.adminheading p {
    margin-bottom: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stats article {
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold2);
}

.stats small {
    display: block;
    color: var(--muted);
}

.stats strong {
    font: 500 2.5rem Georgia, serif;
}

.adminnav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.adminnav > a {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-weight: 600;
    font-size: .9rem;
}

.adminnav .active {
    background: var(--navy);
    color: #fff;
}

.adminpanel {
    border: 1px solid var(--line);
    background: white;
    padding: 28px;
    margin-top: 20px;
}

.tablewrap {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
    font-size: .9rem;
}

th, td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    background: #f6f7f3;
}

td small {
    display: block;
    color: var(--muted);
    white-space: normal;
}

.status {
    background: #e9e8e3;
    border-radius: 20px;
    padding: 5px 10px;
    color: #545c60;
    font-size: .78rem;
}

.status.live {
    background: #e0efe5;
    color: #276740;
}

.formgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 32px;
}

.formgrid section {
    min-width: 0;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    padding: 18px 0;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
}

.error,
.success {
    padding: 14px;
    border: 1px solid #d69a95;
    background: #fff0ee;
    color: #a02e22;
    border-radius: 4px;
}

.success {
    border-color: #b2d5b9;
    background: #eaf6eb;
    color: #236039;
}

.deleteform {
    margin-top: 25px;
    border: 1px solid #e4bbb5;
    padding: 20px;
}

.danger {
    background: #a73830;
    color: white;
}

.muted {
    color: var(--muted);
}

/* =========================================
   ADMISSIONS AND GOOGLE FORMS
========================================= */

.applygrid {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.applyform {
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold2);
    box-shadow: var(--shadow);
}

.applyform h2 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 14px;
}

.stepnum {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    background: var(--navy);
    color: #fff;
    font: 500 1rem Georgia, serif;
    border-radius: 50%;
}

.applyform .formgrid {
    gap: 0 20px;
}

.field select {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    padding: 10px 12px;
    color: var(--ink);
    font-weight: 400;
    width: 100%;
    min-width: 0;
}

.applyaside {
    border: 1px solid var(--line);
    padding: 28px;
    background: #fff;
}

.applyaside h2 {
    margin-top: 8px;
}

.feeoption {
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.feeoption h3 {
    margin: 0 0 7px;
    font-size: 1rem;
}

.feeoption p {
    margin: 0;
    font-size: .92rem;
}

.privacycopy {
    font-size: .9rem;
    color: var(--muted);
}

.consent {
    align-items: flex-start;
}

.consent input {
    flex: none;
    margin-top: 4px;
}

.app-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.receipt {
    max-width: 690px;
    margin: auto;
    text-align: center;
}

.receipt .roundicon {
    margin: 0 auto;
}

.receipt h2 {
    display: block;
}

.reference {
    display: block;
    overflow-wrap: anywhere;
    font-size: 1.35rem;
    color: var(--navy);
    padding: 16px;
    background: #f7f4eb;
    border: 1px solid var(--line);
    margin-bottom: 16px;
}

.appfilters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
}

.appfilters .field {
    margin: 0;
}

.appdetails {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.appdetails div {
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
    min-width: 0;
}

.appdetails dt {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 600;
}

.appdetails dd {
    margin: 8px 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.appfilters > a {
    padding: 12px 0;
}

.applyform input:focus,
.applyform select:focus,
.applyform textarea:focus {
    outline: 2px solid var(--gold2);
    outline-offset: 1px;
}

/* =========================================
   TABLET AND SMALL DESKTOP SCREENS
========================================= */

@media (max-width: 1100px) {

    nav {
        gap: 13px;
        font-size: .8rem;
    }

    .navrow {
        gap: 16px;
    }

    .header-logo {
        width: 250px;
    }

    .brand small {
        max-width: 185px;
    }

    .brand strong {
        font-size: 21px;
    }

    .navapply {
        padding: 10px;
    }

    .heroart {
        min-height: 390px;
    }

    .artseal .crest {
        width: 190px;
        height: 190px;
    }
}

/* =========================================
   TABLET RESPONSIVE DESIGN
========================================= */

@media (max-width: 900px) {

    .wrap {
        width: calc(100% - 44px);
    }

    .menubtn {
        display: block;
    }

    .menubtn svg {
        width: 30px;
        height: 30px;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 16px 22px 24px;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    nav.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav > a:not(.btn) {
        padding: 12px 0;
    }

    nav > a[aria-current]::after {
        bottom: 5px;
        right: auto;
        width: 30px;
    }

    nav .btn {
        margin-top: 12px;
    }

    .herogrid {
        grid-template-columns: 1fr;
        min-height: 490px;
        gap: 15px;
    }

    .heroart {
        min-height: 320px;
    }

    .artseal .crest {
        width: 140px;
        height: 140px;
    }

    .sealtext {
        font-size: 18px;
    }

    .artseal > span {
        font-size: 7px;
    }

    .benefitgrid > div {
        padding: 16px;
        gap: 10px;
    }

    .benefitgrid small {
        display: none;
    }

    .benefitgrid b {
        font-size: .86rem;
    }

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

    .split {
        gap: 35px;
    }

    .emptycourses {
        flex-wrap: wrap;
    }

    .emptycourses .btn {
        margin-left: 0;
    }

    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

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

    .floating-wa {
        bottom: 16px;
        right: 14px;
    }

    .floating-wa b {
        display: none;
    }

    .floating-wa > span {
        width: 52px;
        height: 52px;
    }
}

/* =========================================
   ADMISSIONS — TABLET
========================================= */

@media (max-width: 800px) {

    .applygrid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

/* =========================================
   MOBILE RESPONSIVE DESIGN
========================================= */

@media (max-width: 600px) {

    .wrap {
        width: calc(100% - 32px);
    }

    .topinner {
        gap: 7px;
        min-height: 42px;
    }

    .topinner > span {
        display: none;
    }

    .topinner > a {
        margin-left: 0;
        margin-right: auto;
    }

    .languages {
        padding-left: 10px;
        gap: 3px;
    }

    .navrow {
        min-height: 76px;
    }

    .header-logo {
        width: 210px;
    }

    .footer-logo {
        width: 110px;
    }

    .crest {
        width: 50px;
        height: 50px;
    }

    .brand strong {
        font-size: 20px;
    }

    .brand small {
        font-size: 9px;
        max-width: 205px;
    }

    .herogrid {
        grid-template-columns: 1fr;
        padding: 43px 0 20px;
        gap: 5px;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .hero p {
        font-size: .95rem;
    }

    .hero h2 {
        font-size: 1.08rem;
    }

    .heroart {
        min-height: 260px;
        width: min(100%, 340px);
        margin: auto;
    }

    .artseal {
        gap: 8px;
        padding: 25px;
    }

    .artseal .crest {
        width: 125px;
        height: 125px;
    }

    .arch {
        inset: 0 14% 6%;
    }

    .arch2 {
        inset: 15px 18% 6%;
    }

    .arch3 {
        inset: 31px 22% 6%;
    }

    .hero-caption {
        margin-top: 22px;
    }

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

    .benefitgrid > div,
    .benefitgrid > div:first-child {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        min-height: 65px;
        padding: 10px 0;
    }

    .benefitgrid > div:last-child {
        border: 0;
    }

    .benefiticon {
        width: 36px;
        height: 36px;
    }

    .benefiticon svg {
        width: 19px;
        height: 19px;
    }

    .sectionheading {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }

    .emptycourses {
        padding: 20px;
        gap: 12px;
    }

    .emptycourses .roundicon {
        width: 40px;
        height: 40px;
    }

    .split,
    .two,
    .coursegrid,
    .detailgrid,
    .anthemcard,
    .footergrid,
    .formgrid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .pagehead {
        padding: 45px 0;
    }

    .offerbox {
        padding: 24px;
    }

    .anthemcard {
        padding: 25px;
    }

    .record {
        width: 75%;
        margin: auto;
    }

    footer {
        padding: 25px 0 16px;
    }

    .footergrid {
        gap: 20px;
        padding: 0;
    }

    .adminheading {
        align-items: start;
        flex-wrap: wrap;
    }

    .stats {
        gap: 6px;
    }

    .stats article {
        padding: 12px 8px;
    }

    .stats small {
        font-size: .72rem;
    }

    .stats strong {
        font-size: 1.8rem;
    }

    .adminpanel {
        padding: 16px;
    }

    .adminheader .textlink {
        font-size: .72rem;
    }

    .loginbox {
        padding: 24px;
        margin: 10px auto;
    }

    .floating-wa {
        bottom: 13px;
        right: 12px;
    }

    html[lang=si] .hero h1 {
        font-size: 2.6rem;
    }

    .applyform,
    .applyaside {
        padding: 18px;
    }

    .appdetails,
    .appfilters {
        grid-template-columns: 1fr;
    }

    .applyform .btn {
        width: 100%;
    }
}

/* =========================================
   ACCESSIBILITY — REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* Homepage buttons - all white */

.hero .actions .btn {
    background: #FFFFFF !important;
    color: #1A4658 !important;
    border: 1px solid #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    font-weight: 700;
}

.hero .actions .btn svg {
    color: #1A4658 !important;
}

.hero .actions .btn:hover {
    background: #F5F5F5 !important;
    color: #123748 !important;
    border-color: #F5F5F5 !important;
    transform: translateY(-2px);
}

/* HIPS FINAL HERO BUTTONS START */

.hero {
    position: relative !important;
}

.hero .herogrid {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 75vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 30px 50px !important;
    box-sizing: border-box;
}

.hero .herogrid .herocopy {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}

.hero .herogrid .herocopy .actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hero .herogrid .herocopy .actions > a.btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 240px !important;
    min-height: 54px !important;
    background: #1A4658 !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border: 1px solid #1A4658 !important;
    border-radius: 5px !important;
    padding: 14px 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
    opacity: 1 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    transition: background 0.2s, transform 0.2s;
}

.hero .herogrid .herocopy .actions > a.btn svg {
    color: #FFFFFF !important;
}

.hero .herogrid .herocopy .actions > a.btn:hover {
    background: #2E6C86 !important;
    color: #FFFFFF !important;
    border-color: #D7B36B !important;
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .hero .herogrid {
        padding: 20px !important;
    }

    .hero .herogrid .herocopy .actions {
        gap: 12px !important;
    }

    .hero .herogrid .herocopy .actions > a.btn {
        width: 190px !important;
        min-height: 48px !important;
        padding: 12px 14px !important;
        font-size: 0.85rem !important;
    }
}

/* HIPS FINAL HERO BUTTONS END */

/* HIPS PREMIUM BUTTONS START */

.hero .herogrid .herocopy .actions {
    gap: 18px !important;
}

.hero .herogrid .herocopy .actions > a.btn {
    width: 260px !important;
    min-height: 58px !important;
    padding: 14px 20px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    background: #1A4658 !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.20);
    transition: background 0.3s ease,
                transform 0.3s ease,
                box-shadow 0.3s ease !important;
}

.hero .herogrid .herocopy .actions > a.btn:hover {
    background: #2E6C86 !important;
    color: #FFFFFF !important;
    border: none !important;
    transform: translateX(6px) scale(1.03);
    box-shadow: 0 8px 22px rgba(0,0,0,0.30);
}

.hero .herogrid .herocopy .actions > a.btn:hover svg {
    color: #FFFFFF !important;
}

.hero .herogrid .herocopy .actions > a.btn:active {
    transform: scale(0.98);
}

.hero .herogrid .herocopy .actions > a.btn:focus-visible {
    outline: 3px solid #FFFFFF;
    outline-offset: 4px;
}

@media (max-width: 600px) {
    .hero .herogrid .herocopy .actions {
        gap: 12px !important;
    }

    .hero .herogrid .herocopy .actions > a.btn {
        width: 200px !important;
        max-width: 100% !important;
        min-height: 50px !important;
        font-size: 0.85rem !important;
        padding: 12px 16px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero .herogrid .herocopy .actions > a.btn {
        transition: none !important;
        transform: none !important;
    }
}

/* HIPS PREMIUM BUTTONS END */

/* HIPS ABOUT SUBPAGES START */

.about-dropdown {
    position: relative;
}

.about-dropdown summary {
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    padding: 30px 0;
    color: #1A4658;
    font-weight: 600;
}

.about-dropdown summary::-webkit-details-marker {
    display: none;
}

.about-dropdown summary:hover,
.about-dropdown[open] summary {
    color: #A77B37;
}

.about-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 290px;
    background: #1A4658;
    border-radius: 6px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.20);
    z-index: 1000;
}

.about-dropdown-menu a {
    display: block;
    color: #FFFFFF;
    padding: 15px 18px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: background 0.25s ease;
}

.about-dropdown-menu a:hover,
.about-dropdown-menu a[aria-current="page"] {
    background: #2E6C86;
    color: #FFFFFF;
}

.about-feature {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 40px;
    margin: 25px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.about-page-logo {
    display: block;
    width: 500px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 25px;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,300px));
    gap: 25px;
    margin-top: 30px;
    justify-content: center;
}

.academic-card {
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    transition: transform 0.3s ease;
}

.academic-card:hover {
    transform: translateY(-5px);
}

.academic-card img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.academic-card h2 {
    background: #1A4658;
    color: #FFFFFF;
    padding: 22px 15px;
    font-size: 1.25rem;
    margin: 0;
}

@media (max-width: 900px) {
    .about-dropdown summary {
        padding: 12px 0;
    }

    .about-dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {
    .about-feature {
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .academic-card {
        transition: none;
    }

    .academic-card:hover {
        transform: none;
    }
}

/* HIPS ABOUT SUBPAGES END */

/* HIPS LOGO CONTENT START */

.logo-introduction {
    max-width: 950px;
    margin: 30px auto 45px;
    text-align: center;
}

.institute-logo {
    display: block;
    width: 550px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin: 0 auto 35px;
}

.logo-introduction p {
    color: #1A4658;
    font-size: 1.12rem;
    line-height: 1.9;
    max-width: 850px;
    margin: auto;
}

.logo-meaning-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin: 35px 0;
}

.logo-meaning-card {
    background: #FFFFFF;
    border-radius: 10px;
    border-top: 4px solid #D7B36B;
    padding: 32px;
    box-shadow: 0 6px 25px rgba(16,42,57,0.08);
    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.logo-meaning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(16,42,57,0.15);
}

.logo-section-number {
    display: inline-block;
    color: #A77B37;
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.logo-meaning-card h2 {
    color: #1A4658;
    font-size: 1.4rem;
    line-height: 1.45;
    margin: 0 0 20px;
}

.logo-meaning-card p {
    color: #344B57;
    font-size: 1rem;
    line-height: 1.9;
    margin: 0 0 18px;
}

.logo-meaning-card strong {
    color: #1A4658;
}

.logo-meaning-card blockquote {
    background: #F6F3EC;
    border-left: 4px solid #D7B36B;
    padding: 20px;
    margin: 25px 0;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    text-align: center;
}

.logo-purpose {
    background: #1A4658;
    color: #FFFFFF;
    border-radius: 10px;
    padding: 50px 35px;
    margin: 45px 0 15px;
    text-align: center;
}

.logo-purpose h2 {
    color: #FFFFFF;
    font-size: 2rem;
    margin: 0 0 18px;
}

.logo-purpose h3 {
    color: #D7B36B;
    font-size: 1.35rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.logo-purpose p {
    color: #FFFFFF;
    max-width: 800px;
    margin: auto;
    font-size: 1.05rem;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .logo-meaning-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo-meaning-card {
        padding: 25px;
    }

    .institute-logo {
        width: 380px;
    }

    .logo-purpose {
        padding: 35px 22px;
    }
}

@media (max-width: 600px) {
    .institute-logo {
        width: 300px;
    }

    .logo-meaning-card {
        padding: 22px;
    }

    .logo-meaning-card h2 {
        font-size: 1.2rem;
    }

    .logo-introduction p {
        font-size: 1rem;
    }

    .logo-purpose h2 {
        font-size: 1.6rem;
    }

    .logo-purpose h3 {
        font-size: 1.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-meaning-card {
        transition: none;
    }

    .logo-meaning-card:hover {
        transform: none;
    }
}

/* HIPS LOGO CONTENT END */

/* HIPS LOGO STORY START */

.logo-story-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 42px;
    align-items: start;
    margin-top: 30px;
}

.logo-story-left {
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.logo-story-campus {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(16,42,57,0.12);
}

.logo-story-mark {
    width: 100%;
    max-width: 360px;
    height: auto;
    object-fit: contain;
    display: block;
}

.logo-story-right h2 {
    color: #1A4658;
    margin: 0 0 20px;
    font-size: 2.2rem;
}

.logo-story-right h3 {
    color: #1A4658;
    font-size: 1.25rem;
    margin: 28px 0 12px;
    line-height: 1.5;
}

.logo-story-right p {
    color: #344B57;
    font-size: 1rem;
    line-height: 1.95;
    margin: 0 0 16px;
}

.logo-story-right strong {
    color: #1A4658;
}

.logo-story-quote {
    font-family: Georgia, serif;
    font-size: 1.12rem !important;
    color: #A77B37 !important;
    margin: 18px 0 !important;
}

@media (max-width: 900px) {
    .logo-story-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .logo-story-left {
        position: static;
    }

    .logo-story-campus {
        height: 280px;
    }

    .logo-story-mark {
        max-width: 300px;
    }
}

@media (max-width: 600px) {
    .logo-story-right h2 {
        font-size: 1.7rem;
    }

    .logo-story-right h3 {
        font-size: 1.1rem;
    }

    .logo-story-campus {
        height: 220px;
    }
}

/* HIPS LOGO STORY END */

/* HIPS FACULTIES STYLES START */

header .faculty-dropdown {
    position: relative;
}

header .faculty-dropdown summary {
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    padding: 30px 0;
    color: #1A4658;
    font-weight: 600;
}

header .faculty-dropdown summary::-webkit-details-marker {
    display: none;
}

header .faculty-dropdown summary:hover,
header .faculty-dropdown[open] summary {
    color: #A77B37;
}

header .faculty-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: min(360px,90vw);
    max-height: 65vh;
    overflow-y: auto;
    background: #1A4658;
    color: #FFFFFF;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(0,0,0,.20);
    z-index: 1001;
}

header .faculty-dropdown-menu a {
    display: block;
    color: #FFFFFF;
    padding: 10px 12px;
    white-space: normal;
    line-height: 1.5;
    border-radius: 4px;
    transition: background .25s ease;
}

header .faculty-dropdown-menu a:hover,
header .faculty-dropdown-menu a:focus-visible {
    background: #2E6C86;
    color: #FFFFFF;
}

header .faculty-menu-heading {
    font-weight: 700;
    font-size: .95rem;
}

header .faculty-menu-department {
    font-weight: 400;
    font-size: .85rem;
    margin-left: 12px;
}

.faculty-menu-group {
    border-top: 1px solid rgba(255,255,255,.18);
    margin-top: 8px;
    padding-top: 8px;
}

/* FACULTY CONTENT */

.academic-page h2 {
    color: #1A4658;
    margin: 0 0 20px;
    font-size: 1.8rem;
}

.academic-page p {
    color: #344B57;
    line-height: 1.85;
    font-size: 1rem;
}

.faculty-overview {
    padding: 30px 0;
    border-bottom: 1px solid #DEDFD9;
}

.faculty-overview:first-child {
    padding-top: 0;
}

.faculty-overview h2 a {
    color: #1A4658;
}

.faculty-overview h2 a:hover {
    color: #A77B37;
}

/* DEPARTMENT LINKS */

.faculty-department-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.faculty-department-list a {
    color: #1A4658;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid #DEDFD9;
    transition: color .25s ease;
}

.faculty-department-list a:hover {
    color: #A77B37;
}

/* PLAIN NARRATION LAYOUT */

.academic-list {
    display: block;
}

.academic-list article {
    padding: 25px 0;
    border-bottom: 1px solid #DEDFD9;
}

.academic-list article h3 {
    color: #1A4658;
    font-size: 1.35rem;
    margin: 0 0 12px;
}

.academic-list article h3 a {
    color: #1A4658;
}

.academic-list article h3 a:hover {
    color: #A77B37;
}

.academic-page .academic-course-heading {
    margin-top: 45px;
}

.academic-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: #5D6E76;
    font-size: .9rem;
}

.academic-crumbs a {
    color: #1A4658;
    text-decoration: underline;
}

/* COURSE DEPARTMENT LINKS */

.course-academic-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 14px 0;
    font-size: .85rem;
}

.course-academic-links a {
    color: #1A4658;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.course-academic-links a:hover {
    color: #A77B37;
}

/* ADMIN DEPARTMENT FIELD */

.academic-field select {
    font: inherit;
    width: 100%;
    background: #FFFFFF;
    color: #1A4658;
    border: 1px solid #C8D1D3;
    border-radius: 5px;
    padding: 13px;
}

.academic-field small {
    color: #5D6E76;
    font-weight: 400;
}

.course-faculty-browse {
    margin-bottom: 25px;
}

/* MOBILE NAVIGATION */

@media (max-width: 900px) {

    header .faculty-dropdown summary {
        padding: 12px 0;
    }

    header .faculty-dropdown-menu {
        position: static;
        width: 100%;
        max-height: none;
        box-shadow: none;
        margin-bottom: 10px;
    }
}

@media (max-width: 600px) {

    .academic-page h2 {
        font-size: 1.5rem;
    }

    .academic-list article h3 {
        font-size: 1.15rem;
    }

    .academic-page p {
        font-size: .95rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .faculty-department-list a,
    header .faculty-dropdown-menu a {
        transition: none;
    }
}

/* HIPS FACULTIES STYLES END */

/* HIPS FACULTY ACCORDION START */

/* Remove the dropdown scrollbar */

header .faculty-dropdown-menu {
    width: min(380px,90vw);
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    background: #1A4658;
    padding: 10px;
    border-radius: 6px;
}

/* Faculty separators */

header .faculty-submenu {
    display: block;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin-top: 5px;
    padding-top: 5px;
}

/* Clickable faculty titles */

header .faculty-submenu > summary {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    white-space: normal !important;
    color: #FFFFFF !important;
    background: transparent;
    padding: 14px 12px !important;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.5;
    transition: background 0.25s ease;
}

header .faculty-submenu > summary::-webkit-details-marker {
    display: none;
}

header .faculty-submenu > summary::marker {
    content: "";
}

/* Faculty hover effect */

header .faculty-submenu > summary:hover,
header .faculty-submenu[open] > summary {
    background: #2E6C86;
    color: #FFFFFF !important;
}

/* Animated arrow */

header .faculty-chevron {
    display: inline-block;
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

header .faculty-submenu[open] .faculty-chevron {
    transform: rotate(90deg);
}

/* Department submenu */

header .faculty-submenu-links {
    background: #20586F;
    padding: 5px 8px;
    margin: 4px 0 8px;
    border-radius: 4px;
}

header .faculty-submenu:not([open]) > .faculty-submenu-links {
    display: none;
}

header .faculty-submenu-links a {
    display: block;
    padding: 10px 12px !important;
    color: #FFFFFF !important;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: normal;
    margin: 0;
    border-radius: 4px;
    transition: background 0.25s ease;
}

/* Faculty overview link */

header .faculty-submenu-links .faculty-overview-link {
    color: #D7B36B !important;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    border-radius: 0;
    margin-bottom: 5px;
}

/* Department hover effect */

header .faculty-submenu-links a:hover {
    background: #2E6C86;
    color: #FFFFFF !important;
}

/* Keyboard accessibility */

header .faculty-submenu summary:focus-visible,
header .faculty-submenu-links a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: -2px;
}

/* Mobile layout */

@media (max-width: 900px) {

    header .faculty-dropdown-menu {
        position: static;
        width: 100%;
        max-height: none !important;
        overflow: visible !important;
    }

    header .faculty-submenu > summary {
        padding: 12px 10px !important;
    }

    header .faculty-submenu-links a {
        padding: 10px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    header .faculty-chevron,
    header .faculty-submenu summary,
    header .faculty-submenu-links a {
        transition: none;
    }
}

/* HIPS FACULTY ACCORDION END */

/* HIPS SOFT NAVY START */

:root {
    --navy: #23465B;
    --deep: #1C3C50;
    --blue: #2D566D;
}

/* Footer background */

footer {
    background: #23465B !important;
    color: #E5EDF2;
}

/* Top header bar */

.topbar {
    background: #23465B !important;
    color: #FFFFFF;
}

/* Other page heading backgrounds */

.pagehead {
    background: #23465B !important;
    color: #FFFFFF;
}

/* Navigation dropdowns */

header .faculty-dropdown-menu,
header .about-dropdown-menu {
    background: #23465B !important;
}

header .faculty-submenu-links {
    background: #2D566D !important;
}

/* Homepage buttons */

.hero .herogrid .herocopy .actions > a.btn {
    background: #23465B !important;
    color: #FFFFFF !important;
}

.hero .herogrid .herocopy .actions > a.btn:hover {
    background: #39677F !important;
}

/* Other dark content sections */

.logo-purpose {
    background: #23465B !important;
}

/* Footer links */

footer a {
    color: #E5EDF2;
}

footer a:hover {
    color: #FFFFFF;
}

/* HIPS SOFT NAVY END */

/* HIPS COURSE BANNER STYLES START */

.hips-upcoming-section {
    background: #F6F7F8;
    padding: 55px 0 45px;
}

.hips-upcoming-heading {
    text-align: center;
    margin-bottom: 30px;
}

.hips-upcoming-heading > span {
    color: #A77B37;
    font-size: .8rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.hips-upcoming-heading h2 {
    color: #23465B;
    font-size: clamp(1.8rem,3vw,2.6rem);
    margin: 10px 0;
}

.hips-upcoming-heading p {
    color: #5D6E76;
    margin: 0;
}

.hips-carousel {
    position: relative;
    max-width: 1190px;
    margin: auto;
}

.hips-carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border-radius: 8px;
    cursor: grab;
    overscroll-behavior-x: contain;
}

.hips-carousel-track::-webkit-scrollbar {
    display: none;
}

.hips-carousel-track.is-dragging {
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grabbing;
    user-select: none;
}

.hips-banner-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hips-banner-slide > a {
    display: block;
    color: #FFFFFF;
    text-decoration: none;
    background: #23465B;
    -webkit-user-drag: none;
}

.hips-banner-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 8 / 3;
    object-fit: contain;
    background: #E8ECEF;
    user-select: none;
    -webkit-user-drag: none;
}

.hips-banner-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: #23465B;
    color: #FFFFFF;
    padding: 18px 25px;
}

.hips-banner-caption strong {
    font-size: 1.05rem;
}

.hips-banner-caption span {
    font-size: .9rem;
    white-space: nowrap;
}

.hips-banner-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 5;
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    background: rgba(35,70,91,.92);
    color: #FFFFFF;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.2);
    transition: background .2s ease;
}

.hips-banner-arrow:hover {
    background: #39677F;
}

.hips-banner-prev {
    left: 15px;
}

.hips-banner-next {
    right: 15px;
}

.hips-banner-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.hips-banner-dots button {
    appearance: none;
    border: 8px solid transparent;
    background: #C5CDD2;
    background-clip: padding-box;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
}

.hips-banner-dots button[aria-current="true"] {
    background-color: #23465B;
}

.hips-carousel button:focus-visible,
.hips-carousel-track:focus-visible,
.hips-banner-dots button:focus-visible {
    outline: 3px solid #A77B37;
    outline-offset: 2px;
}

/* ADMIN BANNER MANAGEMENT */

.hips-banner-admin {
    margin-bottom: 25px;
}

.hips-banner-admin-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: start;
    gap: 30px;
}

.hips-banner-preview img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.hips-banner-placeholder {
    background: #E9EDF0;
    min-height: 180px;
    display: grid;
    place-items: center;
    color: #5D6E76;
    border-radius: 6px;
}

.hips-banner-admin input[type="file"] {
    width: 100%;
    padding: 12px;
    background: #F6F7F8;
    border: 1px solid #CDD5D9;
    border-radius: 5px;
}

.hips-banner-admin [data-banner-message] {
    font-size: .9rem;
    color: #23465B;
}

/* MOBILE CAROUSEL */

@media (max-width: 600px) {

    .hips-upcoming-section {
        padding: 32px 0;
    }

    .hips-banner-arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
        top: 35%;
    }

    .hips-banner-prev {
        left: 6px;
    }

    .hips-banner-next {
        right: 6px;
    }

    .hips-banner-caption {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 7px;
    }

    .hips-banner-caption strong {
        font-size: .95rem;
    }

    .hips-banner-admin-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hips-carousel-track {
        scroll-behavior: auto;
    }

    .hips-banner-arrow {
        transition: none;
    }
}

/* HIPS COURSE BANNER STYLES END */

/* HIPS COMPACT CAROUSEL START */

/* Reduce space below homepage main image */

.hips-upcoming-section {
    padding: 16px 0 20px !important;
    margin: 0 !important;
    background: #FFFFFF;
}

/* Expand available carousel width */

.hips-upcoming-section > .wrap {
    width: calc(100% - 40px) !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Compact section heading */

.hips-upcoming-heading {
    margin: 0 0 14px !important;
    padding: 0 !important;
    text-align: center;
}

.hips-upcoming-heading h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    line-height: 1.3;
    margin: 0 !important;
    padding: 0 !important;
    color: #23465B;
}

/* Full-width carousel */

.hips-carousel {
    width: 100% !important;
    max-width: none !important;
    margin: 0 auto !important;
}

/* Reduce banner height */

.hips-banner-slide img {
    display: block;
    width: 100% !important;
    height: clamp(220px, 25vw, 400px) !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    background: #FFFFFF;
}

/* Smaller bottom caption */

.hips-banner-caption {
    padding: 10px 20px !important;
}

.hips-banner-caption strong {
    font-size: 1rem;
}

/* Centre navigation arrows */

.hips-banner-arrow {
    top: 45%;
}

/* Reduce navigation dot spacing */

.hips-banner-dots {
    margin-top: 6px !important;
    gap: 5px;
}

/* Mobile layout */

@media (max-width: 600px) {

    .hips-upcoming-section {
        padding: 10px 0 12px !important;
    }

    .hips-upcoming-section > .wrap {
        width: calc(100% - 16px) !important;
    }

    .hips-upcoming-heading {
        margin-bottom: 10px !important;
    }

    .hips-upcoming-heading h2 {
        font-size: 1.5rem;
    }

    .hips-banner-slide img {
        height: clamp(140px, 38vw, 220px) !important;
    }

    .hips-banner-caption {
        padding: 8px 12px !important;
    }
}

/* HIPS COMPACT CAROUSEL END */

/* HIPS SOCIAL REPAIR CSS START */

.hips-social-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-shrink: 0;
    padding-left: 12px;
    border-left: 1px solid #ffffff30;
}

.hips-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    color: #FFFFFF !important;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform .2s ease;
}

.hips-social-icon svg {
    width: 18px !important;
    height: 18px !important;
    color: #FFFFFF !important;
}

.social-facebook {
    background: #1877F2;
}

.social-linkedin {
    background: #0A66C2;
}

.social-youtube {
    background: #FF0000;
}

.social-instagram {
    background: linear-gradient(
        135deg,#833AB4,#E1306C,#FCAF45
    );
}

.social-tiktok {
    background: #101010;
}

.hips-social-links a:hover {
    transform: translateY(-3px);
}

.hips-social-links a:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.hips-social-settings {
    background: #F6F8FA;
    border: 1px solid #DEDFD9;
    padding: 24px;
    margin: 25px 0;
    border-radius: 8px;
}

.hips-social-admin-row {
    padding: 18px 0;
    border-top: 1px solid #DEDFD9;
}

.hips-social-admin-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #23465B;
}

.hips-social-admin-row .field {
    margin-top: 12px;
}

.hips-social-admin-row input[type="url"] {
    width: 100%;
    border: 1px solid #CDD5D9;
    border-radius: 5px;
    padding: 12px;
    background: white;
    font: inherit;
}

@media (max-width: 1100px) {

    .topinner {
        flex-wrap: wrap;
        gap: 10px;
        padding-top: 6px;
        padding-bottom: 6px;
    }
}

@media (max-width: 600px) {

    .hips-social-links {
        width: 100%;
        justify-content: flex-end;
        border-left: none;
        padding: 4px 0;
    }

    .hips-social-settings {
        padding: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hips-social-icon {
        transition: none;
        transform: none !important;
    }
}

/* HIPS SOCIAL REPAIR CSS END */

/* Upper header branding */

.topbar-brand {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #FFFFFF;
}

/* =========================================
   HIPS CLEAN HEADER START
========================================= */

/* Desktop header */

@media (min-width: 1101px) {

    header:not(.adminheader) .navrow {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;

        width: calc(100% - 80px);
        max-width: 1700px;
        min-height: 120px;

        margin: 0 auto;
        padding: 10px 0;
        gap: 25px;
    }

    /* Header logo */

    header:not(.adminheader) .brand {
        display: flex;
        align-items: center;
        flex-shrink: 1;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    header .header-logo {
        width: clamp(280px, 28vw, 550px);
        max-width: 100%;
        height: auto;
        margin: 0;
        object-fit: contain;
    }

    /* Main navigation */

    header:not(.adminheader) .navrow > nav[data-nav] {
        display: flex;
        position: static;
        flex: 0 0 auto;
        flex-direction: row;
        flex-wrap: nowrap;

        justify-content: center;
        align-items: center;

        width: auto;
        gap: 40px;

        margin-left: auto;
        margin-right: 50px;

        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    /* Navigation text */

    header nav[data-nav] > a:not(.btn),
    header nav[data-nav] > details > summary {
        white-space: nowrap;
        padding: 18px 0;
        font-size: 0.88rem;
    }

    header nav[data-nav] > .btn {
        white-space: nowrap;
        flex-shrink: 0;
        margin: 0;
    }

    header:not(.adminheader) .menubtn {
        display: none;
    }

    /* Dropdown positioning */

    header .faculty-dropdown-menu,
    header .about-dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1001;
    }
}

/* Smaller laptop screens */

@media (min-width: 1101px) and (max-width: 1400px) {

    header:not(.adminheader) .navrow {
        width: calc(100% - 40px);
        gap: 20px;
    }

  header .header-logo {
    width: clamp(320px, 32vw, 630px);
    max-width: 100%;
    height: auto;
    margin: 0;
    object-fit: contain;
}
    }

    header:not(.adminheader) .navrow > nav[data-nav] {
        gap: 15px;
    }

    header nav[data-nav] > a:not(.btn),
    header nav[data-nav] > details > summary {
        font-size: 0.8rem;
    }
}

/* Tablet and mobile header */

@media (max-width: 1100px) {

    header:not(.adminheader) .navrow {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        min-height: 85px;
        padding: 8px 0;
    }

    header .header-logo {
        width: 380px;
        max-width: 70vw;
        height: auto;
        margin: 0;
    }

    header:not(.adminheader) .menubtn {
        display: block;
        flex-shrink: 0;
    }

    header:not(.adminheader) .navrow > nav[data-nav] {
        display: none;
        margin: 0;
    }

    header:not(.adminheader) .navrow > nav[data-nav].open {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        box-sizing: border-box;

        flex-direction: column;
        align-items: stretch;

        background: #FFFFFF;
        padding: 20px;
        gap: 8px;
        max-height: 75vh;
        overflow-y: auto;
        z-index: 1000;
    }

    header .faculty-dropdown-menu,
    header .about-dropdown-menu {
        position: static;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Small mobile screens */

@media (max-width: 600px) {

    header .header-logo {
        width: 290px;
        max-width: 72vw;
    }
}

/* HIPS CLEAN HEADER END */



/* HIPS TYPOGRAPHY START */

:root {
    --academic-font: Arial, Helvetica, sans-serif;
    --sinhala-font: "Nirmala UI", "Iskoola Pota", sans-serif;
}

/* General website text */

body:not(.adminbody) {
    font-family: var(--academic-font);
    font-weight: 400;
    line-height: 1.7;
}

/* Main headings */

body:not(.adminbody) h1,
body:not(.adminbody) h2,
body:not(.adminbody) h3,
body:not(.adminbody) h4 {
    font-family: var(--academic-font);
    font-weight: 600;
    letter-spacing: normal;
    line-height: 1.35;
}

/* Main navigation and dropdowns */

header:not(.adminheader) nav,
header:not(.adminheader) nav a,
header:not(.adminheader) nav summary {
    font-family: var(--academic-font);
    font-weight: 600;
    letter-spacing: normal;
}

/* Buttons */

body:not(.adminbody) .btn {
    font-family: var(--academic-font);
    font-weight: 600;
}

/* Paragraphs */

body:not(.adminbody) p {
    font-family: inherit;
    font-weight: 400;
    line-height: 1.8;
}

/* Sinhala language support */

html[lang="si"] body:not(.adminbody),
html[lang="si"] body:not(.adminbody) h1,
html[lang="si"] body:not(.adminbody) h2,
html[lang="si"] body:not(.adminbody) h3,
html[lang="si"] body:not(.adminbody) h4,
html[lang="si"] header:not(.adminheader) nav,
html[lang="si"] header:not(.adminheader) nav a,
html[lang="si"] header:not(.adminheader) nav summary,
html[lang="si"] body:not(.adminbody) .btn {
    font-family: var(--sinhala-font);
}

/* HIPS TYPOGRAPHY END */



/* HIPS NAV FONT START */

/* Main navigation text */

header:not(.adminheader) nav[data-nav] > a,
header:not(.adminheader) nav[data-nav] > details > summary {
    text-transform: uppercase !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
}

/* Apply now button */

header:not(.adminheader) nav[data-nav] > .btn {
    font-size: 17px !important;
    font-weight: 700 !important;
}

/* Smaller desktop screens */

@media (min-width: 1101px) and (max-width: 1400px) {

    header:not(.adminheader) nav[data-nav] > a,
    header:not(.adminheader) nav[data-nav] > details > summary {
        font-size: 14px !important;
        letter-spacing: 0.2px;
    }
}

/* Tablet and mobile */

@media (max-width: 1100px) {

    header:not(.adminheader) nav[data-nav] > a,
    header:not(.adminheader) nav[data-nav] > details > summary {
        font-size: 15px !important;
    }
}

/* HIPS NAV FONT END */



/* HIPS FLOATING CALL START */

/* Keep language and social media on the right */

.topinner > .languages {
    margin-left: auto;
}

/* Floating telephone button */

.floating-call {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 30;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 8px;
}

.floating-call > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #23465B;
    color: #FFFFFF;
    position: relative;
    box-shadow: 0 5px 24px rgba(0,0,0,.25);
    transition: background .25s ease,
                transform .25s ease;
}

.floating-call svg {
    width: 29px;
    height: 29px;
}

/* Animated ring */

.floating-call > span::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid #52778E;
    border-radius: 50%;
    animation: pulse 2.6s infinite;
    pointer-events: none;
}

/* Call button label */

.floating-call b {
    background: #FFFFFF;
    color: #23465B;
    border: 1px solid #DCE3E8;
    padding: 7px 11px;
    font-size: .8rem;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

/* Hover animation */

.floating-call:hover > span {
    background: #39677F;
    transform: scale(1.08);
}

/* Align WhatsApp icon with call icon */

.floating-wa {
    flex-direction: row-reverse;
}

/* Tablet */

@media (max-width: 900px) {

    .floating-call {
        right: 14px;
        bottom: 84px;
    }

    .floating-call > span {
        width: 52px;
        height: 52px;
    }

    .floating-call b {
        display: none;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .floating-call {
        right: 12px;
        bottom: 80px;
    }

    .floating-call svg {
        width: 25px;
        height: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .floating-call > span::before {
        animation: none;
    }

    .floating-call > span {
        transition: none;
    }
}

/* HIPS FLOATING CALL END */



/* HIPS FLOATING LABELS START */

.floating-call,
.floating-wa {
    flex-direction: row-reverse;
}

/* Hide labels by default */

.floating-call > b,
.floating-wa > b {
    display: block !important;
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translate(8px, -50%);
    transition: opacity 0.2s ease,
                transform 0.2s ease,
                visibility 0.2s;
}

/* Reveal labels on mouse hover */

@media (hover: hover) and (pointer: fine) {

    .floating-call:hover > b,
    .floating-wa:hover > b {
        opacity: 1;
        visibility: visible;
        transform: translate(0, -50%);
    }
}

/* Keyboard accessibility */

.floating-call:focus-visible > b,
.floating-wa:focus-visible > b {
    opacity: 1;
    visibility: visible;
    transform: translate(0, -50%);
}

@media (prefers-reduced-motion: reduce) {
    .floating-call > b,
    .floating-wa > b {
        transition: none;
    }
}

/* HIPS FLOATING LABELS END */


/* Upper header - white background */

.topbar {
    background: #FFFFFF !important;
    color: #23465B !important;
    border-bottom: 1px solid #E5E5E5;
}

.topbar-brand {
   display: none !important;
}

.topbar .languages {
    border-left: 1px solid #DDDDDD;
}

.topbar .languages a {
    color: #23465B;
}

.topbar .hips-social-links {
    border-color: #DDDDDD;
}

/* Upper header - white background without borders */

.topbar {
    background: #FFFFFF !important;
    color: #23465B !important;
    border: none !important;
    box-shadow: none !important;
}

.topbar-brand {
    color: #23465B !important;
}

.topbar .languages {
    border: none !important;
}

.topbar .languages a {
    color: #23465B;
}

.topbar .hips-social-links {
    border: none !important;
}

/* HIPS COURSES HERO START */

.pagehead.courses-hero {
    background: #23465B url('/media/courses-hero.jpg')
                center center / cover no-repeat !important;

    min-height: 320px;
    display: flex;
    align-items: center;
}

/* Heading and description */

.pagehead.courses-hero h1,
.pagehead.courses-hero p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.pagehead.courses-hero .eyebrow {
    color: #D7B36B !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* Mobile responsive background */

@media (max-width: 600px) {

    .pagehead.courses-hero {
        min-height: 250px;
        background-position: center right !important;
        padding: 35px 0;
    }
}

/* HIPS COURSES HERO END */



/* HIPS COURSES TEXT START */

.pagehead.courses-hero .eyebrow,
.pagehead.courses-hero p {
    display: none !important;
}

.pagehead.courses-hero h1 {
    margin: 0 !important;
}

/* HIPS COURSES TEXT END */



/* HIPS COURSE COVER STYLES START */

/* Solid navy fallback instead of gradient */

.coursecard .courseart {
    position: relative;
    background: #23465B !important;
    color: #D7B36B;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}

/* Uploaded course image */

.course-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
}

.course-cover-image[hidden] {
    display: none !important;
}

/* Administrator image preview */

.course-cover-preview {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 16 / 9;
    background: #F3F5F6;
    border: 1px solid #D9E0E4;
    border-radius: 5px;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.course-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.course-cover-preview [data-cover-placeholder] {
    color: #657580;
    font-size: 14px;
    text-align: center;
    padding: 15px;
}

.course-cover-panel input[type="file"] {
    padding: 12px;
    background: #FFFFFF;
}

.course-cover-panel [data-cover-status] {
    margin-top: 15px;
    font-weight: 600;
    color: #23465B;
}

/* HIPS COURSE COVER STYLES END */



/* HIPS FACULTIES HERO START */

.pagehead.faculties-hero {

    background: #23465B url('/media/faculties-hero.jpg')
                center center / cover no-repeat !important;

    min-height: 320px;
    display: flex;
    align-items: center;
}

.pagehead.faculties-hero h1,
.pagehead.faculties-hero p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.pagehead.faculties-hero .eyebrow {
    color: #D7B36B !important;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

@media (max-width: 600px) {

    .pagehead.faculties-hero {
        min-height: 250px;
        padding: 35px 0;
    }
}

/* HIPS FACULTIES HERO END */

/* Faculties page - simplified heading */

.pagehead.faculties-hero .eyebrow,
.pagehead.faculties-hero p {
    display: none !important;
}

.pagehead.faculties-hero h1 {
    margin: 0 !important;
}

/* HIPS ALL PAGE HERO CSS START */

/* Default appearance without an image */

.pagehead.hips-extra-hero {
    background: #F0F2F3 !important;
    color: #23465B !important;

    min-height: 320px;
    display: flex;
    align-items: center;

    padding: 50px 0;
}

.pagehead.hips-extra-hero h1 {
    color: #23465B !important;
}

.pagehead.hips-extra-hero p {
    color: #425866 !important;
}

.pagehead.hips-extra-hero .eyebrow {
    color: #8B682F !important;
}

/* Appearance when an image is available */

.pagehead.hips-extra-hero.hips-has-photo {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.pagehead.hips-extra-hero.hips-has-photo h1,
.pagehead.hips-extra-hero.hips-has-photo p {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.65);
}

.pagehead.hips-extra-hero.hips-has-photo .eyebrow {
    color: #F2D396 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.65);
}



.pagehead.hips-extra-hero.hips-photo-about-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/about-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-our-logo-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/our-logo-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-patron-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/patron-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-managing-director-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/managing-director-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-academics-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/academics-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-anthem-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/anthem-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-scholarships-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/scholarships-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-contact-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/contact-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-apply-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/apply-hero.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-faculty-management-studies {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/faculty-management-studies.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-faculty-humanities-and-languages {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/faculty-humanities-and-languages.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-faculty-information-technology {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/faculty-information-technology.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-human-resource-management {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-human-resource-management.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-business-management {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-business-management.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-accounting-and-finance {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-accounting-and-finance.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-marketing-management {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-marketing-management.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-languages {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-languages.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-psychology-and-counselling {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-psychology-and-counselling.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-education {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-education.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-sociology {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-sociology.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-law {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-law.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-department-ict {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/department-ict.jpg') !important;
}



.pagehead.hips-extra-hero.hips-photo-course-details-hero {

    background-image:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.58),
            rgba(0,0,0,0.05)
        ),
        url('/media/course-details-hero.jpg') !important;
}



@media (max-width: 600px) {

    .pagehead.hips-extra-hero {
        min-height: 250px;
        padding: 35px 0;
    }

    .pagehead.hips-extra-hero h1 {
        font-size: clamp(1.8rem,6vw,2.6rem);
    }

    .pagehead.hips-extra-hero p {
        font-size: 0.95rem;
    }
}

/* HIPS ALL PAGE HERO CSS END */



/* HIPS ACADEMIC COURSE LIST START */

/* Academic programme directory */

.coursegrid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100%;
}

/* Individual programme */

.coursegrid .coursecard {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 30px;

    position: relative;

    width: 100%;
    padding: 30px 0 30px 24px;
    margin: 0;

    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #DDE3E6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: visible;
}

.coursegrid .coursecard[hidden] {
    display: none !important;
}

/* Academic accent line */

.coursegrid .coursecard::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    left: 0;
    width: 4px;
    border-radius: 2px;
    background: #23465B;
}

/* Main course information */

.coursegrid .coursecard .coursebody {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 0 !important;
    min-width: 0;
    gap: 0;
}

/* Entry requirements */

.coursegrid .coursebody .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #A77B37;
    margin: 0 0 10px;
}

/* Course title */

.coursegrid .coursebody h3 {
    font-family: inherit;
    font-size: clamp(21px, 2vw, 27px);
    font-weight: 700;
    line-height: 1.35;

    color: #23465B;
    margin: 0 0 12px;
}

/* Faculty and department information */

.coursegrid .course-academic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0 0 14px;
}

.coursegrid .course-academic-links a {
    font-size: 14px;
    font-weight: 500;
    color: #315B70;
}

/* Course description */

.coursegrid .coursebody p {
    flex: none !important;
    color: #5D6E76;
    font-size: 15px;
    line-height: 1.75;

    margin: 0 0 16px;
    max-width: 850px;

    overflow-wrap: anywhere;
}

/* Duration and intake */

.coursegrid .coursebody .facts {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;

    gap: 12px 30px;

    width: 100%;
    padding: 0;
    margin: 0 0 18px;

    border: none !important;
}

.coursegrid .coursebody .facts span {
    font-size: 14px;
    color: #425866;
    gap: 8px;
}

.coursegrid .coursebody .facts svg {
    color: #A77B37;
    width: 17px;
    height: 17px;
}

/* Course details link */

.coursegrid .coursebody .textlink {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #23465B;
    font-size: 14px;
    font-weight: 700;

    margin: 0;
    padding: 3px 0;

    transition: color .2s ease;
}

.coursegrid .coursebody .textlink:hover {
    color: #A77B37;
    text-decoration: underline;
}

/* Hide default artwork for courses without images */

.coursegrid .coursecard .courseart {
    display: none !important;
}

/* Courses with an uploaded image */

.coursegrid .coursecard:has(
    .course-cover-image:not([hidden])
) {
    grid-template-columns:
        minmax(0, 1fr) 240px;
}

/* Supporting photograph on the right */

.coursegrid .coursecard:has(
    .course-cover-image:not([hidden])
) .courseart {

    display: block !important;

    grid-column: 2;
    grid-row: 1;

    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;

    position: relative;
    overflow: hidden;

    background: transparent !important;
    border: none;
    border-radius: 3px;
    box-shadow: none;
}

/* Remove book icon and category placeholder */

.coursegrid .courseart > svg,
.coursegrid .courseart > span {
    display: none !important;
}

/* Photograph formatting */

.coursegrid .course-cover-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablet screens */

@media (max-width: 900px) {

    .coursegrid .coursecard:has(
        .course-cover-image:not([hidden])
    ) {
        grid-template-columns:
            minmax(0, 1fr) 180px;

        gap: 20px;
    }
}

/* Mobile academic directory */

@media (max-width: 600px) {

    .coursegrid .coursecard,
    .coursegrid .coursecard:has(
        .course-cover-image:not([hidden])
    ) {
        grid-template-columns: minmax(0, 1fr);
        padding: 24px 0 24px 16px;
        gap: 16px;
    }

    .coursegrid .coursecard::before {
        top: 24px;
        bottom: 24px;
        width: 3px;
    }

    .coursegrid .coursecard .coursebody {
        grid-column: 1;
        grid-row: 1;
    }

    .coursegrid .coursecard:has(
        .course-cover-image:not([hidden])
    ) .courseart {
        grid-column: 1;
        grid-row: 2;
        max-width: 280px;
    }

    .coursegrid .coursebody h3 {
        font-size: 21px;
    }

    .coursegrid .coursebody p {
        font-size: 14px;
    }

    .coursegrid .coursebody .facts {
        gap: 10px 20px;
    }
}

/* HIPS ACADEMIC COURSE LIST END */

