/*
 * crvisa.ca (大江国际) theme. Layout is Bootstrap 5 (./awdp/bootstrap); this file holds the brand tokens and the parts Bootstrap has no
 * class for. Colours and type follow the previous crvisa.ca site: red #DA1B2B, navy #1D3557, grey #86909C on #F7F8FA.
 */

:root {
    --cr-red: #DA1B2B;
    --cr-red-dark: #B81726;
    --cr-navy: #1D3557;
    --cr-ink: #1F2329;
    --cr-text: #4E5969;
    --cr-muted: #86909C;
    --cr-line: #E5E6EB;
    --cr-surface: #F7F8FA;
    --cr-sky: #E8EEF7;
    --cr-font: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.cr-site {
    font-family: var(--cr-font);
    color: var(--cr-ink);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.cr-site a {
    color: inherit;
    text-decoration: none;
}

.cr-site a:hover {
    color: var(--cr-red);
}

.cr-site .container {
    max-width: 1248px;
}

.cr-site img {
    max-width: 100%;
    height: auto;
}

/* In-page targets clear the sticky header */
.cr-site [id] {
    scroll-margin-top: 104px;
}

.cr-bg-surface {
    background-color: var(--cr-surface);
}

.cr-text-red {
    color: var(--cr-red) !important;
}

.cr-text-navy {
    color: var(--cr-navy) !important;
}

.cr-text-muted {
    color: var(--cr-muted) !important;
}

/* ---------- Buttons: red solid / red outline, square corners as on the previous site ---------- */

.cr-site .btn {
    border-radius: 2px;
    font-weight: 500;
    padding: .5rem 1.5rem;
}

.cr-site .btn-danger {
    --bs-btn-bg: var(--cr-red);
    --bs-btn-border-color: var(--cr-red);
    --bs-btn-hover-bg: var(--cr-red-dark);
    --bs-btn-hover-border-color: var(--cr-red-dark);
    --bs-btn-active-bg: var(--cr-red-dark);
    --bs-btn-active-border-color: var(--cr-red-dark);
    --bs-btn-disabled-bg: var(--cr-red);
    --bs-btn-disabled-border-color: var(--cr-red);
    color: #fff;
}

.cr-site .btn-outline-danger {
    --bs-btn-color: var(--cr-red);
    --bs-btn-border-color: var(--cr-red);
    --bs-btn-hover-bg: var(--cr-red);
    --bs-btn-hover-border-color: var(--cr-red);
    --bs-btn-active-bg: var(--cr-red-dark);
    background: #fff;
}

.cr-site .btn-outline-danger:hover {
    color: #fff;
}

.cr-site .btn-danger:hover {
    color: #fff;
}

.cr-link-more {
    color: var(--cr-red) !important;
    font-weight: 500;
}

.cr-link-more:hover .bi {
    transform: translateX(3px);
}

.cr-link-more .bi {
    transition: transform .2s;
    display: inline-block;
}

/* ---------- Header ---------- */

.cr-header {
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.cr-header .navbar {
    min-height: 88px;
    padding: 0;
}

.cr-brand img {
    height: 46px;
    width: auto;
}

.cr-nav-link {
    display: block;
    padding: .5rem 0;
    font-size: 16px;
    color: var(--cr-ink) !important;
    white-space: nowrap;
}

.cr-nav-link.active,
.cr-nav-link:hover {
    color: var(--cr-red) !important;
}

.cr-nav-link.active {
    font-weight: 600;
}

.cr-header .dropdown-menu {
    border: 0;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(29, 53, 87, .12);
    padding: .75rem 0;
    min-width: 13rem;
}

.cr-header .dropdown-header {
    color: var(--cr-navy);
    font-weight: 600;
    font-size: 14px;
}

.cr-header .dropdown-item {
    font-size: 14px;
    padding: .35rem 1.25rem;
}

.cr-header .dropdown-item:hover,
.cr-header .dropdown-item:focus {
    background: var(--cr-surface);
    color: var(--cr-red);
}

@media (min-width: 1200px) {
    /* Hover opens the services menu on desktop; a click still follows the link to /services. */
    .cr-header .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .cr-mega {
        width: 760px;
        left: 50% !important;
        transform: translateX(-50%);
    }
}

@media (max-width: 1199.98px) {
    .cr-header .navbar-collapse {
        padding-bottom: 1rem;
        max-height: calc(100vh - 88px);
        overflow-y: auto;
    }

    .cr-nav-link {
        border-bottom: 1px solid var(--cr-line);
        padding: .75rem 0;
    }

    .cr-header .dropdown-menu {
        box-shadow: none;
        padding: 0 0 .5rem;
    }
}

/* ---------- Section headings: "服务项目 Our Services" ---------- */

.cr-section {
    padding: 96px 0;
}

.cr-section-sm {
    padding: 64px 0;
}

.cr-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
    margin: 0;
    color: var(--cr-navy);
    font-size: 48px;
    font-weight: 700;
    line-height: 1.25;
}

.cr-heading small {
    color: var(--cr-muted);
    font-size: 36px;
    font-weight: 300;
}

.cr-h2 {
    color: var(--cr-navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.35;
}

.cr-h3 {
    color: var(--cr-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .cr-section {
        padding: 56px 0;
    }

    .cr-section-sm {
        padding: 40px 0;
    }

    .cr-heading {
        font-size: 34px;
    }

    .cr-heading small {
        font-size: 26px;
    }

    .cr-h2 {
        font-size: 24px;
    }
}

/* ---------- Page banner (every page but home) ---------- */

.cr-banner {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    color: #fff;
    background-color: var(--cr-navy);
    background-size: cover;
    background-position: center;
}

.cr-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .45);
}

.cr-banner > .container {
    position: relative;
}

.cr-banner h1 {
    font-size: 52px;
    text-wrap: balance;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.cr-banner .cr-banner-eyebrow {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: .5rem;
}

.cr-banner .cr-banner-lead {
    max-width: 820px;
    margin: 1.5rem auto 0;
    font-size: 18px;
    line-height: 1.9;
}

.cr-banner-light {
    color: var(--cr-navy);
}

.cr-banner-light::before {
    background: rgba(255, 255, 255, .15);
}

.cr-banner-light h1 {
    text-shadow: none;
}

@media (max-width: 767.98px) {
    .cr-banner {
        min-height: 300px;
        padding: 48px 0;
    }

    .cr-banner h1 {
        font-size: 34px;
    }

    .cr-banner .cr-banner-eyebrow {
        font-size: 18px;
    }

    .cr-banner .cr-banner-lead {
        font-size: 15px;
    }
}

/* ---------- Breadcrumb ---------- */

.cr-breadcrumb {
    --bs-breadcrumb-divider: "\203A";
    --bs-breadcrumb-margin-bottom: 0;
    font-size: 14px;
}

.cr-breadcrumb .breadcrumb-item,
.cr-breadcrumb .breadcrumb-item a {
    color: var(--cr-muted);
}

.cr-breadcrumb .breadcrumb-item.active {
    color: var(--cr-ink);
}

/* ---------- Home ---------- */

.cr-hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.cr-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, .55) 0%, rgba(17, 24, 39, .15) 60%, rgba(17, 24, 39, 0) 100%);
}

