﻿/* ═══════════════════════════════════════════
   Blog All – irfollower (v2 – unique layout)
   ═══════════════════════════════════════════ */

/* ===== Hero ===== */
.irf-ba-hero {
    position: relative;
    padding: 130px 0 50px;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.irf-ba-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 30%, #2563eb 60%, #1d4ed8 100%);
    z-index: 0;
}

    .irf-ba-hero-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 30% 90%, rgba(96,165,250,.25) 0%, transparent 55%), radial-gradient(ellipse at 80% 10%, rgba(59,130,246,.2) 0%, transparent 50%);
    }

.irf-ba-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,.55);
    margin-bottom: 18px;
}

    .irf-ba-breadcrumb a {
        color: rgba(255,255,255,.7);
        text-decoration: none;
    }

        .irf-ba-breadcrumb a:hover {
            color: #fff;
        }

    .irf-ba-breadcrumb .sep {
        opacity: .3;
    }

.irf-ba-hero h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 10px;
    color: white;
}

.irf-ba-hero-desc {
    font-size: 15px;
    opacity: .8;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.8;
}

/* filter tags inside hero */
.irf-ba-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 700px;
    margin: 0 auto;
}

.irf-ba-tag {
    padding: 7px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
}

    .irf-ba-tag:hover {
        background: rgba(255,255,255,.2);
        color: #fff;
    }

    .irf-ba-tag.active {
        background: #fff;
        color: #1d4ed8;
        border-color: transparent;
        box-shadow: 0 4px 16px rgba(255,255,255,.15);
    }

    .irf-ba-tag i {
        margin-left: 4px;
        font-size: 12px;
    }

/* ===== Author Bar ===== */
.irf-ba-author-bar {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.irf-ba-author-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.irf-ba-author-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #eff6ff;
}

.irf-ba-author-info {
    flex: 1;
    min-width: 200px;
}

    .irf-ba-author-info h3 {
        font-size: 16px;
        font-weight: 800;
        color: #111827;
        margin: 0 0 4px;
    }

    .irf-ba-author-info p {
        font-size: 13px;
        color: #6b7280;
        margin: 0;
        line-height: 1.8;
    }

.irf-ba-author-badge {
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
}

    .irf-ba-author-badge i {
        margin-left: 4px;
    }

/* ===== Featured Post ===== */
.irf-ba-featured {
    background: #f8fafc;
    padding: 45px 0 0;
}

.irf-ba-feat-card {
    display: flex;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 50px rgba(0,0,0,.07);
    text-decoration: none;
    color: inherit;
    transition: transform .3s, box-shadow .3s;
    border: 1px solid #f1f5f9;
}

    .irf-ba-feat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 24px 60px rgba(0,0,0,.1);
    }

.irf-ba-feat-img {
    flex: 0 0 45%;
    max-width: 45%;
    overflow: hidden;
}

    .irf-ba-feat-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        min-height: 300px;
        transition: transform .4s;
    }

.irf-ba-feat-card:hover .irf-ba-feat-img img {
    transform: scale(1.04);
}

.irf-ba-feat-body {
    flex: 1;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.irf-ba-feat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
    margin-bottom: 16px;
}

.irf-ba-feat-body h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.7;
    color: #111827;
    margin: 0 0 12px;
}

.irf-ba-feat-body p {
    font-size: 15px;
    color: #6b7280;
    line-height: 2;
    margin: 0 0 18px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.irf-ba-feat-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #9ca3af;
}

    .irf-ba-feat-meta i {
        margin-left: 4px;
    }

/* ===== Grid (3 columns, NO sidebar) ===== */
.irf-ba-grid {
    background: #f8fafc;
    padding: 45px 0 70px;
}

.irf-ba-grid .row > [class*="col-"] {
    margin-bottom: 30px;
}

/* ===== Post Card ===== */
.irf-ba-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 6px 24px rgba(0,0,0,.05);
    transition: transform .25s, box-shadow .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .irf-ba-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 45px rgba(0,0,0,.1);
    }

.irf-ba-card-img {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

    .irf-ba-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .4s;
    }

.irf-ba-card:hover .irf-ba-card-img img {
    transform: scale(1.06);
}

.irf-ba-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,10,46,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s;
}

.irf-ba-card:hover .irf-ba-card-overlay {
    opacity: 1;
}

.irf-ba-read-btn {
    background: #fff;
    color: #2563eb;
    padding: 9px 22px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transform: translateY(8px);
    transition: transform .3s;
}

.irf-ba-card:hover .irf-ba-read-btn {
    transform: translateY(0);
}

.irf-ba-card-body {
    padding: 20px 20px 6px;
    flex: 1;
}

    .irf-ba-card-body h3 {
        font-size: 16px;
        font-weight: 800;
        line-height: 1.8;
        margin: 0 0 8px;
    }

        .irf-ba-card-body h3 a {
            color: #111827;
            text-decoration: none;
            transition: color .2s;
        }

            .irf-ba-card-body h3 a:hover {
                color: #2563eb;
            }

    .irf-ba-card-body p {
        font-size: 13px;
        color: #6b7280;
        line-height: 1.9;
        margin: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

.irf-ba-card-foot {
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    margin-top: auto;
}

    .irf-ba-card-foot i {
        margin-left: 3px;
        font-size: 11px;
    }

/* ===== Pagination ===== */
.irf-ba-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 45px;
}

.irf-ba-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

    .irf-ba-pager-btn:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8;
    }

.irf-ba-pager-nums {
    display: flex;
    gap: 6px;
}

.irf-ba-pager-num {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}

    .irf-ba-pager-num:hover {
        background: #eff6ff;
        border-color: #bfdbfe;
        color: #1d4ed8;
    }

    .irf-ba-pager-num.active {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
        border-color: transparent;
        color: #fff;
        box-shadow: 0 4px 14px rgba(37,99,235,.3);
    }

/* ===== Empty ===== */
.irf-ba-empty {
    text-align: center;
    padding: 70px 20px;
    color: #9ca3af;
}

    .irf-ba-empty i {
        font-size: 52px;
        display: block;
        margin-bottom: 14px;
        opacity: .4;
    }

    .irf-ba-empty p {
        font-size: 16px;
        color: #6b7280;
    }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .irf-ba-hero {
        padding: 110px 0 40px;
    }

        .irf-ba-hero h1 {
            font-size: 26px;
        }

    .irf-ba-feat-card {
        flex-direction: column;
    }

    .irf-ba-feat-img {
        flex: none;
        max-width: 100%;
    }

        .irf-ba-feat-img img {
            min-height: 220px;
            max-height: 280px;
        }

    .irf-ba-feat-body {
        padding: 24px;
    }

        .irf-ba-feat-body h2 {
            font-size: 20px;
        }
}

@media (max-width: 576px) {
    .irf-ba-hero {
        padding: 100px 0 35px;
    }

        .irf-ba-hero h1 {
            font-size: 22px;
        }

    .irf-ba-hero-desc {
        font-size: 14px;
    }

    .irf-ba-filter {
        gap: 6px;
    }

    .irf-ba-tag {
        padding: 6px 14px;
        font-size: 12px;
    }

    .irf-ba-feat-body {
        padding: 20px;
    }

    .irf-ba-card-body {
        padding: 16px 16px 4px;
    }

    .irf-ba-card-foot {
        padding: 12px 16px;
    }
}
