:root {
    --school-primary: #0b4f8a;
    --school-primary-dark: #073b68;
    --school-accent: #f59e0b;
    --school-background: #f4f7fb;
    --school-surface: #ffffff;
    --school-text: #1f2937;
    --school-muted: #64748b;
    --school-border: #dce5ef;
    --school-radius: 12px;
    --school-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    --school-width: 1280px;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--school-text);
    background: var(--school-background);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.school-shell {
    width: calc(100% - 32px);
    max-width: var(--school-width);
    margin-right: auto;
    margin-left: auto;
}

.school-topbar {
    min-height: 38px;
    color: #fff;
    background: var(--school-primary-dark);
}

.school-topbar a {
    color: #fff;
}

.school-topbar-inner {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.school-topbar-left,
.school-topbar-right {
    display: flex;
    align-items: center;
}

.school-topbar-right {
    gap: 18px;
}

.school-topbar .social-icons,
.school-topbar .personalArea {
    float: none;
}

.school-brand {
    background: var(--school-surface);
    border-bottom: 1px solid var(--school-border);
}

.school-brand-inner {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.school-brand-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.school-brand-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 94px;
    max-height: 88px;
}

.school-brand-content {
    flex: 1 1 auto;
    min-width: 0;
}

.school-brand-content h1,
.school-site-name {
    margin: 0;
    color: var(--school-primary-dark);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.school-description {
    margin-top: 6px;
    color: var(--school-muted);
    font-size: 15px;
}

.school-brand-extra {
    flex: 0 1 auto;
}

.school-navigation {
    position: relative;
    z-index: 100;
    background: var(--school-primary);
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12);
}

.school-menu {
    min-height: 50px;
}

.school-menu .navbar {
    min-height: 50px;
    margin: 0;
    border: 0;
    background: transparent;
}

.school-menu .navbar-collapse {
    padding-right: 0;
    padding-left: 0;
}

.school-menu .navbar-nav > li > a {
    padding: 15px 18px;
    color: #fff;
    font-weight: 600;
    line-height: 20px;
}

.school-menu .navbar-nav > li > a:hover,
.school-menu .navbar-nav > li > a:focus,
.school-menu .navbar-nav > .active > a,
.school-menu .navbar-nav > .open > a {
    color: #fff;
    background: var(--school-primary-dark);
}

.school-menu .dropdown-menu {
    min-width: 220px;
    padding: 8px 0;
    border: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--school-shadow);
}

.school-menu .dropdown-menu > li > a {
    padding: 9px 18px;
}

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

.school-context-inner {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.school-context-meta {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--school-muted);
}

.school-context .breadcrumbs-wrap {
    margin: 0;
}

.school-context .current-time {
    display: inline-block;
    color: var(--school-muted);
}

.school-search {
    width: 300px;
    flex: 0 0 300px;
}

.school-search .input-group {
    width: 100%;
}

.school-search .form-control {
    height: 40px;
    border: 1px solid var(--school-border);
    border-radius: 8px 0 0 8px;
    box-shadow: none;
}

.school-search .btn {
    height: 40px;
    padding-right: 15px;
    padding-left: 15px;
    color: #fff;
    background: var(--school-primary);
    border: 1px solid var(--school-primary);
    border-radius: 0 8px 8px 0;
}

.school-page {
    min-height: 500px;
    padding: 26px 0 44px;
}

.school-main-content {
    min-width: 0;
}

.school-page .panel,
.school-page .well,
.school-page .nv-block-banners {
    border-color: var(--school-border);
    border-radius: var(--school-radius);
    box-shadow: none;
}

.school-page .panel-heading {
    border-radius: var(--school-radius) var(--school-radius) 0 0;
}

.school-home-primary,
.school-home-secondary,
.school-home-laws,
.school-home-public,
.school-home-bottom,
.school-content-top,
.school-content-bottom {
    margin-bottom: 24px;
}

.school-footer {
    color: rgba(255, 255, 255, 0.88);
    background: var(--school-primary-dark);
}

.school-footer-top {
    background: var(--school-primary);
}

.school-footer-main {
    padding: 46px 0 38px;
}

