:root {
    --brand: #c83f2d;
    --brand-dark: #9f2f23;
    --accent: #0f766e;
    --dark: #102a43;
    --heading: #152536;
    --body: #52606d;
    --muted: #7b8794;
    --surface: #ffffff;
    --surface-alt: #f6f8fb;
    --border: rgba(16, 42, 67, 0.1);
    --shadow: 0 18px 45px rgba(16, 42, 67, 0.09);
    --shadow-soft: 0 10px 28px rgba(16, 42, 67, 0.07);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--body);
    line-height: 1.7;
    background: var(--surface);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4 {
    color: var(--heading);
    font-weight: 760;
    line-height: 1.12;
    letter-spacing: 0;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

a:hover {
    color: var(--brand);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.bg-light {
    background-color: var(--surface-alt) !important;
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.text-brand {
    color: var(--brand) !important;
}

.btn {
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-brand {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 10px 24px rgba(200, 63, 45, 0.22);
}

.btn-brand:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-light,
.btn-outline-dark {
    border-width: 1px;
}

.btn-outline-dark {
    border-color: rgba(16, 42, 67, 0.22);
    color: var(--dark);
}

.btn-outline-dark:hover {
    background: var(--dark);
    border-color: var(--dark);
    color: #fff;
}

/* Top navigation */
.top-nav {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.88);
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 0.9rem;
}

.top-nav p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 18px 0 0;
}

.top-nav span,
.top-nav i {
    vertical-align: middle;
}

.social-icons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons a:hover {
    background-color: #fff;
    color: var(--brand);
}

.navbar {
    min-height: 78px;
    box-shadow: 0 10px 30px rgba(16, 42, 67, 0.08);
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    font-size: 28px;
    font-weight: 800;
}

.navbar-brand img {
    width: 104px;
}

.navbar-brand .dot {
    color: var(--brand);
}

.navbar .navbar-nav {
    gap: 4px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 700;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--brand);
    background: rgba(200, 63, 45, 0.08);
}

/* Hero */
.hero-slider {
    background: var(--dark);
}

.slide {
    min-height: calc(100vh - 118px);
    display: flex;
    align-items: center;
    position: relative;
    isolation: isolate;
}

.slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
    z-index: -1;
}

.slide1 {
    background:
        linear-gradient(90deg, rgba(10, 29, 45, 0.86) 0%, rgba(10, 29, 45, 0.62) 52%, rgba(10, 29, 45, 0.32) 100%),
        url("/static/images/bg_banner2.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide2 {
    background:
        linear-gradient(90deg, rgba(10, 29, 45, 0.86) 0%, rgba(10, 29, 45, 0.62) 52%, rgba(10, 29, 45, 0.32) 100%),
        url("/static/images/bg_banner1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-copy {
    max-width: 760px;
    padding: 64px 0 96px;
}

.eyebrow,
.intro h6 {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slide .display-3 {
    color: #fff;
    text-transform: none;
    font-size: clamp(2.45rem, 6vw, 5rem);
}

.hero-sub {
    max-width: 680px;
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.86);
    margin-top: 18px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    font-weight: 700;
}

.hero-slider .owl-prev,
.hero-slider .owl-next {
    background-color: rgba(255, 255, 255, 0.16) !important;
    width: 48px !important;
    height: 48px !important;
    display: grid !important;
    place-items: center;
    color: #fff !important;
    border-radius: 50% !important;
    line-height: 1;
    position: absolute;
    top: 50%;
    font-weight: 800 !important;
    font-size: 11px !important;
    transition: all 0.2s ease;
    margin-top: -24px !important;
}

.owl-prev {
    left: 24px;
}

.owl-next {
    right: 24px;
}

.hero-slider .owl-prev:hover,
.hero-slider .owl-next:hover {
    background-color: var(--brand) !important;
}

.owl-dot.active span {
    background-color: var(--brand) !important;
}

/* Section headings and cards */
.intro {
    max-width: 740px;
    margin: 0 auto 42px;
    text-align: center;
}

.intro p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    color: var(--muted);
}

.intro h1,
.intro h2 {
    margin-top: 12px;
    margin-bottom: 14px;
}

.section-kicker {
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.info-box {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.info-box img {
    width: 64px;
}

#about img {
    border-radius: 8px;
}

.why-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    color: var(--dark);
}

.why-list li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
    font-weight: 700;
}

