:root {
    --white: #fff;
    --blue-dark: #337ab7;
    --blue: #7096c2;
    --blue-medium: #91b8dc;
    --blue-light: #aec1cf;
    --blue-tint: rgba(87, 150, 210, .08);
    --blue-focus: rgba(87, 150, 210, .18);
    --blue-grey-100: #eef2f5;
    --blue-grey-200: #d9e0e5;
    --blue-grey-300: #ced9e2;
    --gold: #f9b715;
    --grey-100: #f7f7f7;
    --grey-200: #c0c0c0;
    --grey-300: #909090;
    --grey-400: #888;
    --grey-500: #6f7b85;
    --grey-600: #777;
    --grey-700: #626a73;
    --grey-800: #606a74;
    --grey-900: #5f6871;
    --grey-1000: #353c47;
    --red-error: #c0392b;
    --white-transparent: rgba(255, 255, 255, 0);
    --white-divider: rgba(255, 255, 255, .38);
    --shadow-light: rgba(0, 0, 0, .1);
    --shadow-medium: rgba(0, 0, 0, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--grey-1000);
    background: var(--white);
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover,
a:focus {
    color: #f39c12;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: middle;
}

h1,
h2,
h3 {
    margin: 0 0 15px;
    color: var(--grey-1000);
    font-weight: 500;
    line-height: 1.18;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 27px;
}

h3 {
    font-size: 20px;
}

p {
    margin: 0 0 11px;
}

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

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--white);
    box-shadow: 0 5px 10px var(--shadow-light);
    transition: box-shadow .25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 3px 16px var(--shadow-medium);
}

.site-header img {
    transition: max-height .35s ease, transform .35s ease;
}

.header-inner {
    display: flex;
    width: 100%;
    max-width: none;
    padding: 0 20px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    width: 100%;
    align-items: center;
    max-width: 22%;
    min-width: 150px;
}

.brand img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.site-header.is-scrolled .brand img {
    max-height: 46px;
    padding: 6px 0;
}

.mobile-menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--grey-1000);
    border: 0;
    border-radius: 0;
    font-size: 18px;
    cursor: pointer;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus,
.mobile-menu-toggle[aria-expanded="true"] {
    color: var(--grey-1000);
    background-color: var(--gold);
    outline: none;
    box-shadow: none;
}

.mobile-menu-toggle .fa {
    font-size: 18px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 2px;
    padding: 2% 3%;
    transition: padding .25s ease;
}

.site-header.is-scrolled .site-nav {
    padding: 0 3%;
}

.site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav>a,
.site-nav>.nav-dropdown {
    margin-left: 30px;
}

.site-nav .fa {
    margin-left: 6px;
    font-size: 10px;
}

.site-nav a:hover,
.site-nav a:focus {
    color: var(--grey-1000);
}

.site-nav a.active {
    color: var(--grey-1000);
    box-shadow: inset 0 -1px 0 var(--grey-1000);
}

.site-nav a.active:hover,
.site-nav a.active:focus {
    box-shadow: inset 0 -5px 0 var(--grey-1000);
}

.nav-dropdown {
    position: relative;
    display: flex;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 210px;
    padding: 0;
    background: var(--white);
    box-shadow: 0 5px 14px var(--shadow-medium);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    min-height: 36px;
    padding: 0 15px;
    color: var(--grey-600);
    font-size: 12px;
    white-space: nowrap;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
    border-bottom: 1px dotted var(--grey-300);
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    color: var(--gold);
    background: var(--grey-1000);
}

.nav-logout-form {
    margin: 0;
}

.nav-logout-form button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 36px;
    padding: 0 15px;
    color: var(--grey-600);
    background: var(--white);
    border: 0;
    border-bottom: 1px dotted var(--grey-300);
    font: inherit;
    font-size: 12px;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, padding-left .2s ease;
}

.nav-logout-form button:hover,
.nav-logout-form button:focus {
    color: var(--gold);
    background: var(--grey-1000);
    outline: 0;
}

.nav-logout-form button .fa {
    margin: 0 7px 0 0;
}

.fa::before {
    font-family: FontAwesome;
}

/* Hero and introduction */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    min-height: 400px;
    background: #e6e6e6 url("/fmuponline/images/site/hero-learning.jpg") center center / cover no-repeat;
}

.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .75s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero>.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1440px;
    padding-inline: clamp(20px, 4vw, 60px);
}

.hero-caption {
    width: min(760px, 72vw);
    margin-left: clamp(0px, 7vw, 100px);
}

.hero-caption span {
    display: table;
    max-width: 100%;
    margin-top: 1px;
    padding: clamp(9px, 1vw, 12px) clamp(12px, 1.4vw, 16px);
    color: var(--white);
    font-size: clamp(15px, 1.6vw, 20px);
    background: rgba(0, 0, 0, .9);
    font-weight: 300;
    line-height: 1.15;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.slider-dots {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
}

.slider-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: rgba(0, 0, 0, .67);
    border-radius: 50%;
    cursor: pointer;
}

.slider-dots span.active {
    background: #00c1c4;
}