.cr-hero > .container {
    position: relative;
}

.cr-hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.cr-hero-lines {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem 1.25rem;
    margin: 1.5rem 0 3rem;
    font-size: 32px;
    font-weight: 500;
}

.cr-hero-lines span + span::before {
    content: "|";
    margin-right: 1.25rem;
    font-weight: 300;
    opacity: .85;
}

.cr-hero-slogan {
    margin-top: 6rem;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 767.98px) {
    .cr-hero {
        min-height: 560px;
        text-align: center;
    }

    .cr-hero::before {
        background: rgba(17, 24, 39, .35);
    }

    .cr-hero h1 {
        font-size: 36px;
    }

    .cr-hero-lines {
        justify-content: center;
        font-size: 20px;
        margin: 1rem 0 1.75rem;
    }

    .cr-hero-lines span + span::before {
        display: none;
    }

    .cr-hero-slogan {
        margin-top: 2.5rem;
        font-size: 15px;
    }
}

.cr-strip {
    border-bottom: 1px solid var(--cr-line);
}

.cr-strip-title {
    color: var(--cr-navy);
    font-size: 20px;
    font-weight: 700;
}

.cr-strip-sub {
    color: var(--cr-text);
    font-size: 15px;
    border-left: 1px solid var(--cr-line);
    padding-left: 1rem;
}