.why-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.11);
}

#milestone {
    background:
        linear-gradient(90deg, rgba(16, 42, 67, 0.94), rgba(15, 118, 110, 0.88)),
        url("/static/images/bg_banner1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#milestone h1,
#milestone p {
    color: #fff;
}

#milestone h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
}

#milestone p {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.service,
.review,
.blog-post,
.content-panel {
    height: 100%;
    padding: 30px;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
}

.service {
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service:hover {
    transform: translateY(-4px);
    border-color: rgba(15, 118, 110, 0.24);
    box-shadow: var(--shadow);
}

.service h5 {
    margin-top: 22px;
    margin-bottom: 12px;
}

.service-icon {
    width: 72px;
    height: 72px;
    padding: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--accent);
    background: var(--surface-alt);
    font-size: 38px;
    line-height: 1;
}

.status-notice {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.status-notice i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 8px;
    color: var(--brand);
    background: rgba(200, 63, 45, 0.1);
    font-size: 28px;
}

.status-notice h3 {
    margin-bottom: 10px;
}

.feature-card {
    height: 100%;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.feature-card i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 8px;
    color: var(--accent);
    background: rgba(15, 118, 110, 0.1);
    font-size: 24px;
}

.cta-band {
    background:
        linear-gradient(90deg, rgba(16, 42, 67, 0.96), rgba(16, 42, 67, 0.88)),
        url("/static/images/bg_banner2.jpg");
    background-size: cover;
    background-position: center;
}

.cta-band h2,
.cta-band p {
    color: #fff;
}

.cta-band p {
    color: rgba(255, 255, 255, 0.78);
}

/* Page hero */
.page-hero {
    min-height: 360px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(16, 42, 67, 0.9), rgba(16, 42, 67, 0.56)),
        var(--page-hero-image, url("/static/images/about_us.png"));
    background-size: cover;
    background-position: center;
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.12rem;
}

.prose {
    max-width: 960px;
}

.prose h2,
.prose h3 {
    margin-top: 34px;
}

.prose p {
    color: var(--body);
    font-size: 1.03rem;
}

.post-article {
    display: grid;
    gap: 22px;
}

.post-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 18px;
    align-items: center;
    margin-bottom: 4px;
}

.post-category {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.post-category a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body-panel {
    padding: 34px;
}

.post-body {
    color: var(--body);
    font-size: 1.05rem;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.post-body > :first-child {
    margin-top: 0;
}

.post-body > :last-child {
    margin-bottom: 0;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    margin-top: 30px;
    margin-bottom: 14px;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body table {
    margin-bottom: 1rem;
}

.post-body ul,
.post-body ol {
    padding-left: 1.35rem;
}

.post-body li + li {
    margin-top: 0.35rem;
}

.post-body a {
    color: var(--brand);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-body strong,
.post-body b {
    color: var(--heading);
    font-weight: 800;
}

.post-body blockquote {
    padding: 18px 20px;
    border-left: 4px solid var(--brand);
    background: var(--surface-alt);
    border-radius: 0 8px 8px 0;
    color: var(--heading);
}

.post-body img {
    margin: 18px 0;
    border-radius: 8px;
}

.post-body-panel + h3 {
    margin-top: 28px;
}

.post-body-secondary {
    margin-top: 10px;
}

.scholarship-summary {
    position: sticky;
    top: 18px;
}

/* Reviews */
#reviews .intro {
    margin-bottom: 32px;
}

#reviews .review {
    text-align: left;
}

#reviews .review .person h5 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

#reviews .review small {
    color: var(--accent);
    font-weight: 800;
}

#reviews .review p {
    color: var(--body);
    margin-top: 18px;
}

