:root {
    --primary: #0d6efd;
    --primary-dark: #084298;
    --accent: #ff9f0a;
    --ink: #152238;
    --muted: #64748b;
    --soft: #eef6ff;
    --line: #dbe7f5;
    --workspace: #f3f4f6;
}

* { box-sizing: border-box; }
body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--workspace);
    padding-top: 86px;
}
a { text-decoration: none; }
.erp-topbar {
    background: #fff;
    border-top: 4px solid #3b2a2a;
    border-bottom: 3px solid #0d8fff;
    min-height: 86px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .12);
}
.erp-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ff432d;
    font-weight: 800;
    letter-spacing: 0;
}
.brand-seal {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 3px solid #11223c;
    border-radius: 50%;
    color: #11223c;
    background: #fff;
    box-shadow: inset 0 0 0 4px #f2f6fb;
}
.navbar .nav-link { font-weight: 700; color: #26374a; padding-inline: .7rem; }
.navbar .nav-link:hover { color: var(--primary); }
.ay-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 20px;
    background: #efe1ff;
    color: #6b5b7d;
    font-size: .82rem;
    font-weight: 800;
}
.top-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f1f5f9;
    color: #24364f;
    font-size: 1.15rem;
}
.top-icon:hover { background: var(--primary); color: #fff; }
.module-launcher { width: min(520px, 100vw); background: #f4f7fb; }
.module-launcher-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    background: #0d5ce8;
    color: #fff;
}
.module-launcher-head span { display: block; font-size: .78rem; font-weight: 700; opacity: .86; }
.module-launcher-head h5 { margin: 4px 0 0; font-weight: 800; }
.module-launcher-note { color: #65758b; font-size: .9rem; font-weight: 600; }
.launcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.launcher-tile {
    min-height: 122px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 16px;
    border: 1px solid #dce5f0;
    border-radius: 10px;
    background: #fff;
    color: #182b46;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.launcher-tile:hover { color: #182b46; border-color: #98b9f5; box-shadow: 0 8px 18px rgba(31, 74, 145, .12); transform: translateY(-2px); }
.launcher-tile i { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; color: #fff; font-size: 1.15rem; }
.launcher-tile strong { font-size: .95rem; }
.launcher-tile span { color: #66758b; font-size: .78rem; line-height: 1.25; }
.launcher-org i { background: #3b82f6; }.launcher-sis i { background: #14b8a6; }.launcher-admissions i { background: #f97316; }.launcher-students i { background: #8b5cf6; }.launcher-courses i { background: #0ea5e9; }.launcher-finance i { background: #16a34a; }.launcher-notices i { background: #eab308; }.launcher-reports i { background: #2563eb; }.launcher-gallery i { background: #ec4899; }.launcher-settings i { background: #64748b; }
.launcher-admin-link { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 11px 14px; border-radius: 8px; background: #152b4e; color: #fff; font-weight: 700; text-decoration: none; }
.launcher-admin-link:hover { background: #0d5ce8; color: #fff; }
@media (max-width: 430px) { .launcher-grid { grid-template-columns: 1fr; } }
.profile-drawer { width: min(425px, 100vw); border-radius: 16px 0 0 16px; overflow: hidden; }
.profile-head {
    background: #0d5ce8;
    color: #fff;
    padding: 10px 22px 18px;
}
.profile-avatar {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: #d9dde5;
    font-size: 3rem;
    margin-bottom: 10px;
}
.profile-head h5 { font-weight: 800; margin: 0 0 4px; }
.profile-head p { margin: 0 0 12px; font-weight: 700; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-tags span {
    background: #fff;
    color: #0d5ce8;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: .8rem;
    font-weight: 800;
}
.profile-menu { background: #fff; border-bottom: 1px solid #dde3ec; }
.profile-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    color: #111827;
    border-bottom: 1px solid #eef2f7;
    font-weight: 600;
}
.profile-menu i { color: #64748b; font-size: 1.15rem; }
.profile-menu a:hover { background: #f5f9ff; color: var(--primary); }
.profile-support {
    display: grid;
    gap: 4px;
    background: #fff;
    padding: 16px 22px;
}
.profile-support strong { font-size: .95rem; }
.profile-support span { color: var(--muted); font-size: .86rem; }
.profile-support a { color: #001eff; font-weight: 700; }

.erp-home {
    padding: 14px 8px 60px;
}
.erp-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #fff;
    background: linear-gradient(90deg, #0d5ce8, #0a78ff);
    border-radius: 8px 8px 0 0;
    padding: 18px 22px;
    box-shadow: 0 8px 22px rgba(13, 92, 232, .18);
}
.dashboard-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.dashboard-hero.has-media {
    min-height: 190px;
    align-items: end;
}
.dashboard-hero-media,
.dashboard-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.dashboard-hero-media {
    object-fit: cover;
    z-index: -2;
}
.dashboard-hero-overlay {
    background: rgba(4, 26, 70, .62);
    z-index: -1;
}
.dashboard-hero-copy { max-width: 760px; }
.dashboard-hero-copy p {
    margin: 8px 0 0;
    max-width: 680px;
    color: rgba(255,255,255,.92);
    font-size: .94rem;
    line-height: 1.55;
}
.erp-ribbon h1 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    margin: 4px 0 0;
    font-weight: 800;
}
.small-label {
    font-size: .85rem;
    font-weight: 800;
    color: rgba(255,255,255,.8);
}
.ribbon-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.erp-workspace {
    display: grid;
    grid-template-columns: 32px 1fr;
    border: 1px solid #d4dce7;
    border-top: 0;
    background: #fff;
}
.erp-rail {
    background: #34495e;
    color: #fff;
    display: grid;
    align-content: start;
}
.erp-rail span {
    min-height: 70px;
    display: grid;
    place-items: center;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: 0;
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.module-board {
    display: grid;
    grid-template-columns: repeat(8, minmax(90px, 1fr));
    gap: 0;
}
.module-tile {
    min-height: 86px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #2d3a4c;
    border-right: 1px solid #edf1f5;
    border-bottom: 1px solid #d9e0e9;
    transition: background .18s ease, transform .18s ease;
}
.module-tile i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #67e8f9);
}
.module-tile.finance i { background: linear-gradient(135deg, #f59e0b, #22c55e); }
.module-tile.connect i { background: linear-gradient(135deg, #10b981, #38bdf8); }
.module-tile.admissions i { background: linear-gradient(135deg, #f97316, #0ea5e9); }
.module-tile span {
    font-size: .8rem;
    line-height: 1.1;
    text-align: center;
}
.module-tile:hover { background: #f8fbff; transform: translateY(-2px); color: var(--primary-dark); }
.erp-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 8px 0 0;
}
.erp-panel, .erp-admin-card {
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 6px;
    overflow: hidden;
}
.dashboard-control-card { max-width: 1180px; margin-inline: auto; }
.dashboard-control-intro {
    padding: 14px 18px;
    border-bottom: 1px solid #dce3ec;
    background: #f7fbff;
    color: #334155;
    font-size: .9rem;
}
.dashboard-media-preview {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #0f172a;
}
.erp-panel.wide { grid-column: span 2; }
.panel-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    padding: 0 6px;
    border-bottom: 1px solid #cfd6df;
    background: #f8fafc;
}
.panel-tabs span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    background: #e5e7eb;
    color: #111827;
    font-size: .78rem;
    font-weight: 700;
}
.panel-tabs .active {
    background: var(--primary);
    color: #fff;
}
.course-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px 20px 24px;
}
.course-strip a, .erp-count-pill {
    background: #eef4fd;
    border-radius: 8px;
    min-height: 42px;
    display: grid;
    place-items: center;
    color: #4b5563;
    text-align: center;
}
.course-strip strong, .erp-count-pill strong { font-size: .95rem; color: #4b5563; }
.course-strip span, .erp-count-pill span { font-size: .7rem; color: #5f6b7a; }
.panel-heading {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    background: #fafafa;
    border-bottom: 1px solid #cfd6df;
    color: #004fe8;
}
.panel-heading strong { font-size: .92rem; }
.panel-heading a, .panel-heading span { font-size: .8rem; font-weight: 700; color: #0057ff; }
.mini-list { padding: 14px 22px 20px; display: grid; gap: 10px; }
.mini-list div {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 28px;
}
.mini-list i {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: #4388ff;
    background: #e8f1ff;
    border-radius: 6px;
}
.mini-list span { font-size: .82rem; }
.mini-list strong { font-size: .9rem; }
.erp-notice {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f5;
    color: #1f2937;
    font-size: .82rem;
}
.erp-notice small { color: var(--muted); white-space: nowrap; }
.sms-badge {
    background: #f3a300;
    color: #fff !important;
    padding: 4px 8px;
    border-radius: 5px;
}
.communication-box { padding: 16px 20px; display: grid; gap: 14px; }
.communication-box div:not(.comm-actions) {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    gap: 10px;
    align-items: center;
}
.communication-box i { color: #286bff; font-size: 1.25rem; }
.communication-box span { font-size: .82rem; }
.communication-box strong { font-size: .85rem; }
.comm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.comm-actions button {
    border: 1px solid #ffb21a;
    background: #fff8e8;
    color: #f59e0b;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: .75rem;
    font-weight: 800;
}
.device-row {
    display: grid;
    grid-template-columns: 1fr 40px 40px 40px;
    gap: 8px;
    padding: 26px 26px 8px;
    text-align: center;
}
.device-row span { text-align: left; }
.device-row strong { color: #0057ff; }
.device-icons { display: flex; justify-content: center; gap: 28px; padding: 8px 0 25px; color: #61a1ff; font-size: 1.3rem; }
.compact-section { background: #fff; }

.hero-slide {
    min-height: calc(100vh - 72px);
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 35, 81, .9), rgba(13, 110, 253, .62), rgba(6, 35, 81, .25));
}
.hero-slide .container { position: relative; z-index: 1; }
.hero-one { background-image: url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=1800&q=80"); }
.hero-two { background-image: url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1800&q=80"); }
.hero-section h1, .page-header h1 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: 0;
    max-width: 920px;
}
.hero-section p, .page-header p {
    font-size: 1.15rem;
    max-width: 720px;
    color: rgba(255,255,255,.86);
}

.section-padding { padding: 90px 0; }
.bg-light-blue { background: var(--soft); }
.section-heading { margin-bottom: 42px; }
.section-heading span {
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: .82rem;
}
.section-heading h2 {
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin: 8px 0 12px;
}
.section-heading p { color: var(--muted); max-width: 700px; margin: auto; }

.stat-card, .course-card, .testimonial-card, .notice-panel, .content-panel, .summary-card, .form-panel, .table-panel, .notice-card, .auth-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(15, 43, 92, .08);
}
.stat-card { padding: 28px; text-align: center; }
.stat-card strong { display: block; color: var(--primary); font-size: 2.4rem; font-weight: 800; }
.stat-card span { color: var(--muted); font-weight: 700; }

.course-card { padding: 30px; position: relative; transition: transform .25s ease, box-shadow .25s ease; }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(15, 43, 92, .14); }
.course-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--soft);
    color: var(--primary);
    font-size: 1.7rem;
    margin-bottom: 22px;
}
.course-card h5 { font-weight: 800; }
.course-card p, .testimonial-card, .notice-card p { color: var(--muted); }
.course-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #334155; font-weight: 700; }
.course-meta i { margin-right: 6px; color: var(--primary); }

.feature-list { display: grid; gap: 18px; }
.feature-list div { display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: #334155; }
.feature-list i { color: var(--primary); font-size: 1.4rem; }
.notice-panel, .content-panel, .summary-card, .form-panel, .table-panel { padding: 30px; }
.notice-item { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.notice-item:last-child { border-bottom: 0; }
.notice-item span { color: var(--muted); white-space: nowrap; }
.testimonial-card { padding: 28px; min-height: 190px; display: flex; flex-direction: column; justify-content: space-between; }
.testimonial-card strong { color: var(--primary-dark); margin-top: 18px; }

.page-header {
    padding: 115px 0 85px;
    color: #fff;
    background: linear-gradient(120deg, rgba(8, 66, 152, .96), rgba(13, 110, 253, .9)), url("https://images.unsplash.com/photo-1498243691581-b145c3f54a5a?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.page-header.compact { padding: 90px 0 65px; }
.summary-card { position: sticky; top: 95px; display: grid; gap: 18px; }
.summary-card div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 14px; gap: 16px; }
.summary-card span { color: var(--muted); }
.summary-card strong { text-align: right; }

.form-panel h4 { font-weight: 800; margin: 30px 0 18px; }
.form-panel h4:first-child { margin-top: 0; }
.form-control, .form-select { border-color: var(--line); min-height: 48px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .14); }

.auth-section { min-height: 75vh; display: grid; place-items: center; background: var(--soft); padding: 70px 16px; }
.auth-card { width: min(100%, 430px); padding: 34px; }
.auth-card h2 { font-weight: 800; margin-bottom: 22px; }
.admin-shell { padding-top: 24px; min-height: calc(100vh - 86px); }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-nav a {
    padding: 9px 13px;
    background: #fff;
    border: 1px solid #d3dbe6;
    color: #26374a;
    font-size: .85rem;
    font-weight: 800;
    border-radius: 6px;
}
.admin-nav a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }
.erp-admin-card { padding-bottom: 16px; }
.erp-admin-card .row { padding: 16px 18px 0; }
.erp-count-pill { min-height: 54px; }
.erp-table { margin-bottom: 0; font-size: .84rem; }
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    padding: 24px;
    text-align: center;
}
.inventory-grid strong { display: block; font-size: 1rem; }
.inventory-grid span { font-size: .78rem; }
.module-upload-panel code {
    color: #084298;
    background: #eef4fd;
    padding: 2px 5px;
    border-radius: 4px;
}
.module-list-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #e8f1ff;
    color: #0d6efd;
    font-size: 1.2rem;
}
.settings-body {
    padding-top: 0;
    background: #fff;
    color: #1f2937;
}
.settings-page {
    min-height: 100vh;
    background: #fff;
}
.settings-header {
    min-height: 86px;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 708px) minmax(80px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 20px 0 32px;
    border-top: 1px solid #ead7d2;
    background: #fff;
}
.settings-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff432d;
    min-width: 0;
}
.settings-brand strong {
    font-size: 1.28rem;
    font-weight: 800;
    white-space: nowrap;
}
.settings-brand em {
    color: #64748b;
    font-style: normal;
    font-weight: 800;
    white-space: nowrap;
}
.settings-seal {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    border: 4px solid #102344;
    box-shadow: inset 0 0 0 5px #eef4fb, 0 6px 10px rgba(15, 23, 42, .14);
    color: #102344;
    background: #fff;
    font-size: 1.45rem;
}
.settings-search {
    min-height: 44px;
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    gap: 8px;
    border: 1px solid #e9deda;
    border-radius: 22px;
    padding: 0 20px;
    color: #9ca3af;
}
.settings-search input {
    width: 100%;
    min-height: 40px;
    border: 0;
    outline: 0;
    color: #374151;
    background: transparent;
    font-size: 1.03rem;
    font-weight: 600;
}
.settings-search input::placeholder {
    color: #2f3744;
    opacity: .95;
}
.settings-profile {
    justify-self: end;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 0;
    background: #e5e7eb;
    color: #fff;
    font-size: 1.6rem;
}
.settings-subnav {
    min-height: 45px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 36px;
    background: #10101f;
}
.settings-subnav a {
    color: #fff;
    text-decoration: underline;
    font-size: .93rem;
    font-weight: 700;
}
.settings-subnav a + a {
    border-left: 1px solid rgba(255, 255, 255, .82);
    padding-left: 11px;
}
.settings-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    align-items: start;
    min-height: calc(100vh - 131px);
}
.settings-sidebar {
    border-left: 5px solid #f5f8fc;
    border-right: 1px solid #cbd5e1;
    background: #edf3fb;
}
.settings-sidebar a {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    color: #374151;
    border-bottom: 1px solid #d4dbe5;
    font-size: 1.02rem;
    font-weight: 500;
}
.settings-sidebar a i {
    width: 17px;
    color: #555;
    text-align: center;
    font-size: 1rem;
}
.settings-sidebar a.active {
    position: relative;
    color: #ff432d;
    background: #edf3fb;
    font-weight: 800;
}
.settings-sidebar a.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #ff432d;
}
.settings-sidebar a.active i {
    color: #ff432d;
}
.settings-content {
    padding: 24px 6px 40px 23px;
}
.settings-content h1 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 800;
}
.settings-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(260px, 1fr));
    gap: 26px;
}
.settings-menu-card {
    min-height: 294px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    padding: 17px 22px;
}
.settings-menu-card a {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6d5353;
    font-size: .98rem;
    font-weight: 500;
}
.settings-menu-card a i {
    color: #6d5353;
    font-size: .85rem;
    font-weight: 800;
}
.settings-menu-card a:hover,
.settings-menu-card a:hover i {
    color: #ff432d;
}
.settings-menu-card a.is-hidden {
    display: none;
}
.org-body {
    background: #e9e9e9;
    font-size: 12px;
}
.org-header {
    min-height: 70px;
    grid-template-columns: minmax(360px, 1fr) minmax(320px, 740px) minmax(64px, 1fr);
    padding-left: 24px;
}
.org-header .settings-seal {
    width: 48px;
    height: 48px;
    font-size: 1rem;
}
.org-header .settings-brand strong {
    font-size: 1rem;
}
.org-header .settings-search {
    min-height: 32px;
    border-radius: 18px;
}
.org-header .settings-search input {
    min-height: 30px;
    font-size: .82rem;
}
.org-subnav {
    min-height: 32px;
    padding-inline: 22px;
    gap: 8px;
}
.org-subnav a {
    font-size: .75rem;
}
.org-subnav a.active {
    text-decoration: none;
    font-weight: 800;
}
.org-help-icons {
    margin-left: auto;
    display: flex;
    gap: 10px;
    color: #fff;
    font-size: 1rem;
}
.org-help-icons i:last-child {
    color: #ff9f0a;
}
.org-page-title {
    background: #f6f6f6;
    padding: 18px 16px 20px;
    border-bottom: 1px solid #d1d5db;
}
.org-page-title h1 {
    margin: 0 0 4px;
    color: #5b5560;
    font-size: 1.05rem;
    font-weight: 800;
}
.org-page-title p {
    margin: 0;
    color: #344054;
    font-size: .72rem;
}
.org-page-title strong,
.org-side-list a.active,
.org-no {
    color: #ff1f2d;
}
.org-panel {
    background: #fff;
    border: 1px solid #ccd3dd;
    border-radius: 4px;
    min-height: 300px;
}
.org-tabs {
    min-height: 34px;
    display: flex;
    align-items: end;
    gap: 0;
    overflow-x: auto;
    border-bottom: 1px solid #d6dce4;
    background: #fff;
}
.org-tabs a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 13px;
    color: #111827;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    font-size: .72rem;
}
.org-tabs a.active {
    border-color: #ff1f2d;
}
.org-settings-grid {
    display: grid;
    grid-template-columns: 315px 1fr;
    gap: 14px;
    padding: 10px 12px 22px 3px;
}
.org-side-list {
    border: 1px solid #c7ced8;
    border-radius: 4px;
    overflow: hidden;
    align-self: start;
    background: #eef3fa;
}
.org-side-list a {
    min-height: 31px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    color: #111827;
    border-bottom: 1px solid #d6dce4;
    font-size: .72rem;
}
.org-side-list a:last-child {
    border-bottom: 0;
}
.org-side-list a.active {
    background: #f5f8fc;
    border-left: 2px solid #ff1f2d;
}
.org-settings-main {
    min-width: 0;
    padding: 5px 0;
}
.org-form-layout {
    display: grid;
    grid-template-columns: minmax(260px, 380px) minmax(260px, 520px);
    align-items: center;
    gap: 16px 12px;
    max-width: 1080px;
    margin: 6px auto 22px;
}
.org-form-layout.compact {
    max-width: 820px;
    gap: 16px;
}
.org-form-layout label {
    color: #4b5563;
    font-weight: 800;
}
.org-value {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    border-radius: 5px;
    background: #e5e9ee;
    padding: 0 12px;
    color: #0f172a;
    font-size: .86rem;
}
.org-value.wide {
    width: min(100%, 1035px);
}
.org-logo-preview {
    width: 82px;
    height: 82px;
    font-size: 1.5rem;
}
.org-small-image {
    width: 34px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    color: #0f172a;
    background: #f1f5f9;
}
.org-small-image.muted {
    background: #d8dee6;
}
.org-section-title,
.org-blue-title {
    color: #0057ff;
    font-size: .86rem;
    font-weight: 800;
    margin: 18px 0 8px 14px;
}
.org-section-title {
    color: #00844d;
}
.org-login-details {
    grid-template-columns: minmax(180px, 510px) minmax(260px, 640px);
    max-width: 1220px;
}
.org-two-cols {
    display: grid;
    grid-template-columns: 1fr .98fr;
    gap: 12px;
}
.org-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: .72rem;
}
.org-table th,
.org-table td {
    border: 1px solid #d6dce4;
    padding: 9px 10px;
    vertical-align: middle;
}
.org-table th {
    background: #e9e9e9;
    color: #000;
    font-weight: 800;
}
.org-table td {
    color: #111827;
}
.org-striped tbody tr:nth-child(even) td {
    background: #eeeeee;
}
.org-table small {
    color: #111827;
    float: right;
}
.org-btn {
    border: 0;
    border-radius: 3px;
    background: #0969ff;
    color: #fff;
    min-height: 24px;
    padding: 0 12px;
    font-size: .68rem;
    font-weight: 800;
}
.org-float-btn,
.org-add-new {
    float: right;
    margin: 10px 8px;
}
.org-badge {
    border-radius: 4px;
    padding: 2px 7px;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    float: right;
}
.org-badge.danger {
    background: #e6294f;
}
.org-badge.success {
    background: #00844d;
}
.org-yes {
    color: #00844d;
}
.org-approval-block,
.org-rules {
    max-width: 960px;
    margin: 18px auto 110px;
    display: grid;
    gap: 14px;
}
.org-approval-block h2 {
    color: #0057ff;
    font-size: .9rem;
}
.org-approval-block div,
.org-rules div {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 20px;
}
.org-approval-block p,
.org-rules p,
.org-note {
    color: #344054;
    font-size: .66rem;
    margin: 0;
}
.org-year-toolbar {
    display: grid;
    grid-template-columns: 460px 40px 1fr;
    gap: 14px;
    align-items: end;
    margin: 8px 6px 14px;
}
.org-year-toolbar label {
    grid-column: 1 / -1;
    color: #4b5563;
    font-weight: 700;
}
.org-year-toolbar select {
    min-height: 29px;
    border: 1px solid #bfc7d1;
}
.org-year-toolbar .org-btn:last-child {
    justify-self: end;
}
.org-note {
    margin: 0 0 22px;
    color: #344054;
}
.org-note strong {
    color: #0057ff;
}
.org-group-row td {
    color: #0057ff;
    background: #f5f5f5 !important;
    text-align: left;
    font-weight: 700;
}
.org-branch-table {
    width: calc(100% - 12px);
    margin: 34px 0 0;
    text-align: center;
}
.org-search-box {
    float: right;
    width: 164px;
    min-height: 30px;
    border: 1px solid #d7dce3;
    border-radius: 18px;
    padding: 0 20px;
    text-align: center;
}
.org-edit {
    color: #0969ff;
}
.org-footer {
    min-height: 76px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1.3fr 1.4fr 1.2fr;
    gap: 18px;
    align-items: center;
    background: #141a1d;
    color: #fff;
    padding: 12px 46px;
}
.org-footer div {
    display: grid;
    gap: 5px;
    justify-items: center;
    text-align: center;
}
.org-footer strong {
    color: #ffb000;
    font-size: .68rem;
}
.org-footer small {
    font-size: .58rem;
}
.org-footer button {
    border: 1px solid #fff;
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font-size: .6rem;
    padding: 5px 14px;
}
.org-footer-logo {
    color: #fff;
    font-weight: 800;
}
.org-social {
    display: flex;
    gap: 10px;
    font-size: 1.25rem;
}
@media (max-width: 991px) {
    .org-header { grid-template-columns: 1fr; padding: 14px; gap: 10px; }
    .org-settings-grid { grid-template-columns: 1fr; }
    .org-two-cols { grid-template-columns: 1fr; }
    .org-form-layout { grid-template-columns: 1fr; margin-inline: 10px; }
    .org-year-toolbar { grid-template-columns: 1fr auto; }
    .org-footer { grid-template-columns: 1fr 1fr; padding: 16px; }
}
.sis-shell {
    min-height: calc(100vh - 86px);
    background: #eef0f3;
    padding: 0 14px 34px;
}
.sis-top-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    min-height: 42px;
    padding-left: 112px;
    background: #fff;
    border-bottom: 1px solid #d8dee8;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
    margin: 0 -14px 24px;
    overflow-x: auto;
}
.sis-top-menu a {
    color: #28384d;
    font-weight: 800;
    white-space: nowrap;
}
.sis-top-menu i { font-size: .75rem; margin-left: 5px; }
.sis-card {
    background: #fff;
    border: 1px solid #cfd6df;
    border-radius: 5px;
    min-height: 760px;
    overflow: hidden;
}
.sis-title-row {
    display: grid;
    grid-template-columns: 1fr 130px 445px;
    align-items: center;
    gap: 18px;
    padding: 16px;
}
.sis-title-row h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 800;
}
.sis-title-row strong {
    color: #666;
    text-align: center;
    font-size: .86rem;
}
.sis-title-row .form-select {
    min-height: 35px;
    font-size: .86rem;
}
.sis-tabs {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    margin: 16px;
    border: 1px solid #d7dee8;
    border-radius: 5px;
    overflow: hidden;
}
.sis-arrow {
    min-height: 40px;
    border: 0;
    background: #fff;
    color: #555;
    box-shadow: 0 0 10px rgba(15, 23, 42, .1);
}
.sis-tab-strip {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
}
.sis-tab-strip a {
    flex: 0 0 auto;
    min-height: 40px;
    border: 0;
    border-right: 1px solid transparent;
    background: #fff;
    color: #222;
    padding: 0 14px;
    font-size: .83rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.sis-tab-strip a.active {
    color: #fff;
    background: linear-gradient(90deg, #ff4b2b, #ff005d);
}
.sis-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 12px;
    padding: 0 24px 18px;
}
.sis-kpi-grid div {
    border: 1px solid #dce3ec;
    border-radius: 5px;
    padding: 14px 16px;
    background: #f8fafc;
}
.sis-kpi-grid span {
    display: block;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
}
.sis-kpi-grid strong {
    display: block;
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1.1;
    margin-top: 5px;
}
.sis-table-toolbar {
    min-height: 70px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 0 24px 10px;
    border-top: 1px solid #d7dee8;
}
.sis-export-actions, .sis-view-actions {
    display: flex;
    gap: 4px;
}
.sis-export-actions .btn {
    width: 29px;
    height: 31px;
    display: grid;
    place-items: center;
    background: #20bec8;
    border-color: #20bec8;
}
.sis-view-actions .btn {
    width: 29px;
    height: 28px;
    display: grid;
    place-items: center;
}
.sis-search-row {
    display: flex;
    justify-content: flex-end;
    padding: 0 24px 10px;
}
.sis-search-row .form-control {
    width: 192px;
    min-height: 35px;
    border-radius: 0;
    font-size: .86rem;
}
.sis-table-wrap {
    margin: 0 24px 26px;
    border: 1px solid #e2e6ea;
}
.sis-analysis-table {
    margin: 0;
    min-width: 1180px;
    color: #005cff;
    font-size: .84rem;
    text-align: center;
}
.sis-analysis-table thead th {
    background: #efefef;
    border-color: #e0e0e0;
    color: #005cff;
    font-weight: 800;
    vertical-align: bottom;
    padding: 12px 10px;
}
.sis-analysis-table thead tr:first-child th {
    vertical-align: bottom;
}
.sis-analysis-table tbody td {
    border-color: #e5e5e5;
    padding: 11px 10px;
    font-weight: 600;
}
.sis-analysis-table.compact tbody td,
.sis-analysis-table.compact thead th {
    padding: 7px 8px;
    font-size: .78rem;
}
.sis-analysis-table th:nth-child(5),
.sis-analysis-table th:nth-child(8),
.sis-analysis-table td:nth-child(5),
.sis-analysis-table td:nth-child(8) {
    color: #55aae8;
}
.sis-analysis-table th:nth-child(6),
.sis-analysis-table th:nth-child(9),
.sis-analysis-table td:nth-child(6),
.sis-analysis-table td:nth-child(9) {
    color: #ff62b4;
}
.sis-total-row td {
    background: #fff;
    color: #00844d !important;
    font-weight: 800;
}
.sis-total-row td:nth-child(n+2) {
    color: inherit !important;
}
.sis-notice {
    margin: 0 24px 12px;
    border: 1px solid #b6d4fe;
    background: #eef6ff;
    color: #084298;
    border-radius: 5px;
    padding: 10px 12px;
    font-size: .86rem;
    font-weight: 700;
}
.sis-notice i {
    margin-right: 8px;
}
.sis-empty-state {
    margin: 0 24px 26px;
    min-height: 260px;
    border: 1px dashed #cbd5e1;
    border-radius: 5px;
    background: #f8fafc;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
}
.sis-empty-state i {
    color: #64748b;
    font-size: 2.3rem;
}
.sis-empty-state h2 {
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 10px 0 6px;
}
.sis-empty-state p {
    color: #475569;
    max-width: 620px;
    margin: 0;
}
.status-pending { background: #ffc107; color: #111827; }
.status-approved { background: #198754; }
.status-rejected { background: #dc3545; }
.notice-card { padding: 26px; height: 100%; }
.notice-card span { color: var(--primary); font-weight: 800; }
.gallery-card { position: relative; overflow: hidden; border-radius: 8px; min-height: 260px; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .35s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card span { position: absolute; left: 18px; bottom: 18px; color: #fff; font-weight: 800; background: rgba(8,66,152,.82); padding: 8px 12px; border-radius: 6px; }
.faq-accordion { max-width: 850px; }

.footer-section { background: #071d3d; }
.footer-section a { display: block; color: rgba(255,255,255,.65); margin-bottom: 8px; }
.footer-section a:hover { color: #fff; }

body.public-homepage {
    padding-top: 0;
    background: #f4f6f8;
    color: #10233f;
}

.public-homepage .erp-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.public-contactbar {
    background: #0f172a;
    color: rgba(255, 255, 255, .78);
    font-size: .82rem;
}

.public-contactbar .container {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.public-contactbar a {
    color: #fff;
    text-decoration: none;
}

.public-home {
    overflow: hidden;
}

.institution-hero {
    position: relative;
    min-height: clamp(560px, 72vh, 720px);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #12335f;
}

.institution-hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.institution-hero__media,
.institution-hero__media img,
.institution-hero__media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.institution-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 18, 38, .82), rgba(4, 18, 38, .46) 52%, rgba(4, 18, 38, .22));
}

.institution-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 72px 0 58px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
    font-weight: 800;
    color: #ffc928;
    margin-bottom: 12px;
}

.institution-hero h1 {
    max-width: 780px;
    font-size: clamp(2.45rem, 5vw, 5.4rem);
    line-height: 1.02;
    font-weight: 900;
    margin: 0 0 18px;
}

.institution-hero p {
    max-width: 720px;
    font-size: 1.16rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, .88);
}

.institution-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.institution-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    max-width: 720px;
    gap: 1px;
    margin-top: 42px;
    background: rgba(255, 255, 255, .24);
    border: 1px solid rgba(255, 255, 255, .22);
}

.institution-hero__facts > div {
    display: block;
    padding: 18px;
    background: rgba(15, 23, 42, .36);
}

.institution-hero__facts strong {
    display: block;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
}

.institution-hero__facts span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 600;
}

.public-intro {
    background: #fff;
}

.public-intro__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 20px 42px;
    align-items: start;
}

.public-intro__grid .text-link {
    grid-column: 2;
}

.section-kicker {
    color: #0d6efd;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .76rem;
    letter-spacing: .08em;
}

.public-section-head {
    max-width: 760px;
    margin-bottom: 32px;
}

.public-section-head h2,
.public-intro h2,
.feature-panel h2,
.public-cta h2 {
    color: #10233f;
    font-weight: 900;
}

.text-link {
    font-weight: 800;
    color: #0d6efd;
    text-decoration: none;
}

.programme-grid,
.institution-grid,
.notice-grid {
    display: grid;
    gap: 18px;
}

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

.programme-card,
.institution-card,
.public-notice,
.feature-panel {
    background: #fff;
    border: 1px solid #dde4ee;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.programme-card__number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f1ff;
    color: #0d6efd;
    font-weight: 900;
    margin-bottom: 18px;
}

.programme-card h3,
.institution-card h3 {
    font-size: 1.05rem;
    font-weight: 900;
    color: #10233f;
}

.programme-card__link {
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.public-institutions {
    background: #eef2f7;
}

.institution-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.institution-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #12335f;
    color: #fff;
    margin-bottom: 14px;
}

.public-feature {
    background: #fff;
}

.public-feature .container {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 28px;
    align-items: stretch;
}

.public-feature__media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.public-notices {
    background: #f7f9fc;
}

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

.public-notice time {
    display: block;
    color: #0d6efd;
    font-weight: 800;
    margin-bottom: 8px;
}

.public-cta {
    background: #0d6efd;
    color: #fff;
    text-align: center;
}

.public-cta h2 {
    color: #fff;
}

.public-footer {
    background: #101820;
    color: rgba(255, 255, 255, .72);
    padding: 28px 0;
}

.public-footer a {
    color: #fff;
    text-decoration: none;
}

.editor-section-title {
    font-size: .95rem;
    font-weight: 900;
    color: #10233f;
    margin: 24px 0 12px;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #25d366;
    color: #fff;
    font-size: 1.6rem;
    z-index: 30;
    box-shadow: 0 10px 30px rgba(0,0,0,.22);
}

@media (max-width: 991px) {
    body { padding-top: 78px; }
    body.public-homepage { padding-top: 0; }
    .erp-topbar { min-height: 78px; }
    .institution-hero { min-height: auto; }
    .institution-hero__content { padding: 56px 0 44px; }
    .institution-hero__facts,
    .public-intro__grid,
    .programme-grid,
    .institution-grid,
    .public-feature .container,
    .notice-grid { grid-template-columns: 1fr; }
    .public-intro__grid .text-link { grid-column: auto; }
    .institution-hero h1 { font-size: 2.55rem; }
    .public-contactbar .container { align-items: flex-start; flex-direction: column; padding: 8px 12px; }
    .erp-brand span:last-child { font-size: .98rem; }
    .brand-seal { width: 42px; height: 42px; }
    .section-padding { padding: 64px 0; }
    .hero-slide { min-height: 720px; }
    .notice-item { flex-direction: column; }
    .module-board { grid-template-columns: repeat(4, 1fr); }
    .erp-dashboard-grid { grid-template-columns: 1fr; }
    .erp-panel.wide { grid-column: span 1; }
    .sis-top-menu { padding-left: 16px; }
    .sis-title-row { grid-template-columns: 1fr; }
    .sis-title-row strong { text-align: left; }
    .sis-title-row .form-select { width: 100%; }
    .sis-kpi-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

@media (max-width: 575px) {
    .hero-section h1, .page-header h1 { font-size: 2.25rem; }
    .institution-hero__actions .btn { width: 100%; }
    .institution-hero__facts > div { padding: 14px; }
    .programme-card,
    .institution-card,
    .public-notice,
    .feature-panel { padding: 18px; }
    .hero-section p, .page-header p { font-size: 1rem; }
    .stat-card, .course-card, .form-panel, .content-panel, .summary-card, .table-panel { padding: 22px; }
    .admin-nav a { flex: 1 1 calc(50% - 10px); text-align: center; }
    .erp-home { padding: 10px 4px 44px; }
    .erp-ribbon { align-items: flex-start; flex-direction: column; padding: 16px; }
    .dashboard-hero.has-media { min-height: 250px; }
    .erp-workspace { grid-template-columns: 26px 1fr; }
    .module-board { grid-template-columns: repeat(2, 1fr); }
    .module-tile { min-height: 82px; }
    .course-strip { grid-template-columns: repeat(2, 1fr); padding: 12px; }
    .panel-tabs span { font-size: .72rem; padding: 0 6px; }
    .erp-rail span { min-height: 82px; font-size: .58rem; }
    .sis-shell { padding-inline: 6px; }
    .sis-top-menu { margin-inline: -6px; gap: 18px; }
    .sis-tabs { margin: 10px; grid-template-columns: 34px 1fr 34px; }
    .sis-kpi-grid { grid-template-columns: 1fr; padding-inline: 12px; }
    .sis-table-toolbar { padding-inline: 12px; }
    .sis-search-row { padding-inline: 12px; }
    .sis-table-wrap { margin-inline: 12px; }
    .sis-notice,
    .sis-empty-state { margin-inline: 12px; }
}

@media print {
    .erp-topbar,
    .footer-section,
    .whatsapp-float,
    .sis-top-menu,
    .sis-tabs,
    .sis-table-toolbar,
    .sis-search-row {
        display: none !important;
    }
    body {
        padding-top: 0;
        background: #fff;
    }
    .sis-shell {
        padding: 0;
        background: #fff;
    }
    .sis-card {
        border: 0;
    }
    .sis-table-wrap {
        margin: 0;
        overflow: visible !important;
    }
}