.school-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr) minmax(240px, 1.2fr);
    gap: 42px;
}

.school-footer-title {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.school-footer-description {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.school-footer-info {
    margin-top: 18px;
}

.school-footer-heading {
    margin-bottom: 15px;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
}

.school-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.school-footer li {
    margin-bottom: 8px;
}

.school-footer a {
    color: rgba(255, 255, 255, 0.84);
}

.school-footer a:hover,
.school-footer a:focus {
    color: #fff;
}

.school-footer-bottom {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.school-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.school-backtop {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
}

.school-backtop a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--school-primary);
    border-radius: 50%;
    box-shadow: var(--school-shadow);
}

.school-mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    background: transparent;
    border: 1px solid var(--school-border);
    border-radius: 8px;
}

.school-mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--school-primary-dark);
}

@media (max-width: 991px) {
    .school-brand-inner {
        min-height: 92px;
    }

    .school-brand-content h1,
    .school-site-name {
        font-size: 22px;
    }

    .school-brand-extra {
        display: none;
    }

    .school-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .school-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .school-shell {
        width: calc(100% - 24px);
    }

    .school-topbar-left,
    .school-social {
        display: none;
    }

    .school-topbar-inner {
        justify-content: flex-end;
    }

    .school-brand-inner {
        min-height: 78px;
        gap: 12px;
    }

    .school-brand-logo img {
        max-width: 60px;
        max-height: 60px;
    }

    .school-brand-content h1,
    .school-site-name {
        font-size: 17px;
    }

    .school-description {
        margin-top: 3px;
        font-size: 12px;
    }

    .school-mobile-toggle {
        display: block;
        flex: 0 0 44px;
    }

    .school-navigation {
        display: none;
    }

    .school-navigation.school-menu-open {
        display: block;
    }

    .school-menu .navbar-nav {
        float: none;
        margin: 0;
    }

    .school-menu .navbar-nav > li {
        float: none;
    }

    .school-menu .navbar-nav > li > a {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .school-context-inner {
        display: block;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .school-search {
        width: 100%;
        margin-top: 10px;
    }

    .school-page {
        padding-top: 16px;
    }

    .school-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .school-footer-about {
        grid-column: auto;
    }

    .school-footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ==========================================================
   SCHOOL V2 HOMEPAGE
   ========================================================== */

.school-home {
    display: grid;
    gap: 28px;
}

.school-home-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 18px;
    background:
        linear-gradient(120deg, rgba(7, 59, 104, .96), rgba(11, 79, 138, .76)),
        linear-gradient(135deg, #0b4f8a, #3b82c4);
    box-shadow: var(--school-shadow);
}

.school-home-hero-content {
    width: 100%;
    max-width: 760px;
    padding: 52px;
    color: #fff;
}

.school-home-kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.school-home-hero h2 {
    margin: 0;
    color: #fff;
    font-size: 36px;
    line-height: 1.25;
    font-weight: 750;
}

.school-home-hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.88);
    font-size: 17px;
}

.school-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.school-home-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--school-primary-dark);
    background: #fff;
    border-radius: 9px;
    font-weight: 700;
}

.school-home-button:hover {
    color: var(--school-primary);
}

.school-home-button-secondary {
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
}

.school-home-section {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--school-border);
    border-radius: 16px;
    box-shadow: 0 5px 22px rgba(15,23,42,.05);
}

.school-home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.school-home-section-title {
    margin: 0;
    color: var(--school-primary-dark);
    font-size: 24px;
    font-weight: 750;
}

.school-home-section-description {
    margin: 5px 0 0;
    color: var(--school-muted);
}

.school-home-section-link {
    flex: 0 0 auto;
    color: var(--school-primary);
    font-weight: 700;
}

.school-home-news-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
    gap: 24px;
}

.school-home-feature {
    min-height: 300px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    border-radius: 14px;
    background:
        linear-gradient(to top, rgba(7,59,104,.96), rgba(7,59,104,.14)),
        linear-gradient(135deg, #4287b8, #8dc2df);
}

.school-home-feature h3 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 1.35;
}

