﻿a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: var(--fs-16);
    line-height: inherit;
}

.footer {
    /* position: absolute;
    bottom: 0;*/
    width: 100%;
    white-space: nowrap;
}

.e-icon {
    display: inline-block;
    color: inherit;
    text-align: center;
    /*vertical-align: -0.125rem;*/
    vertical-align: middle;
    fill: currentcolor;
}

    .e-icon.e-icon-lg {
        width: 1.25rem;
        height: 1.25rem;
        font-size: var(--fs-20);
    }

.button-group-center {
    display: block;
    text-align: center;
}

/* ===== Footer – Core, dùng cho mọi trang ===== */
.footer {
    width: 100%;
    background: #DEE7FF;
    color: #555;
    font-size: var(--fs-13);
    white-space: normal;
}

/* Khoảng đệm mặc định, có thể override theo trang */
.footer-container {
    display: flex;
    flex-wrap: wrap; /* wrap mặc định để tránh vỡ layout */
    align-items: stretch;
    justify-content: space-between;
    padding: 12px max(6vw, 16px);
    width: 100%;
}

.footer-header-text {
    margin-bottom: 0px;
}

/* Link & custom link */
.footer a {
    text-decoration: none;
}

    .footer a:hover {
        text-decoration: underline;
        text-decoration-color: var(--primary-color);
    }

    .footer a.custom-link {
        text-decoration: underline;
        text-decoration-color: var(--primary-color);
        color: var(--primary-color);
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* Nhãn/đoạn văn dùng chung */
.shinhan-description-text {
    font-family: ShinhanMedium;
    font-size: var(--fs-16);
    color: #666A79;
}

.footer-info-text {
    font-family: ShinhanLight;
    font-size: var(--fs-14);
    color: #404557;
    margin-bottom: 10px;
    line-height: 1.45;
    text-align: start;
}

.footer-link-text {
    font-family: ShinhanMedium;
    font-size: var(--fs-14);
    color: var(--primary-color);
}

.shinhan-logo, .footer-logo {
    width: min(180px, 60vw);
    height: auto;
    display: block;
    margin-bottom: 5px;
}

/* Khu social – hit area tốt, ảnh mặc định 22px (override theo trang nếu cần) */
.social-icon {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .social-icon a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
    }

    .social-icon img {
        width: 22px;
        height: 22px;
    }

/* Hàng cuối (legal/điều khoản) – KHÔNG border mặc định, trang nào cần tự thêm */
.footer-bottom {
    width: 100%;
    padding: 8px 0;
}

    .footer-bottom a,
    .footer-bottom .divider {
        color: var(--primary-color);
        font-family: ShinhanLight;
        font-size: var(--fs-16);
        margin: 0;
    }

.header-nav button {
    border: none;
    background-color: unset;
    color: white;
}


.header {
    /* position: sticky; 26.08: CR số 241 yêu cầu bỏ header cuộn theo*/
    top: 0;
    /* z-index: 1025; */
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: none;
}

.header-nav {
    margin-left: auto; /* Đẩy sang phải nếu cha là flex */
    display: flex;
    align-items: center;
    gap: 1rem; /* Khoảng cách giữa các nút */
}

.header.scrolled {
    /* background-color: rgba(255, 255, 255, 0.8);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px); */
    color: #2c2f36;
}

    .header.scrolled button {
        color: #2c2f36 !important; /* text đen xám dễ đọc */
    }

.header-button {
    font-size: var(--fs-14);
    font-family: ShinhanMedium;
}

.header-container {
    padding: 0px 1.5rem;
}

.sidebar {
    background: url('/images/bg-menu.png');
    background-size: cover;
    background-repeat: no-repeat;
    border-right: 1px solid var(--neutral-100, #E6E6E9);
    --cui-sidebar-width: var(--customer-portal-sidebar-width);
    width: var(--customer-portal-sidebar-width);
}

.sidebar-nav .nav-link {
    color: #404557;
    font-size: var(--fs-16);
    font-family: ShinhanMedium;
}

    .sidebar-nav .nav-link:hover,
    .sidebar-nav .nav-link.active {
        border-radius: 16px;
    }

    .sidebar-nav .nav-link:not(.active):hover {
        color: #404557;
        text-decoration: none;
        background: #FFFFFFB2;
        border-radius: 16px;
    }

    .sidebar-nav .nav-group.show .nav-group-toggle {
        background: none !important;
        color: inherit !important;
        border-radius: 0 !important;
        cursor: default;
    }

    .sidebar-nav .nav-link.no-hover:hover,
    .sidebar-nav .nav-link.no-hover:not(.active):hover
    {
        background: none !important;
        color: inherit !important;
        border-radius: 0 !important;
        cursor: default;
    }

    .sidebar-nav .nav-group.show {
        background: #FFFFFFB2;
        padding: 12px;
        backdrop-filter: blur(6.800000190734863px);
        border-radius: 16px;
    }

.sidebar-nav .nav-group .nav-item.active .nav-link.active,
.sidebar-nav .nav-group .nav-item .nav-link:hover
{
    border-radius: 4px;
    background-color: #E5ECFF;
    color: #0046FF;
    padding-top: 16px;
    padding-bottom: 16px;
}

.sidebar-nav .nav-group-toggle::after {

}

.nav-link img {
    height: 30px !important;
}

.nav-item.border-top {
    border-top: 1px solid #c1c1c1 !important;
}

.sidebar-nav .nav-item + .nav-item,
.sidebar-nav .nav-item + .nav-group,
.sidebar-nav .nav-group + .nav-item {
    margin-top: 24px;
}

.sidebar-nav .nav-group .nav-group-items .nav-item:not(first-child) {
   margin-top: 16px;
}

.shinhan-logo {
    width: 188px;
    height: 31px;
}

.sidebar-header {
    height: 82px;
    padding: 24px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simplebar-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

sidebar
.icon-scale-down {
    transform: scale(0.5);
    transform-origin: center;
}

.sidebar-toggler:focus {
    box-shadow: none !important;
}

.sidebar-toggler::before {
    background-color: #0046ff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggler:hover::before {
    background-color: #0036cc; /* xanh đậm hơn */
    box-shadow: 0 4px 10px rgba(0, 70, 255, 0.4); /* đổ bóng nhẹ */
    transform: translateY(-2px); /* nổi lên một chút */
}

.sidebar-toggler::before:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 70, 255, 0.3);
}

/* -------- Tablet (≤ 992px) -------- */
@media (max-width: 992px) {
    .footer-container {
        gap: 1rem;
    }

    .shinhan-description-text {
        font-size: var(--fs-14);
    }

    .footer-bottom a,
    .footer-bottom .divider {
        font-size: var(--fs-14);
    }

    .footer-info-text, .footer-link-text {
        font-size: var(--fs-13);
    }
}

/* -------- Mobile (≤ 576px) -------- */
@media (max-width: 576px) {
    .footer-container {
        --cui-gutter-x: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px;
        padding-right: calc(var(--cui-gutter-x) * 0.5);
        padding-left: calc(var(--cui-gutter-x) * 0.5);
    }

    .shinhan-logo, .footer-logo {
        width: min(160px, 60vw);
    }

    .footer-bottom {
        padding: 0;
        text-align: start;
    }

    .footer-bottom a, .footer-bottom .divider {
        display: inline-block;
        font-size: var(--fs-14);
    }

    .footer-info-text {
        /*justify-content: center !important;*/
        text-align: start;
        margin-bottom: 5px;
    }

        .footer-info-text i {
            margin-right: 6px !important;
        }

    .header-container {
        padding: 0px 15px;
    }

    .social-icon {
        margin-top: 0px !important;
        justify-content: end;
    }

    .social-icon a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 25px;
        height: 25px;
    }

    .simplebar-content .nav-item:not(:first-child) {
        margin-top: 8px;
    }
}

/* -------- Extra small (≤ 360px) -------- */
@media (max-width: 360px) {
    .footer-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-bottom a, .footer-bottom .divider {
    }
}