/* BLOG PAGE STYLES */

.bl-wrapper {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Atmospheric Meshes */
.bl-mesh {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 0, 0, 0.1);
    filter: blur(120px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.bl-mesh-1 {
    top: 10%;
    left: -300px;
}

.bl-mesh-2 {
    top: 40%;
    right: -300px;
    background: rgba(255, 0, 0, 0.08);
}

.bl-mesh-3 {
    bottom: 10%;
    left: -200px;
    background: rgba(255, 0, 0, 0.05);
}

/* Hero Section */
.bl-hero {
    position: relative;
    width: 100%;
    padding: 160px 24px 100px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.bl-hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1440px;
    z-index: -1;
}

.bl-h1 {
    font-size: 57px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bl-hero-sub {
    font-size: 16px;
    opacity: 0.8;
}

/* Intro Section */
.bl-intro {
    width: 90%;
    max-width: 1120px;
    margin: 71px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 1;
}

.bl-label-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bl-label-icon {
    width: 47px;
}

.bl-label-text {
    font-size: 23px;
    font-weight: 700;
    color: #f00;
}

.bl-h2 {
    font-size: 48px;
    font-weight: 700;
    max-width: 774px;
    line-height: 1.2;
}

.bl-intro-p {
    font-size: 16px;
    line-height: 1.8;
    color: #a1aeb7;
    max-width: 1119px;
    margin-top: 16px;
}

/* Main Content Area */
.bl-main {
    width: 90%;
    max-width: 1120px;
    margin: 56px auto 0 auto;
    display: flex;
    gap: 32px;
    z-index: 1;
}

.bl-posts-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.bl-sidebar {
    width: 352px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Sidebar Search */
.bl-search-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border: 1px solid #fff;
    border-radius: 8px;
    color: #a1aeb7;
    cursor: pointer;
}

.bl-search-icon {
    width: 24px;
}

/* Sidebar List */
.bl-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bl-sidebar-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.bl-sidebar-item {
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.bl-sidebar-item:hover {
    color: #f00;
}

/* Card Rows */
.bl-row {
    display: flex;
    gap: 32px;
}

/* Blog Card */
.bl-card {
    position: relative;
    width: 352px;
    min-height: 448px;
    background-color: #fff;
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.bl-card:hover {
    transform: translateY(-5px);
}

.bl-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-height: 70%;
    object-fit: cover;
    object-position: center top;
}

/* Overlay gradient so text stays readable over any image */
.bl-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75%;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.98) 45%);
    z-index: 0;
}

.bl-card-title {
    color: #000;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 50px;
    z-index: 1;
}

.bl-card-footer {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1;
}

.bl-card-more {
    font-size: 16px;
    color: #f00;
    font-weight: 600;
    text-decoration: none;
}

.bl-card-arrow {
    width: 15px;
}

/* Pagination */
.bl-pagination {
    width: 90%;
    max-width: 1120px;
    margin: 69px auto 0 auto;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.bl-page-link {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.bl-page-link:hover {
    color: #f00;
}

/* Responsive */
@media screen and (max-width: 1120px) {
    .bl-main {
        flex-direction: column;
        align-items: center;
    }

    .bl-sidebar {
        width: 100%;
        max-width: 352px;
    }

    .bl-row {
        flex-direction: column;
        align-items: center;
    }

    .bl-pagination {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    .bl-h1 {
        font-size: 36px;
    }

    .bl-h2 {
        font-size: 32px;
    }
}