:root {
    --xqc-blue: #0b57d0;
    --xqc-blue-dark: #073b91;
    --xqc-navy: #10243e;
    --xqc-ink: #172033;
    --xqc-muted: #5e6b7c;
    --xqc-line: #dce4ee;
    --xqc-soft: #f3f7fb;
    --xqc-warm: #f59e0b;
    --xqc-white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--xqc-ink);
    background: var(--xqc-white);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

a {
    color: inherit;
}

.btn {
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary {
    --bs-btn-bg: var(--xqc-blue);
    --bs-btn-border-color: var(--xqc-blue);
    --bs-btn-hover-bg: var(--xqc-blue-dark);
    --bs-btn-hover-border-color: var(--xqc-blue-dark);
    --bs-btn-active-bg: var(--xqc-blue-dark);
    --bs-btn-active-border-color: var(--xqc-blue-dark);
}

.btn-xl {
    min-height: 52px;
    padding: 0.85rem 1.4rem;
    font-size: 1rem;
}

#mainNav {
    min-height: 76px;
    padding: 0.65rem 0;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: background-color 180ms ease, box-shadow 180ms ease;
}

#mainNav .navbar-brand {
    display: flex;
    align-items: center;
    width: 206px;
    height: 54px;
    padding: 0;
}

#mainNav .navbar-brand img {
    width: 100%;
    max-height: 54px;
    object-fit: contain;
    object-position: left center;
}

#mainNav .logo-dark {
    display: none;
}

#mainNav .nav-link {
    padding: 0.75rem 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
    color: var(--xqc-white);
}

#mainNav .xqc-nav-cta {
    min-height: 42px;
    padding: 0.62rem 1rem;
    color: var(--xqc-white);
}

#mainNav.navbar-shrink {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--xqc-line);
    box-shadow: 0 6px 22px rgba(16, 36, 62, 0.08);
}

#mainNav.navbar-shrink .logo-light {
    display: none;
}

#mainNav.navbar-shrink .logo-dark {
    display: block;
}

#mainNav.navbar-shrink .nav-link {
    color: var(--xqc-ink);
}

#mainNav.navbar-shrink .nav-link:hover,
#mainNav.navbar-shrink .nav-link.active {
    color: var(--xqc-blue);
}

#mainNav.navbar-shrink .xqc-nav-cta {
    color: var(--xqc-white);
}

.xqc-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    color: var(--xqc-white);
    background: rgba(16, 36, 62, 0.22);
}

#mainNav.navbar-shrink .xqc-nav-toggle {
    color: var(--xqc-ink);
    border-color: var(--xqc-line);
    background: var(--xqc-white);
}

.xqc-hero {
    position: relative;
    display: flex;
    min-height: 640px;
    height: min(82vh, 760px);
    align-items: center;
    overflow: hidden;
    color: var(--xqc-white);
    background-image: url("../img/xqc/hero-classroom.jpg");
    background-position: center center;
    background-size: cover;
}

.xqc-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(8, 27, 52, 0.7);
    pointer-events: none;
}

.xqc-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    border-bottom: 5px solid var(--xqc-blue);
    pointer-events: none;
}

.xqc-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.xqc-eyebrow,
.xqc-kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.1rem;
    color: var(--xqc-blue);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0;
}

.xqc-eyebrow {
    color: var(--xqc-white);
}

.xqc-eyebrow::before,
.xqc-kicker::before {
    width: 36px;
    height: 3px;
    content: "";
    background: var(--xqc-warm);
}

