.official-hero {
    position: relative;
    width: min(1180px, 100%);
    min-height: 470px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--navy-950);
    border-radius: 0;
    border-bottom: 6px solid var(--gold-500);
    box-shadow: none;
}

.official-hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1.15s ease, visibility 1.15s ease;
}

.official-hero-slide.active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.official-hero-copy {
    grid-area: 1 / 1;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(620px, 70%);
    padding: 55px 58px;
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(5, 29, 60, .98) 0%, rgba(7, 42, 82, .92) 68%, rgba(7, 42, 82, 0) 100%);
}

.official-hero-slide--principal .official-hero-copy {
    width: min(600px, 59%);
    background:
        linear-gradient(90deg, rgba(5, 29, 60, .98) 0%, rgba(7, 42, 82, .89) 70%, rgba(7, 42, 82, 0) 100%);
}

.official-hero-slide--principal .official-hero-copy h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
}

.principal-identity {
    display: grid;
    width: fit-content;
    margin-top: 25px;
    padding-left: 15px;
    border-left: 4px solid var(--gold-500);
}

.principal-identity strong {
    color: var(--white);
    font-size: 1.05rem;
    line-height: 1.35;
}

.principal-identity span {
    margin-top: 2px;
    color: var(--gold-500);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.official-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5.4vw, 4.9rem);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.05em;
}

.official-hero-copy > p:not(.portal-kicker) {
    max-width: 570px;
    margin: 20px 0 0;
    color: #d2deeb;
    font-size: .93rem;
    line-height: 1.75;
}

.official-hero-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 29px;
    gap: 9px;
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 800;
    text-decoration: none;
}

.button-primary {
    color: var(--navy-950);
    background: var(--gold-500);
}

.button-secondary {
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .38);
}

.official-hero-image {
    grid-area: 1 / 1;
    position: relative;
    min-width: 0;
    margin: 0;
    background: #dbe3ec;
}

.official-hero-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(7, 30, 65, .72), rgba(7, 30, 65, .05) 75%);
    content: "";
    pointer-events: none;
}

.official-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.official-hero-slide--principal .official-hero-image img {
    object-position: center;
}

.official-hero-controls {
    position: absolute;
    left: 50%;
    bottom: 17px;
    z-index: 4;
    display: flex;
    gap: 8px;
    padding: 7px 9px;
    background: rgba(5, 29, 60, .58);
    border-radius: 999px;
    transform: translateX(-50%);
    backdrop-filter: blur(6px);
}

.official-hero-controls button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, .52);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width .25s ease, background-color .25s ease;
}

.official-hero-controls button.active {
    width: 27px;
    background: var(--gold-500);
}

.official-hero-controls button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(1180px, calc(100% - 40px));
    margin: 34px auto 0;
    position: relative;
    z-index: 3;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: var(--shadow-sm);
}

.quick-links a {
    position: relative;
    display: grid;
    min-height: 104px;
    padding: 21px 24px;
    text-decoration: none;
    border-right: 1px solid var(--line);
}

.quick-links a:last-child {
    border-right: 0;
}

.quick-links a::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--navy-800);
    content: "";
    transform: scaleX(0);
    transition: transform .2s ease;
}

.quick-links a:hover::after,
.quick-links a:focus-visible::after {
    transform: scaleX(1);
}

.quick-links span {
    color: var(--red-500);
    font-size: .6rem;
    font-weight: 800;
}

.quick-links strong {
    align-self: end;
    margin-top: 6px;
    color: var(--navy-900);
    font-size: .88rem;
}

.quick-links small {
    margin-top: 3px;
    color: var(--muted);
    font-size: .62rem;
}

.overview-section,
.teacher-showcase {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.overview-section {
    padding-block: 82px 68px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
    gap: 12px;
}

.stat-grid article {
    position: relative;
    min-height: 145px;
    padding: 21px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow-sm);
}

.stat-grid article::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--navy-800);
    content: "";
}

.stat-grid article:nth-child(2)::before {
    background: var(--gold-500);
}

.stat-grid article:nth-child(3)::before {
    background: var(--red-500);
}

.stat-grid article:nth-child(4)::before {
    background: var(--blue-600);
}

.stat-grid article:nth-child(5)::before {
    background: #16806b;
}

.stat-grid article span,
.stat-grid article strong,
.stat-grid article small {
    display: block;
}

.student-public-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -2px 0 18px;
    padding: 16px 20px;
    color: #fff;
    background: var(--navy-800);
    border-left: 5px solid var(--gold-500);
    gap: 24px;
}

.student-public-summary > div span,
.student-public-summary > div strong {
    display: block;
}

.student-public-summary > div span {
    color: #bfcfe0;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.student-public-summary > div strong {
    margin-top: 4px;
    font-size: .86rem;
}

.student-public-summary dl {
    display: flex;
    margin: 0;
    gap: 28px;
}

.student-public-summary dl div {
    min-width: 62px;
}

.student-public-summary dt {
    color: #bfcfe0;
    font-size: .53rem;
}

.student-public-summary dd {
    margin: 3px 0 0;
    color: var(--gold-500);
    font-size: .85rem;
    font-weight: 800;
}

.student-dashboard {
    margin: 0 0 18px;
    padding: 24px;
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy-800);
    border-radius: 7px;
}

.student-dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 20px;
}