.intro-section {
    padding: 35px 0 30px;
    background: var(--blue-grey-300);
}

.intro-inner {
    font-size: 17px;
    font-weight: 300;
    padding: 2em 0 1em;
}

.intro-action {
    margin-top: 3em;
    text-align: center;
}

.request-strip {
    padding: 37px 0;
    background: var(--blue-grey-300);
    text-align: center;
}

.course-panorama {
    position: relative;
    height: clamp(260px, 31vw, calc(50vh - 70px));
    overflow: hidden;
    background: var(--grey-1000);
}

.course-panorama img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.course-panorama-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(112, 150, 194, 0), rgba(112, 150, 194, .8));

}

/* Shared components */
.button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--white);
    background: var(--blue);
    border: 0;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}

.button:hover,
.button:focus {
    color: var(--white);
    background: var(--blue-dark);
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}

.button:disabled,
.button:disabled:hover,
.button:disabled:focus {
    cursor: not-allowed;
    opacity: .55;
    background: #7f8d9b;
    box-shadow: none;
}

.button .fa {
    color: var(--gold);
    font-size: 19px;
    line-height: .75;
}

.round {
    border-radius: 20px;
}

.section {
    padding: 48px 0 66px;
}

.section-open,
.section-muted {
    background: var(--blue-grey-100);
}

.section-upcoming,
.section-related {
    background: var(--blue-grey-300);
}

.section-heading {
    margin-bottom: 38px;
    text-align: center;
}

.section-heading h1,
.section-heading h2,
.page-header>.container>h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
}

.course-people-section .section-heading h2,
.teacher-courses-section .section-heading h2 {
    font-size: 28px;
}

.section-heading h1::after,
.section-heading h2::after,
.page-header>.container>h1::after {
    display: block;
    width: 72px;
    height: 4px;
    margin: 10px auto 0;
    background: var(--gold);
    content: "";
}

.card-category {
    display: block;
    margin: 0;
    color: var(--grey-400);
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
}

.card-category .fa {
    margin-right: 4px;
}

.grid {
    display: grid;
    gap: 2.25em;
}

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

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

/* Cards and catalog */
.card {
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 0 30px var(--shadow-light);
    transition: box-shadow .2s ease;
}

.card:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, .25);
}

.card-media {
    display: block;
    aspect-ratio: 5 / 2.7;
    overflow: hidden;
    background: var(--grey-100);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.card:hover .card-media img {
    transform: scale(1.025);
}

.card-link-wrapper {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-link-wrapper:hover,
.card-link-wrapper:focus {
    color: inherit;
    text-decoration: none;
}

.portrait {
    aspect-ratio: 1;
}

.card-body {
    display: block;
    padding: 15px 17px 18px;
    text-align: left;
}

.card-body h3,
.card-title {
    display: block;
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 700;
}

.card-body h3 a,
.card-title {
    color: var(--grey-1000);
}

.card-body h3 a:hover,
.card-link-wrapper:hover .card-title,
.card-link-wrapper:focus .card-title {
    text-decoration: underline;
}

.card-body p,
.card-summary {
    display: block;
    font-size: 14px;
}

.card-body .highlight {
    display: block;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
}

.fact-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.fact-tags span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px;
    border: 1px solid var(--blue);
    font-size: 83%;
    line-height: 1;
    text-transform: uppercase;
}

.fact-tags .fa {
    width: 12px;
    color: var(--blue);
    font-size: 12px;
    text-align: center;
}

.course-card:not(.related-card) {
    position: relative;
    min-height: 40em;
}

.course-card-inactive {
    background: #f5f6f7;
    border: 1px solid #c8d0d6;
}

.course-card-inactive .card-media img {
    filter: grayscale(.55);
    opacity: .72;
}

.course-status-label {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--white);
    background: #66727c;
    box-shadow: 0 2px 8px var(--shadow-medium);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1;
    text-transform: uppercase;
}

.course-card:not(.related-card) .card-body {
    padding: 20px 24px 24px;
}

.course-card:not(.related-card) .card-body h3,
.course-card:not(.related-card) .card-title {
    min-height: 3em;
    font-size: 24px;
    line-height: 1.4;
}

.course-card:not(.related-card) .card-body p,
.course-card:not(.related-card) .card-summary {
    font-size: 14px;
    line-height: 1.5;
}

.course-card:not(.related-card) .card-body .card-category {
    font-size: 14px;
}

.course-card:not(.related-card) .card-body .highlight {
    font-size: 14px;
}

.course-card:not(.related-card) .card-body>p:not(.card-category, .highlight),
.course-card:not(.related-card) .card-summary {
    margin: 12px 0 28px;
}

/* Course filters */
.course-filter-toggle {
    width: 100%;
    margin: 14px 0 18px;
    padding: 0;
    color: var(--grey-1000);
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
}

.course-filter-toggle .fa {
    color: var(--gold);
}

.course-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr auto;
    align-items: center;
    gap: 14px;
    max-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    border-bottom: 1px solid var(--blue-light);
    transform: translateY(-8px);
    transition:
        max-height .35s ease,
        margin .35s ease,
        padding .35s ease,
        opacity .25s ease,
        transform .35s ease,
        visibility 0s linear .35s;
}