.xqc-hero h1 {
    max-width: 860px;
    margin: 0 0 1.5rem;
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.xqc-hero-lead {
    max-width: 780px;
    margin-bottom: 2.2rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.2rem;
    line-height: 1.9;
}

.xqc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.xqc-hero-actions .btn-light {
    color: var(--xqc-blue-dark);
}

.xqc-hero-actions .btn-outline-light:hover {
    color: var(--xqc-navy);
}

.xqc-hero-note {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 0.85rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
}

.xqc-facts {
    position: relative;
    z-index: 2;
    margin-top: -1px;
    background: var(--xqc-white);
    border-bottom: 1px solid var(--xqc-line);
}

.xqc-fact {
    display: grid;
    min-height: 124px;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    padding: 1.2rem 1.35rem;
    border-right: 1px solid var(--xqc-line);
}

.xqc-facts .row > div:last-child .xqc-fact {
    border-right: 0;
}

.xqc-fact svg {
    grid-row: 1 / 3;
    align-self: center;
    color: var(--xqc-blue);
    font-size: 2.15rem;
}

.xqc-fact strong {
    color: var(--xqc-ink);
    font-size: 1.2rem;
    line-height: 1.35;
}

.xqc-fact span {
    color: var(--xqc-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.xqc-section {
    padding: 6.5rem 0;
}

.xqc-section-muted {
    background: var(--xqc-soft);
}

.xqc-section-heading {
    max-width: 760px;
    margin-bottom: 3.2rem;
}

.xqc-section-heading h2,
.xqc-contact-section h2 {
    margin: 0 0 1rem;
    color: var(--xqc-ink);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: 0;
}

.xqc-section-heading p,
.xqc-heading-row > p,
.xqc-contact-section .col-lg-5 > p {
    margin: 0;
    color: var(--xqc-muted);
    font-size: 1.05rem;
    line-height: 1.85;
}

.xqc-program-card {
    position: relative;
    height: 100%;
    min-height: 390px;
    padding: 2rem;
    overflow: hidden;
    border: 1px solid var(--xqc-line);
    border-radius: 6px;
    background: var(--xqc-white);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.xqc-program-card:hover {
    transform: translateY(-4px);
    border-color: #9ebff0;
    box-shadow: 0 18px 40px rgba(16, 36, 62, 0.1);
}

.xqc-program-featured {
    border-top: 4px solid var(--xqc-blue);
}

.xqc-program-icon {
    display: flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.6rem;
    border-radius: 6px;
    color: var(--xqc-white);
    background: var(--xqc-blue);
    font-size: 1.35rem;
}

.xqc-card-index {
    position: absolute;
    top: 1.6rem;
    right: 1.7rem;
    color: #c8d4e4;
    font-size: 2.2rem;
    font-weight: 800;
}

.xqc-program-card h3 {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
}

.xqc-program-card p {
    min-height: 92px;
    color: var(--xqc-muted);
}

.xqc-check-list {
    display: grid;
    gap: 0.7rem;
    margin: 1.3rem 0 0;
    padding: 1.2rem 0 0;
    border-top: 1px solid var(--xqc-line);
    list-style: none;
}

.xqc-check-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #334155;
    font-size: 0.94rem;
}

.xqc-check-list li::before {
    position: absolute;
    top: 0.43rem;
    left: 0;
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: var(--xqc-warm);
}

.xqc-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.xqc-heading-row > p {
    max-width: 340px;
    padding-bottom: 0.2rem;
    font-size: 0.95rem;
}

.xqc-teachers-section {
    overflow: hidden;
    background: var(--xqc-white);
}

.xqc-slider-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.xqc-slider-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.65rem;
}

.xqc-slider-count {
    margin-right: 0.45rem;
    color: var(--xqc-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.xqc-slider-control {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #bfd0e7;
    border-radius: 4px;
    color: var(--xqc-blue-dark);
    background: var(--xqc-white);
    font-size: 1rem;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.xqc-slider-control:hover:not(:disabled),
.xqc-slider-control:focus-visible {
    border-color: var(--xqc-blue);
    color: var(--xqc-white);
    background: var(--xqc-blue);
}

.xqc-slider-control:disabled {
    cursor: not-allowed;
    opacity: 0.38;
}

.xqc-teacher-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(300px, 330px);
    gap: 1rem;
    padding: 0 0 1.2rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #9db7da #e3ebf5;
    scrollbar-width: thin;
}

.xqc-teacher-track:focus-visible {
    outline: 3px solid rgba(11, 87, 208, 0.28);
    outline-offset: 5px;
}

.xqc-teacher-track::-webkit-scrollbar {
    height: 8px;
}

.xqc-teacher-track::-webkit-scrollbar-track {
    background: #e3ebf5;
}

.xqc-teacher-track::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #9db7da;
}

.xqc-teacher-card {
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--xqc-line);
    border-radius: 6px;
    background: var(--xqc-white);
}

.xqc-teacher-portrait {
    position: relative;
    height: 320px;
    overflow: hidden;
    border-bottom: 4px solid var(--xqc-blue);
    background: #eaf2ff;
}

.xqc-teacher-portrait::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 1px;
    content: "";
    background: rgba(7, 59, 145, 0.18);
}

.xqc-teacher-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.xqc-teacher-body {
    min-height: 220px;
    padding: 1.45rem 1.45rem 1.6rem;
}

.xqc-teacher-subject {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--xqc-blue);
    font-size: 0.78rem;
    font-weight: 800;
}