.student-dashboard-heading h3 {
    margin: 0;
    color: var(--navy-900);
    font-size: 1.15rem;
}

.student-semester-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.student-semester-tabs button {
    min-height: 34px;
    padding: 7px 11px;
    color: var(--navy-800);
    cursor: pointer;
    background: #e7edf4;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    font-size: .59rem;
    font-weight: 700;
}

.student-semester-tabs button:hover,
.student-semester-tabs button:focus-visible {
    border-color: #91a8c1;
    outline: none;
}

.student-semester-tabs button.active {
    color: #071e3c;
    background: var(--gold-500);
}

.student-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 12px;
    gap: 8px;
}

.student-dashboard-kpis article {
    padding: 13px 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue-600);
    border-radius: 4px;
}

.student-dashboard-kpis article:nth-child(2) {
    border-left-color: var(--navy-800);
}

.student-dashboard-kpis article:nth-child(3) {
    border-left-color: var(--red-500);
}

.student-dashboard-kpis article:nth-child(4) {
    border-left-color: var(--gold-500);
}

.student-dashboard-kpis span,
.student-dashboard-kpis strong {
    display: block;
}

.student-dashboard-kpis span {
    color: var(--muted);
    font-size: .54rem;
}

.student-dashboard-kpis strong {
    margin-top: 3px;
    color: var(--navy-900);
    font-size: 1.05rem;
}

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

.student-donut-card {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.student-donut-card.wide {
    grid-column: 1 / -1;
}

.student-donut-card-heading h4 {
    margin: 0;
    color: var(--navy-900);
    font-size: .82rem;
}

.student-donut-card-heading p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: .53rem;
}

.student-donut-layout {
    display: grid;
    grid-template-columns: minmax(125px, .7fr) minmax(150px, 1.3fr);
    align-items: center;
    margin-top: 13px;
    gap: 14px;
}

.student-donut-card.wide .student-donut-layout {
    grid-template-columns: minmax(150px, .45fr) minmax(280px, 1.55fr);
}

.student-donut-visual {
    position: relative;
    width: min(180px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
}

.student-donut-visual svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
}

.student-donut-track,
.student-donut-segment {
    fill: none;
    stroke-width: 7;
}

.student-donut-track {
    stroke: #e8edf3;
}

.student-donut-segment {
    cursor: pointer;
    animation: student-donut-draw .8s ease-out both;
    transition: stroke-width .18s ease, opacity .18s ease;
}

.student-donut-segment:hover {
    stroke-width: 8.5;
}

.student-donut-centre {
    position: absolute;
    inset: 27%;
    display: grid;
    align-content: center;
    min-width: 0;
    text-align: center;
}

.student-donut-centre strong,
.student-donut-centre span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.student-donut-centre strong {
    color: var(--navy-900);
    font-size: 1.1rem;
    line-height: 1;
}

.student-donut-centre span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .45rem;
    white-space: nowrap;
}

.student-donut-legend {
    display: grid;
    max-height: 180px;
    padding-right: 3px;
    overflow-y: auto;
    gap: 3px;
    scrollbar-color: #aab8c7 transparent;
    scrollbar-width: thin;
}

.student-donut-card.wide .student-donut-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-legend-item {
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 6px;
    color: #314861;
    cursor: pointer;
    background: #f7f9fb;
    border: 1px solid transparent;
    border-radius: 3px;
    font: inherit;
    text-align: left;
    gap: 7px;
}

.student-legend-item:hover,
.student-legend-item:focus-visible {
    background: #fff;
    border-color: #b9c7d6;
    outline: none;
}

.student-legend-item i {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.student-legend-item span {
    overflow: hidden;
    font-size: .51rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-legend-item strong {
    color: var(--navy-900);
    font-size: .52rem;
}

.student-legend-item.linked {
    position: relative;
    padding-right: 30px;
    border-color: #d9e2ec;
}

.student-legend-item.linked::after {
    position: absolute;
    right: 10px;
    color: var(--blue-600);
    content: "›";
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1;
}

.student-legend-item.linked:hover,
.student-legend-item.linked:focus-visible {
    border-color: var(--blue-600);
    box-shadow: 0 5px 14px rgba(20, 79, 151, .1);
    transform: translateY(-1px);
}

@keyframes student-donut-draw {
    from {
        stroke-dasharray: 0 100;
        opacity: .25;
    }
}

.stat-grid article span {
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
}

.stat-grid article strong {
    margin-top: 9px;
    color: var(--navy-900);
    font-size: 2.1rem;
    line-height: 1;
}

.stat-grid article small {
    margin-top: 10px;
    color: #7a899c;
    font-size: .59rem;
    line-height: 1.45;
}

.chart-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 14px;
}

.data-panel {
    min-width: 0;
    padding: 25px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: var(--shadow-sm);
}

.data-panel-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 23px;
    gap: 18px;
}

.data-panel-heading h3 {
    margin: 0;
    font-size: 1.1rem;
}

.data-panel-heading > span {
    padding: 6px 9px;
    color: var(--navy-800);
    background: #e9eff7;
    border-radius: 4px;
    font-size: .61rem;
    font-weight: 800;
}

.panel-link {
    color: var(--blue-600);
    font-size: .64rem;
    font-weight: 700;
    text-decoration: none;
}

.gallery-slider-stage {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #e8edf3;
    border-radius: 5px;
}