.school-home-feature p {
    margin: 10px 0 0;
    color: rgba(255,255,255,.84);
}

.school-home-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.school-home-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--school-border);
}

.school-home-list li:first-child {
    padding-top: 0;
}

.school-home-list li:last-child {
    border-bottom: 0;
}

.school-home-list a {
    color: var(--school-text);
    font-weight: 650;
}

.school-home-list time {
    display: block;
    margin-top: 4px;
    color: var(--school-muted);
    font-size: 13px;
}

.school-home-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.school-home-card {
    min-height: 150px;
    padding: 23px;
    color: var(--school-text);
    background: var(--school-background);
    border: 1px solid var(--school-border);
    border-radius: 13px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.school-home-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--school-shadow);
}

.school-home-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--school-primary);
    border-radius: 12px;
    font-size: 19px;
}

.school-home-card h3 {
    margin: 0;
    color: var(--school-primary-dark);
    font-size: 17px;
}

.school-home-card p {
    margin: 8px 0 0;
    color: var(--school-muted);
    font-size: 14px;
}

.school-home-document-list {
    display: grid;
    gap: 12px;
}

.school-home-document {
    display: grid;
    grid-template-columns: 130px minmax(0,1fr) 110px;
    gap: 18px;
    align-items: center;
    padding: 17px 19px;
    background: var(--school-background);
    border: 1px solid var(--school-border);
    border-radius: 11px;
}

.school-home-document-code {
    color: var(--school-primary);
    font-weight: 750;
}

.school-home-document-title {
    color: var(--school-text);
    font-weight: 650;
}

.school-home-document-date {
    color: var(--school-muted);
    font-size: 13px;
    text-align: right;
}

@media (max-width: 991px) {
    .school-home-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-home-hero-content {
        padding: 38px;
    }
}

@media (max-width: 767px) {
    .school-home {
        gap: 18px;
    }

    .school-home-hero {
        min-height: 310px;
        border-radius: 12px;
    }

    .school-home-hero-content {
        padding: 26px 22px;
    }

    .school-home-hero h2 {
        font-size: 27px;
    }

    .school-home-section {
        padding: 20px;
        border-radius: 12px;
    }

    .school-home-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-home-news-grid,
    .school-home-card-grid {
        grid-template-columns: 1fr;
    }

    .school-home-document {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .school-home-document-date {
        text-align: left;
    }
}

/* School activity cards */
.school-activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.school-activity-card {
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #dce5ef;
    border-radius: 13px;
}

.school-activity-image {
    height: 180px;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.school-activity-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.school-activity-card:hover .school-activity-image img {
    transform: scale(1.035);
}

.school-activity-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b4f8a;
    font-size: 36px;
}

.school-activity-body {
    padding: 18px;
}

.school-activity-category {
    margin-bottom: 7px;
    color: #0b4f8a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.school-activity-body h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.45;
}

.school-activity-body h3 a {
    color: #1f2937;
}

.school-activity-body h3 a:hover {
    color: #0b4f8a;
    text-decoration: none;
}

@media (max-width: 991px) {
    .school-activity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .school-activity-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   SCHOOL V2 PROFESSIONAL FOOTER
   ========================================================== */

.school-footer {
    margin-top: 44px;
    padding: 48px 0 0;
    color: rgba(255,255,255,.86);
    background: #0b4776;
}

.school-footer-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr 1fr;
    gap: 46px;
}

.school-footer-column {
    min-width: 0;
}

.school-footer-heading {
    margin-bottom: 17px;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
}

.school-footer-about p {
    max-width: 430px;
    margin: 0 0 17px;
    color: rgba(255,255,255,.74);
    line-height: 1.7;
}

.school-footer-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 650;
}

.school-footer-home-link:hover,
.school-footer-home-link:focus {
    color: #dbeafe;
    text-decoration: none;
}

.school-footer-links,
.school-footer-contact {
    padding: 0;
    margin: 0;
    list-style: none;
}

.school-footer-links li + li,
.school-footer-contact li + li {
    margin-top: 11px;
}

.school-footer-links a {
    color: rgba(255,255,255,.82);
}