.xqc-teacher-card h3 {
    margin: 0 0 0.85rem;
    color: var(--xqc-ink);
    font-size: 1.4rem;
    font-weight: 800;
}

.xqc-teacher-card p {
    margin: 0;
    color: var(--xqc-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.xqc-weekend-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: repeat(2, 230px);
    gap: 0.8rem;
}

.xqc-weekend-grid figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: var(--xqc-navy);
}

.xqc-weekend-grid figure:nth-child(1) {
    grid-column: 1 / 7;
    grid-row: 1 / 3;
}

.xqc-weekend-grid figure:nth-child(2) {
    grid-column: 7 / 10;
}

.xqc-weekend-grid figure:nth-child(3) {
    grid-column: 10 / 13;
}

.xqc-weekend-grid figure:nth-child(4) {
    grid-column: 7 / 9;
}

.xqc-weekend-grid figure:nth-child(5) {
    grid-column: 9 / 11;
}

.xqc-weekend-grid figure:nth-child(6) {
    grid-column: 11 / 13;
}

.xqc-weekend-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.xqc-weekend-grid figure:hover img {
    transform: scale(1.025);
}

.xqc-weekend-grid figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.2rem;
    padding: 1.25rem 1.4rem;
    color: var(--xqc-white);
    background: rgba(16, 36, 62, 0.9);
}

.xqc-weekend-grid figcaption strong {
    font-size: 1.05rem;
}

.xqc-weekend-grid figcaption span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.84rem;
}

.xqc-gallery {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: repeat(2, 250px);
    gap: 1rem;
}

.xqc-gallery figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 6px;
    background: var(--xqc-navy);
}

.xqc-gallery-main {
    grid-row: 1 / 3;
}

.xqc-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease;
}

.xqc-gallery figure:hover img {
    transform: scale(1.025);
}

.xqc-gallery figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    gap: 0.15rem;
    padding: 1.2rem 1.3rem;
    color: var(--xqc-white);
    background: rgba(16, 36, 62, 0.88);
}

.xqc-gallery figcaption strong {
    font-size: 1rem;
}

.xqc-gallery figcaption span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.xqc-campus-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--xqc-line);
    border-radius: 6px;
    background: var(--xqc-white);
}

.xqc-campus-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.xqc-campus-content {
    padding: 1.8rem;
}

.xqc-campus-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.xqc-campus-title svg {
    margin-top: 0.5rem;
    color: var(--xqc-blue);
}

.xqc-campus-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--xqc-blue);
    font-size: 0.72rem;
    font-weight: 800;
}

.xqc-campus-card h3,
.xqc-environment-copy h3 {
    margin: 0 0 0.75rem;
    font-size: 1.45rem;
    font-weight: 800;
}

.xqc-campus-card p,
.xqc-environment-copy p {
    color: var(--xqc-muted);
    line-height: 1.8;
}

.xqc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.2rem;
}

.xqc-tags span {
    padding: 0.4rem 0.65rem;
    border-radius: 3px;
    color: var(--xqc-blue-dark);
    background: #eaf2ff;
    font-size: 0.78rem;
    font-weight: 700;
}

.xqc-environment-strip {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) 1.15fr;
    align-items: stretch;
    margin-top: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--xqc-line);
    border-radius: 6px;
    background: var(--xqc-soft);
}

.xqc-environment-strip img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.xqc-environment-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem 2.8rem;
}

.xqc-section-dark {
    color: var(--xqc-white);
    background: var(--xqc-navy);
}

.xqc-section-heading-light h2,
.xqc-section-heading-light p {
    color: var(--xqc-white);
}

.xqc-section-heading-light p {
    color: rgba(255, 255, 255, 0.68);
}

.xqc-section-dark .xqc-kicker {
    color: #8bb8f8;
}

.xqc-path-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: path;
}