.course-filters.is-open {
    max-height: 220px;
    margin-bottom: 2em;
    padding-bottom: 2em;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.course-filters label {
    margin: 0;
}

.course-filter-field {
    position: relative;
    display: block;
}

.course-filters input[type="search"],
.course-filters select {
    width: 100%;
    height: 48px;
    padding: 18px 38px 6px 11px;
    color: var(--grey-1000);
    background: var(--white);
    border: 1px solid var(--blue-light);
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
}

.course-filters select {
    padding-right: 38px;
    appearance: none;
    background-image: none;
}

.course-filter-field>span {
    position: absolute;
    top: 15px;
    left: 11px;
    color: var(--grey-500);
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
    text-transform: uppercase;
    transform-origin: left top;
    transition: transform .16s ease, color .16s ease;
}

.course-filter-field input:focus+span,
.course-filter-field input:not(:placeholder-shown)+span,
.course-filter-field select:focus+span,
.course-filter-field select:has(option:checked:not([value=""]))+span {
    color: var(--blue-dark);
    transform: translateY(-10px) scale(.76);
}

.course-filters input:focus,
.course-filters select:focus {
    border-color: var(--blue);
    outline: 2px solid var(--blue-focus);
}

.course-filters .checkbox-filter {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding-right: 34px;
    color: var(--grey-900);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-filters .checkbox-filter input {
    margin: 0;
}

.course-filter-clear {
    position: absolute;
    top: 50%;
    right: 9px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    padding: 0;
    color: var(--white);
    background: #8a949e;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.course-filter-clear[hidden] {
    display: none;
}

.course-filter-clear:hover,
.course-filter-clear:focus {
    background: var(--blue-dark);
}

.course-filter-count {
    margin: 0 0 84px;
    color: var(--grey-500);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.course-filter-empty {
    margin: 30px 0 0;
    color: var(--grey-500);
    text-align: center;
}

.catalog-grid {
    row-gap: 40px;
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}

.related-grid>.related-card {
    width: min(360px, 100%);
    flex: 0 1 360px;
}

.related-card {
    max-width: 360px;
}

.course-card.related-card .card-body,
.profile-card-body-course {
    padding: 13px 15px;
}

.course-card.related-card .card-body h3,
.course-card.related-card .card-title {
    margin: 0;
    font-size: 17px;
}

.course-card.related-card .card-media {
    aspect-ratio: 5 / 2.4;
}

.course-card.related-card .card-title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

/* People cards */
.people-grid {
    align-items: start;
}

.profile-card {
    margin-inline: auto;
    text-align: center;
}

.profile-card .card-media {
    display: block;
    width: 13vw;
    height: 13vw;
    margin: 0 auto;
    overflow: hidden;
    background: var(--grey-100);
    border-radius: 50%;
    min-width: 200px !important;
    min-height: 200px !important;
    max-height: 300px !important;
    max-width: 300px !important;
}

.testimonial-card .card-media {
    display: block;
    width: 10vw;
    height: 10vw;
}

.profile-card .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.profile-card:hover .card-media img {
    transform: scale(1.025);
}

.profile-card-body {
    position: relative;
    margin: 20px auto 0;
    padding: 0;
    background: var(--white);
    box-shadow: 0 2px 15px var(--shadow-medium);
}

.profile-card-body-course {
    width: 10vw;
    min-width: 150px;
}

.teacher-card .profile-card-body-course {
    box-shadow: none;
    border-top: 1px solid var(--blue-light);
}

.teacher-card .profile-card-body-course::before {
    position: absolute;
    bottom: 100%;
    left: calc(50% - 11px);
    border: 11px solid transparent;
    border-top: 0;
    border-bottom-color: var(--white);
    content: "";
    filter: drop-shadow(0 -1px 0 var(--blue-light));
}

.testimonial-card .profile-card-body-list::before,
.testimonial-card .profile-card-body-course::before {
    position: absolute;
    bottom: 100%;
    left: calc(50% - .5em);
    border: .75em solid transparent;
    border-top: 0;
    border-bottom-color: var(--white);
    content: "";
    filter: drop-shadow(0 -1px 0 var(--blue-light));
}

.teacher-card .profile-card-body-list {
    width: 11vw;
    min-width: 200px;
    margin: -2em 0 0 44%;
}

.testimonial-card .profile-card-body-list,
.testimonial-card .profile-card-body-course {
    display: block;
    margin: 0 auto;
    border: none;
    box-shadow: 0 0.125em 1em var(--shadow-medium) !important;
}


.testimonial-card .profile-card-body-list .testimonial-name,
.testimonial-card .profile-card-body-course .testimonial-name {
    font-weight: 700;
    line-height: 1.25;
}


.teacher-card .profile-card-body-list h3,
.testimonial-card .profile-card-body-list .testimonial-name,
.testimonial-card .profile-card-body-course .testimonial-name {
    margin: 0;
    font-size: 14px;
    text-align: left;
}

.teacher-card .profile-card-body-list h3 a,
.teacher-card .profile-card-body-course h3 a,
.testimonial-card .profile-card-body-list .testimonial-name,
.testimonial-card .profile-card-body-course .testimonial-name {
    display: block;
    color: var(--grey-1000);
    text-decoration: none;
    padding: 1em 1.5em;
}

.testimonial-card .profile-card-body-course .testimonial-name {
    text-align: center;
}

.teacher-card .profile-card-body-list h3 a:hover,
.teacher-card .profile-card-body-list h3 a:focus,
.teacher-card .profile-card-body-course h3 a:hover,
.teacher-card .profile-card-body-course h3 a:focus {}

.teacher-card .profile-card-body-course h3 {
    margin: 0;
    font-size: 14px;
    text-align: center;
}


.testimonial-card {
    width: 100%;
    max-width: 250px;
}

.testimonial-main-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.testimonial-main-link:hover,
.testimonial-main-link:focus {
    color: inherit;
    text-decoration: none;
}

.inactive-course-card {
    cursor: default;
}

.testimonial-card .profile-links-list {
    box-shadow: 0 2px 15px var(--shadow-medium);
}

@media (min-width: 1200px) {

    .testimonial-card .profile-card-body-list,
    .testimonial-card .profile-links-list {
        width: 66%;
        margin: -1.75em 0 0 44%;
    }

    .testimonial-card .profile-links-list {
        margin-top: 0;
        text-align: left;
    }

    .testimonial-card .profile-card-body-list::before {
        border: 1em solid transparent;
        border-bottom-color: var(--white);
        left: 1.25em;
        border-left: 0;
    }
}

.teacher-card .profile-card-body-list .profile-links-list a,
.testimonial-card .profile-links-list a,
.testimonial-card .profile-links-list span {
    display: block;
    padding: 1em 1.5em;
    color: var(--white);
    background-color: var(--blue);
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 1px;
}

.teacher-card .profile-card-body-list .profile-links-list a:hover,
.teacher-card .profile-card-body-list .profile-links-list a:focus,
.testimonial-card .profile-links-list a:hover,
.testimonial-card .profile-links-list a:focus {
    color: var(--white);
    background-color: var(--blue-dark);
}

/* Content pages */
.page-header {
    padding: 4em 0 2em;
    background: var(--white);
}

.page-header h1 {
    margin-bottom: 4px;
}

/* Course detail */
.article-page {
    max-width: 1170px;
}

.article-category {
    margin: 0 0 3px;
    color: var(--grey-400);
    font-size: 16px;
}

.article-category .fa {
    margin-right: 5px;
}

.article-title {
    margin-bottom: 20px;
    font-size: 38px;
    font-weight: 700;
}

.course-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
    align-items: start;
    gap: clamp(42px, 6vw, 78px);
}

.course-detail-main {
    min-width: 0;
}

.course-detail-aside {
    position: sticky;
    top: 118px;
}

.course-back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 4px 10px;
    color: var(--blue-dark);
    border-bottom: 1px solid var(--blue-medium);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.course-back-link .fa {
    font-size: 11px;
    transition: transform .2s ease;
}

.course-back-link:hover,
.course-back-link:focus {
    color: var(--blue-dark);
    border-bottom-color: var(--blue-dark);
    text-decoration: none;
}

.course-back-link:hover .fa,
.course-back-link:focus .fa {
    transform: translateX(-3px);
}

.course-aside-actions {
    display: grid;
    gap: 10px;
}

.course-info-button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 10px;
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    align-items: center;
    text-align: left;
    text-transform: uppercase;
    border-radius: 0;
}

.course-info-button .fa {
    margin: 0;
    text-align: center;
}

.course-application-button {
    background: var(--blue-dark);
}

.course-application-button:hover,
.course-application-button:focus {
    background: var(--blue-dark);
}

.course-facts {
    display: grid;
    gap: 10px;
    margin: 2em 0;
    font-size: 13px;
}

.course-facts>div,
.course-facts>a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    column-gap: 10px;
    min-height: 58px;
    padding: 10px 13px;
    border: 1px solid var(--blue-medium);
    background: var(--white);
    text-decoration: none;
}