.school-footer-links a:hover,
.school-footer-links a:focus {
    color: #fff;
    text-decoration: none;
}

.school-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: rgba(255,255,255,.76);
    line-height: 1.55;
}

.school-footer-contact i {
    width: 16px;
    margin-top: 3px;
    color: #93c5fd;
    text-align: center;
}

.school-footer-bottom {
    margin-top: 40px;
    padding: 18px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: rgba(255,255,255,.65);
    border-top: 1px solid rgba(255,255,255,.13);
    font-size: 13px;
}

.school-footer-meta {
    text-align: right;
}

@media (max-width: 991px) {
    .school-footer-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .school-footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .school-footer {
        margin-top: 28px;
        padding-top: 34px;
    }

    .school-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .school-footer-about {
        grid-column: auto;
    }

    .school-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .school-footer-meta {
        text-align: left;
    }
}

/* ==========================================================
   LAWS FLOATING BOX
   ========================================================== */

.school-laws-float {
    position: fixed;
    right: 24px;
    bottom: 82px;
    z-index: 1040;
    width: 340px;
    max-width: calc(100vw - 48px);
    overflow: hidden;
    color: #1f2937;
    background: #fff;
    border: 1px solid #d6e1ec;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .22);
    transition: opacity .2s ease, transform .2s ease;
}

.school-laws-float.is-closed {
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px);
}

.school-laws-float-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 44px 14px 17px;
    color: #fff;
    background: linear-gradient(135deg, #073b68, #0b5f9d);
    font-size: 16px;
    font-weight: 750;
}

.school-laws-float-close {
    position: absolute;
    top: 8px;
    right: 9px;
    width: 30px;
    height: 30px;
    padding: 0;
    color: rgba(255,255,255,.9);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 23px;
    line-height: 28px;
    cursor: pointer;
}

.school-laws-float-close:hover,
.school-laws-float-close:focus {
    color: #fff;
    background: rgba(255,255,255,.14);
    outline: none;
}

.school-laws-float-content {
    position: relative;
    max-height: 240px;
    overflow: hidden;
    padding: 5px 17px;
}

/* Chạy danh sách theo chiều dọc */
.school-laws-float-content > * {
    animation: schoolLawsTicker 22s linear infinite;
}

.school-laws-float:hover .school-laws-float-content > *,
.school-laws-float:focus-within .school-laws-float-content > * {
    animation-play-state: paused;
}

.school-laws-float-content ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.school-laws-float-content li {
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.school-laws-float-content a {
    color: #1f2937;
    font-weight: 650;
    line-height: 1.45;
}

.school-laws-float-content a:hover,
.school-laws-float-content a:focus {
    color: #0b5f9d;
    text-decoration: none;
}

.school-laws-float-more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 17px;
    color: #0b4f8a;
    background: #f5f8fc;
    border-top: 1px solid #dce5ef;
    font-size: 13px;
    font-weight: 700;
}

.school-laws-float-more:hover,
.school-laws-float-more:focus {
    color: #073b68;
    text-decoration: none;
}