.cr-stat-value {
    color: var(--cr-red);
    font-size: 48px;
    font-weight: 600;
    line-height: 1.2;
}

.cr-stat-label {
    font-size: 18px;
    color: var(--cr-ink);
}

@media (max-width: 767.98px) {
    .cr-stat-value {
        font-size: 34px;
    }

    .cr-stat-label {
        font-size: 15px;
    }
}

/* Video: a poster that loads the YouTube player on click */
.cr-video {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #000 center / cover no-repeat;
    box-shadow: 0 20px 40px rgba(17, 24, 39, .12);
    cursor: pointer;
}

.cr-video::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .25);
    transition: background .2s;
}

.cr-video:hover::after {
    background: rgba(0, 0, 0, .1);
}

.cr-video .cr-video-play {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--cr-red);
    color: #fff;
    font-size: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.cr-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Service category cards: photo, navy wash, title, chips */
.cr-category {
    position: relative;
    display: block;
    min-height: 304px;
    padding: 64px 32px 32px;
    color: #fff !important;
    border-radius: 4px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.cr-category::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(29, 53, 87, .92) 0%, rgba(29, 53, 87, .6) 55%, rgba(29, 53, 87, .2) 100%);
    transition: opacity .25s;
}

.cr-category > * {
    position: relative;
}

.cr-category h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cr-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

.cr-chips span {
    border: 1px solid rgba(255, 255, 255, .85);
    padding: 1px 8px;
    font-size: 14px;
    line-height: 1.8;
}

.cr-category .btn {
    pointer-events: none;
}

/* Horizontal sliders (success stories, reviews, office): scroll-snap track + arrow buttons, see crvisa.js */
.cr-slider {
    position: relative;
}

.cr-slider-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
}

.cr-slider-track::-webkit-scrollbar {
    display: none;
}

.cr-slider-track > * {
    scroll-snap-align: start;
    flex: 0 0 calc((100% - 72px) / 4);
}

.cr-slider-3 .cr-slider-track > * {
    flex-basis: calc((100% - 48px) / 3);
}

@media (max-width: 991.98px) {
    .cr-slider-track > *,
    .cr-slider-3 .cr-slider-track > * {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 575.98px) {
    .cr-slider-track > *,
    .cr-slider-3 .cr-slider-track > * {
        flex-basis: 82%;
    }
}

.cr-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border-radius: 50%;
    border: 1px solid var(--cr-line);
    background: #fff;
    color: var(--cr-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.cr-slider-btn:hover {
    border-color: var(--cr-red);
    color: var(--cr-red);
}

.cr-slider-prev {
    left: -80px;
}

.cr-slider-next {
    right: -80px;
}

@media (max-width: 1439.98px) {
    .cr-slider-prev {
        left: -12px;
    }

    .cr-slider-next {
        right: -12px;
    }
}

/* Success story poster */
.cr-story {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    background: var(--cr-surface);
}

.cr-story img {
    display: block;
    width: 100%;
    aspect-ratio: 286 / 405;
    object-fit: cover;
    object-position: top;
}

/* The success stories page shows each poster whole */
.cr-story-full img {
    aspect-ratio: auto;
}

.cr-story-info {
    position: absolute;
    inset: 0;
    padding: 24px;
    overflow-y: auto;
    color: #fff;
    background: rgba(17, 24, 39, .88);
    opacity: 0;
    transition: opacity .25s;
    font-size: 14px;
    line-height: 1.8;
}

.cr-story:hover .cr-story-info,
.cr-story:focus-within .cr-story-info {
    opacity: 1;
}

.cr-story-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 .25rem;
}

@media (hover: none) {
    /* Touch screens show the highlights below the poster instead */
    .cr-story-info {
        position: static;
        opacity: 1;
        background: #fff;
        color: var(--cr-text);
        padding: 16px;
    }

    .cr-story-info h3 {
        color: var(--cr-navy);
    }
}

/* News */
.cr-news-cover {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    background: var(--cr-surface);
}

.cr-news-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s;
}

