

.hub-mobile-header,
.hub-mobile-subtitle,
.hub-search {
    display: none;
}

.education-hub {
    background: #f0f8fc;
    padding-bottom: 28px;
}

.hub-hero {
    background: #fff3df url("../images/education-hero-primary-v2.png") left top / cover no-repeat;
}

.hub-junior .hub-hero {
    background-image: url("../images/education-hero-junior-v2.png");
    background-color: #dff3ff;
}

.hub-senior .hub-hero {
    background-image: url("../images/education-hero-senior-v2.png");
    background-color: #e8e8ff;
}

.hub-exams .hub-hero {
    background-image: url("../images/education-hero-exams-v2.png");
    background-color: #ffe7e3;
}

.hub-hero__inner {
    min-height: 320px;
    padding: 0;
}

.hub-hero h1 {
    margin: 0 0 8px;
    font-size: 44px;
    line-height: 1.25;
    letter-spacing: 0;
    color: #10213c;
}

.hub-hero h1 span {
    color: #006cff;
}

.hub-hero p {
    margin: 0;
    font-size: 18px;
    color: #183457;
}

.hub-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.hub-benefits li {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #203b5e;
    font-size: 14px;
}

.hub-benefits svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background: #087eff;
    color: #fff;
}

.hub-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hub-grades {
    align-self: flex-start;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    position: relative;
    margin-top: -22px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 8px;
}

.hub-grades strong {
    color: #61718b;
    font-size: 14px;
}

.hub-grades a {
    padding: 8px 20px;
    font-size: 14px;
    border: 1px solid #e5edf5;
    border-radius: 5px;
    color: #526584;
    text-align: center;
}

.hub-grades a[aria-current] {
    background: #087aff;
    border-color: #087aff;
    color: #fff;
}

.hub-subjects {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.hub-exams .hub-subjects {
    margin-top: 18px;
}

.hub-color-red {
    --hub-accent: #ef625a;
    --hub-tint: #fff0ed;
}

.hub-color-blue {
    --hub-accent: #248de3;
    --hub-tint: #eaf5ff;
}

.hub-color-purple {
    --hub-accent: #9165df;
    --hub-tint: #f3effd;
}

.hub-color-green {
    --hub-accent: #13b48e;
    --hub-tint: #eaf8f4;
}

.hub-color-orange {
    --hub-accent: #ec942c;
    --hub-tint: #fff4e9;
}

.hub-subject {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 7px;
}

.hub-subject[aria-current] {
    border-color: var(--hub-accent);
    background: var(--hub-tint);
}

.hub-subject__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    background: var(--hub-tint);
    color: var(--hub-accent);
    border-radius: 8px;
}

.hub-subject__icon svg {
    width: 30px;
    height: 30px;
}

.hub-subject__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hub-subject strong,
.hub-shortcut strong {
    display: block;
    font-size: 16px;
    line-height: 1.5;
    color: #172e50;
}

.hub-subject small,
.hub-shortcut small {
    display: block;
    margin-top: 3px;
    color: #7588a3;
    font-size: 12px;
    line-height: 1.5;
}

.hub-shortcuts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hub-shortcut {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: var(--hub-tint);
    border: 1px solid #fff;
    border-radius: 7px;
}

.hub-shortcut img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.hub-shortcut > svg {
    width: 16px;
    height: 16px;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--hub-accent);
}

.hub-resource-section header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.hub-resource-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 20px;
    color: #14294a;
}

.hub-resource-section h2 svg {
    width: 23px;
    height: 23px;
    color: #ff7737;
}

.hub-resource-section:last-child h2 svg {
    color: #0782ff;
}

.hub-resource-section header > a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6d809d;
    font-size: 13px;
    white-space: nowrap;
}

.hub-resource-section header > a svg {
    width: 16px;
    height: 16px;
}

.hub-resource-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hub-empty {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 116px;
    margin: 0;
    color: #7a8a9d;
    font-size: 14px;
    border-top: 1px solid #dfeaf2;
}

.education-hub .home-resource-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    min-width: 0;
    border-radius: 7px;
}