.course-facts .fa {
    grid-row: 1 / span 2;
    text-align: center;
    color: var(--blue-medium);
    font-size: 18px;
}

.course-facts span {
    color: var(--blue-medium);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.course-facts strong {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}

.course-highlight {
    margin: 0 0 26px;
    color: var(--blue-medium);
    font-size: 18px;
    font-weight: 700;
}

.rich-content {
    overflow-wrap: anywhere;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.75;
    margin-top: 4em;
}

.rich-content img {
    height: auto;
}

.rich-content h2,
.rich-content h3 {
    margin-top: 22px;
}

.rich-content p {
    margin-bottom: 20px;
}

.rich-content strong {
    font-weight: 600;
}

.narrow {
    max-width: 820px;
}

.testimonial-detail {
    max-width: 1040px;
}

.testimonial-video {
    display: block;
    width: 100%;
    max-height: 650px;
    margin: 0 auto;
    background: #101010;
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.testimonial-detail-content {
    max-width: 820px;
    margin-inline: auto;
}


.teacher-profile {
    max-width: 1180px;
}

.section.teacher-profile {
    margin-bottom: 72px;
}

.teacher-profile .section-heading {
    margin-bottom: 72px;
}

.teacher-profile h2,
.testimonial-detail h2 {
    margin-bottom: 28px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
}

.teacher-profile-image {
    display: block;
    width: 100%;
    max-height: 590px;
    margin-bottom: 44px;
    object-fit: cover;
}

.teacher-profile-copy {
    font-weight: 300;
}

.course-people-section {
    border-top: 1px solid var(--blue-grey-300);
    background: var(--white);
}

.teacher-courses-section {
    background: var(--white);
    border-top: 1px solid var(--blue-grey-200);
}

.teacher-courses-section .related-card {
    box-shadow: 0 0 24px var(--shadow-light);
}

.faq-list details {
    margin-bottom: 14px;
    overflow: hidden;
    border: 1px solid var(--blue-light);
    background: var(--white);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-list details:hover {
    border-color: var(--blue);
    box-shadow: 0 8px 24px var(--shadow-light);
    transform: translateY(-1px);
}

.faq-list summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
    padding: 17px 22px;
    color: var(--grey-1000);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    list-style: none;
    transition: color .2s ease, background .2s ease;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-list summary span .fa {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 20px;
}

.faq-list .faq-chevron {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 13px;
    transition: transform .25s ease;
}

.faq-list details[open] summary {
    border-bottom: 1px solid var(--blue-grey-200);
    color: var(--blue-dark);
    background: var(--blue-grey-100);
}

.faq-list details[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 22px 24px 24px 56px;
    color: var(--grey-800);
    font-size: 15px;
    line-height: 1.75;
}

.faq-answer p {
    max-width: 960px;
    margin: 0 0 14px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer h2 {
    margin: 4px 0 8px;
    color: var(--blue-dark);
    font-size: 18px;
    font-weight: 600;
}

.faq-answer h2:not(:first-child) {
    margin-top: 22px;
}

.faq-answer a {
    font-weight: 500;
    text-decoration: underline;
}

.page-actions {
    margin-top: 72px;
    text-align: center;
}

.contact-page {
    max-width: 1170px;
}

.contact-intro {
    max-width: 760px;
    margin: 0 auto 42px;
    color: var(--grey-800);
    font-size: 18px;
    font-weight: 300;
    line-height: 1.65;
    text-align: center;
}

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

.contact-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 18px;
    min-height: 150px;
    padding: 28px;
    background: var(--white);
    border-top: 4px solid var(--gold);
    box-shadow: 0 8px 28px rgba(32, 44, 55, .1);
}

.contact-card-address {
    grid-row: span 2;
}

.contact-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: var(--white);
    background: var(--blue);
    border-radius: 50%;
    font-size: 22px;
}

.contact-card h2 {
    margin: 2px 0 12px;
    color: var(--grey-1000);
    font-size: 19px;
    font-weight: 700;
}

.contact-card p {
    margin: 0;
    color: var(--grey-800);
    line-height: 1.7;
}

.contact-card a {
    color: var(--blue-dark);
}

.contact-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Information request modal */
.modal-open {
    overflow: hidden;
}

.info-request-modal[hidden] {
    display: none;
}

.info-request-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: start center;
    padding: 30px 18px;
    overflow-y: auto;
}

.info-request-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.info-request-dialog {
    position: relative;
    z-index: 1;
    width: min(1170px, 100%);
    margin: 0 auto;
    background: transparent;
    outline: 0;
}

.info-request-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    appearance: none;
    border: 0;
    padding: 0;
    color: #87919a;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.info-request-close:hover,
.info-request-close:focus {
    color: var(--blue-dark);
}

.info-request-panel {
    max-width: 1170px;
    margin: 0 auto;
    padding: 38px 42px 42px;
    background:
        linear-gradient(180deg, var(--blue-tint), var(--white-transparent) 120px),
        var(--white);
    box-shadow: 0 18px 45px var(--shadow-medium);
    text-align: center;
}

.info-request-panel .section-heading {
    margin-bottom: 26px;
}

.info-request-badge {
    margin-bottom: 18px;
}

.info-request-panel h2 {
    margin: 0 0 8px;
    color: var(--grey-1000);
    font-size: 32px;
    font-weight: 500;
}

.form-intro {
    max-width: 760px;
    margin: 0 auto 9px;
    color: var(--grey-700);
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

.form-intro.strong {
    margin-bottom: 54px;
    font-weight: 700;
}

.form-alert {
    margin: 0 0 24px;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.form-alert.success {
    color: #2f6f40;
    background: #e6f4ea;
    border: 1px solid #bdddc7;
}

.info-request-form {
    display: grid;
    gap: 18px;
    text-align: left;
    margin-top: 2em;
}

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

.info-request-form small {
    color: var(--red-error);
    font-size: 12px;
}

.info-request-form .floating-field small {
    display: block;
    margin-top: 6px;
}

.captcha-field {
    display: grid;
    gap: 6px;
    justify-content: center;
}

.privacy-panel {
    margin: 6px 0 0;
    padding: 15px 16px;
    color: var(--grey-900);
    background: rgba(247, 247, 247, .9);
    border: 1px solid #dfe5ea;
    font-size: 12px;
}

.privacy-panel h3 {
    margin: -15px -16px 12px;
    padding: 10px 16px;
    color: #606060;
    background: #e9e9e9;
    font-size: 13px;
    font-weight: 700;
}

.privacy-copy p {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.55;
}

.privacy-copy p:last-child {
    margin-bottom: 0;
}

.privacy-copy a {
    overflow-wrap: anywhere;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 0;
    text-align: center;
}

.button.danger {
    background: #d9534f;
}

.button.danger:hover,
.button.danger:focus {
    background: #b43f3b;
}

.button.secondary {
    background: var(--grey-500);
}

.button.secondary:hover,
.button.secondary:focus {
    background: #59636b;
}

.form-alert.danger {
    color: #8c2d29;
    background: #fbe9e8;
    border: 1px solid #e5b8b5;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

/* Authentication and administration */
.auth-panel {
    max-width: 520px;
    margin: 0 auto;
    padding: 38px 42px 42px;
    background:
        linear-gradient(180deg, var(--blue-tint), var(--white-transparent) 120px),
        var(--white);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .13);
    text-align: center;
}

.auth-page {
    min-height: 58vh;
    display: grid;
    align-items: center;
}

.auth-badge {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    color: var(--white);
    background: var(--blue);
    border: 4px solid var(--gold);
    border-radius: 50%;
    font-size: 25px;
}

.auth-panel h1 {
    margin: 0 0 8px;
    color: var(--grey-1000);
    font-size: 32px;
    font-weight: 500;
}

.auth-panel p {
    max-width: 380px;
    margin: 0 auto 28px;
    color: #66717b;
    font-size: 15px;
    line-height: 1.55;
}

.users-list {
    display: grid;
    gap: 18px;
}

.user-role-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(180px, 240px) auto auto;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 22px 24px;
}

.user-role-identity {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.user-role-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    color: var(--white);
    background: var(--blue);
    border: 3px solid var(--gold);
    border-radius: 50%;
}

.user-role-identity h2 {
    margin: 0 0 3px;
    color: var(--grey-1000);
    font-size: 18px;
}

.user-role-identity p {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--grey-500);
    font-size: 13px;
}

.user-role-card>label:not(.admin-check) {
    display: grid;
    gap: 6px;
    color: var(--grey-800);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-role-card select {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    background: var(--white);
    border: 1px solid var(--blue-light);
}

.user-block-check {
    white-space: nowrap;
}


.auth-form {
    display: grid;
    gap: 18px;
    text-align: left;
}

.floating-field {
    position: relative;
    display: block;
}

.floating-field input,
.floating-field select,
.floating-field textarea {
    width: 100%;
    padding: 20px 14px 8px;
    color: var(--grey-1000);
    background: var(--white);
    border: 1px solid var(--blue-light);
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.floating-field input,
.floating-field select {
    height: 54px;
}

.floating-field textarea {
    min-height: 118px;
    resize: vertical;
    font-family: inherit;
}

.floating-field span {
    position: absolute;
    top: 17px;
    left: 14px;
    color: #77828c;
    font-size: 15px;
    font-weight: 400;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .16s ease, color .16s ease;
}

.floating-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-focus);
    outline: 0;
}

.floating-field select:focus,
.floating-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-focus);
    outline: 0;
}

