
/* ═══════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════ */
.bl-page {
    background: var(--web-white);
    min-height: 60vh;
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
═══════════════════════════════════════════════════════ */
.bl-breadbar {
    background: var(--web-gray-light);
    border-bottom: 1px solid var(--web-gray-border);
    padding: 12px 0;
}
.bl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    font-size: 13px;
    color: var(--web-gray-muted);
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.bl-breadcrumb li {
    display: flex;
    align-items: center;
}
.bl-breadcrumb a {
    color: var(--web-gray-body);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
    padding: 0 4px;
}
.bl-breadcrumb a:first-child { padding-left: 0; }
.bl-breadcrumb a:hover       { color: var(--web-teal); }
.bl-breadcrumb__sep          { color: var(--web-gray-muted); font-size: 12px; padding: 0 2px; }
.bl-breadcrumb__current      { color: var(--web-gray-muted); padding: 0 4px; }

/* ═══════════════════════════════════════════════════════
   FILTER / CATEGORY BAR
═══════════════════════════════════════════════════════ */
.bl-filterbar {
    background: var(--web-white);
    padding: 24px 0;
    border-bottom: 1px solid var(--web-gray-border);
}
.bl-cats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}
.bl-cat-btn {
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    white-space: nowrap;
    line-height: 1;
    border: 2px solid var(--web-gray-border);
    background: transparent;
    color: var(--web-gray-body);
    text-decoration: none;
    display: inline-block;
}
.bl-cat-btn:hover {
    border-color: var(--web-teal);
    color: var(--web-teal);
    text-decoration: none;
    background: transparent;
}
.bl-cat-btn.active {
    background: var(--web-teal);
    border-color: var(--web-teal);
    color: var(--web-white) !important;
}
.bl-cat-btn.active:hover {
    background: var(--web-teal);
    border-color: var(--web-teal);
    color: var(--web-white);
    text-decoration: none;
}
.bl-cat-btn:focus-visible {
    outline: 2px solid var(--web-teal);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════
   BLOG SECTION
═══════════════════════════════════════════════════════ */
.bl-section {
    /* gray-light, not white — .bl-filterbar right above it is white,
       and both always render, so they'd otherwise merge into one band */
    padding: 36px 0 72px;
    background: var(--web-gray-light);
}

/* ═══════════════════════════════════════════════════════
   CARD GRID
═══════════════════════════════════════════════════════ */
.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
@media (max-width: 991px) { .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (max-width: 575px) { .bl-grid { grid-template-columns: 1fr; gap: 20px; } }

/* ── Single card ── */
.bl-card {
    background: var(--web-white);
    border-radius: 14px;
    border: 1px solid var(--web-gray-border);
    box-shadow: 0 1px 3px rgba(var(--web-ink-rgb), 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.bl-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(var(--web-teal-rgb), 0.16);
}

/* image */
.bl-card__img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--web-gray-light);
}
.bl-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.bl-card:hover .bl-card__img { transform: scale(1.06); }

/* category label */
.bl-card__cat {
    display: inline-flex;
    align-self: flex-start;
    font-family: var(--web-font-display);
    font-size: 11.5px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--web-maroon);
    background: rgba(var(--web-maroon-rgb), 0.08);
    border-radius: 999px;
    padding: 5px 14px;
    margin: 20px 22px 0;
    line-height: 1;
}

/* body */
.bl-card__body {
    flex: 1;
    padding: 14px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bl-card__title {
    font-family: var(--web-font-display);
    font-size: clamp(17px, 1.6vw, 19px);
    font-weight: 400;
    color: var(--web-ink);
    line-height: 1.35;
    margin: 0;
}
.bl-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}
.bl-card__title a:hover { color: var(--web-teal); }

.bl-card__excerpt {
    font-family: var(--web-font-body);
    font-size: 14px;
    color: var(--web-gray-body);
    line-height: 1.65;
    flex: 1;
    margin: 0;
}

/* read guide button */
.bl-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 20px;
    background: var(--web-maroon);
    color: var(--web-white);
    font-family: var(--web-font-display);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 0 0 14px 14px;
    transition: background 0.18s, gap 0.18s;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.bl-card__btn:hover {
    background: var(--web-maroon-dark);
    gap: 12px;
    color: var(--web-white);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   CARD ANIMATIONS
═══════════════════════════════════════════════════════ */
@keyframes bl-fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.bl-card                { animation: bl-fadeUp 0.35s ease both; }
.bl-card:nth-child(2)   { animation-delay: 60ms;  }
.bl-card:nth-child(3)   { animation-delay: 120ms; }
.bl-card:nth-child(4)   { animation-delay: 180ms; }
.bl-card:nth-child(5)   { animation-delay: 240ms; }
.bl-card:nth-child(6)   { animation-delay: 300ms; }
.bl-card:nth-child(7)   { animation-delay: 360ms; }
.bl-card:nth-child(8)   { animation-delay: 420ms; }
.bl-card:nth-child(9)   { animation-delay: 480ms; }

/* ═══════════════════════════════════════════════════════
   SKELETON LOADER
═══════════════════════════════════════════════════════ */
@keyframes bl-shimmer {
    0%   { background-position: -700px 0; }
    100% { background-position:  700px 0; }
}
.bl-skel {
    background: linear-gradient(90deg, var(--web-gray-light) 25%, var(--web-gray-border) 50%, var(--web-gray-light) 75%);
    background-size: 1400px 100%;
    animation: bl-shimmer 1.4s infinite linear;
    border-radius: 6px;
    display: block;
}

/* ═══════════════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════════════ */
.bl-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 80px 24px;
    gap: 10px;
}
.bl-empty svg        { color: var(--web-gray-muted); margin-bottom: 8px; }
.bl-empty__title     { font-size: 16px; font-weight: 600; color: var(--web-gray-body); margin: 0; }
.bl-empty__sub       { font-size: 14px; color: var(--web-gray-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════════════ */
.bl-pag-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 52px;
}
.bl-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.bl-pg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid var(--web-gray-border);
    background: var(--web-white);
    color: var(--web-gray-body);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    line-height: 1;
}
.bl-pg-btn:hover:not([disabled]):not(.bl-pg-active) {
    border-color: var(--web-teal);
    color: var(--web-teal);
    background: var(--web-gray-light);
}
.bl-pg-active {
    background: var(--web-teal);
    border-color: var(--web-teal);
    color: var(--web-white);
    font-weight: 700;
}
.bl-pg-btn[disabled] { opacity: 0.35; cursor: not-allowed; }
.bl-pg-ellipsis      { color: var(--web-gray-muted); font-size: 14px; padding: 0 4px; }
.bl-pag-meta         { font-size: 12.5px; color: var(--web-gray-muted); margin: 0; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .bl-section   { padding: 28px 0 56px; }
    .bl-filterbar { padding: 18px 0; }
}
@media (max-width: 480px) {
    .bl-cats    { gap: 8px; }
    .bl-cat-btn { font-size: 12.5px; padding: 7px 14px; }
    .bl-pg-btn  { min-width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
    .bl-card, .bl-card__img { transition: none; animation: none; }
    .bl-skel                { animation: none; }
}