.education-hub .home-resource-card__media {
    flex: 0 0 82px;
    width: 82px;
    height: 106px;
    min-height: 0;
}

.education-hub .home-resource-card__body {
    min-width: 0;
    padding: 0;
}

.education-hub .home-resource-card h3 {
    font-size: 14px;
    line-height: 1.5;
}

.hub-search:target {
    display: block;
    order: -1;
    margin: 28px 0 12px;
}

.hub-search form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hub-search input[type="search"] {
    min-width: 0;
    flex: 1;
    padding: 10px;
    border: 1px solid #c7dbea;
    border-radius: 5px;
    background: #fff;
}

.hub-search button,
.hub-search form > a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 5px;
    background: #087aff;
    color: #fff;
}

.hub-search svg {
    width: 20px;
    height: 20px;
}

@media (width <= 1100px) {
.hub-subject {
    gap: 8px;
    padding: 12px 8px;
}

.hub-subject small {
    font-size: 11px;
}

.hub-shortcuts {
    gap: 10px;
}

.hub-shortcut {
    padding: 12px 10px;
    gap: 8px;
}

.hub-resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

@media (width <= 767px) {
.education-hub-view .site-header__utility,
    .education-hub-view .site-header__main,
    .education-hub-view .primary-navigation {
    display: none;
}

.education-hub-view .site-header {
    position: relative;
    min-height: 0;
    background: #fff;
}

.hub-mobile-header {
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.hub-mobile-header strong {
    font-size: 19px;
    color: #192b43;
}

.hub-mobile-header a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #52637b;
}

.hub-mobile-header svg {
    width: 23px;
    height: 23px;
}

.education-hub {
    padding-bottom: 22px;
}

.hub-hero {
    background-position: left center;
}

.hub-hero__inner {
    min-height: 186px;
    padding: 0 18px;
}

.hub-hero h1 {
    font-size: 29px;
    max-width: 280px;
    color: #da872e;
}

.hub-hero h1 span {
    color: inherit;
}

.hub-junior .hub-hero h1 {
    color: #087aff;
}

.hub-senior .hub-hero h1 {
    color: #8554cf;
}

.hub-exams .hub-hero h1 {
    color: #dc6252;
}

.hub-desktop-subtitle,
    .hub-benefits {
    display: none;
}

.hub-mobile-subtitle {
    display: block;
    max-width: 240px;
}

.hub-hero p {
    font-size: 14px;
}

.hub-mobile-subtitle small {
    display: block;
    margin-top: 12px;
    font-size: 12px;
}

.hub-content {
    gap: 16px;
    padding: 0 14px;
}

.hub-subjects {
    order: -2;
    gap: 12px 4px;
    overflow: visible;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 14px 4px 0;
}

.hub-exams .hub-subjects {
    margin-top: 0;
}

.hub-subject {
    flex-direction: column;
    gap: 4px;
    padding: 0;
    background: transparent;
    text-align: center;
}

.hub-subject__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
}

.hub-subject__icon svg {
    width: 29px;
    height: 29px;
}

.hub-subject strong {
    font-size: 13px;
    white-space: nowrap;
}

.hub-subject small {
    display: none;
}

.hub-grades {
    align-self: stretch;
    margin: 0;
    padding: 0;
    gap: 8px;
    background: transparent;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hub-primary .hub-grades {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hub-grades strong {
    display: none;
}

.hub-grades a {
    padding: 8px 2px;
    font-size: 13px;
    background: #fff;
    white-space: nowrap;
}

.hub-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    gap: 8px;
    padding-bottom: 4px;
}

.hub-shortcut {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 10px;
    position: relative;
    min-height: 89px;
}

.hub-shortcut img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    position: absolute;
    right: 6px;
    bottom: 10px;
    opacity: 0.65;
}

.hub-shortcut strong {
    font-size: 14px;
}

.hub-shortcut small {
    font-size: 11px;
    max-width: 62px;
}

.hub-shortcut > svg {
    display: none;
}

.hub-resource-section h2 {
    font-size: 18px;
}

.hub-resource-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.hub-empty {
    min-height: 106px;
}

.hub-search:target {
    order: -3;
    margin: 12px 0 0;
}
}