.gallery-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
}

.gallery-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slide figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding: 34px 16px 13px;
    color: #fff;
    background: linear-gradient(transparent, rgba(5, 29, 60, .92));
    gap: 16px;
}

.gallery-slide figcaption strong {
    overflow: hidden;
    font-size: .72rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-slide figcaption span {
    flex: 0 0 auto;
    color: #e2eaf2;
    font-size: .58rem;
}

.gallery-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
}

.gallery-slider-controls > button {
    display: grid;
    width: 29px;
    height: 29px;
    padding: 0;
    color: #fff;
    cursor: pointer;
    background: var(--navy-800);
    border: 0;
    border-radius: 3px;
    font: inherit;
    font-size: 1rem;
    place-items: center;
}

.gallery-slider-dots {
    display: flex;
    gap: 6px;
}

.gallery-slider-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    cursor: pointer;
    background: #bdc9d7;
    border: 0;
    border-radius: 50%;
}

.gallery-slider-dots button.active {
    background: var(--red-500);
}

.gallery-slider-empty {
    display: grid;
    height: 250px;
    color: var(--muted);
    background: #f4f7fa;
    border: 1px dashed #bdc9d7;
    border-radius: 5px;
    place-content: center;
    text-align: center;
}

.gallery-slider-empty strong {
    color: var(--navy-900);
    font-size: .82rem;
}

.gallery-slider-empty span {
    margin-top: 6px;
    font-size: .64rem;
}

.activity-pie-layout {
    display: grid;
    grid-template-columns: minmax(190px, .9fr) minmax(150px, 1.1fr);
    align-items: center;
    min-height: 270px;
    gap: 22px;
}

.activity-pie {
    display: grid;
    width: min(220px, 100%);
    aspect-ratio: 1;
    margin-inline: auto;
    background: conic-gradient(var(--pie-gradient));
    border-radius: 50%;
    place-items: center;
}

.activity-pie-centre {
    display: grid;
    width: 55%;
    aspect-ratio: 1;
    padding: 10px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    place-content: center;
}

.activity-pie-centre strong {
    color: var(--navy-900);
    font-size: 1.55rem;
    line-height: 1;
}

.activity-pie-centre span {
    margin-top: 6px;
    color: var(--muted);
    font-size: .55rem;
    line-height: 1.3;
}

.activity-pie-legend {
    display: grid;
    gap: 5px;
}

.activity-pie-legend button {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    padding: 8px 9px;
    color: var(--ink);
    cursor: pointer;
    background: #f6f8fb;
    border: 1px solid transparent;
    border-radius: 4px;
    font: inherit;
    text-align: left;
    gap: 8px;
}

.activity-pie-legend button:hover,
.activity-pie-legend button:focus-visible {
    background: #fff;
    border-color: #b9c7d6;
    outline: none;
}

.activity-pie-legend i {
    width: 9px;
    height: 9px;
    background: var(--legend-color);
    border-radius: 2px;
}

.activity-pie-legend span,
.activity-pie-legend strong {
    font-size: .62rem;
}

@media (max-width: 580px) {
    .gallery-slider-stage,
    .gallery-slider-empty {
        height: 220px;
    }

    .activity-pie-layout {
        grid-template-columns: 1fr;
    }

    .activity-pie {
        width: 190px;
    }
}

.bar-chart {
    display: grid;
    gap: 13px;
}

.bar-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 10px;
}

.bar-row > span,
.bar-row > strong {
    font-size: .63rem;
}

.bar-row > span {
    color: var(--muted);
}

.bar-row > strong {
    text-align: right;
}

.bar-row > div {
    height: 8px;
    overflow: hidden;
    background: #e9eef5;
    border-radius: 99px;
}

.bar-row i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--navy-800), var(--blue-600));
    border-radius: inherit;
}

.column-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    height: 170px;
    gap: 17px;
}

.column-item {
    display: grid;
    grid-template-rows: 22px minmax(0, 1fr) 20px;
    text-align: center;
}

.column-item strong,
.column-item span {
    font-size: .62rem;
}

.column-item div {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-inline: 5px;
    border-bottom: 1px solid var(--line);
}

.column-item i {
    display: block;
    width: min(42px, 100%);
    min-height: 5px;
    background: var(--navy-800);
    border-radius: 4px 4px 0 0;
}

.column-item:nth-child(2) i {
    background: var(--blue-600);
}

.column-item:nth-child(3) i {
    background: var(--gold-500);
}

.column-item:nth-child(4) i {
    background: var(--red-500);
}

.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--blue-600);
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
    gap: 5px;
}