.floating-field input:focus+span,
.floating-field input:not(:placeholder-shown)+span,
.floating-field select:focus+span,
.floating-field select:has(option:checked:not([value=""]))+span,
.floating-field textarea:focus+span,
.floating-field textarea:not(:placeholder-shown)+span {
    color: var(--blue-dark);
    transform: translateY(-11px) scale(.78);
}

.floating-field-required>span::after {
    content: " *";
    color: var(--red-error);
}

.floating-field small {
    display: block;
    margin-top: 6px;
    color: var(--red-error);
    font-size: 12px;
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--grey-700);
    font-size: 14px;
}

.auth-check input {
    margin: 0;
}

.auth-actions {
    margin: 4px 0 0;
    text-align: center;
}

.auth-actions .button {
    min-width: 150px;
    justify-content: center;
}

.admin-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-form {
    display: grid;
    gap: 18px;
}

.admin-form .form-grid {
    align-items: start;
}

.admin-panel {
    display: grid;
    gap: 18px;
    padding: 24px 28px;
    background: var(--white);
    box-shadow: 0 0 30px rgba(0, 0, 0, .08);
}

.admin-panel h2 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 22px;
    font-weight: 500;
}

.admin-form label {
    display: grid;
    gap: 6px;
    color: var(--grey-900);
    font-size: 13px;
    font-weight: 700;
}