@keyframes schoolLawsTicker {
    0%,
    14% {
        transform: translateY(0);
    }

    86%,
    100% {
        transform: translateY(-45%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .school-laws-float-content > * {
        animation: none;
    }

    .school-laws-float-content {
        overflow-y: auto;
    }
}

@media (max-width: 767px) {
    .school-laws-float {
        display: none;
    }
}

/* ==========================================================
   SCHOOL HOME DESKTOP 8 / 4
   ========================================================== */

.school-home-columns {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 26px;
    align-items: start;
}

.school-home-main,
.school-home-sidebar {
    min-width: 0;
    display: grid;
    gap: 26px;
}

.school-home-sidebar-section {
    padding: 22px;
}

.school-home-sidebar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 2px solid #e3edf6;
}

.school-home-sidebar-head > i {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    color: #fff;
    background: #0b4f8a;
    border-radius: 9px;
}

.school-home-sidebar-head h2 {
    margin: 0;
    color: #073b68;
    font-size: 19px;
    font-weight: 750;
}

.school-home-sidebar-description {
    margin: -2px 0 15px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.55;
}

.school-sidebar-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.school-sidebar-links li {
    border-bottom: 1px solid #e5edf5;
}

.school-sidebar-links li:last-child {
    border-bottom: 0;
}

.school-sidebar-links a {
    position: relative;
    display: block;
    padding: 12px 4px 12px 17px;
    color: #334155;
    font-weight: 650;
}

.school-sidebar-links a::before {
    position: absolute;
    top: 18px;
    left: 2px;
    width: 5px;
    height: 5px;
    content: "";
    background: #0b5f9d;
    border-radius: 50%;
}

.school-sidebar-links a:hover {
    color: #0b4f8a;
    text-decoration: none;
}

.school-sidebar-more {
    display: inline-flex;
    margin-top: 15px;
    color: #0b4f8a;
    font-size: 13px;
    font-weight: 700;
}

.school-sidebar-more:hover {
    color: #073b68;
    text-decoration: none;
}

.school-sidebar-quicklinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.school-sidebar-quicklinks a {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    padding: 12px 8px;
    color: #334155;
    background: #f5f8fc;
    border: 1px solid #dce5ef;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    text-align: center;
}

.school-sidebar-quicklinks i {
    color: #0b4f8a;
    font-size: 20px;
}

.school-sidebar-quicklinks a:hover {
    color: #073b68;
    background: #eef5fb;
    border-color: #bfd5e8;
    text-decoration: none;
}

/* Ba cong khai trong cot 8 */
.school-home-card-grid-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* LAWS block compact inside sidebar */
.school-home-sidebar .panel {
    margin-bottom: 0;
    border-color: #dce5ef;
    box-shadow: none;
}

.school-home-sidebar .panel-heading {
    padding: 10px 12px;
}

.school-home-sidebar .panel-body {
    padding: 12px;
}

@media (max-width: 991px) {
    .school-home-columns {
        grid-template-columns: 1fr;
    }

    .school-home-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .school-home-sidebar > :last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .school-home-columns,
    .school-home-main,
    .school-home-sidebar {
        gap: 18px;
    }

    .school-home-sidebar {
        grid-template-columns: 1fr;
    }

    .school-home-sidebar > :last-child {
        grid-column: auto;
    }

    .school-home-card-grid-main,
    .school-sidebar-quicklinks {
        grid-template-columns: 1fr;
    }
}

/* Sticky right sidebar on desktop */
@media (min-width: 992px) {
    .school-home-sidebar {
        position: sticky;
        top: 20px;
        align-self: start;
    }
}

/* ==========================================================
   SCHOOL V2 OFFICIAL FOOTER
   ========================================================== */

.school-footer {
    position: relative;
    margin-top: 38px;
    color: rgba(255,255,255,.78);
    background: linear-gradient(135deg,#073b68,#0b4f8a 60%,#0c5c98);
}

.school-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(90deg,#f59e0b,#fbbf24,#60a5fa);
}

.school-footer-main {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1.1fr .8fr;
    gap: 40px;
    padding: 46px 0 40px;
}

.school-footer-unit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.school-footer-unit-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 56px;
    color: #0b4f8a;
    background: #fff;
    border-radius: 14px;
    font-size: 25px;
}

.school-footer-kicker {
    margin-bottom: 5px;
    color: #bfdbfe;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.school-footer-unit-name {
    color: #fff;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
}

.school-footer-description {
    max-width: 340px;
    margin: 11px 0 0;
    line-height: 1.7;
}

.school-footer-title {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
}

.school-footer-title::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 38px;
    height: 2px;
    content: "";
    background: #60a5fa;
}

.school-footer-info,
.school-footer-links {
    padding: 0;
    margin: 0;
    list-style: none;
}

.school-footer-info {
    display: grid;
    gap: 14px;
}

.school-footer-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.school-footer-info i {
    width: 18px;
    margin-top: 3px;
    color: #93c5fd;
    text-align: center;
}

.school-footer-info strong,
.school-footer-info span {
    display: block;
}

.school-footer-info strong {
    margin-bottom: 2px;
    color: rgba(255,255,255,.92);
    font-size: 12px;
}

