/* Homepage banner slider controls. */
.cms-header-logo-mobile {
    display: none;
}

@media (max-width: 1199px) {
    .cms-header-logo-desktop {
        display: none;
    }

    .cms-header-logo-mobile {
        display: block;
    }
}

.cms-home-banner-navigation {
    position: absolute;
    z-index: 4;
    inset: 50% 32px auto;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.cms-home-banner .cms-home-banner-arrow {
    position: static;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    color: #fff;
    background: rgba(7, 18, 48, 0.42);
    box-shadow: 0 8px 24px rgba(7, 18, 48, 0.18);
    pointer-events: auto;
    transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.cms-home-banner .cms-home-banner-arrow:hover,
.cms-home-banner .cms-home-banner-arrow:focus-visible {
    border-color: var(--rs-theme-yellow);
    color: #071230;
    background: var(--rs-theme-yellow);
}

.cms-home-banner .cms-home-banner-arrow i {
    font-size: 22px;
    line-height: 1;
}

@media (min-width: 992px) {
    .cms-home-banner .rs-banner-content {
        transform: translateY(-48px);
    }

    .cms-home-banner .rs-banner-title {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .rs-header-area.rs-header-three > .container-fluid > .rs-header-top {
        display: none !important;
    }

    .cms-home-banner-navigation {
        inset-inline: 12px;
    }

    .cms-home-banner .cms-home-banner-arrow {
        width: 40px;
        height: 40px;
    }
}

/* Khối SKATMTCL trên trang chủ. */
.cms-hseq-home {
    padding: 0 0 100px;
}

.cms-hseq-home-card {
    position: relative;
    min-height: clamp(280px, 27.25vw, 390px);
    overflow: hidden;
    background: var(--rs-theme-light-blue);
    box-shadow: none;
}

.cms-hseq-home-card::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    clip-path: polygon(54.5% 0, 55.5% 0, 29.5% 100%, 28.5% 100%);
    background: #fff;
    pointer-events: none;
}

.cms-hseq-home-media,
.cms-hseq-home-media::after {
    position: absolute;
    inset: 0;
}

.cms-hseq-home-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cms-hseq-home-media::after {
    content: "";
    background: linear-gradient(90deg, rgba(10, 105, 160, 0.28) 0%, rgba(10, 105, 160, 0) 70%);
}

.cms-hseq-home-panel {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    display: flex;
    align-items: center;
    width: 100%;
    color: #fff;
    background: var(--rs-theme-light-blue);
    clip-path: polygon(0 0, 55% 0, 29% 100%, 0 100%);
}

.cms-hseq-home-content {
    width: 29%;
    padding: 36px 0 34px 28px;
}

.cms-hseq-home-content h2 {
    margin-bottom: 16px;
    color: #fff;
    font-size: clamp(25px, 2.2vw, 36px);
    line-height: 1.15;
}

.cms-hseq-home-content p {
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.55;
    text-align: justify;
    text-justify: inter-word;
}

.cms-hseq-home-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.25s ease, background-color 0.25s ease;
}

.cms-hseq-home-link:hover,
.cms-hseq-home-link:focus-visible {
    color: var(--rs-title-primary);
    background: #fff;
}

/* Điều hướng và trạng thái danh sách tài liệu SKATMTCL. */
.cms-hseq-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.cms-hseq-category-nav a,
.cms-hseq-category-nav button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid #d9e1ec;
    border-radius: 4px;
    color: #233a7a;
    background: #fff;
    font-weight: 700;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cms-hseq-category-nav a:hover,
.cms-hseq-category-nav a:focus-visible,
.cms-hseq-category-nav a.active,
.cms-hseq-category-nav button:hover,
.cms-hseq-category-nav button:focus-visible,
.cms-hseq-category-nav button.active {
    border-color: #009d48;
    color: #fff;
    background: #009d48;
}

.cms-hseq-tab-panel {
    display: none;
}

.cms-hseq-tab-panel.active {
    display: block;
}

.cms-hseq-file-missing {
    color: #717b8c;
    font-size: 14px;
}

.rs-footer-two .rs-footer-widget-number .cms-footer-fax-number {
    display: inline;
    color: var(--rs-text-secondary);
}

@media (max-width: 991px) {
    .cms-hseq-home {
        padding-bottom: 72px;
    }

    .cms-hseq-home-content {
        padding-left: 24px;
    }
}

@media (max-width: 767px) {
    .cms-hseq-home {
        padding-bottom: 56px;
    }

    .cms-hseq-home-card {
        min-height: 520px;
    }

    .cms-hseq-home-card::after {
        display: none;
    }

    .cms-hseq-home-media {
        inset: 0 0 auto;
        height: 48%;
    }

    .cms-hseq-home-panel {
        inset: auto 0 0;
        width: 100%;
        height: 58%;
        clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
    }

    .cms-hseq-home-content {
        width: 100%;
        padding: 54px 24px 30px;
    }

    .cms-hseq-home-content p {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .cms-hseq-category-nav {
        flex-direction: column;
    }

    .cms-hseq-category-nav a,
    .cms-hseq-category-nav button {
        width: 100%;
    }
}