.cr-news-cover:hover img {
    transform: scale(1.03);
}

.cr-news-date {
    color: var(--cr-muted);
    font-size: 15px;
}

.cr-news-date .bi {
    color: var(--cr-red);
    margin-right: .5rem;
}

.cr-news-title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--cr-ink);
}

.cr-news-excerpt {
    color: var(--cr-muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-tag {
    display: inline-block;
    border: 1px solid var(--cr-line);
    color: var(--cr-text);
    font-size: 13px;
    padding: 2px 8px;
    border-radius: 2px;
}

.cr-news-item + .cr-news-item {
    border-top: 1px solid var(--cr-line);
}

/* Reviews */
.cr-review {
    height: 100%;
    background: #fff;
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
    font-size: 15px;
    color: var(--cr-text);
}

.cr-review-text {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 10.2em;
}

.cr-review img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.cr-stars {
    color: #F7B500;
    letter-spacing: 2px;
    font-size: 14px;
}

/* Team */
.cr-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    background: var(--cr-surface);
}

.cr-member h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 1.25rem 0 .5rem;
}

.cr-member p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Contact band above the footer */
.cr-cta {
    background: var(--cr-sky) center bottom / cover no-repeat;
    padding: 128px 0 140px;
    text-align: center;
}

.cr-cta h2 {
    color: var(--cr-navy);
    font-size: 40px;
    font-weight: 700;
    margin: 0;
}

.cr-cta p {
    color: var(--cr-navy);
    font-size: 26px;
    font-weight: 300;
    margin: .5rem 0 3rem;
}

.cr-cta .btn {
    min-width: 342px;
    padding: .65rem 1.5rem;
    font-size: 18px;
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .cr-cta {
        padding: 72px 0 96px;
    }

    .cr-cta h2 {
        font-size: 26px;
    }

    .cr-cta p {
        font-size: 17px;
    }

    .cr-cta .btn {
        min-width: 0;
        width: 100%;
    }
}

/* ---------- Footer ---------- */

.cr-footer {
    background: var(--cr-navy);
    color: #fff;
    padding: 64px 0 32px;
    font-size: 15px;
}

.cr-footer a {
    color: #fff !important;
}

.cr-footer a:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.cr-footer-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.cr-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cr-footer li {
    margin-bottom: .75rem;
}

.cr-qr img {
    width: 141px;
    height: 141px;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
}

.cr-qr figcaption {
    margin-top: .75rem;
}

.cr-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin-top: 48px;
    padding-top: 40px;
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
}

.cr-footer-bottom a {
    color: rgba(255, 255, 255, .65) !important;
}

.cr-footer-bottom img {
    height: 44px;
    width: auto;
}

/* ---------- Services overview ---------- */

.cr-tabs {
    background: var(--cr-surface);
}

.cr-tabs .nav-link {
    position: relative;
    padding: 2.5rem 0;
    margin: 0 2.5rem;
    color: var(--cr-muted);
    font-size: 28px;
    font-weight: 700;
    border: 0;
    background: none;
}

.cr-tabs .nav-link.active,
.cr-tabs .nav-link:hover {
    color: var(--cr-red);
}

.cr-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--cr-red);
}

