/* Scoped to public blog listing and detail */
html:has(.blogs-page),
body:has(.blogs-page) {
    overflow-x: hidden;
}

.blogs-page {
    overflow-x: hidden;
    color: #0a0933;
}

.blogs-page .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: clamp(12px, 3vw, 48px);
    padding-right: clamp(12px, 3vw, 48px);
}

.blogs-page [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.blogs-page img {
    max-width: 100%;
    height: auto;
}

.blogs-page a:focus-visible,
.blogs-page button:focus-visible,
.blogs-page input:focus-visible {
    outline: 3px solid #00B4D8;
    outline-offset: 2px;
}

.blogs-page .bl-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0933 0%, #023e8a 55%, #00B4D8 100%);
    color: #fff;
    padding: 3rem 0 4rem;
}

.blogs-page .bl-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -70px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    pointer-events: none;
    z-index: -1;
}

.blogs-page .bl-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.blogs-page .bl-breadcrumb a {
    color: #d4af37;
}

.blogs-page .bl-breadcrumb .active,
.blogs-page .bl-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.blogs-page .bl-hero h1 {
    font-size: clamp(1.6rem, 3.6vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.blogs-page .bl-hero .lead,
.blogs-page .bl-hero .bl-meta {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.25rem;
}

.blogs-page .bl-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blogs-page .bl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    font-weight: 600;
    background: #d4af37;
    color: #0a0933;
    border: 2px solid #d4af37;
    text-decoration: none;
}

.blogs-page .bl-btn:hover {
    background: #c9a227;
    color: #0a0933;
    text-decoration: none;
}

.blogs-page .bl-btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
}

.blogs-page .bl-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.blogs-page .bl-btn-outline {
    background: transparent;
    color: #00B4D8;
    border-color: #00B4D8;
}

.blogs-page .bl-btn-outline:hover {
    background: rgba(0, 180, 216, 0.08);
    color: #00B4D8;
}

.blogs-page .bl-section {
    padding: 2.5rem 0 3rem;
}

.blogs-page .bl-section--muted {
    background: #f6f8fb;
}

.blogs-page .bl-section h2 {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.blogs-page .bl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.blogs-page .bl-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 180, 216, 0.28);
    color: #00B4D8;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.blogs-page .bl-chips a:hover {
    background: #eef8fb;
    text-decoration: none;
}

.blogs-page .bl-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.08);
    border-radius: 14px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(10, 9, 51, 0.04);
    min-width: 0;
}

@media (min-width: 768px) {
    .blogs-page .bl-item {
        grid-template-columns: 220px minmax(0, 1fr);
        align-items: start;
    }
}

.blogs-page .bl-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.blogs-page .bl-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.4rem;
}

.blogs-page .bl-item h3 a {
    color: #0a0933;
    text-decoration: none;
}

.blogs-page .bl-item h3 a:hover {
    color: #00B4D8;
}

.blogs-page .bl-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    color: #667;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.blogs-page .bl-item p {
    margin: 0 0 0.75rem;
    color: #445;
}

.blogs-page .bl-empty {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    color: #445;
}

.blogs-page .bl-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.blogs-page .bl-pagination .pagination {
    flex-wrap: wrap;
}

.blogs-page .bl-aside {
    min-width: 0;
}

.blogs-page .bl-panel {
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.08);
    border-radius: 14px;
    padding: 1.15rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px rgba(10, 9, 51, 0.04);
}

.blogs-page .bl-panel h2 {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
}

.blogs-page .bl-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 0.4rem;
    align-items: stretch;
}

.blogs-page .bl-search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(10, 9, 51, 0.16);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
}

.blogs-page .bl-search button {
    flex: 0 0 44px;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: #00B4D8;
    color: #fff;
}

.blogs-page .bl-popular {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    margin-bottom: 0.85rem;
}

.blogs-page .bl-popular:last-child {
    margin-bottom: 0;
}

.blogs-page .bl-popular img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.blogs-page .bl-popular a {
    color: #0a0933;
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.blogs-page .bl-popular a:hover {
    color: #00B4D8;
}

.blogs-page .bl-form-status {
    min-height: 1.25rem;
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.blogs-page .bl-form-status.is-ok {
    color: #0a7a32;
}

.blogs-page .bl-form-status.is-err {
    color: #b42318;
}

.blogs-page .bl-cover {
    width: 100%;
    max-height: 380px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.25rem;
}

.blogs-page .bl-body {
    max-width: 46rem;
    color: #223;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.blogs-page .bl-body p {
    margin-bottom: 1rem;
}

.blogs-page .bl-related {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .blogs-page .bl-related {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.blogs-page .bl-related article {
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.blogs-page .bl-related img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blogs-page .bl-related h3 {
    font-size: 1rem;
    margin: 0.85rem 0.9rem 0.35rem;
}

.blogs-page .bl-related h3 a {
    color: #0a0933;
    text-decoration: none;
}

.blogs-page .bl-related h3 a:hover {
    color: #00B4D8;
}

.blogs-page .bl-related time {
    display: block;
    margin: 0 0.9rem 0.9rem;
    color: #667;
    font-size: 0.85rem;
}

.blogs-page .bl-alert {
    margin: 1rem clamp(12px, 3vw, 48px) 0;
}

@media (prefers-reduced-motion: reduce) {
    .blogs-page * {
        animation: none !important;
        transition: none !important;
    }
}
