/* ── Inner-page banner with breadcrumb ────────────────────────────── */

.page-banner {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #1a3a6e;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.18) 0%,
        rgba(0, 0, 0, 0.40) 100%
    );
    pointer-events: none;
}

/* ── Breadcrumb — full-width, sát đỉnh banner ─────────────────────── */
.page-banner-breadcrumb {
    position: relative;
    z-index: 2;
    width: 100%;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 0;
}

.page-banner-breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-banner-crumb {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 16px;
    text-decoration: none;
    transition: color 0.2s;
}

.page-banner-crumb:hover {
    color: #fff;
}

.page-banner-crumb--active {
    color: #fff;
    font-weight: 500;
    cursor: default;
}

.page-banner-sep {
    color: rgba(255, 255, 255, 0.55);
    font-size: 16px;
    line-height: 1;
}

/* ── Title — vị trí absolute dưới cùng, thẳng lề với content ─────── */
.page-banner-inner {
    position: absolute;
    bottom: 0px;
    left: 0;
    right: 0;
    z-index: 1;
    /* margin 0 5rem lấy từ class .inner — thẳng lề trái với .container.inner bên dưới */
}

.page-banner-title {
    color: #fff;
    font-size: 65px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

/* ── Action buttons ───────────────────────────────────────────────── */
.page-banner-actions {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-banner-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    color: #333;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.page-banner-action-btn:hover {
    background: rgba(44, 119, 192, 1);
    color: #fff;
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .page-banner-actions {
        right: 12px;
    }

    .page-banner-action-btn {
        width: 38px;
        height: 38px;
    }

    .page-banner-action-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .page-banner {
        height: 260px;
    }
    .page-banner-inner {
        bottom: 28px;
    }
    .page-banner-title {
        font-size: 1.75rem;
    }

    /* Toàn bộ breadcrumb gói trong ĐÚNG 1 dòng, dài quá thì cắt bằng "…" ở cuối dòng.
       CHỈ áp dụng cho breadcrumb có class --ellipsis (bật bằng cách truyền
       crumb_ellipsis=true vào partial components/page-banner) — những trang có crumb cuối
       là tiêu đề do admin nhập nên có thể rất dài: chi tiết tin tức (tiêu đề bài viết) và
       lĩnh vực kinh doanh (tên lĩnh vực).

       Cắt ở cấp container (không phải cấp từng crumb): đổi từ flex sang block để
       text-overflow có tác dụng — text-overflow chỉ hoạt động trên block container có
       nội dung inline, không hoạt động trên flex container. */
    .page-banner-breadcrumb--ellipsis .page-banner-breadcrumb-inner {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Các crumb chuyển sang inline để chảy trong dòng text của container.
       Giữ inline-flex thì chúng thành hộp nguyên khối, "…" sẽ nhảy vị trí khó đoán. */
    .page-banner-breadcrumb--ellipsis .page-banner-crumb,
    .page-banner-breadcrumb--ellipsis .page-banner-sep {
        display: inline;
    }

    /* gap của flex không còn tác dụng khi đã chuyển sang block/inline — tự tạo khoảng cách */
    .page-banner-breadcrumb--ellipsis .page-banner-sep {
        margin: 0 4px;
    }
}

@media (max-width: 480px) {
    .page-banner {
        height: 220px;
    }
    .page-banner-title {
        font-size: 1.4rem;
    }
}