.stars {
    color: #f2a900;
}

/* Blog */
.blog-post {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.blog-post img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.blog-post .content {
    padding: 26px;
}

.blog-post .tag {
    position: absolute;
    top: 18px;
    left: 18px;
    background-color: var(--brand);
    padding: 4px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
}

.blog-post h5 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.blog-post small {
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}

/* Team */
.team-member {
    text-align: center;
}

.team-member .image {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 8px;
}

.team-member .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: -10%;
    background-color: rgba(200, 63, 45, 0.72);
    opacity: 0;
    transition: all 0.25s ease;
}

.team-member h5 {
    margin-top: 16px;
    margin-bottom: 4px;
}

.team-member .social-icons {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: all 0.25s ease;
}

.team-member .social-icons a {
    width: 40px;
    height: 40px;
}

.team-member:hover .social-icons {
    top: 50%;
    opacity: 1;
}

.team-member:hover .overlay {
    top: 0;
    opacity: 1;
}

/* Contact */
.contact-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

.contact-method img {
    width: 34px;
    height: 34px;
}

p.wechat,
.wechat {
    position: relative;
    cursor: pointer;
}

p.wechat:hover::after {
    content: url("/static/images/frame.png");
    display: block;
    position: absolute;
    left: 50px;
    top: -80px;
    z-index: 10;
}

.wechat .phone-view {
    display: none;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.wechat:hover .phone-view {
    display: block;
}

input.form-control,
.form-control,
select.form-control,
textarea.form-control {
    min-height: 46px;
    border-color: var(--border);
    background-color: #fff;
    border-radius: 6px;
}

textarea.form-control {
    min-height: 140px;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(200, 63, 45, 0.12);
    border-color: var(--brand);
}

/* Footer */
footer {
    background:
        linear-gradient(0deg, rgba(16, 42, 67, 0.95), rgba(16, 42, 67, 0.95)),
        url("/static/images/bg_banner1.jpg"),
        var(--dark);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

footer .footer-top {
    padding-top: 72px;
    padding-bottom: 42px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    padding-top: 20px;
}

footer .navbar-brand {
    color: #fff;
}

footer p {
    color: #cbd5df;
}

footer .social-icons a {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.conditions-section {
    margin: 24px 0 0;
}

.conditions-section a {
    color: #fff;
    margin: 0 10px;
}

.conditions-section a:hover {
    color: #f7b7ad;
}

.loader {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand);
    z-index: 99999;
    position: fixed;
    left: 0;
    right: 0;
}

@media (max-width: 991px) {
    section {
        padding-top: 68px;
        padding-bottom: 68px;
    }

    .navbar .navbar-nav {
        padding-top: 16px;
    }

    .navbar .btn {
        margin-top: 12px;
        width: 100%;
    }

    .slide {
        min-height: 78vh;
    }

    .hero-copy {
        padding: 56px 0 82px;
    }
}

@media (max-width: 767px) {
    .top-nav .row {
        gap: 8px;
    }

    .post-meta-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-body-panel {
        padding: 24px;
    }

    .scholarship-summary {
        position: static;
    }

    .top-nav p {
        display: flex;
        margin-right: 0;
        margin-bottom: 4px;
    }

    .slide .display-3 {
        font-size: 2.45rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust span {
        width: 100%;
        justify-content: center;
    }

    .service,
    .review,
    .content-panel {
        padding: 24px;
    }

    .page-hero {
        min-height: 300px;
    }

    .wechat .phone-view {
        left: 40%;
        top: 40%;
    }
}

@media (max-width: 480px) {
    .wechat .phone-view {
        left: 30%;
        top: 30%;
    }
}

@media (max-width: 360px) {
    .wechat .phone-view {
        left: 20%;
        top: 20%;
    }
}