.school-footer-info span {
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.school-footer-responsibility {
    display: grid;
    gap: 12px;
}

.school-footer-responsibility > div {
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.school-footer-responsibility > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.school-footer-responsibility span,
.school-footer-responsibility strong {
    display: block;
}

.school-footer-responsibility span {
    margin-bottom: 3px;
    color: rgba(255,255,255,.58);
    font-size: 11px;
}

.school-footer-responsibility strong {
    color: rgba(255,255,255,.9);
    font-size: 13px;
    line-height: 1.5;
}

.school-footer-links {
    display: grid;
    gap: 9px;
}

.school-footer-links a {
    color: rgba(255,255,255,.74);
    font-size: 13px;
}

.school-footer-links a:hover {
    color: #fff;
    text-decoration: none;
}

.school-footer-bottom {
    background: rgba(2,23,43,.27);
    border-top: 1px solid rgba(255,255,255,.1);
}

.school-footer-bottom-grid {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.school-footer-bottom-grid strong,
.school-footer-bottom-grid span {
    display: block;
}

.school-footer-bottom-grid strong {
    color: rgba(255,255,255,.88);
    font-size: 13px;
}

.school-footer-bottom-grid span {
    margin-top: 3px;
    color: rgba(255,255,255,.53);
    font-size: 11px;
}

.school-footer-bottom-right {
    color: rgba(255,255,255,.55);
    font-size: 11px;
    text-align: right;
}

@media (max-width: 1199px) {
    .school-footer-main {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 767px) {
    .school-footer-main {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 38px 0 30px;
    }

    .school-footer-bottom-grid {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .school-footer-bottom-right {
        text-align: left;
    }
}

/* Home library */
.school-library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.school-library-item {
    overflow: hidden;
    color: #334155;
    background: #f5f8fc;
    border: 1px solid #dce5ef;
    border-radius: 12px;
}

.school-library-item:hover {
    color: #0b4f8a;
    border-color: #bdd4e7;
    text-decoration: none;
}

.school-library-placeholder {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #1672ad, #073b68);
    font-size: 36px;
}

.school-library-item strong {
    display: block;
    padding: 14px;
    font-size: 14px;
}

@media (max-width: 767px) {
    .school-library-grid {
        grid-template-columns: 1fr;
    }
}

/* Compact official footer */
.school-footer {
    margin-top: 28px;
}

.school-footer-main {
    gap: 32px;
    padding-top: 32px;
    padding-bottom: 26px;
}

.school-footer-unit-icon {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 22px;
}

.school-footer-unit-name {
    font-size: 18px;
}

.school-footer-description {
    margin-top: 7px;
    line-height: 1.55;
}

.school-footer-title {
    margin-bottom: 13px;
    padding-bottom: 8px;
}

.school-footer-info {
    gap: 10px;
}

.school-footer-responsibility {
    gap: 8px;
}

.school-footer-responsibility > div {
    padding-bottom: 8px;
}

.school-footer-links {
    gap: 7px;
}

.school-footer-bottom-grid {
    min-height: 54px;
}

@media (max-width: 767px) {
    .school-footer-main {
        gap: 24px;
        padding-top: 28px;
        padding-bottom: 24px;
    }
}

/* ==========================================================
   SCHOOL FOOTER - COMPACT FINAL
   ========================================================== */

.school-footer {
    margin-top: 26px;
}

/* Thu gọn vùng 4 cột */
.school-footer-main {
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 24px;
}

/* Logo nhỏ hơn */
.school-footer-unit-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    font-size: 21px;
    border-radius: 11px;
}

.school-footer-unit {
    gap: 12px;
}

.school-footer-kicker {
    margin-bottom: 3px;
    font-size: 10px;
}

.school-footer-unit-name {
    font-size: 17px;
    line-height: 1.25;
}

.school-footer-description {
    margin-top: 7px;
    line-height: 1.5;
    font-size: 12px;
}

/* Tiêu đề các cột gọn lại */
.school-footer-title {
    margin-bottom: 12px;
    padding-bottom: 7px;
    font-size: 14px;
}

/* Liên hệ */
.school-footer-info {
    gap: 9px;
}

.school-footer-info strong {
    font-size: 11px;
}

.school-footer-info span {
    font-size: 12px;
}

/* Trách nhiệm nội dung */
.school-footer-responsibility {
    gap: 7px;
}

.school-footer-responsibility > div {
    padding-bottom: 7px;
}

.school-footer-responsibility span {
    margin-bottom: 2px;
    font-size: 10px;
}

.school-footer-responsibility strong {
    font-size: 12px;
}

/* Danh sách liên kết */
.school-footer-links {
    gap: 6px;
}

.school-footer-links a {
    font-size: 12px;
}

/* Thanh copyright */
.school-footer-bottom-grid {
    min-height: 48px;
}

.school-footer-bottom-grid strong {
    font-size: 12px;
}

.school-footer-bottom-grid span {
    margin-top: 2px;
    font-size: 10px;
}

.school-footer-bottom-right {
    font-size: 10px;
}

/* Tablet */
@media (max-width: 1199px) {
    .school-footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 32px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .school-footer {
        margin-top: 20px;
    }

    .school-footer-main {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-top: 26px;
        padding-bottom: 22px;
    }

    .school-footer-bottom-grid {
        min-height: auto;
        padding: 14px 0;
    }
}

/* School Muine branding banner */
.school-brand-banner {
    width: 100%;
    height: clamp(260px, 27vw, 380px);
    overflow: hidden;
    background: #dceefa;
}

.school-brand-banner-link {
    width: 100%;
    height: 100%;
    display: block;
    line-height: 0;
}

.school-brand-banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 44%;
}

@media (max-width: 991px) {
    .school-brand-banner {
        height: 250px;
    }

    .school-brand-banner-image {
        object-position: center center;
    }
}

@media (max-width: 767px) {
    .school-brand-banner {
        height: 190px;
    }

    .school-brand-banner-image {
        object-position: 48% center;
    }
}

@media (max-width: 479px) {
    .school-brand-banner {
        height: 150px;
    }
}

.school-footer-unit-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
}

.school-footer-unit-logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 8px;
}

/* Banner final: show complete artwork */
.school-brand-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #dceefa;
}

