﻿:root {
    --banner-h: clamp(80px, 7vw, 160px);
    --pad-y: calc(var(--banner-h) * 0.5); /* padding trên/dưới */
    --pad-r: calc(var(--banner-h) * 0.4); /* padding phải để tránh corner */

    /* Kích thước cạnh tam giác cắt xéo (theo chiều cao corner) */
    --cut: calc(var(--banner-h) * 1); /* tăng/giảm 0.28 để chỉnh độ lớn vết cắt */
}

.background-image {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0 !important;
    background-image: url('/images/bg-licence.png');
    background-position: top center;
    pointer-events: none;
    z-index: -2;
}

.header-banner {
    background: linear-gradient(90deg, #e6e6fa 0%, #d6e0fa 100%);
    padding: 0;
    margin-bottom: 0;
    position: relative;
    min-height: 140px;
}

    .header-banner .header-content {
        max-width: 900px;
        margin: 0 auto;
        padding: 32px 0 16px 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .header-banner img {
        height: 40px;
        margin-bottom: 12px;
    }

.header-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.content-container {
    height: 100vh;
    padding-top: 160px;
    box-sizing: border-box;
}

.content-wrapper {
    background: #fff;
}

.title-banner {
    position: relative;
    display: flex; /* để ôm đúng chiều cao nội dung */
    align-items: stretch;
}

.content-title {
    position: relative;
    z-index: 0; /* quan trọng: để miếng cắt nằm trên nền nhưng dưới corner */
    box-sizing: border-box; /* đảm bảo min-height tính gồm padding */
    display: block;
    align-items: center; /* căn giữa theo chiều dọc nếu 1 dòng */
    background-color: #dcdcdc;
    /* Padding theo tỉ lệ SVG (KHÔNG dùng lh) */
    padding-block: var(--pad-y) calc(var(--pad-y) / 2);
    padding-inline: 16px var(--pad-r);
    /* Với tiêu đề 1 dòng, đảm bảo “corner” luôn trông dày:
     1lh chỉ là mốc nội dung, phần dày do pad-y quyết định */
    min-height: calc(1lh + 2 * var(--pad-y));
    color: var(--primary-color);
    font-size: var(--fs-32);
    font-family: ShinhanBold;
    width: 100%;
}

/* Corner vẫn đè lên nền, cao bằng khối tiêu đề */
.title-banner .corner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* ▼ Miếng cắt xéo màu trắng ở góc phải dưới */
.title-banner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: var(--cut);
    height: var(--cut);
    background: white;
    /* tam giác: giữ đúng ở góc phải dưới */
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    z-index: 1; /* trên nền (.content-title z-index:0), dưới corner (z-index:2) */
    pointer-events: none;
}

/* Trạng thái fixed */
.title-banner.fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    width: 100%;
}

.content-body {
    font-family: ShinhanLight !important;
    padding: 60px;
}

    .content-body p {
        text-indent: 0 !important;
    }

.error-message, .loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    text-align: center;
}

.btn-retry {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

    .btn-retry:hover {
        background-color: #5a4bb8;
    }

@keyframes slideDown {
    from {
        top: -100px;
        opacity: 0;
    }

    to {
        top: 0;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .content-body {
        font-family: ShinhanLight !important;
        padding: 15px 30px;
    }

    .header-banner .header-content {
        padding: 18px 0 8px 0;
    }

    .content-title {
        font-size: var(--fs-18);
    }
}

/* styles cho tablet */
@media (min-width: 600px) and (max-width: 1024px) {

} 