.xqc-path-list li {
    position: relative;
    min-height: 230px;
    padding: 1.8rem 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.xqc-path-list li:last-child {
    border-right: 0;
}

.xqc-path-number {
    display: block;
    margin-bottom: 3rem;
    color: #78aef8;
    font-size: 0.82rem;
    font-weight: 800;
}

.xqc-path-number::after {
    position: absolute;
    top: -4px;
    left: 1.6rem;
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: var(--xqc-warm);
}

.xqc-path-list h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.xqc-path-list p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.92rem;
    line-height: 1.75;
}

.xqc-contact-section {
    padding: 6.5rem 0;
    background: #eef5ff;
}

.xqc-contact-section h2 {
    max-width: 520px;
}

.xqc-contact-points {
    display: grid;
    gap: 0.8rem;
    margin-top: 2rem;
}

.xqc-contact-points span {
    color: #334155;
    font-weight: 600;
}

.xqc-contact-points svg {
    margin-right: 0.7rem;
    color: #15965e;
}

.xqc-consult-form {
    padding: 2rem;
    border: 1px solid var(--xqc-line);
    border-radius: 6px;
    background: var(--xqc-white);
    box-shadow: 0 18px 46px rgba(16, 36, 62, 0.08);
}

.xqc-consult-form .form-label {
    margin-bottom: 0.45rem;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 700;
}

.xqc-consult-form .form-control,
.xqc-consult-form .form-select {
    min-height: 50px;
    border-color: #ccd7e5;
    border-radius: 4px;
    color: var(--xqc-ink);
    background-color: var(--xqc-white);
}

.xqc-consult-form textarea.form-control {
    min-height: 102px;
}

.xqc-consult-form .form-control:focus,
.xqc-consult-form .form-select:focus {
    border-color: var(--xqc-blue);
    box-shadow: 0 0 0 0.2rem rgba(11, 87, 208, 0.12);
}

.xqc-form-status {
    color: #147549;
    font-size: 0.9rem;
    font-weight: 700;
}

.xqc-footer {
    padding: 3.5rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.72);
    background: #09192d;
}

.xqc-footer-main {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding-bottom: 2rem;
}

.xqc-footer-main img {
    width: 210px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
}

.xqc-footer-main p {
    margin: 0;
}

.xqc-footer-main a {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 4px;
    color: var(--xqc-white);
    font-weight: 700;
    text-decoration: none;
}

.xqc-footer-main a:hover {
    border-color: var(--xqc-white);
}

.xqc-footer-contact {
    display: grid;
    grid-template-columns: 1fr 1fr 0.72fr;
    margin-bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.xqc-footer-address,
.xqc-footer-phone {
    min-width: 0;
    padding: 1.8rem 1.6rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.xqc-footer-address:first-child {
    padding-left: 0;
}

.xqc-footer-phone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 0;
    border-right: 0;
}

.xqc-footer-contact-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #78aef8;
    font-size: 0.72rem;
    font-weight: 800;
}

.xqc-footer-contact h2 {
    margin: 0 0 0.55rem;
    color: var(--xqc-white);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.5;
}

.xqc-footer-contact address,
.xqc-footer-contact p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.75;
}