@media (max-width: 767.98px) {
    .cr-tabs .nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start !important;
    }

    .cr-tabs .nav-link {
        padding: 1.25rem 0;
        margin: 0 1rem;
        font-size: 18px;
        white-space: nowrap;
    }
}

.cr-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--cr-surface);
    border-radius: 4px;
    overflow: hidden;
    color: var(--cr-ink) !important;
}

.cr-card img {
    display: block;
    width: 100%;
    aspect-ratio: 384 / 255;
    object-fit: cover;
    transition: transform .4s;
}

.cr-card-img {
    overflow: hidden;
}

.cr-card:hover img {
    transform: scale(1.04);
}

.cr-card-body {
    padding: 28px 32px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cr-card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: .5rem;
}

.cr-card-body p {
    color: var(--cr-text);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-card-body .cr-link-more {
    margin-top: auto;
}

/* ---------- Service details ---------- */

.cr-article {
    color: var(--cr-text);
    font-size: 16px;
    line-height: 1.9;
}

.cr-article h2 {
    color: var(--cr-navy);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin: 3rem 0 1.25rem;
    scroll-margin-top: 110px;
}

.cr-article h2:first-child {
    margin-top: 0;
}

.cr-article h3 {
    color: var(--cr-ink);
    font-size: 20px;
    font-weight: 700;
    margin: 2rem 0 .75rem;
}

.cr-article ul,
.cr-article ol {
    padding-left: 1.25rem;
}

.cr-article li {
    margin-bottom: .35rem;
}

.cr-article strong {
    color: var(--cr-ink);
}

.cr-article a {
    color: var(--cr-red);
}

.cr-article a:hover {
    text-decoration: underline;
}

.cr-article table {
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 15px;
}

.cr-article img {
    height: auto;
    border-radius: 4px;
}

/* Program box: one sub-program (CEC / FSW / FST, 配偶担保...) */
.cr-program {
    background: var(--cr-surface);
    border-left: 4px solid var(--cr-red);
    border-radius: 4px;
    padding: 28px 32px;
    margin-bottom: 1.5rem;
}

.cr-program h3 {
    margin-top: 0;
}

.cr-program .cr-program-en {
    display: block;
    color: var(--cr-muted);
    font-size: 14px;
    font-weight: 400;
    margin-top: .15rem;
}

/* Who it is for / problems: check lists */
.cr-checks {
    list-style: none;
    padding-left: 0 !important;
}

.cr-checks li {
    position: relative;
    padding-left: 1.75rem;
}

.cr-checks li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--cr-red);
}

/* Process: numbered steps */
.cr-steps {
    list-style: none;
    padding: 0 !important;
    counter-reset: cr-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.cr-steps li {
    counter-increment: cr-step;
    background: #fff;
    border: 1px solid var(--cr-line);
    border-radius: 4px;
    padding: 20px 16px 16px;
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.6;
    color: var(--cr-ink);
}

.cr-steps li::before {
    content: counter(cr-step, decimal-leading-zero);
    display: block;
    color: var(--cr-red);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: .35rem;
}

/* FAQ (Bootstrap accordion) */
.cr-faq .accordion-item {
    border: 0;
    border-bottom: 1px solid var(--cr-line);
    background: transparent;
}

.cr-faq .accordion-button {
    padding: 1.25rem 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--cr-ink);
    background: transparent;
    box-shadow: none;
}

.cr-faq .accordion-button:not(.collapsed) {
    color: var(--cr-red);
}

.cr-faq .accordion-body {
    padding: 0 0 1.25rem;
    color: var(--cr-text);
}

.cr-note {
    background: var(--cr-surface);
    border-radius: 4px;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--cr-muted);
    line-height: 1.8;
}

/* Sticky sidebar on the details pages */
.cr-aside {
    position: sticky;
    top: 112px;
}

.cr-aside-box {
    background: var(--cr-surface);
    border-radius: 4px;
    padding: 24px;
}

.cr-aside-box + .cr-aside-box {
    margin-top: 24px;
}

