/* ===== Blog listing (modern redesign) styles ===== */
/* Moved out of resources/views/blog.blade.php */

.blog-modern {
    --bm-primary: #1431cf;
    --bm-primary-2: #2977f1;
    --bm-accent: #f6ad00;
    --bm-ink: #1d1d2c;
    --bm-head: #2d2d43;
    --bm-muted: #757e8a;
    --bm-line: #e8ecf4;
    --bm-bg: #f5f7fc;
    --bm-card: #fff;
    --bm-radius: 18px;
    font-family: 'Gabarito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--bm-ink);
    background:
        radial-gradient(1200px 480px at 85% -140px, rgba(41, 119, 241, .10), transparent 60%),
        radial-gradient(900px 420px at -5% -40px, rgba(20, 49, 207, .07), transparent 55%),
        var(--bm-bg);
}

.blog-modern * {
    box-sizing: border-box;
}

.blog-modern .container {
    max-width: 1200px;
}

/* hero */
.bm-hero {
    padding: 72px 0 26px;
    text-align: center;
}

.bm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--bm-primary);
    background: rgba(20, 49, 207, .08);
    border: 1px solid rgba(20, 49, 207, .14);
    padding: 7px 16px;
    border-radius: 999px;
}

.bm-hero__title {
    margin: 18px 0 12px;
    font-weight: 800;
    line-height: 1.05;
    color: var(--bm-head);
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -.02em;
}

.bm-hero__title span {
    background: linear-gradient(90deg, var(--bm-primary), var(--bm-primary-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.bm-hero__sub {
    max-width: 640px;
    margin: 0 auto;
    color: var(--bm-muted);
    font-size: 18px;
    line-height: 1.6;
}

/* filter chips */
.bm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 10px 0 6px;
    margin-bottom: 38px;
}

.bm-chip {
    display: inline-flex;
    align-items: center;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--bm-head);
    background: #fff;
    border: 1px solid var(--bm-line);
    padding: 9px 18px;
    border-radius: 999px;
    text-decoration: none;
    transition: all .18s ease;
    white-space: nowrap;
}

.bm-chip:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
    transform: translateY(-1px);
}

.bm-chip.is-active {
    background: linear-gradient(90deg, var(--bm-primary), var(--bm-primary-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(20, 49, 207, .65);
}

.bm-section {
    padding: 0 0 92px;
}

/* shared bits */
.bm-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
    background: rgba(20, 28, 46, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 999px;
    text-transform: capitalize;
}

.bm-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--bm-muted);
    font-weight: 500;
    margin-bottom: 12px;
}

.bm-meta .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c7cedb;
}

.bm-readmore {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--bm-primary);
}

.bm-readmore svg {
    transition: transform .2s ease;
}

/* featured */
.bm-featured {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--bm-card);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 42px;
    box-shadow: 0 10px 30px -22px rgba(20, 28, 46, .45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bm-featured:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 52px -28px rgba(20, 28, 46, .5);
}

.bm-featured__media {
    position: relative;
    min-height: 350px;
    background: linear-gradient(135deg, #dfe6f7, #eef1fb);
    overflow: hidden;
}

.bm-featured__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.bm-featured:hover .bm-featured__media img {
    transform: scale(1.05);
}

.bm-featured__body {
    padding: 40px 42px;
    display: flex;
    flex-direction: column;
}

.bm-featured__tag {
    align-self: flex-start;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bm-primary);
    margin-bottom: 14px;
}

.bm-featured__title {
    font-size: clamp(24px, 2.4vw, 33px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--bm-head);
    margin: 0 0 14px;
    letter-spacing: -.01em;
}

.bm-featured__excerpt {
    color: var(--bm-muted);
    font-size: 16px;
    line-height: 1.65;
    margin: 0 0 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-featured:hover .bm-readmore svg {
    transform: translateX(4px);
}

/* grid */
.bm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.bm-card {
    background: var(--bm-card);
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    overflow: hidden;
    display: flex;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.bm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 44px -26px rgba(20, 28, 46, .55);
    border-color: #dbe2f2;
}

.bm-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.bm-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #dfe6f7, #eef1fb);
    overflow: hidden;
}

.bm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.bm-card:hover .bm-card__media img {
    transform: scale(1.07);
}

.bm-card__body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bm-card__title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.34;
    color: var(--bm-head);
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .18s ease;
}

.bm-card:hover .bm-card__title {
    color: var(--bm-primary);
}

.bm-card__excerpt {
    color: var(--bm-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-card:hover .bm-readmore svg {
    transform: translateX(4px);
}

/* pagination */
.bm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 56px;
}

.bm-page {
    min-width: 44px;
    height: 44px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--bm-line);
    background: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--bm-head);
    text-decoration: none;
    transition: all .16s ease;
}

.bm-page:hover {
    border-color: var(--bm-primary);
    color: var(--bm-primary);
}

.bm-page.is-active {
    background: linear-gradient(90deg, var(--bm-primary), var(--bm-primary-2));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(20, 49, 207, .6);
}

.bm-page.is-disabled {
    opacity: .45;
    pointer-events: none;
}

/* empty state */
.bm-empty {
    text-align: center;
    padding: 72px 20px;
    background: #fff;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
}

.bm-empty h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--bm-head);
    margin: 0 0 10px;
}

.bm-empty p {
    color: var(--bm-muted);
    margin: 0 0 22px;
}

/* responsive */
@media (max-width: 991px) {
    .bm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .bm-featured {
        grid-template-columns: 1fr;
    }

    .bm-featured__media {
        min-height: 250px;
    }

    .bm-featured__body {
        padding: 28px 26px;
    }
}

@media (max-width: 575px) {
    .bm-hero {
        padding: 48px 0 16px;
    }

    .bm-grid {
        grid-template-columns: 1fr;
    }

    .bm-filters {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 12px;
        scrollbar-width: none;
    }

    .bm-filters::-webkit-scrollbar {
        display: none;
    }
}

/* mobile: remove the chip border (desktop keeps it) */
@media (max-width: 767px) {
    .bm-chip {
        border: none;
    }
}