.school-brand-banner-link {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.school-brand-banner-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
}

/* Keep banner from becoming too tall on very wide desktops */
@media (min-width: 1600px) {
    .school-brand-banner-image {
        max-width: 1536px;
    }

    .school-brand-banner {
        background: #bfe4fa;
    }
}

/* Mobile: still preserve the complete banner */
@media (max-width: 767px) {
    .school-brand-banner {
        height: auto;
    }

    .school-brand-banner-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

.school-footer-unit-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    padding: 3px;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
}

.school-footer-unit-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Banner balanced final size */
.school-brand-banner {
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #bfe3f7;
    text-align: center;
}

.school-brand-banner-link {
    display: block;
    width: 100%;
    line-height: 0;
}

.school-brand-banner-image {
    display: block;
    width: min(100%, 1380px);
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 991px) {
    .school-brand-banner-image {
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .school-brand-banner-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ==========================================================
   OFFICIAL SCHOOL LOGO ON BANNER
   ========================================================== */

.school-brand-banner {
    position: relative;
}

.school-brand-banner-link {
    position: relative;
}

.school-brand-official-logo {
    position: absolute;
    top: 24px;
    left: max(24px, calc((100% - 1380px) / 2 + 24px));
    z-index: 5;

    width: 118px;
    height: 118px;

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

    padding: 7px;
    overflow: hidden;

    background: rgba(255,255,255,.96);
    border: 3px solid rgba(255,255,255,.95);
    border-radius: 50%;

    box-shadow:
        0 8px 24px rgba(7,59,104,.28),
        0 0 0 2px rgba(11,79,138,.15);
}

.school-brand-official-logo img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: contain;
    object-position: center;

    border-radius: 50%;
}

/* Tablet */
@media (max-width: 991px) {
    .school-brand-official-logo {
        top: 16px;
        left: 16px;

        width: 92px;
        height: 92px;

        padding: 5px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .school-brand-official-logo {
        top: 10px;
        left: 10px;

        width: 68px;
        height: 68px;

        padding: 4px;
        border-width: 2px;
    }
}

@media (max-width: 479px) {
    .school-brand-official-logo {
        width: 56px;
        height: 56px;
    }
}

/* ==========================================================
   OFFICIAL LOGO - FORCE VISIBLE
   ========================================================== */

.school-brand-banner {
    position: relative !important;
}

.school-brand-banner-link {
    position: relative !important;
    display: block !important;
}

.school-brand-banner-image {
    position: relative;
    z-index: 1;
}

.school-brand-official-logo {
    position: absolute !important;
    top: 24px !important;
    left: 24px !important;
    z-index: 50 !important;

    width: 132px !important;
    height: 132px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 7px;

    background: #fff;
    border: 3px solid #fff;
    border-radius: 50%;

    box-shadow: 0 8px 28px rgba(0, 50, 90, .35);
}

.school-brand-official-logo img {
    position: relative;
    z-index: 51;

    display: block !important;
    width: 100% !important;
    height: 100% !important;

    object-fit: contain;
    border-radius: 50%;
}

/* Tablet */
@media (max-width: 991px) {
    .school-brand-official-logo {
        top: 14px !important;
        left: 14px !important;

        width: 96px !important;
        height: 96px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .school-brand-official-logo {
        top: 8px !important;
        left: 8px !important;

        width: 68px !important;
        height: 68px !important;

        padding: 3px;
        border-width: 2px;
    }
}

/* ==========================================================
   HQC BANNER FINAL
   ========================================================== */

.school-brand-banner {
    position: relative !important;
    width: 100%;
    height: auto !important;
    overflow: hidden;
    background: #c9eafb;
    text-align: center;
}

.school-brand-banner-link {
    position: relative !important;
    display: block !important;
    width: 100%;
    height: auto !important;
    line-height: 0;
}

.school-brand-banner-image {
    position: relative;
    z-index: 1;
    display: block;
    width: min(100%, 1380px) !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto;
    object-fit: contain !important;
    object-position: center center !important;
}

/*
 * Logo thật Hồ Quang Cảnh.
 * Nhỏ hơn phiên bản trước để không cạnh tranh với tiêu đề banner.
 */
.school-brand-official-logo {
    position: absolute !important;
    top: 16px !important;
    left: max(16px, calc((100% - 1380px) / 2 + 16px)) !important;
    z-index: 20 !important;

    width: 82px !important;
    height: 82px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    padding: 4px;

    background: rgba(255,255,255,.94);
    border: 2px solid rgba(255,255,255,.96);
    border-radius: 50%;

    box-shadow: 0 5px 18px rgba(7,59,104,.25);
}

.school-brand-official-logo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;

    object-fit: contain !important;
    object-position: center;
    border-radius: 50%;
}

/* Tablet */
@media (max-width: 991px) {
    .school-brand-banner-image {
        width: 100% !important;
    }

    .school-brand-official-logo {
        top: 10px !important;
        left: 10px !important;
        width: 66px !important;
        height: 66px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .school-brand-official-logo {
        top: 6px !important;
        left: 6px !important;
        width: 48px !important;
        height: 48px !important;
        padding: 2px;
    }
}

/* HQC logo final prominence */
.school-brand-official-logo {
    top: 18px !important;
    left: max(18px, calc((100% - 1380px) / 2 + 18px)) !important;

    width: 128px !important;
    height: 128px !important;

    padding: 6px !important;
    z-index: 50 !important;

    background: rgba(255,255,255,.97) !important;
    border: 3px solid #fff !important;
    border-radius: 50% !important;

    box-shadow: 0 7px 24px rgba(7,59,104,.32) !important;
}

.school-brand-official-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Tablet */
@media (max-width: 991px) {
    .school-brand-official-logo {
        width: 92px !important;
        height: 92px !important;
        top: 12px !important;
        left: 12px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .school-brand-official-logo {
        width: 66px !important;
        height: 66px !important;
        top: 7px !important;
        left: 7px !important;
        padding: 3px !important;
        border-width: 2px !important;
    }
}