.cr-aside-title {
    color: var(--cr-navy);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cr-aside-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .55rem 0;
    border-bottom: 1px solid var(--cr-line);
    font-size: 15px;
}

.cr-aside-links a.active {
    color: var(--cr-red);
    font-weight: 600;
}

.cr-toc a {
    display: block;
    padding: .3rem 0 .3rem .75rem;
    border-left: 2px solid var(--cr-line);
    font-size: 14px;
    color: var(--cr-text);
}

.cr-toc a:hover {
    border-left-color: var(--cr-red);
}

.cr-qr-small {
    width: 140px;
    height: 140px;
}

/* Blog list (sidebar and related articles) */
.cr-post-mini {
    display: flex;
    gap: 12px;
    padding: 10px 0;
}

.cr-post-mini img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
}

.cr-post-mini-title {
    font-size: 14px;
    line-height: 1.6;
    color: var(--cr-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-post-mini-date {
    font-size: 12px;
    color: var(--cr-muted);
}

.cr-post-row {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(17, 24, 39, .06);
    color: var(--cr-ink) !important;
}

@media (min-width: 768px) {
    .cr-post-row {
        flex-direction: row;
    }

    .cr-post-row .cr-post-row-img {
        flex: 0 0 305px;
    }
}

.cr-post-row-img img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 250px;
    object-fit: cover;
}

.cr-post-row-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.cr-post-row-body h2,
.cr-post-row-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    margin: .75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-post-row-body p {
    color: var(--cr-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article body */
.cr-blog-body {
    font-size: 16px;
    line-height: 1.95;
    color: var(--cr-ink);
}

.cr-blog-body h2 {
    color: var(--cr-navy);
    font-size: 24px;
    font-weight: 700;
    margin: 2.25rem 0 1rem;
}

.cr-blog-body h3 {
    font-size: 19px;
    font-weight: 700;
    margin: 1.75rem 0 .75rem;
}

.cr-blog-body img {
    display: block;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 4px;
}

.cr-blog-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    font-size: 14px;
}

/* Long links and English terms in migrated articles must not widen the page on phones */
.cr-blog-body,
.cr-article {
    overflow-wrap: anywhere;
}

.cr-blog-body .ql-align-center {
    text-align: center;
}

.cr-blog-body .ql-align-justify {
    text-align: justify;
}

/* ---------- Consultation form ---------- */

.cr-form-wrap {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(17, 24, 39, .08);
    padding: 40px;
}

@media (max-width: 575.98px) {
    .cr-form-wrap {
        padding: 24px 16px;
    }
}

.cr-form .form-label {
    font-weight: 600;
    font-size: 15px;
    color: var(--cr-ink);
}

.cr-form .form-control,
.cr-form .form-select {
    border-radius: 2px;
    border-color: #C9CDD4;
    padding: .6rem .85rem;
}

.cr-form .form-control:focus,
.cr-form .form-select:focus {
    border-color: var(--cr-navy);
    box-shadow: 0 0 0 .2rem rgba(29, 53, 87, .12);
}

.cr-required {
    color: var(--cr-red);
}

.cr-optional {
    color: var(--cr-muted);
    font-weight: 400;
    font-size: 13px;
}

/* Radio choices shown as chips */
.cr-pill input {
    position: absolute;
    opacity: 0;
}

.cr-pill label {
    display: inline-block;
    padding: .4rem 1rem;
    border: 1px solid #C9CDD4;
    border-radius: 2px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.cr-pill input:checked + label {
    border-color: var(--cr-red);
    color: var(--cr-red);
    background: #FFF5F5;
}

.cr-pill input:focus-visible + label {
    outline: 2px solid var(--cr-navy);
    outline-offset: 2px;
}

/* ---------- Consult modal ---------- */

.cr-modal .modal-content {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(160deg, #EEF2F9 0%, #fff 45%);
}

.cr-modal-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
}

.cr-modal-qr {
    width: 180px;
    height: 180px;
}

/* ---------- About ---------- */

.cr-about-hero {
    background: var(--cr-surface);
    padding: 64px 0 220px;
}

.cr-about-hero h1 {
    color: var(--cr-navy);
    font-size: 88px;
    font-weight: 700;
    line-height: 1.2;
    margin: 1.25rem 0 2rem;
}

.cr-about-hero .cr-about-sub {
    color: var(--cr-navy);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
}

.cr-about-video {
    margin-top: -160px;
}

@media (max-width: 767.98px) {
    .cr-about-hero {
        padding: 48px 0 120px;
    }

    .cr-about-hero h1 {
        font-size: 40px;
    }

    .cr-about-hero .cr-about-sub {
        font-size: 18px;
    }

    .cr-about-video {
        margin-top: -90px;
    }
}

.cr-cert {
    display: block;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.cr-cert img {
    display: block;
    width: 100%;
    aspect-ratio: 379 / 292;
    object-fit: cover;
    object-position: top;
}

.cr-cert-tall img {
    aspect-ratio: 379 / 556;
}

.cr-office img {
    display: block;
    width: 100%;
    aspect-ratio: 608 / 342;
    object-fit: cover;
    border-radius: 4px;
}

.cr-contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FDE8EA;
    color: var(--cr-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.cr-map iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
    border-radius: 6px;
}

/* ---------- Calculators ---------- */

.cr-calc {
    font-size: 15px;
}

.cr-calc table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.cr-calc th,
.cr-calc td {
    border: 1px solid #4B5563;
    padding: 12px;
    vertical-align: middle;
}

.cr-calc .cr-calc-label {
    width: 120px;
    text-align: center;
    color: var(--cr-navy);
    font-weight: 700;
}

.cr-calc .cr-calc-score {
    width: 120px;
    text-align: center;
    color: var(--cr-red);
    font-size: 20px;
    font-weight: 600;
}

.cr-calc .cr-calc-group th {
    background: var(--cr-navy);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.cr-calc .cr-calc-group th:last-child {
    font-weight: 400;
    font-size: 13px;
}

.cr-calc .form-control,
.cr-calc .form-select {
    border-radius: 4px;
    max-width: 220px;
}

.cr-calc .cr-calc-short {
    width: 96px;
    display: inline-block;
}

.cr-calc .cr-calc-box {
    background: var(--cr-surface);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.8;
}

.cr-calc .cr-calc-total th,
.cr-calc .cr-calc-total td {
    background: var(--cr-surface);
    font-size: 18px;
}

.cr-calc .cr-calc-total .cr-calc-score {
    font-size: 30px;
}

.cr-calc-note {
    color: var(--cr-muted);
    font-size: 13px;
}

@media (max-width: 767.98px) {
    .cr-calc th,
    .cr-calc td {
        display: block;
        width: 100% !important;
        border-width: 0 1px 1px;
    }

    .cr-calc .cr-calc-label {
        text-align: left;
        background: var(--cr-surface);
    }

    .cr-calc .cr-calc-score {
        text-align: right;
    }

    .cr-calc table {
        border-top: 1px solid #4B5563;
    }
}

.cr-tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--cr-line);
    border-radius: 8px;
    padding: 40px 32px;
}

.cr-tool-card h2 {
    color: var(--cr-navy);
    font-size: 24px;
    font-weight: 700;
}

.cr-tool-card p {
    color: var(--cr-text);
    font-size: 15px;
}

/* ---------- Pagination (success stories, blogs) ---------- */

.cr-pagination .page-link {
    color: var(--cr-ink);
    border-color: var(--cr-line);
    min-width: 40px;
    text-align: center;
}

.cr-pagination .page-item.active .page-link {
    background: var(--cr-red);
    border-color: var(--cr-red);
    color: #fff;
}

.cr-pagination .page-link:hover {
    color: var(--cr-red);
}

/* Back to top (./awdp/js/style-dp.js) */
.back-top {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 1020;
    display: none;
    cursor: pointer;
}

.back-top > div {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--cr-navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(17, 24, 39, .2);
}
