:root {
    --bp-orange: #ff6b00;
    --bp-orange-dark: #e55f00;
    --bp-blue: #0066b3;
    --bp-blue-dark: #04488f;
    --bp-navy: #0b2545;
    --bp-ink: #0f172a;
    --bp-muted: #64748b;
    --bp-line: #e2e8f0;
}

.blog-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 1.1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.35);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12);
}

.blog-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

.blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
    transform: scale(1.06);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem 1.05rem 1.05rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.blog-card-topic {
    color: var(--bp-orange);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-card-time {
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: var(--bp-muted);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.blog-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--bp-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
}

.blog-card-title a:hover,
.blog-card:hover .blog-card-title a {
    color: var(--bp-orange);
}

.blog-card-excerpt {
    margin: 0.5rem 0 0;
    color: var(--bp-muted);
    font-size: 0.86rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.9rem;
}

.blog-card-foot time {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bp-blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
}

.blog-card-link i {
    font-size: 0.7rem;
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-card-link,
.blog-card-link:hover {
    color: var(--bp-orange);
}

.blog-card:hover .blog-card-link i {
    transform: translateX(3px);
}

.blog-load-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.blog-load-more {
    min-width: 220px;
    min-height: 48px;
    padding: 0.75rem 1.6rem;
    border: 0;
    border-radius: 0.85rem;
    background: var(--bp-navy);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.blog-load-more:hover {
    background: #071a30;
}

.blog-load-more.is-loading,
.blog-load-more:disabled {
    opacity: 0.7;
    cursor: wait;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 4rem 1rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    text-align: center;
    color: var(--bp-muted);
}

.blog-detail-hero {
    background-color: var(--bp-navy);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
}

.blog-detail-hero-shade {
    min-height: 360px;
    display: flex;
    align-items: center;
    background: linear-gradient(100deg, rgba(7, 18, 38, 0.94) 0%, rgba(7, 18, 38, 0.78) 46%, rgba(7, 18, 38, 0.42) 100%);
    padding: 3.25rem 0 3.5rem;
}

.blog-detail-hero h1 {
    max-width: 46rem;
    margin: 0.85rem 0 0.55rem;
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.blog-detail-lead {
    max-width: 44rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.02rem;
    line-height: 1.65;
}

.blog-detail-body {
    background: #f8fafc;
    padding: 2.5rem 0 3.5rem;
}

.blog-article {
    font-size: 1.02rem;
    line-height: 1.8;
    color: #334155;
}

.blog-article h2,
.blog-article h3 {
    margin: 1.6rem 0 0.7rem;
    color: var(--bp-ink);
    font-weight: 800;
    line-height: 1.3;
}

.blog-article h2 { font-size: 1.25rem; }
.blog-article h3 { font-size: 1.08rem; }

.blog-article p { margin: 0 0 0.9rem; }
.blog-article ul,
.blog-article ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.blog-article li { margin: 0.3rem 0; }
.blog-article a { color: var(--bp-orange); font-weight: 700; }
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: 0.9rem;
    margin: 1rem 0;
}
.blog-article blockquote {
    margin: 1.1rem 0;
    padding: 0.85rem 1rem;
    border-left: 4px solid var(--bp-orange);
    background: #fff7ed;
    color: #9a3412;
    border-radius: 0 0.75rem 0.75rem 0;
}

.blog-related-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.blog-related-head h2 {
    margin: 0;
    color: var(--bp-ink);
    font-size: 1.35rem;
    font-weight: 800;
}

.blog-related-head p {
    margin: 0.2rem 0 0;
    color: var(--bp-muted);
    font-size: 0.88rem;
}

.blog-share {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.blog-share a,
.blog-share button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 38px;
    padding: 0.45rem 0.85rem;
    border-radius: 0.7rem;
    border: 1px solid var(--bp-line);
    background: #fff;
    color: var(--bp-ink);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.blog-share a:hover,
.blog-share button:hover {
    border-color: #fdba74;
    color: var(--bp-orange);
}

.blog-side-related {
    display: grid;
    gap: 0.65rem;
}

.blog-side-related a {
    display: block;
    padding: 0.85rem 0.95rem;
    background: #fff;
    border: 1px solid var(--bp-line);
    border-radius: 0.9rem;
    text-decoration: none;
}

.blog-side-related a:hover { border-color: #fdba74; }
.blog-side-related strong { display: block; color: var(--bp-ink); font-size: 0.9rem; }
.blog-side-related span { color: var(--bp-muted); font-size: 0.78rem; }

@media (max-width: 1199.98px) {
    .blog-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
    .blog-card-grid { grid-template-columns: 1fr; }
    .blog-detail-hero-shade { min-height: 300px; padding: 2.4rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-media img,
    .blog-card-link i { transition: none; }
    .blog-card:hover { transform: none; }
}