.facebook-section {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(500px, 1.22fr);
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 70px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.facebook-intro {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
    border-left: 5px solid var(--blue-600);
}

.facebook-mark {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 21px;
    color: #fff;
    background: #1877f2;
    border-radius: 5px;
    font-family: "Poppins", sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
    place-items: end center;
}

.facebook-intro h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.facebook-intro > p:not(.section-label) {
    margin: 16px 0 23px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.7;
}

.facebook-intro .button-primary {
    background: var(--gold-500);
}

.facebook-intro small {
    margin-top: 13px;
    color: #8491a1;
    font-size: .55rem;
    line-height: 1.5;
}

.facebook-feed {
    display: grid;
    min-width: 0;
    min-height: 590px;
    padding: 0;
    overflow: hidden;
    background: #fff;
    place-items: start center;
}

.facebook-feed iframe {
    display: block;
    width: 100%;
    max-width: 500px;
}

.location-section {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 78px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.location-map {
    min-height: 430px;
    background: #fff;
}

.location-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 430px;
}

.location-copy {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 36px;
    border-left: 5px solid var(--gold-500);
}

.location-copy h2 {
    margin: 0;
    color: var(--navy-900);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.location-copy address {
    margin-top: 18px;
    color: var(--muted);
    font-size: .75rem;
    font-style: normal;
    line-height: 1.75;
}

.location-contact {
    display: grid;
    margin-block: 17px 23px;
    gap: 5px;
}

.location-contact a {
    color: var(--blue-600);
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
}

.teacher-showcase {
    padding-block: 0 75px;
    overflow: hidden;
    user-select: none;
}

.teacher-showcase--corporate {
    position: relative;
    margin-top: 30px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 6px solid var(--navy-900);
    border-bottom: 5px solid var(--gold-500);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(7, 30, 65, .09);
}

.teacher-corporate-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin: 0;
    padding: 21px 25px;
    gap: 25px;
    background: #f7f9fc;
    border-bottom: 1px solid var(--line);
}

.teacher-corporate-heading > div {
    padding-left: 15px;
    border-left: 4px solid var(--gold-500);
}

.teacher-corporate-heading h2 {
    margin: 4px 0 0;
    color: var(--navy-900);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.teacher-corporate-heading p:not(.section-label) {
    margin: 7px 0 0;
    color: #64758a;
    font-size: .69rem;
}

.teacher-showcase--corporate .teacher-ticker {
    margin: 17px;
    background: #f5f8fb;
    border: 1px solid var(--line);
    border-radius: 5px;
}

.teacher-showcase--corporate .teacher-ticker::before,
.teacher-showcase--corporate .teacher-ticker::after {
    display: none;
}

.teacher-showcase--corporate .teacher-ticker-track {
    padding: 14px;
}

.teacher-showcase--corporate .teacher-card {
    border-top: 3px solid var(--blue-600);
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(7, 30, 65, .06);
}

.teacher-showcase--corporate .teacher-card:nth-child(3n+2) {
    border-top-color: var(--gold-500);
}

.teacher-showcase--corporate .teacher-card:nth-child(3n+3) {
    border-top-color: var(--red-500);
}

.teacher-ticker {
    position: relative;
    overflow: hidden;
    border-block: 1px solid var(--line);
    outline: none;
}

.teacher-ticker::before,
.teacher-ticker::after {
    position: absolute;
    top: 0;
    z-index: 2;
    width: 65px;
    height: 100%;
    content: "";
    pointer-events: none;
}

.teacher-ticker::before {
    left: 0;
    background: linear-gradient(90deg, var(--wash), transparent);
}

.teacher-ticker::after {
    right: 0;
    background: linear-gradient(270deg, var(--wash), transparent);
}

.teacher-ticker-track {
    display: flex;
    width: max-content;
    padding-block: 17px;
    animation: teacher-scroll var(--teacher-duration, 150s) linear infinite;
}

.teacher-ticker:hover .teacher-ticker-track,
.teacher-ticker:focus-within .teacher-ticker-track {
    animation-play-state: paused;
}

.teacher-ticker-set {
    display: flex;
    flex: 0 0 auto;
    padding-right: 13px;
    gap: 13px;
}

.teacher-card {
    flex: 0 0 152px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 7px;
}

.teacher-photo {
    position: relative;
    height: 158px;
    overflow: hidden;
    background: #e1e8f0;
}

.teacher-photo::after {
    position: absolute;
    right: 7px;
    bottom: 7px;
    padding: 3px 5px;
    color: rgba(255, 255, 255, .92);
    background: rgba(7, 30, 65, .6);
    border-radius: 3px;
    content: "KiSTARP";
    font-size: .48rem;
    font-weight: 800;
    letter-spacing: .06em;
}

.teacher-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
}

.teacher-card-copy {
    min-height: 83px;
    padding: 11px;
}

.teacher-card h3 {
    margin: 0;
    font-size: .68rem;
    line-height: 1.4;
}

.teacher-card p {
    margin: 6px 0 0;
    color: var(--blue-600);
    font-size: .55rem;
    font-weight: 700;
}

.youtube-section {
    width: min(1180px, calc(100% - 40px));
    margin: 48px auto 0;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid #e31b23;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.youtube-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 24px;
}

.youtube-section-heading h2 {
    margin: 5px 0 0;
    color: var(--navy-900);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.youtube-section-heading p:not(.section-label) {
    max-width: 650px;
    margin: 8px 0 0;
    color: #60738a;
    font-size: .75rem;
    line-height: 1.65;
}

.youtube-channel-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 43px;
    padding: 9px 15px;
    gap: 8px;
    color: #fff;
    background: #d71920;
    border-radius: 5px;
    font-size: .7rem;
    font-weight: 800;
    text-decoration: none;
}

.youtube-channel-button span {
    font-size: .8rem;
}

.youtube-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, .75fr);
    gap: 18px;
}

.youtube-featured {
    min-width: 0;
}

.youtube-embed {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #071e3c;
    border-radius: 6px;
}

