/* ================= BLOG PAGE STYLES ================= */
.blog-main-wrapper {
    width: 90%;
    max-width: 1450px;
    margin: 40px auto 80px auto;
    font-family: inherit;
    box-sizing: border-box;
}

/* Control Bar (Tabs + Search) */
.blog-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 35px;
}

.blog-categories-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.blog-cat-btn {
    background: transparent;
    border: none;
    font-size: 20.5px;
    font-weight: 600;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
}

.blog-cat-btn:hover {
    color: #7c3aed;
    background: #f5f3ff;
}

.blog-cat-btn.active {
    background: #7c3aed;
    color: #ffffff;
}

/* Search Box */
.blog-search-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 24px;
    padding: 6px 14px;
    transition: border-color 0.25s ease;
}

.blog-search-box:focus-within {
    border-color: #7c3aed;
}

.blog-search-box input {
    border: none;
    outline: none;
    font-size: 20.5px;
    color: #1e293b;
    width: 190px;
    padding: 4px 6px;
}

.blog-search-box button {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 20.5px;
    padding: 4px;
}

.blog-search-box button:hover {
    color: #7c3aed;
}

/* Header */
.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
}

.blog-main-title {
    font-size: 48px;
    font-weight: 800;
    color: #f9fafd;
    margin: 0;
}

.blog-post-counter {
    font-size: 21px;
    color: #64748b;
    font-weight: 500;
}

/* Post Cards Feed */
.blog-feed-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Card Style (Split Image + Info) */
.blog-card {
    display: flex;
    gap: 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: #cbd5e1;
}

/* Thumbnail */
.blog-thumb-wrap {
    width: 320px;
    min-height: 190px;
    flex-shrink: 0;
    background: #f1f5f9;
}

.blog-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Body */
.blog-info-wrap {
    flex: 1;
    padding: 20px 24px 20px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card-meta {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-meta .tag {
    color: #7c3aed;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 18.5px;
    letter-spacing: 0.5px;
}

.blog-card-title {
    font-size: 32px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 10px 0;
}

.blog-card-desc {
    font-size: 18px;
    color: #475569;
    line-height: 1.55;
    margin: 0 0 14px 0;
}

.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    color: #94a3b8;
}

.blog-read-more-link {
    color: #7c3aed;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Text-Only Card Variation (For Niche Posts) */
.blog-card.text-only {
    padding: 24px;
}

.blog-card.text-only .blog-info-wrap {
    padding: 0;
}

/* No Results Message */
.blog-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.blog-no-results i {
    font-size: 44px;
    color: #cbd5e1;
    margin-bottom: 15px;
}

/* Modal Popup */
.blog-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px);
    padding: 20px;
    box-sizing: border-box;
}

.blog-modal-backdrop.active {
    display: flex;
}

.blog-modal-content {
    background: #ffffff;
    max-width: 680px;
    width: 100%;
    max-height: 85vh;
    border-radius: 16px;
    overflow-y: auto;
    padding: 35px 30px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

.blog-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
}

.modal-tag {
    color: #7c3aed;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-title {
    font-size: 24px;
    color: #0f172a;
    margin: 8px 0 10px 0;
    line-height: 1.3;
}

.modal-meta {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 18px;
}

.modal-img-wrap {
    width: 100%;
    height: 280px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.modal-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body-text {
    font-size: 19.5px;
    line-height: 1.7;
    color: #334155;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-card {
        flex-direction: column;
    }
    .blog-thumb-wrap {
        width: 100%;
        height: 200px;
    }
    .blog-info-wrap {
        padding: 20px;
    }
    .blog-search-box input {
        width: 100%;
    }
    .blog-search-box {
        width: 100%;
    }
}