.xqc-footer-phone a {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    color: var(--xqc-white);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.xqc-footer-phone a:hover {
    color: #8bb8f8;
}

.xqc-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

@media (max-width: 991.98px) {
    #mainNav {
        min-height: 68px;
    }

    #mainNav .navbar-brand {
        width: 178px;
        height: 46px;
    }

    .xqc-nav-toggle {
        display: inline-flex;
    }

    #navbarResponsive {
        margin-top: 0.65rem;
        padding: 0.8rem;
        border: 1px solid var(--xqc-line);
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 28px rgba(16, 36, 62, 0.16);
    }

    #mainNav #navbarResponsive .nav-link {
        color: var(--xqc-ink);
    }

    #mainNav #navbarResponsive .xqc-nav-cta {
        display: block;
        margin-top: 0.4rem;
        color: var(--xqc-white);
        text-align: center;
    }

    .xqc-hero h1 {
        font-size: 3.8rem;
    }

    .xqc-fact {
        border-bottom: 1px solid var(--xqc-line);
    }

    .xqc-facts .row > div:nth-child(2) .xqc-fact {
        border-right: 0;
    }

    .xqc-facts .row > div:nth-child(3) .xqc-fact,
    .xqc-facts .row > div:nth-child(4) .xqc-fact {
        border-bottom: 0;
    }

    .xqc-heading-row {
        display: block;
    }

    .xqc-heading-row > p {
        max-width: none;
        margin-top: 1rem;
    }

    .xqc-slider-heading {
        display: block;
    }

    .xqc-slider-actions {
        margin-top: 1.4rem;
    }

    .xqc-weekend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 360px repeat(3, 210px);
    }

    .xqc-weekend-grid figure:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .xqc-weekend-grid figure:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }

    .xqc-weekend-grid figure:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }

    .xqc-weekend-grid figure:nth-child(4) {
        grid-column: 1;
        grid-row: 3;
    }

    .xqc-weekend-grid figure:nth-child(5) {
        grid-column: 2;
        grid-row: 3;
    }

    .xqc-weekend-grid figure:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .xqc-path-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .xqc-path-list li:nth-child(2) {
        border-right: 0;
    }

    .xqc-path-list li:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .xqc-footer-main {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .xqc-footer-main a {
        justify-self: start;
    }

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

    .xqc-footer-phone {
        grid-column: 1 / 3;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .xqc-footer-address:nth-child(2) {
        padding-right: 0;
        border-right: 0;
    }
}

@media (max-width: 767.98px) {
    .xqc-hero {
        min-height: 610px;
        height: 80vh;
        max-height: 720px;
        background-position: 58% center;
    }

    .xqc-hero-content {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .xqc-hero h1 {
        max-width: 360px;
        font-size: 3rem;
        line-height: 1.15;
    }

    .xqc-hero-lead {
        max-width: 520px;
        font-size: 1rem;
        line-height: 1.75;
    }

    .xqc-hero-actions .btn {
        flex: 1 1 160px;
    }

    .xqc-section,
    .xqc-contact-section {
        padding: 4.6rem 0;
    }

    .xqc-section-heading h2,
    .xqc-contact-section h2 {
        font-size: 2rem;
    }

    .xqc-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 340px 240px 240px;
    }

    .xqc-teacher-track {
        grid-auto-columns: minmax(280px, 78vw);
    }

    .xqc-weekend-grid {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 320px repeat(5, 220px);
    }

    .xqc-weekend-grid figure:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }

    .xqc-gallery-main {
        grid-row: auto;
    }

    .xqc-environment-strip {
        grid-template-columns: 1fr;
    }

    .xqc-environment-strip img {
        min-height: 220px;
    }

    .xqc-environment-copy {
        padding: 1.8rem;
    }

    .xqc-footer-bottom {
        flex-direction: column;
    }

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

    .xqc-footer-address,
    .xqc-footer-address:first-child,
    .xqc-footer-address:nth-child(2),
    .xqc-footer-phone {
        grid-column: auto;
        padding: 1.35rem 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .xqc-footer-phone {
        border-top: 0;
        border-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    #mainNav .navbar-brand {
        width: 158px;
    }

    .xqc-hero {
        min-height: 600px;
    }

    .xqc-hero h1 {
        font-size: 2.55rem;
    }

    .xqc-hero-note {
        font-size: 0.76rem;
    }

    .xqc-fact {
        min-height: 110px;
        grid-template-columns: 36px 1fr;
        padding: 0.95rem 0.75rem;
    }

    .xqc-fact svg {
        font-size: 1.6rem;
    }

    .xqc-fact strong {
        font-size: 0.98rem;
    }

    .xqc-fact span {
        font-size: 0.8rem;
    }

    .xqc-program-card {
        min-height: 0;
        padding: 1.5rem;
    }

    .xqc-program-card p {
        min-height: 0;
    }

    .xqc-slider-count {
        display: none;
    }

    .xqc-teacher-track {
        grid-auto-columns: 84vw;
    }

    .xqc-teacher-portrait {
        height: 300px;
    }

    .xqc-teacher-body {
        min-height: 210px;
        padding: 1.3rem;
    }

    .xqc-campus-content,
    .xqc-consult-form {
        padding: 1.4rem;
    }

    .xqc-path-list {
        grid-template-columns: 1fr;
    }

    .xqc-path-list li,
    .xqc-path-list li:nth-child(2) {
        min-height: 190px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    }

    .xqc-path-list li:last-child {
        border-bottom: 0;
    }

    .xqc-path-number {
        margin-bottom: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