.admin-form label span strong {
    color: var(--red-error);
}

.admin-field {
    display: grid;
    gap: 6px;
}

.admin-field>label {
    color: var(--grey-900);
    font-size: 13px;
    font-weight: 700;
}

.admin-form input:not([type="checkbox"]),
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 9px 11px;
    color: var(--grey-1000);
    background: var(--white);
    border: 1px solid var(--blue-light);
    border-radius: 0;
    font-size: 15px;
    font-weight: 400;
}

.admin-form select[multiple] {
    min-height: 210px;
}

.admin-form textarea {
    resize: vertical;
    font-family: inherit;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    border-color: var(--blue);
    outline: 2px solid var(--blue-focus);
}

.admin-form small {
    color: var(--red-error);
    font-size: 12px;
}

.image-upload-field {
    align-content: start;
}

.image-upload-preview {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 92px;
    padding: 9px;
    color: #65717b;
    background: #f4f7f9;
    border: 1px solid #d8e1e8;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.image-upload-preview img {
    width: 92px;
    height: 72px;
    object-fit: cover;
}

.image-upload-help {
    color: #77838d !important;
    font-weight: 400;
}

.admin-current-file {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 9px 11px;
    color: var(--grey-700);
    background: var(--grey-100);
    border: 1px solid var(--blue-grey-200);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.admin-note {
    margin: 0;
    color: var(--grey-500);
    font-size: 14px;
}

.admin-check {
    display: flex !important;
    align-items: center;
    gap: 9px !important;
    font-weight: 400 !important;
}

.admin-check input {
    width: auto !important;
}

.admin-actions {
    margin-top: 6px;
}

/* Footer */
.footer-divider {
    height: 48px;
    background: var(--blue-grey-300);
}

.site-footer {
    padding: 34px 0;
    color: var(--white);
    background: var(--grey-1000);
    text-align: center;
}

.footer-social h2 {
    margin-bottom: 7px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.social-links a {
    display: grid;
    width: 18px;
    height: 18px;
    color: var(--white);
    background: var(--grey-600);
    border-radius: 50%;
    font-size: 10px;
    place-items: center;
}

.social-links a:hover {
    opacity: .7;
}

.social-links a:nth-child(1) {
    background: #36609f;
}

.social-links a:nth-child(2) {
    background: #066c9a;
}

.social-links a:nth-child(3) {
    background: #2aa9e0;
}

.social-links a:nth-child(4) {
    background: #ed3437;
}

.social-links a:nth-child(5) {
    background: #cd486b;
}

.footer-logo {
    width: 56px;
    margin-bottom: 16px;
}

.footer-small {
    margin: 0;
    color: var(--white);
    font-size: 11px;
}

/* Responsive */


@media (max-width: 1200px) {

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

    .profile-card-body-course {
        width: 25vw;
    }

    .testimonial-card .profile-card-body-course {
        width: 20vw;
    }

    .teacher-card .profile-card-body-list {
        width: 94%;
        min-width: 150px;
        margin: 1.5em auto 0;
        background: transparent;
        box-shadow: none;
        text-align: center;
        border-top: 1px solid var(--blue-light);
    }

    .teacher-card .profile-card-body-list h3,
    .testimonial-card .profile-card-body-list .testimonial-name {
        text-align: center;
    }

    .teacher-card .profile-card-body-list::before {
        position: absolute;
        bottom: 100%;
        left: calc(50% - 11px);
        border: 11px solid transparent;
        border-top: 0;
        border-bottom-color: var(--blue-grey-100);
        content: "";
        filter: drop-shadow(0 -1px 0 var(--blue-light));
    }

    .teacher-card .profile-card-body-list .profile-links-list {
        box-shadow: none;
        text-align: center;
    }
}

@media (max-width: 990px) {
    .header-inner {
        position: relative;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        padding: 0 48px 0 20px;
    }

    .brand {
        width: auto;
        max-width: 100%;
    }

    .brand img,
    .site-header.is-scrolled .brand img {
        height: 46px;
        padding: 6px 0;
    }

    .mobile-menu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
    }

    .site-nav {
        display: flex;
        width: calc(100% + 68px);
        max-height: 0;
        margin: 0 -48px 0 -20px;
        padding: 0;
        flex-direction: column;
        gap: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gold);
        transition: max-height .35s ease, opacity .2s ease, visibility .35s;
    }

    .site-nav.is-open {
        max-height: 720px;
        visibility: visible;
        opacity: 1;
    }

    .site-nav>a,
    .site-nav>.nav-dropdown {
        display: block;
        margin-left: 0;
    }

    .site-nav a {
        position: relative;
        min-height: 48px;
        padding: 0 24px;
        color: var(--gold);
        border-top: 1px solid #a6a6a6;
        font-size: 13.6px;
        line-height: 1.2;
        white-space: nowrap;
    }

    .site-nav> :first-child>a {
        border-top: 0;
    }

    .site-nav a:hover,
    .site-nav a:focus,
    .site-nav a.active {
        color: var(--grey-1000);
        background: transparent;
        box-shadow: none;
    }

    .nav-dropdown {
        display: block;
    }

    .nav-dropdown>a .fa {
        position: absolute;
        top: 50%;
        right: 12px;
        margin: 0;
        transform: translateY(-50%);
        transition: transform .2s ease;
    }

    .nav-dropdown.is-open>a .fa {
        transform: translateY(-50%) rotate(180deg);
    }

    .nav-dropdown-menu {
        position: static;
        display: block;
        min-width: 0;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        background: var(--white);
        box-shadow: none;
        transition: max-height .25s ease, opacity .2s ease, visibility .25s;
    }

    .nav-dropdown.is-open>.nav-dropdown-menu {
        max-height: 200px;
        visibility: visible;
        opacity: 1;
    }

    .nav-dropdown-menu a {
        min-height: 48px;
        padding: 12px 24px;
        color: var(--grey-300);
        border-top: 1px solid var(--grey-200);
        font-size: 13.6px;
        line-height: 24px;
    }

    .nav-dropdown-menu a:hover,
    .nav-dropdown-menu a:focus {
        padding-left: 24px;
        color: var(--grey-1000);
        background: transparent;
    }

    .nav-logout-form button {
        min-height: 48px;
        padding: 12px 24px;
        color: var(--grey-300);
        border-top: 1px solid var(--grey-200);
        border-bottom: 0;
        font-size: 13.6px;
        line-height: 24px;
    }

    .nav-logout-form button:hover,
    .nav-logout-form button:focus {
        color: var(--grey-1000);
        background: transparent;
    }

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

    .teacher-card:not(.related-card) .card-media {
        width: 25vw;
        height: 25vw;
    }

    .teacher-card .profile-card-body-list {
        width: 35vw;
        min-width: 250px;
    }
}