.youtube-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-featured h3 {
    margin: 12px 0 0;
    color: var(--navy-900);
    font-size: .92rem;
    line-height: 1.45;
}

.youtube-video-list {
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    gap: 10px;
}

.youtube-video-list > a {
    display: grid;
    grid-template-columns: minmax(150px, 45%) minmax(0, 1fr);
    align-items: center;
    padding: 8px;
    gap: 11px;
    color: var(--navy-900);
    background: #f5f8fb;
    border: 1px solid var(--line);
    border-radius: 5px;
    text-decoration: none;
}

.youtube-thumbnail {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #071e3c;
    border-radius: 4px;
}

.youtube-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    color: #fff;
    background: rgba(215, 25, 32, .92);
    border-radius: 50%;
    font-size: .62rem;
    font-style: normal;
    transform: translate(-50%, -50%);
}

.youtube-video-list strong {
    overflow: hidden;
    font-size: .68rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.youtube-public-empty {
    display: grid;
    min-height: 150px;
    place-content: center;
    padding: 25px;
    color: #5f7187;
    text-align: center;
    background: #f7f9fc;
    border: 1px dashed #bdcad8;
    border-radius: 6px;
}

.youtube-public-empty strong {
    color: var(--navy-900);
    font-size: .85rem;
}

.youtube-public-empty span {
    margin-top: 6px;
    font-size: .68rem;
}

.youtube-section + .teacher-showcase {
    margin-top: 62px;
}

@keyframes teacher-scroll {
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 980px) {
    .official-hero {
        grid-template-columns: 1fr;
    }

    .official-hero-image {
        min-height: 390px;
    }

    .quick-links,
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .quick-links a:nth-child(2) {
        border-right: 0;
    }

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

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

    .student-donut-card.wide .student-donut-legend {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facebook-section {
        grid-template-columns: 1fr;
    }

    .youtube-showcase {
        grid-template-columns: 1fr;
    }

    .youtube-video-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: auto;
    }

    .youtube-video-list > a {
        grid-template-columns: 1fr;
    }

    .location-section {
        grid-template-columns: 1fr;
    }

    .location-copy {
        border-top: 5px solid var(--gold-500);
        border-left: 0;
    }

    .facebook-feed {
        padding-block: 18px;
    }
}

@media (max-width: 580px) {
    .official-hero,
    .overview-section,
    .facebook-section,
    .location-section,
    .teacher-showcase,
    .youtube-section {
        width: min(100% - 28px, 1180px);
    }

    .youtube-section {
        padding: 20px;
    }

    .youtube-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .youtube-channel-button {
        width: 100%;
        justify-content: center;
    }

    .youtube-video-list {
        grid-template-columns: 1fr;
    }

    .youtube-video-list > a {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .teacher-showcase--corporate {
        margin-top: 18px;
    }

    .teacher-corporate-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .teacher-corporate-heading .text-link {
        width: 100%;
    }

    .teacher-showcase--corporate .teacher-ticker {
        margin: 12px;
    }

    .official-hero {
        margin-top: 15px;
    }

    .official-hero-copy {
        padding: 38px 26px;
    }

    .official-hero-slide--principal .official-hero-copy {
        width: 78%;
    }

    .official-hero-slide--principal .official-hero-copy h1 {
        font-size: clamp(2.35rem, 12vw, 3.25rem);
    }

    .official-hero-slide--principal .official-hero-image img {
        object-position: 64% center;
    }

    .principal-identity {
        margin-top: 19px;
    }

    .official-hero-image {
        min-height: 250px;
    }

    .quick-links {
        width: min(100% - 46px, 1080px);
        margin-top: -18px;
    }

    .quick-links a {
        min-height: 92px;
        padding: 17px;
    }

    .overview-section {
        padding-block: 60px 52px;
    }

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

    .stat-grid article {
        min-height: 135px;
        padding: 17px;
    }

    .student-public-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .student-public-summary dl {
        justify-content: space-between;
        gap: 12px;
    }

    .student-dashboard {
        padding: 17px;
    }

    .student-dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .student-semester-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-semester-tabs button {
        padding-inline: 5px;
    }

    .student-dashboard-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .student-donut-grid {
        grid-template-columns: 1fr;
    }

    .student-donut-card.wide {
        grid-column: auto;
    }

    .student-donut-layout,
    .student-donut-card.wide .student-donut-layout {
        grid-template-columns: minmax(115px, .75fr) minmax(130px, 1.25fr);
        gap: 9px;
    }

    .student-donut-card.wide .student-donut-legend {
        grid-template-columns: 1fr;
    }

    .student-donut-visual {
        width: min(145px, 100%);
    }

    .bar-row {
        grid-template-columns: 83px minmax(0, 1fr) 24px;
    }

    .teacher-card {
        flex-basis: 135px;
    }

    .facebook-intro {
        padding: 28px 24px;
    }

    .facebook-feed {
        min-height: 540px;
    }

    .facebook-feed iframe {
        height: 540px;
    }

    .location-map,
    .location-map iframe {
        min-height: 320px;
    }

    .location-copy {
        padding: 28px 24px;
    }

    .teacher-photo {
        height: 140px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .official-hero-slide {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .teacher-ticker {
        overflow-x: auto;
    }

    .teacher-ticker-track {
        animation: none;
    }

    .student-donut-segment {
        animation: none;
    }
}

/* Dashboard editorial premium */
.premium-metrics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 18px;
    gap: 12px;
}

.premium-metric {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    min-height: 158px;
    padding: 22px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 8px 26px rgba(8, 42, 77, .06);
    gap: 13px;
}

.premium-metric.featured {
    grid-column: span 2;
    color: #fff;
    background:
        radial-gradient(circle at 90% 15%, rgba(255, 209, 0, .22), transparent 34%),
        linear-gradient(135deg, #0b3765, #174f97);
    border-color: transparent;
}

.metric-icon {
    display: grid;
    width: 52px;
    height: 52px;
    color: var(--navy-800);
    background: #edf3f9;
    border-radius: 12px;
    font-size: .82rem;
    font-weight: 800;
    place-items: center;
}

.metric-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.premium-metric.featured .metric-icon {
    color: var(--navy-950);
    background: var(--gold-500);
}

.premium-metric div > span,
.premium-metric div > strong,
.premium-metric div > small {
    display: block;
}

.premium-metric div > span {
    color: var(--muted);
    font-size: .73rem;
    font-weight: 700;
}

.premium-metric div > strong {
    margin-top: 5px;
    color: var(--navy-900);
    font-size: 2rem;
    line-height: 1;
}

.premium-metric div > small {
    margin-top: 7px;
    color: #7a899c;
    font-size: .66rem;
    line-height: 1.4;
}

.premium-metric.featured div > span,
.premium-metric.featured div > small {
    color: #d7e5f2;
}

.premium-metric.featured div > strong {
    color: #fff;
    font-size: 2.65rem;
}

.student-dashboard {
    padding: 30px;
    background: #f5f8fc;
    border: 1px solid #d5e0eb;
    border-top: 5px solid var(--gold-500);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(8, 42, 77, .07);
}

.student-premium-overview {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    margin-bottom: 14px;
    gap: 14px;
}

.student-total-feature,
.student-gender-feature {
    min-width: 0;
    padding: 25px;
    border-radius: 10px;
}

.student-total-feature {
    color: #fff;
    background:
        radial-gradient(circle at 87% 18%, rgba(255, 209, 0, .25), transparent 33%),
        linear-gradient(145deg, #071e41, #123f8c);
}

.feature-label {
    color: #5f7188;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-total-feature .feature-label {
    color: #c8d9ea;
}

.student-total-feature > strong {
    display: block;
    margin-top: 12px;
    color: #fff;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    line-height: .9;
    letter-spacing: -.06em;
}

.student-total-feature > p {
    margin: 14px 0 0;
    color: #d3dfec;
}

.semester-mini-stats {
    display: flex;
    flex-wrap: wrap;
    margin-top: 22px;
    gap: 7px;
}

.semester-mini-stats span {
    padding: 7px 10px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 5px;
    font-size: .72rem;
    font-weight: 700;
}

.student-gender-feature {
    background: #fff;
    border: 1px solid var(--line);
}

.feature-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.feature-heading h4 {
    margin: 5px 0 0;
    color: var(--navy-900);
    font-size: 1.2rem;
}

.class-count {
    padding: 7px 10px;
    color: var(--muted);
    background: #eef3f8;
    border-radius: 5px;
    font-size: .7rem;
}

.class-count strong {
    color: var(--navy-900);
}

.gender-numbers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 31px;
    gap: 14px;
}

.gender-numbers > div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    padding: 14px;
    background: #f7f9fc;
    border-radius: 7px;
    gap: 9px;
}

.gender-numbers i {
    width: 9px;
    height: 9px;
    background: #174f97;
    border-radius: 50%;
}

.gender-numbers > div:nth-child(2) i {
    background: var(--gold-500);
}

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

.gender-numbers strong {
    color: var(--navy-900);
    font-size: 1.35rem;
}

.gender-numbers small {
    grid-column: 2 / -1;
    color: #718197;
    font-size: .68rem;
}

.gender-stacked-bar {
    display: flex;
    height: 14px;
    margin-top: 18px;
    overflow: hidden;
    background: #e8edf3;
    border-radius: 99px;
}

.gender-stacked-bar i {
    width: 0;
    height: 100%;
    background: #174f97;
    transition: width .8s cubic-bezier(.22, .8, .25, 1);
}

.gender-stacked-bar i:last-child {
    background: var(--gold-500);
}

.student-insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.student-insight-card {
    min-width: 0;
    min-height: 360px;
    padding: 23px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.insight-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 18px;
}

.insight-card-heading > div:first-child {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
}

.insight-icon {
    grid-row: span 2;
    display: grid;
    width: 34px;
    height: 34px;
    color: #fff;
    background: var(--navy-800);
    border-radius: 9px;
    font-size: .72rem;
    font-weight: 800;
    place-items: center;
}

.insight-card-heading h4 {
    margin: 0;
    color: var(--navy-900);
    font-size: 1.03rem;
}

.insight-card-heading p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .7rem;
}

.student-insight-card .student-donut-layout {
    min-height: 230px;
}

.student-insight-card .student-donut-visual {
    width: min(205px, 100%);
}

.student-insight-card .student-donut-legend {
    max-height: 225px;
}

.stream-card {
    grid-column: 1 / -1;
}

.stream-card .student-donut-layout {
    grid-template-columns: minmax(190px, .42fr) minmax(0, 1.58fr);
    align-items: stretch;
    gap: 22px;
}

.stream-card .student-donut-visual {
    justify-self: center;
}

.stream-card .student-donut-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
    padding: 0;
    overflow: visible;
    gap: 12px;
}

.student-stream-option {
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    min-height: 218px;
    padding: 18px;
    color: var(--navy-900);
    cursor: pointer;
    background: #fff;
    border: 1px solid #cbd7e4;
    border-top: 5px solid var(--blue-600);
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(7, 30, 65, .07);
    font: inherit;
    text-align: left;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.student-stream-option[data-stream="sains-sosial"] {
    border-top-color: var(--gold-500);
}

.student-stream-option[data-stream="agama"] {
    border-top-color: var(--red-500);
}

.student-stream-option:hover,
.student-stream-option:focus-visible {
    border-color: var(--blue-600);
    outline: 3px solid rgba(23, 92, 166, .14);
    box-shadow: 0 13px 28px rgba(7, 30, 65, .13);
    transform: translateY(-4px);
}

.student-stream-icon {
    display: grid;
    width: 49px;
    height: 49px;
    color: #fff;
    background: var(--blue-600);
    border-radius: 10px;
    font-size: .82rem;
    font-weight: 800;
    place-items: center;
}

.student-stream-option[data-stream="sains-sosial"] .student-stream-icon {
    color: var(--navy-950);
    background: var(--gold-500);
}

.student-stream-option[data-stream="agama"] .student-stream-icon {
    background: var(--red-500);
}

.student-stream-click {
    position: absolute;
    top: 17px;
    right: 15px;
    padding: 5px 8px;
    color: #fff;
    background: var(--red-500);
    border-radius: 99px;
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.student-stream-name {
    margin-top: 15px;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1.25;
}

.student-stream-classes {
    margin-top: 5px;
    color: #60748c;
    font-size: .64rem;
    font-weight: 600;
}

.student-stream-count {
    margin-top: 13px;
    color: #60748c;
    font-size: .61rem;
}

.student-stream-count strong {
    color: var(--navy-900);
    font-size: 1.25rem;
}

.student-stream-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    color: var(--blue-600);
    border-top: 1px solid #dce4ed;
    font-size: .64rem;
    font-weight: 800;
}

.student-stream-cta b {
    display: grid;
    width: 25px;
    height: 25px;
    color: #fff;
    background: var(--blue-600);
    border-radius: 50%;
    font-size: .76rem;
    place-items: center;
    transition: transform .2s ease;
}

.student-stream-option:hover .student-stream-cta b,
.student-stream-option:focus-visible .student-stream-cta b {
    transform: translateX(3px);
}

.bar-card {
    grid-column: 1 / -1;
}

.classes-card {
    min-height: 0;
}

.stream-key {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.stream-key span {
    padding: 5px 8px;
    border-radius: 4px;
    font-size: .64rem;
    font-weight: 700;
}

.stream-key .science {
    color: #9e1b22;
    background: #feecef;
}

.stream-key .social {
    color: #174f97;
    background: #eaf2fb;
}

.stream-key .religion {
    color: #7c6100;
    background: #fff7cf;
}

.premium-bar-list {
    display: grid;
    gap: 8px;
}

.class-bars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 22px;
}

.premium-bar-row {
    display: grid;
    grid-template-columns: minmax(58px, auto) minmax(80px, 1fr) 34px;
    align-items: center;
    min-height: 26px;
    gap: 9px;
}

.premium-bar-row > div:first-child {
    display: contents;
}

.premium-bar-row span {
    grid-column: 1;
    grid-row: 1;
    overflow: hidden;
    color: #4f6075;
    font-size: .71rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.premium-bar-row strong {
    grid-column: 3;
    grid-row: 1;
    color: var(--navy-900);
    font-size: .72rem;
    text-align: right;
}

.premium-bar-row > div:last-child {
    grid-column: 2;
    grid-row: 1;
    height: 11px;
    overflow: hidden;
    background: #e9eef4;
    border-radius: 99px;
}

.premium-bar-row i {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, #123f8c, #2d8cc4);
    border-radius: inherit;
    animation: premium-bar-grow .8s ease-out both;
}

.premium-bar-row i[data-stream="science"] {
    background: linear-gradient(90deg, #b8161d, #e5565c);
}

.premium-bar-row i[data-stream="religion"] {
    background: linear-gradient(90deg, #d3a800, #ffd100);
}

@keyframes premium-bar-grow {
    from {
        width: 0;
        opacity: .25;
    }
}

.state-residence-card {
    grid-column: 1 / -1;
    min-height: 0;
}

.state-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.state-tile {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    min-height: 105px;
    padding: 15px;
    background: #f7f9fc;
    border: 1px solid #dce4ed;
    border-radius: 8px;
    animation: state-tile-in .5s ease-out both;
    gap: 13px;
}

.state-emblem {
    display: grid;
    width: 64px;
    height: 72px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d8e1ea;
    border-radius: 7px;
    place-items: center;
}

.state-emblem img {
    display: block;
    width: 54px;
    height: 62px;
    object-fit: contain;
}

.state-emblem.fallback {
    color: #fff;
    background: var(--navy-800);
    border-color: var(--navy-800);
    font-size: 1rem;
    font-weight: 800;
}

.state-tile-copy {
    min-width: 0;
}

.state-tile-copy span,
.state-tile-copy strong,
.state-tile-copy small {
    display: block;
}

.state-tile-copy span {
    min-height: 2.7em;
    color: #4f6075;
    font-size: .65rem;
    font-weight: 700;
    line-height: 1.35;
}

.state-tile-copy strong {
    margin-top: 5px;
    color: var(--navy-900);
    font-size: 1.35rem;
    line-height: 1;
}

.state-tile-copy small {
    margin-top: 5px;
    color: #77879a;
    font-size: .55rem;
}

@keyframes state-tile-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (max-width: 980px) {
    .premium-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .student-premium-overview {
        grid-template-columns: 1fr;
    }

    .class-bars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 650px) {
    .premium-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .premium-metric {
        grid-template-columns: 44px minmax(0, 1fr);
        min-height: 132px;
        padding: 16px;
    }

    .metric-icon {
        width: 44px;
        height: 44px;
    }

    .metric-icon svg {
        width: 22px;
        height: 22px;
    }

    .premium-metric div > strong {
        font-size: 1.65rem;
    }

    .student-dashboard {
        padding: 16px;
    }

    .student-total-feature,
    .student-gender-feature,
    .student-insight-card {
        padding: 18px;
    }

    .student-insight-grid {
        grid-template-columns: 1fr;
    }

    .bar-card {
        grid-column: auto;
    }

    .student-insight-card {
        min-height: 330px;
    }

    .student-insight-card .student-donut-layout {
        grid-template-columns: minmax(115px, .8fr) minmax(130px, 1.2fr);
        min-height: 190px;
    }

    .gender-numbers {
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    .class-bars {
        grid-template-columns: 1fr;
    }

    .stream-card .student-donut-layout {
        grid-template-columns: minmax(115px, .8fr) minmax(130px, 1.2fr);
    }

    .state-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .state-tile {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 92px;
        padding: 12px;
        gap: 10px;
    }

    .state-emblem {
        width: 50px;
        height: 58px;
    }

    .state-emblem img {
        width: 42px;
        height: 50px;
    }

    .insight-card-heading {
        flex-direction: column;
    }
}

/* Pemisah seksyen rasmi dan butang pautan bergambar */
.official-section-divider {
    display: flex;
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    min-height: 72px;
    padding: 13px 20px;
    margin: 34px auto 0;
    color: #fff;
    background: #103d69;
    border-left: 5px solid #ffd100;
    box-shadow: 0 8px 22px rgba(7, 30, 65, .09);
    gap: 15px;
}

.official-section-divider > span {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    color: #082d57;
    background: #ffd100;
    border-radius: 3px;
    font-size: .68rem;
    font-weight: 800;
    place-items: center;
}

.official-section-divider strong,
.official-section-divider small {
    display: block;
}

.official-section-divider strong {
    font-size: .95rem;
    letter-spacing: .01em;
}

.official-section-divider small {
    margin-top: 2px;
    color: #d9e5ef;
    font-size: .72rem !important;
}

.portal-image-links {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(1180px, calc(100% - 40px));
    padding: 18px;
    margin: 18px auto 0;
    background: #f4f7fa;
    border: 1px solid #d4dfeb;
    border-top: 4px solid #103d69;
    gap: 12px;
}

.portal-image-links a {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    min-height: 76px;
    padding: 10px 12px;
    overflow: hidden;
    color: #092f5d;
    background: #fff;
    border: 1px solid #cfdbe7;
    border-bottom: 3px solid #ffd100;
    border-radius: 4px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    gap: 10px;
}

.portal-image-links a:hover,
.portal-image-links a:focus-visible {
    border-color: #175ca6;
    box-shadow: 0 9px 22px rgba(7, 30, 65, .12);
    outline: none;
    transform: translateY(-2px);
}

.portal-image-links img,
.portal-image-link-mark {
    display: grid;
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: #eef3f8;
    border-radius: 3px;
    font-size: .63rem;
    font-style: normal;
    font-weight: 800;
    place-items: center;
}

.portal-image-links strong {
    font-size: .78rem;
    line-height: 1.35;
}

.portal-image-links i {
    color: #175ca6;
    font-size: .9rem;
    font-style: normal;
    font-weight: 800;
}

@media (max-width: 900px) {
    .portal-image-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .official-section-divider,
    .portal-image-links {
        width: min(100% - 28px, 1180px);
    }

    .official-section-divider {
        min-height: 64px;
        padding: 11px 14px;
        margin-top: 24px;
    }

    .portal-image-links {
        grid-template-columns: 1fr 1fr;
        padding: 11px;
    }

    .portal-image-links a {
        grid-template-columns: 40px minmax(0, 1fr) 15px;
        min-height: 66px;
        padding: 8px;
        gap: 8px;
    }

    .portal-image-links img,
    .portal-image-link-mark {
        width: 40px;
        height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .premium-bar-row i {
        animation: none;
    }

    .state-tile {
        animation: none;
    }

    .gender-stacked-bar i {
        transition: none;
    }
}

@media (max-width: 900px) {
    .stream-card .student-donut-layout {
        grid-template-columns: 1fr;
    }

    .stream-card .student-donut-legend {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .stream-card .student-donut-legend {
        grid-template-columns: 1fr;
    }

    .student-stream-option {
        min-height: 190px;
    }
}
