﻿html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 50px;
    padding-bottom: 0;
    overflow-x: hidden;
    max-width: 100%;
}

.body-content {
    flex: 1;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 2.0rem;
}

/* Override the default bootstrap behavior where horizontal description lists
   will truncate terms that are too long to fit in the left column
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* college name in the banner */
.collegeName {
    color: cornflowerblue;
    font-weight: normal;
}

/* Align the material icons to the text. */
.material-icons
{
    vertical-align: bottom;
}

/* when the banner is full image */
.banner-img
{
    width: 100%;
    max-width: 768px;
    height: auto;
}

/* ── Jumbotron: rounded rectangle with light gradient ───────────────────── */
.jumbotron {
    border-radius: 14px;
    background: linear-gradient(160deg, #ffffff 0%, #f0f4f8 100%);
    border: 0.8px solid #d6dfe8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.035);
    padding: 0;
}

.jumbotron__body {
    padding: 2.5rem 3rem;
}

.jumbotron__body h1 {
    font-size: 1.5rem;
    color: #1a3a5c;
    font-weight: 700;
}

.jumbotron__body .lead {
    color: #546a7b;
}

.jumbotron__body ul {
    color: #7a8288;
    padding-left: 1.25rem;
}

/* ── Home info cards (subtler than jumbotron to preserve hierarchy) ──────── */

/* cancel Bootstrap's negative row gutter and use CSS gap instead */
.home-row {
    margin-left: 0;
    margin-right: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    row-gap: 15px;
    column-gap: 14px;
    margin-top: 20px;
}

/* cancel Bootstrap's column padding so gap alone controls spacing */
.home-row > [class*="col-"] {
    padding-left: 0;
    padding-right: 0;
    flex: 1;
}

/* ── Home card headings: coloured top stripe + tinted heading (Variant C) ─── */
.home-card {
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e8edf1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
    padding: 0;          /* body carries the padding; topbar sits flush */
    height: 100%;
    overflow: hidden;
}

.home-card__topbar {
    height: 3px;
    margin: 0 1.25rem;
}

.home-card--academic    .home-card__topbar { background: linear-gradient(90deg, #2780E3 0%, #5ba3f5 100%); }
.home-card--fees        .home-card__topbar { background: linear-gradient(90deg, #FF7518 0%, #ffa04d 100%); }
.home-card--opac        .home-card__topbar { background: linear-gradient(90deg, #3FB618 0%, #6dd941 100%); }
.home-card--attendance  .home-card__topbar { background: linear-gradient(90deg, #2780E3 0%, #5ba3f5 100%); }
.home-card--notes       .home-card__topbar { background: linear-gradient(90deg, #9B59B6 0%, #c07fe0 100%); }
.home-card--students    .home-card__topbar { background: linear-gradient(90deg, #17a2b8 0%, #4cc9dc 100%); }

.home-card__body {
    padding: 1.5rem;
    color: #546a7b;
}

.home-card h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.home-card--academic   h2 { color: #1a4a80; }
.home-card--fees       h2 { color: #1a4a80; }
.home-card--opac       h2 { color: #1a4a80; }
.home-card--attendance h2 { color: #1a4a80; }
.home-card--notes      h2 { color: #5a2d82; }
.home-card--students   h2 { color: #0e6675; }

.home-card__icon { font-size: 2rem; }
.home-card--attendance .home-card__icon { color: #2780E3; }
.home-card--notes      .home-card__icon { color: #9B59B6; }
.home-card--students   .home-card__icon { color: #17a2b8; }

.badge-coming-soon {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.3em 0.75em;
    border-radius: 20px;
}

/* ── Panel card (fieldset with card-like styling, used across all pages) ─── */
.panel-card .card-title {
    color: #2c3e50;
    font-weight: 400;
}

.panel-card .card-subtitle {
    color: #3d4549 !important;
    font-weight: 400;
}

.panel-card .card-text {
    color: #7a8288;
}

/* ── Seating layout: 3 per row, last-row items grow to fill full width ───── */
.seating-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 0 24px;
}

.seating-col {
    flex: 0 0 calc(33.33% - 11px);
    min-width: 0;
}

@media (max-width: 575px) {
    .seating-col {
        flex: 0 0 100%;
    }
}

/* ── Seating card: accent strip + date badge + subject-first body ────────── */
.seating-card {
    display: flex;
    border-radius: 8px;
    border: 1px solid #e4e8eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    background: #ffffff;
    min-height: 118px;
    height: 100%;
}

/* ── Left accent bar ────────────────────────────────────────────────────── */
.seating-card__accent {
    width: 5px;
    flex-shrink: 0;
    background: #d6dfe8;
}

.seating-card--active .seating-card__accent {
    background: linear-gradient(180deg, #2780E3 0%, #5ba3f5 100%);
}

/* ── Date badge column ──────────────────────────────────────────────────── */
.seating-card__date {
    flex-shrink: 0;
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 0.3rem;
    background: #f8fafc;
    border-right: 1px solid #edf1f4;
}

.seating-card--active .seating-card__date {
    background: #eef5fd;
    border-right-color: #daeaf8;
}

.seating-card__day {
    font-size: 2rem;
    font-weight: 800;
    color: #c9d2da;
    line-height: 1;
}

.seating-card--active .seating-card__day {
    color: #2780E3;
}

.seating-card__month {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #b0bec5;
    line-height: 1.3;
}

.seating-card--active .seating-card__month {
    color: #6aaad8;
}

.seating-card__year {
    font-size: 0.72rem;
    font-weight: 600;
    color: #9aa0a6;
    line-height: 1.3;
}

.seating-card--active .seating-card__year {
    color: #6aaad8;
}

/* ── Right body ─────────────────────────────────────────────────────────── */
.seating-card__body {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.seating-card__subject {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seating-card--active .seating-card__subject {
    color: #1a3a5c;
}

.seating-card__session {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: #f0f4f8;
    color: #9aa0a6;
    border-radius: 3px;
    padding: 1px 6px;
    margin-top: 4px;
}

.seating-card--active .seating-card__session {
    background: #daeaf8;
    color: #2780E3;
}

.seating-card__meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 0.5rem;
}

/* row of pill panels for room + seat */
.seating-card__meta-pills {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.seating-card__pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #546a7b;
    background: #f0f4f8;
    border: 1px solid #e0e6ec;
    border-radius: 4px;
    padding: 2px 7px;
}

.seating-card--active .seating-card__pill {
    background: #eef5fd;
    border-color: #ccdff4;
    color: #1a4a80;
}

/* block name — last line, plain */
.seating-card__block {
    font-size: 0.72rem;
    color: #9aa0a6;
    display: flex;
    align-items: center;
    gap: 3px;
}

.seating-card__block .material-icons {
    font-size: 0.8rem;
}

.contact-link {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    margin-left: 0 !important;
}

.contact-icon {
    font-size: 1rem;
    color: #9aa0a6;
    margin-right: 6px;
}

.panel-card {
    border-radius: 6px;
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 100%);
    border: 1px solid #e4e8eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.025);
    margin-bottom: 1.25rem;
}

.panel-card--spaced { margin-top: 1.5rem; }

/* ── form-control inputs inside panel-card (search bars etc.) ────────────── */
.panel-card .form-control {
    max-width: 100%;
    background: #ffffff;
    border-color: #d6dfe8;
    border-radius: 6px;
    color: #2c3e50;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.panel-card .form-control::placeholder {
    color: #b0b8c0;
}

.panel-card .form-control:focus {
    border-color: #9ec8f5;
    box-shadow: 0 0 0 0.18rem rgba(39, 128, 227, 0.14);
}

.search-input--wide {
    width: 100%;
}
@media (min-width: 768px) {
    .search-input--wide { width: 360px; }
}

/* ── Primary button: rounded corners + gradient ─────────────────────────── */
.btn-primary {
    border-radius: 6px;
    background: linear-gradient(180deg, #2e85e4 0%, #2272d8 100%);
    border-color: #1f6ecc;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #2278d5 0%, #1865c4 100%);
    border-color: #1761b8;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #1a6dca 0%, #1460bb 100%);
    border-color: #145db3;
}

/* shared shape + padding for every button variant */
.btn-secondary, .btn-success, .btn-info, .btn-warning,
.btn-danger, .btn-light, .btn-dark {
    border-radius: 6px;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}

/* ── Secondary (#373a3c dark charcoal) ──────────────────────────────────── */
.btn-secondary {
    background: linear-gradient(180deg, #454849 0%, #2d3032 100%);
    border-color: #28292a;
}
.btn-secondary:hover {
    background: linear-gradient(180deg, #303335 0%, #232527 100%);
    border-color: #1f2021;
}
.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #252728 0%, #1f2021 100%);
    border-color: #191a1b;
}

/* ── Success (#3FB618 green) ─────────────────────────────────────────────── */
.btn-success {
    background: linear-gradient(180deg, #4cc41c 0%, #37a616 100%);
    border-color: #339414;
}
.btn-success:hover {
    background: linear-gradient(180deg, #369e14 0%, #2f8f12 100%);
    border-color: #2d8711;
}
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #2f8912 0%, #2b7d10 100%);
    border-color: #287510;
}

/* ── Info (#9954BB purple) ───────────────────────────────────────────────── */
.btn-info {
    background: linear-gradient(180deg, #a35fc3 0%, #8f4cb2 100%);
    border-color: #8a49ad;
}
.btn-info:hover {
    background: linear-gradient(180deg, #8d4bab 0%, #7e3f9d 100%);
    border-color: #7a3d98;
}
.btn-info:not(:disabled):not(.disabled):active,
.btn-info:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #7e3f9d 0%, #753a93 100%);
    border-color: #71388e;
}

/* ── Warning (#FF7518 orange) ────────────────────────────────────────────── */
.btn-warning {
    background: linear-gradient(180deg, #ff8025 0%, #f56800 100%);
    border-color: #e86300;
}
.btn-warning:hover {
    background: linear-gradient(180deg, #f46200 0%, #e05800 100%);
    border-color: #d45400;
}
.btn-warning:not(:disabled):not(.disabled):active,
.btn-warning:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #e45c00 0%, #d55500 100%);
    border-color: #c95000;
}

/* ── Danger (#FF0039 red) ────────────────────────────────────────────────── */
.btn-danger {
    background: linear-gradient(180deg, #ff1a4a 0%, #e60033 100%);
    border-color: #d9002f;
}
.btn-danger:hover {
    background: linear-gradient(180deg, #db0030 0%, #c8002c 100%);
    border-color: #bf002a;
}
.btn-danger:not(:disabled):not(.disabled):active,
.btn-danger:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #cc002e 0%, #bf002b 100%);
    border-color: #b30028;
}

/* ── Light (#f8f9fa, dark text) ──────────────────────────────────────────── */
.btn-light {
    background: linear-gradient(180deg, #ffffff 0%, #edf0f3 100%);
    border-color: #d3d9df;
}
.btn-light:hover {
    background: linear-gradient(180deg, #e8ecef 0%, #dde2e6 100%);
    border-color: #cdd3d9;
}
.btn-light:not(:disabled):not(.disabled):active,
.btn-light:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #dae0e5 0%, #d3d9df 100%);
    border-color: #c8ced4;
}

/* ── Subtle (muted slate-gray, secondary actions) ────────────────────────── */
.btn-subtle {
    border-radius: 6px;
    background: linear-gradient(180deg, #f0f3f6 0%, #e2e8ed 100%);
    border-color: #c5cdd5;
    color: #546a7b;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
}
.btn-subtle:hover {
    background: linear-gradient(180deg, #e2e8ed 0%, #d4dce4 100%);
    border-color: #b0bec8;
    color: #3d5263;
}
.btn-subtle:not(:disabled):not(.disabled):active,
.btn-subtle:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #d4dce4 0%, #c8d2db 100%);
    border-color: #a5b2bc;
    color: #344759;
}
.btn-subtle:focus {
    box-shadow: 0 0 0 0.2rem rgba(84, 106, 123, 0.2);
    color: #546a7b;
}
.btn-subtle .material-icons {
    font-size: 1rem;
    margin-right: 3px;
}

/* ── Dark (#373a3c dark charcoal) ────────────────────────────────────────── */
.btn-dark {
    background: linear-gradient(180deg, #454849 0%, #2d3032 100%);
    border-color: #28292a;
}
.btn-dark:hover {
    background: linear-gradient(180deg, #303335 0%, #232527 100%);
    border-color: #1f2021;
}
.btn-dark:not(:disabled):not(.disabled):active,
.btn-dark:not(:disabled):not(.disabled).active {
    background: linear-gradient(180deg, #252728 0%, #1f2021 100%);
    border-color: #191a1b;
}

/* ── Abbr row: inline key–value definition strip (purple accent) ─────────── */
.abbr-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    background: linear-gradient(160deg, #faf8ff 0%, #f3f0fb 100%);
    border-left: 4px solid #9954BB;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.83rem;
    margin-bottom: 1rem;
}

.abbr-row__item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.abbr-row__key {
    font-weight: 700;
    color: #613d7c;
    background: #e8dff5;
    border-radius: 3px;
    padding: 0.05rem 0.35rem;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
}

.abbr-row__val {
    color: #2c3e50;
}

.abbr-row__sep {
    color: #c4b8d8;
    font-size: 0.7rem;
    align-self: center;
}


/* ── Page note: callout banner for footer notices ────────────────────────── */
.page-note {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    border-left: 4px solid;
    border-radius: 6px;
    padding: 0.85rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
}

.page-note__icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.page-note__body {
    flex: 1;
}

.page-note__body strong {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.page-note__body ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.page-note__dismiss {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.page-note__dismiss .material-icons {
    font-size: 1.2rem;
    margin-top: 2px;
}

.page-note--danger {
    background: linear-gradient(160deg, #fff5f6 0%, #ffeaed 100%);
    border-color: #FF0039;
    color: #7a0020;
}

.page-note--danger .page-note__icon { color: #FF0039; }

.page-note--info {
    background: linear-gradient(160deg, #f5f9fe 0%, #edf4fc 100%);
    border-color: #2780E3;
    color: #1a3a5c;
}

.page-note--info .page-note__icon { color: #2780E3; }

.page-note--success {
    background: linear-gradient(160deg, #f4fbf6 0%, #e8f7ec 100%);
    border-color: #2DB84B;
    color: #1a4a28;
}

.page-note--success .page-note__icon { color: #2DB84B; }

.page-note--warning {
    background: linear-gradient(160deg, #fffbf2 0%, #fff3d6 100%);
    border-color: #F0A500;
    color: #5a3e00;
}

.page-note--warning .page-note__icon { color: #F0A500; }

.page-note--flush { margin-bottom: 0; }

.page-note + .btn {
    margin-top: 0.85rem;
}

/* ── Page title variants ─────────────────────────────────────────────────── */

/* A — Left accent bar (used for section/exam subtitles) */
.page-title--accent-bar {
    border-left: 4px solid #2780E3;
    padding-left: 0.75rem;
    color: #546a7b;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* B — Gradient text (used for main page h2 titles) */
.page-title--gradient {
    background: linear-gradient(135deg, #2780E3 0%, #1a5fb4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* C — Tinted badge chip */
.page-title--badge {
    display: inline-block;
    background: linear-gradient(160deg, #daeaf8 0%, #ccdff4 100%);
    border: 1px solid #b0ccec;
    color: #1a3a5c;
    border-radius: 6px;
    padding: 0.2rem 0.85rem;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

/* D — Short underline accent rule */
.page-title--underline {
    position: relative;
    padding-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.page-title--underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2780E3 0%, #2272d8 100%);
}

/* Remove redundant top border on tables that sit directly inside a title-showcase card */
.title-showcase > .table:first-of-type thead tr:first-child th,
.title-showcase > .table:first-of-type thead tr:first-child td {
    border-top: none;
}

/* ── Portal table theme: Variant B — inline rule ─────────────────────────── */
.title-showcase .table thead th,
.panel-card .table thead th {
    background: transparent;
    color: #546a7b;
    font-weight: 600;
    text-transform: none;
    border-bottom: 2px solid #b0ccec;
    letter-spacing: 0;
}

.title-showcase .table tbody td,
.panel-card .table tbody td {
    color: #3d4d5c;
}

.title-showcase .table-hover tbody tr:hover td,
.panel-card .table-hover tbody tr:hover td {
    background-color: #e8f2fb;
    color: #3d4d5c;
}

/* ── Table action icon links (no href, need pointer cursor) ─────────────── */
.table-action { cursor: pointer; }

.btn .material-icons { vertical-align: middle; }

.results-count { font-size: 0.9rem; margin-top: 0.5rem; color: #2c3e50; font-weight: 400; }

/* ── Suppress underline on icon-only anchor links inside tables ──────────── */
.panel-card .table td a,
.panel-card .table td a:hover,
.title-showcase .table td a,
.title-showcase .table td a:hover { text-decoration: none; }

/* ── Title-showcase prose: list text colour ──────────────────────────────── */
.title-showcase ul li {
    color: #3d4d5c;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Title showcase (style picker panel, visible on-screen only) ──────────── */
.title-showcase {
    background: linear-gradient(160deg, #ffffff 0%, #f0f4f8 100%);
    border: 1px solid #d6dfe8;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
}
.title-showcase__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9aa0a6;
    margin-bottom: 0.35rem;
}
.title-showcase__row {
    padding: 1rem 0;
    border-bottom: 1px solid #e8edf1;
}
.title-showcase__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.title-showcase__row:first-child {
    padding-top: 0;
}

/* ── File input: styled to match portal palette ──────────────────────────── */
.file-input {
    display: block;
    max-width: 100%;             /* override global input max-width: 280px    */
    width: 100%;
    border: 1px solid #d6dfe8;
    border-radius: 6px;
    padding: 0.35rem 0.65rem;
    font-size: 0.9rem;
    color: #546a7b;
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 100%);
    cursor: pointer;
    margin-bottom: 1rem;
}

.file-input::file-selector-button {
    background: linear-gradient(180deg, #2e85e4 0%, #2272d8 100%);
    border: 1px solid #1f6ecc;
    border-radius: 4px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.25rem 0.8rem;
    margin-right: 0.75rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.file-input::file-selector-button:hover {
    background: linear-gradient(180deg, #2278d5 0%, #1865c4 100%);
}

/* ── Upload panel text (used inside panel-card upload fieldsets) ─────────── */
.upload-panel__description {
    color: #546a7b;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}

.upload-panel__note {
    color: #9aa0a6;
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ── Empty-state panel (dashed zone, used when no data exists yet) ── */
.empty-state {
    border: 2px dashed #b0ccec;
    border-radius: 10px;
    padding: 2.75rem 2rem;
    text-align: center;
    background: linear-gradient(160deg, #f5f9fe 0%, #edf4fc 100%);
    margin-bottom: 1.25rem;
}

.empty-state__icon {
    font-size: 3.25rem;
    color: #b8d4f0;
    display: block;
    margin-bottom: 0.65rem;
}

.empty-state__text {
    color: #546a7b;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.65;
}


/* on mobile: stack cards one per row; tighten jumbotron padding */
@media (max-width: 575px) {
    .jumbotron__body {
        padding: 1.5rem;
    }

    .home-row > [class*="col-"] {
        flex: 0 0 100%;
    }
}

/* ── Banner: compact logo + text on mobile (≈50% of desktop size) ─────────── */
@media (max-width: 575px) {
    .banner-logo {
        max-width: 50px !important;
        width: auto !important;
        height: auto !important;
    }

    .banner-text-group .collegeName {
        font-size: 1rem;
        margin-bottom: 2px !important;
    }

    .banner-text-group .lead {
        font-size: 0.8rem;
        margin-bottom: 0 !important;
    }
}

/* ── Banner: reduced logo + text on tablet (≈65% of desktop size) ─────────── */
@media (min-width: 576px) and (max-width: 991px) {
    .banner-logo {
        max-width: 65px !important;
        width: auto !important;
        height: auto !important;
    }

    .banner-text-group .collegeName {
        font-size: 1.3rem;
    }

    .banner-text-group .lead {
        font-size: 0.9rem;
    }
}

/* ── Student info banner (print header — d-print-block) ─────────────────── */
.student-banner {
    border-radius: 10px;
    border: 1px solid #d6dfe8;
    overflow: hidden;
    margin-bottom: 1.25rem;
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 100%);
}

.student-banner__topbar {
    height: 4px;
    background: linear-gradient(90deg, #2780E3 0%, #1a5fb4 100%);
}

.student-banner__body {
    padding: 1rem 1.25rem;
}

.student-banner__section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #9aa0a6;
    margin-bottom: 0.75rem;
}

.student-banner__fields {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.student-banner__field {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.student-banner__label {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa0a6;
}

.student-banner__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

/* ── Footer: Dark Band ───────────────────────────────────────────────────── */
.site-footer-dark {
    border-top: 3px solid #2780E3;
    background: linear-gradient(180deg, #373a3c 0%, #2d3032 100%);
    padding: 1.2rem 0;
}

.site-footer-dark__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 1rem;
}

.site-footer-dark__copy {
    font-size: 0.82rem;
    color: #9aa0a6;
}

.site-footer-dark__brand {
    font-size: 0.82rem;
    color: #6c757d;
}

.site-footer-dark__link {
    color: #6aaad8;
    text-decoration: none;
    font-weight: 500;
}

.site-footer-dark__link:hover {
    color: #8ec2e8;
    text-decoration: underline;
}

@media (max-width: 575px) {
    .site-footer-dark__inner {
        flex-direction: column;
        gap: 0.2rem;
    }
}

/* ── Login split-panel ───────────────────────────────────────────────────── */
.login-split {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cddaeb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    max-width: 860px;
    margin: 1.5rem auto;
}

.login-split__brand {
    position: relative;
    flex: 0 0 60%;
    background: linear-gradient(150deg, #5c6b7a 0%, #3d4d5c 100%);
    padding: 2.25rem 2rem;
    color: #fff;
    overflow: hidden;
}

/* decorative background circles */
.login-split__deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.login-split__deco--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -80px;
}

.login-split__deco--2 {
    width: 200px;
    height: 200px;
    bottom: -70px;
    left: -60px;
}

.login-split__deco--3 {
    width: 120px;
    height: 120px;
    bottom: 120px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
}

.login-split__brand-name {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    letter-spacing: 0.01em;
}

.login-split__brand-icon {
    font-size: 1.6rem;
    opacity: 0.9;
}

.login-split__tagline {
    position: relative;
    font-size: 0.9rem;
    opacity: 0.72;
    font-style: italic;
    margin-bottom: 2rem;
}

.login-split__features {
    position: relative;
    margin-bottom: 0;
}

.login-split__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.login-split__feature:last-child {
    margin-bottom: 0;
}

.login-split__feature .material-icons {
    font-size: 1.25rem;
    opacity: 0.85;
    flex-shrink: 0;
    margin-top: 2px;
}

.login-split__feature strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.login-split__feature p {
    font-size: 0.8rem;
    opacity: 0.72;
    margin: 0;
    line-height: 1.55;
}

.login-split__divider {
    position: relative;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1.5rem 0 1.25rem;
}

.login-split__brand-label {
    position: relative;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.45rem;
}

.login-split__brand-subtitle {
    position: relative;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.92;
    margin-bottom: 0.6rem;
}

.login-split__brand-text {
    position: relative;
    font-size: 0.82rem;
    opacity: 0.75;
    line-height: 1.65;
    margin-bottom: 0.45rem;
}

.login-split__form {
    flex: 1;
    background: linear-gradient(160deg, #f8f9fa 0%, #eef0f2 100%);
    padding: 2.75rem 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-split__heading {
    background: linear-gradient(135deg, #2780E3 0%, #1a5fb4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* override the global 280px cap inside the form panel */
.login-split__form input,
.login-split__form select,
.login-split__form textarea {
    max-width: 100%;
}

.login-split__form-sub {
    font-size: 0.85rem;
    color: #9aa0a6;
    margin-top: -0.75rem;
    margin-bottom: 1.75rem;
}

.login-split__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #546a7b;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.login-split__input-icon {
    background: linear-gradient(160deg, #f4f6f8 0%, #edf0f3 100%);
    border-color: #cddaeb;
    color: #9aa0a6;
    padding: 0 0.65rem;
}

.login-split__input-icon .material-icons {
    font-size: 1.05rem;
    vertical-align: middle;
}

.login-split__input {
    border-color: #cddaeb;
    background: #fff;
    color: #2c3e50;
    font-size: 0.92rem;
}

.login-split__input:focus {
    border-color: #2e85e4;
    box-shadow: 0 0 0 0.18rem rgba(46, 133, 228, 0.18);
}

.login-split__submit {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Login form — variant 2 (centered avatar + pill inputs) ─────────────── */
.lf2 {
    position: relative;
    overflow: hidden;
    align-items: center;
    text-align: center;
}

.lf2__deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.lf2__deco--1 {
    width: 220px;
    height: 220px;
    top: -80px;
    right: -70px;
    background: rgba(92, 107, 122, 0.1);
}

.lf2__deco--2 {
    width: 160px;
    height: 160px;
    bottom: -55px;
    left: -50px;
    background: rgba(92, 107, 122, 0.07);
}

.lf2__deco--3 {
    width: 90px;
    height: 90px;
    bottom: 80px;
    right: 18px;
    background: rgba(61, 77, 92, 0.06);
}

.lf2__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5c6b7a 0%, #3d4d5c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(61, 77, 92, 0.28);
}

.lf2__avatar .material-icons {
    font-size: 2.2rem;
    color: #fff;
}

.lf2__heading {
    font-size: 1.45rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.lf2__sub {
    font-size: 0.85rem;
    color: #9aa0a6;
    margin-bottom: 1.75rem;
}

.lf2__label {
    display: block;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: #546a7b;
    margin-bottom: 0.35rem;
}

.lf2__input {
    width: 100%;
    max-width: 100%;
    border-color: #cddaeb;
    border-radius: 6px;
    background: #fff;
    color: #2c3e50;
    font-size: 0.92rem;
}

.lf2__input:focus {
    border-color: #5c6b7a;
    box-shadow: 0 0 0 0.18rem rgba(92, 107, 122, 0.18);
}

.lf2__btn {
    border-radius: 6px;
    min-width: 120px;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* keep field labels and validation left-aligned inside centered panel;
   stretch the form section to fill the panel width */
.lf2 section {
    width: 100%;
}

.lf2 .mb-3,
.lf2 .mb-4 {
    text-align: left;
}

/* login error banner (validation summary on failed login) */
.lf2__error {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: linear-gradient(160deg, #fff5f6 0%, #ffeaed 100%);
    border: 1px solid #f5c0c8;
    border-left: 4px solid #FF0039;
    border-radius: 6px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.1rem;
    text-align: left;
    color: #7a0020;
    font-size: 0.85rem;
}

.lf2__error::before {
    content: 'error';
    font-family: 'Material Icons';
    font-size: 1.15rem;
    line-height: 1.3;
    flex-shrink: 0;
    color: #FF0039;
}

.lf2__error ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* hide the error banner entirely when there are no messages */
.lf2__error:not(:has(li)) {
    display: none;
}

@media (max-width: 767px) {
    .login-split {
        flex-direction: column;
        margin: 1rem 0;
    }

    .login-split__brand {
        flex: none;
        order: 2;
    }

    .login-split__form {
        order: 1;
    }
}

/* ── Pagination: minimal underline ──────────────────────────────────────────
   Borderless flat buttons; active page marked by a bold blue underline rule.  */
.pagination--minimal {
    gap: 0;
    border-bottom: 2px solid #e8edf1;
    flex-wrap: wrap;
}
.pagination--minimal .page-item .page-link {
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #546a7b;
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: -2px;
    transition: color 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.pagination--minimal .page-item .page-link:hover {
    background: linear-gradient(160deg, #f5f9fe 0%, #edf4fc 100%);
    color: #2780E3;
    border-bottom-color: #9ec8f5;
}
.pagination--minimal .page-item.active .page-link {
    background: transparent;
    color: #2780E3;
    font-weight: 700;
    border-bottom-color: #2780E3;
}
.pagination--minimal .page-item.disabled .page-link {
    color: #c4cdd5;
    background: transparent;
    border-bottom-color: transparent;
}

/* ── Student detail card: two-column card with blue accent top bar ───────── */
.detail-card {
    border-radius: 12px;
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 100%);
    border: 1px solid #e4e8eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.detail-card__topbar {
    height: 4px;
    background: linear-gradient(90deg, #2780E3 0%, #1a5fb4 100%);
}

.detail-card__body {
    display: flex;
}

.detail-card__aside {
    flex: 0 0 170px;
    padding: 1.75rem 1.25rem;
    border-right: 1px solid #d4d9de;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(160deg, #e8ecef 0%, #dde2e6 100%);
}

/* Rectangular photo with subtle border */
.student-photo img {
    display: block;
    border-radius: 6px;
    border: 2px solid #d6dfe8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    max-width: 100%;
    height: auto;
}

.detail-card__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 620px) {
    .detail-card__body { flex-direction: column; }
    .detail-card__aside {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #d4d9de;
        justify-content: flex-start;
        padding: 1.25rem 1.5rem;
    }
}

/* ── Profile page ────────────────────────────────────────────────────────── */
.profile-shell {
    display: flex;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #cddaeb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    margin-bottom: 1.5rem;
}

/* ── Left banner ─────────────────────────────────────────────────────────── */
.profile-banner {
    position: relative;
    flex: 0 0 230px;
    background: linear-gradient(160deg, #5c6b7a 0%, #3d4d5c 100%);
    padding: 2.5rem 1.75rem;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-banner__deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    pointer-events: none;
}
.profile-banner__deco--1 { width: 260px; height: 260px; top: -100px; right: -110px; }
.profile-banner__deco--2 { width: 160px; height: 160px; bottom: -70px; left: -60px; }
.profile-banner__deco--3 { width: 80px; height: 80px; bottom: 110px; right: 14px; background: rgba(255,255,255,0.05); }

.profile-banner__inner { position: relative; width: 100%; }

.profile-banner__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.profile-banner__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    display: block;
}

.profile-banner__name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.profile-banner__course {
    font-size: 0.78rem;
    opacity: 0.72;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.profile-banner__divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.18);
    margin: 0 0 1.25rem;
}

.profile-banner__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
    width: 100%;
}

.profile-banner__meta-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.profile-banner__meta-row .material-icons {
    font-size: 0.95rem;
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-banner__meta-label {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.05rem;
}

.profile-banner__meta-value {
    font-size: 0.82rem;
    opacity: 0.92;
}

/* ── Right content panel ─────────────────────────────────────────────────── */
.profile-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 100%);
    min-width: 0;
}

.content-section {
    padding: 1.35rem 1.75rem;
    border-bottom: 1px solid #e8edf1;
}

.content-section:last-child {
    border-bottom: none;
    flex: 1;
}

.content-section__heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid #e8edf1;
}

.content-section__heading .material-icons {
    font-size: 1.3rem;
    color: #2780E3;
}

/* ── Profile field grid ──────────────────────────────────────────────────── */
.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.25rem;
}

.field-grid--full { grid-template-columns: 1fr; }

.profile-field { display: flex; flex-direction: column; gap: 0.28rem; }

.profile-field__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9aa0a6;
    margin-bottom: 0;
}

.profile-field__input {
    font-size: 0.88rem;
    color: #2c3e50;
    background: linear-gradient(160deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #d6dfe8;
    border-radius: 6px;
    padding: 0.42rem 0.75rem;
    max-width: 100% !important;
    width: 100%;
    cursor: default;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.profile-field__input:focus {
    border-color: #9ec8f5;
    box-shadow: 0 0 0 0.18rem rgba(39, 128, 227, 0.14);
}

/* Editable variant — removes the read-only cursor override */
.profile-field__input--edit {
    cursor: text;
}

.profile-field__hint {
    font-size: 0.72rem;
    color: #b0b8c0;
}
.profile-field__hint--error { color: #e00; }

/* ── Security row ────────────────────────────────────────────────────────── */
.security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.security-row__left { display: flex; flex-direction: column; gap: 0.2rem; }
.security-row__title { font-size: 0.9rem; font-weight: 600; color: #2c3e50; }
.security-row__desc { font-size: 0.78rem; color: #9aa0a6; }

/* ── Profile status message ──────────────────────────────────────────────── */
.profile-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #2DB84B;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.profile-status .material-icons { font-size: 1rem; }

@media (max-width: 700px) {
    .profile-shell { flex-direction: column; }
    .profile-banner { flex: none; }
    .field-grid { grid-template-columns: 1fr; }
    .security-row { flex-direction: column; align-items: flex-start; }
}

/* ── Portal modal: themed confirmation dialog ────────────────────────────────
   Apply .modal-portal to .modal-content to get the blue-accent header style.  */
.modal-portal .modal-header {
    border-left: 4px solid #2780E3;
    border-bottom: 1px solid #e8edf1;
    background: linear-gradient(160deg, #ffffff 0%, #f0f4f8 100%);
}

.modal-portal .modal-title {
    color: #2c3e50;
    font-weight: 600;
}

.modal-portal .modal-title .material-icons {
    color: #2780E3;
    margin-right: 6px;
}

.modal-portal .modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa0a6;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.modal-portal .modal-close .material-icons {
    font-size: 1.3rem;
}

.modal-portal .modal-body {
    background: #ffffff;
    padding: 1.5rem;
}

/* Labels: match portal field-label style */
.modal-portal .modal-body .col-form-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #546a7b;
    margin-bottom: 0.3rem;
    padding-top: 0;
}

/* Inputs: override Bootstrap defaults */
.modal-portal .modal-body .form-control {
    border-color: #d6dfe8;
    border-radius: 6px;
    background: #ffffff;
    color: #2c3e50;
    font-size: 0.9rem;
    max-width: 100%;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-portal .modal-body .form-control:focus {
    border-color: #9ec8f5;
    box-shadow: 0 0 0 0.18rem rgba(39, 128, 227, 0.14);
}

.modal-portal .modal-body__lead {
    color: #546a7b;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}

.modal-portal .modal-footer {
    border-top: 1px solid #e8edf1;
    background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 100%);
}

.modal-portal .modal-footer .btn .material-icons {
    font-size: 1rem;
    margin-right: 4px;
    vertical-align: middle;
}

/* ── Change-password / reset-password inline panel ──────────────────────── */

.cp-toggle__icon { font-size: 0.9rem; vertical-align: middle; }

.cp-inline-panel {
    margin-top: 1.25rem;
}

/* Strip card chrome when cp-split sits inside a content-section */
.cp-inline-panel .cp-split {
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    margin-bottom: 0;
}

/* Form side: transparent — inherits the content-section background */
.cp-inline-panel .cp-split__form {
    background: transparent;
    padding: 0 1.5rem 0 0;
}

/* Policy side: light blue-tinted info panel */
.cp-inline-panel .cp-split__policy {
    background: linear-gradient(160deg, #f5f9fe 0%, #edf4fc 100%);
    border: 1px solid #d0e4f5;
    border-radius: 8px;
    color: #2c3e50;
    padding: 1.5rem 1.25rem;
    flex: 0 0 38%;
}

.cp-inline-panel .cp-split__policy-title {
    color: #1a3a5c;
}

.cp-inline-panel .cp-split__policy-sub {
    color: #546a7b;
    opacity: 1;
}

.cp-inline-panel .cp-split__policy-list li {
    color: #2c3e50;
    opacity: 1;
}

.cp-inline-panel .cp-split__policy-list li .material-icons {
    color: #2DB84B;
}

.cp-split {
    display: flex;
    align-items: stretch;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #cddaeb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.cp-split__form {
    flex: 1;
    background: linear-gradient(160deg, #f8f9fa 0%, #eef0f2 100%);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cp-split__form input,
.cp-split__form select,
.cp-split__form textarea {
    max-width: 100%;
}

.cp-split__policy {
    position: relative;
    flex: 0 0 42%;
    background: linear-gradient(150deg, #5c6b7a 0%, #3d4d5c 100%);
    padding: 2.25rem 1.75rem;
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cp-split__policy-inner {
    position: relative;
    width: 100%;
}

.cp-split__policy-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0.01em;
}

.cp-split__policy-sub {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 1.25rem;
    line-height: 1.55;
}

.cp-split__policy-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cp-split__policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.83rem;
    opacity: 0.88;
    line-height: 1.45;
}

.cp-split__policy-list li .material-icons {
    font-size: 0.95rem;
    color: #7dd3a8;
    flex-shrink: 0;
    margin-top: 1px;
}

.cp-split__policy-list li strong {
    font-weight: 600;
}

@media (max-width: 700px) {
    .cp-split {
        flex-direction: column;
    }

    .cp-split__policy {
        flex: none;
        order: -1;
        padding: 1.5rem 1.5rem;
    }

    .cp-split__form {
        padding: 1.75rem 1.5rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Navbar — Deep Ocean (applies to both student and admin bars)
   ═══════════════════════════════════════════════════════════ */
.navbar-campes {
    background:
        repeating-linear-gradient(
            -55deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 24px
        ),
        linear-gradient(135deg, #1a2e4a 0%, #1e4080 55%, #163565 100%) !important;
    border-bottom: 2px solid rgba(39,128,227,0.45);
    box-shadow: 0 2px 14px rgba(22,53,101,0.45);
}

.navbar-campes .navbar-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .18em;
    color: #e8f0fb !important;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.18);
    padding-right: 1.2rem;
    margin-right: 1.2rem;
}

/* h4 inside the brand anchor inherits Bootstrap heading styles —
   override explicitly so weight matches without shrinking the h4 font size */
.navbar-campes .navbar-brand h4 {
    font-weight: 800;
    letter-spacing: .18em;
    color: inherit;
}

.navbar-campes .nav-link {
    color: rgba(220,232,250,0.88) !important;
    font-size: 0.865rem;
    font-weight: 500;
    letter-spacing: .03em;
    padding: 0.5rem 0.9rem !important;
    position: relative;
    transition: color .2s;
}

/* Sliding blue underline on hover */
.navbar-campes .nav-link::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0.9rem;
    right: 0.9rem;
    height: 2px;
    background: #5ba3f5;
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}

.navbar-campes .nav-link:hover,
.navbar-campes .nav-link:focus {
    color: #fff !important;
}

.navbar-campes .nav-link:hover::before,
.navbar-campes .nav-link:focus::before {
    transform: scaleX(1);
}

.navbar-campes .material-icons {
    font-size: 1.05rem;
    vertical-align: -3px;
    opacity: .85;
}

/* Dropdown: white card, flush to navbar (no gap for mouse to slip through) */
.navbar-campes .dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: 0 0 10px 10px;
    border-top: 3px solid #2780E3;
    box-shadow: 0 8px 28px rgba(22,45,82,0.22);
    padding: 8px 0;
    min-width: 235px;
    margin-top: 0;
}

.navbar-campes .dropdown-item {
    color: #374151;
    font-size: 0.855rem;
    padding: 8px 18px;
    border-radius: 6px;
    margin: 1px 6px;
    width: auto;
    transition: background .15s, color .15s;
}

.navbar-campes .dropdown-item:hover,
.navbar-campes .dropdown-item:focus {
    background: #f0f7ff;
    color: #2780E3;
}

.navbar-campes .dropdown-divider {
    border-color: #e8edf1;
    margin: 4px 0;
}

/* Institute admin variant — grey gradient matching the login panel palette */
.navbar-campes--admin {
    background:
        repeating-linear-gradient(
            -55deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 24px
        ),
        linear-gradient(135deg, #4a5a68 0%, #3d4d5c 55%, #2e3c49 100%) !important;
    border-bottom: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 2px 14px rgba(30,40,50,0.45);
}

/* Mobile: dark dropdown overlays — student (navy) and admin (grey) */
@media (max-width: 767.98px) {

    /* ── Student portal: navy blue overlay ── */
    .navbar-campes:not(.navbar-campes--admin) .dropdown-menu {
        background: rgba(22,53,101,0.55);
        border: none;
        border-left: 3px solid #2780E3;
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 4px 0;
    }

    .navbar-campes:not(.navbar-campes--admin) .dropdown-item {
        color: rgba(210,228,255,0.9);
        border-radius: 0;
        margin: 0;
        width: 100%;
        padding: 9px 20px;
    }

    .navbar-campes:not(.navbar-campes--admin) .dropdown-item:hover,
    .navbar-campes:not(.navbar-campes--admin) .dropdown-item:focus {
        background: rgba(91,163,245,0.18);
        color: #fff;
    }

    .navbar-campes:not(.navbar-campes--admin) .dropdown-divider {
        border-color: rgba(91,163,245,0.2);
    }

    /* ── Institute admin: grey overlay matching the admin bar palette ── */
    .navbar-campes--admin .dropdown-menu {
        background: rgba(61,77,92,0.92);
        border: none;
        border-left: 3px solid rgba(255,255,255,0.2);
        border-radius: 0;
        box-shadow: none;
        margin-top: 0;
        padding: 4px 0;
    }

    .navbar-campes--admin .dropdown-item {
        color: rgba(220,228,236,0.88);
        border-radius: 0;
        margin: 0;
        width: 100%;
        padding: 9px 20px;
    }

    .navbar-campes--admin .dropdown-item:hover,
    .navbar-campes--admin .dropdown-item:focus {
        background: rgba(255,255,255,0.1);
        color: #fff;
    }

    .navbar-campes--admin .dropdown-divider {
        border-color: rgba(255,255,255,0.15);
    }
}

/* ── Holiday list (IAdmin) ───────────────────────────────────────────────── */
.holiday-year-group {
    background-color: #daeaf8;
    color: #1a3a5c;
}

.holiday-year-group__action-spacer {
    display: inline-block;
    visibility: hidden;
}

.holiday-year-group__delete {
    cursor: pointer;
    color: #1a3a5c;
}