@media (max-width: 850px) {
    .course-detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .course-detail-aside {
        position: static;
    }

    .course-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 18px;
    }

    .user-role-card {
        grid-template-columns: 1fr 1fr;
    }

    .user-role-identity {
        grid-column: 1 / -1;
    }

    .testimonial-card .card-media {}

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

    .contact-card-address {
        grid-row: auto;
    }

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

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

    .site-nav>a,
    .site-nav>.nav-dropdown {
        margin-left: 18px;
    }

    .brand {
        width: 205px;
    }

    .course-filters {
        grid-template-columns: 1fr 1fr;
    }

    .course-filters.is-open {
        max-height: 360px;
    }
}

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

    .teacher-card:not(.related-card) .card-media {
        width: 35vw;
        height: 35vw;
    }

    .teacher-card .profile-card-body-list {
        width: 50vw;
    }
}

@media (max-width: 680px) {
    .user-role-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px 18px;
    }

    .user-role-identity {
        grid-column: auto;
    }

    .user-role-card .button {
        width: 100%;
        justify-content: center;
    }

    .profile-card-body-course {
        width: 45vw;
    }

    .testimonial-card {
        max-width: 300px;
    }

    .testimonial-card .profile-card-body-list,
    .testimonial-card .profile-links-list {
        width: min(230px, 100%);
        margin: auto;
    }

    .testimonial-video {
        max-height: none;
    }

    .contact-intro {
        margin-bottom: 30px;
        font-size: 16px;
    }

    .contact-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 14px;
        min-height: 0;
        padding: 22px 18px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .course-panorama {
        height: clamp(210px, 62vw, 300px);
    }

    .hero {
        min-height: clamp(240px, 68vw, 300px);
    }

    .hero>.container {
        padding-inline: 20px;
    }

    .hero-caption {
        width: min(100%, 560px);
        margin-left: 0;
    }

    .hero-caption span {
        width: fit-content;
        font-size: clamp(13px, 4vw, 16px);
        line-height: 1.2;
    }

    .intro-inner {
        font-size: 14px;
    }

    .course-filters {
        grid-template-columns: 1fr;
    }

    .course-filters.is-open {
        max-height: 620px;
    }

    .course-filter-count {
        margin-bottom: 42px;
    }

    .info-request-modal {
        padding: 14px 10px;
    }

    .info-request-panel {
        padding: 22px 18px 26px;
    }

    .info-request-panel h2 {
        font-size: 27px;
    }

    .info-request-badge {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

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

    .auth-panel,
    .admin-panel {
        padding: 22px 18px;
    }

    .auth-panel h1 {
        font-size: 27px;
    }

    .auth-badge {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .admin-heading {
        display: grid;
    }

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

    .course-card:not(.related-card) {
        min-height: 0;
    }

    .faq-list summary {
        gap: 14px;
        min-height: 58px;
        padding: 15px 16px;
        font-size: 14px;
    }

    .faq-list summary span {
        align-items: flex-start;
        gap: 9px;
    }

    .faq-list summary span .fa {
        margin-top: 1px;
        font-size: 17px;
    }

    .faq-answer {
        padding: 18px 18px 20px;
        font-size: 14px;
    }

    .section {
        padding-block: 40px;
    }
}

@media (max-width: 520px) {
    .course-facts {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {

    .teacher-card:not(.related-card) .card-media,
    .testimonial-card .card-media {
        width: 45vw;
        height: 45vw;
    }

    .teacher-card .profile-card-body-list {}
}
