/* ==========================================================================
   BAYROX B2B MODERN BLOG STYLES (2026-2027 EDITORIAL STANDARD)
   ========================================================================== */

/* Page Wrapper */
.bx-blog-page-wrapper {
    margin-top: 10px;
    margin-bottom: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero Banner */
.bx-blog-hero {
    background: linear-gradient(135deg, #0b1528 0%, #172554 50%, #0f172a 100%);
    border-radius: 20px;
    padding: 38px 36px 30px;
    margin-bottom: 32px;
    color: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.2);
    position: relative;
    overflow: hidden;
}

.bx-blog-hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.bx-blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.3);
    border: 1px solid rgba(96, 165, 250, 0.4);
    color: #93c5fd;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 9999px;
    margin-bottom: 12px;
}

.bx-blog-hero-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
    letter-spacing: -0.4px;
}

.bx-blog-hero-desc {
    font-size: 14.5px;
    color: #94a3b8;
    max-width: 760px;
    line-height: 1.6;
    margin: 0 0 22px 0;
}

/* Category Filter Tabs */
.bx-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.bx-filter-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    outline: none !important;
}

.bx-filter-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.bx-filter-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.bx-filter-count {
    opacity: 0.8;
    font-size: 11px;
}

/* Grid & Cards */
.bx-blog-container {
    width: 100%;
}

.bx-blogs-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 26px !important;
    margin-bottom: 40px !important;
    width: 100% !important;
}

@media (max-width: 767px) {
    .bx-blog-hero {
        padding: 22px 18px 18px;
        border-radius: 16px;
        margin-bottom: 22px;
    }
    .bx-blog-hero-title {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
    .bx-blog-hero-desc {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    .bx-blog-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 8px;
        padding-top: 14px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }
    .bx-blog-filters::-webkit-scrollbar {
        display: none;
    }
    .bx-filter-btn {
        padding: 6px 14px;
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .bx-blog-thumb-wrap {
        height: 195px;
    }
    .bx-blog-title {
        font-size: 15px !important;
        line-height: 1.35 !important;
        margin: 0 0 8px 0 !important;
        padding: 0 !important;
        height: 42px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }
}

@media (max-width: 991px) {
    .bx-blogs-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 640px) {
    .bx-blogs-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
}

.bx-blog-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    overflow: hidden;
    display: flex !important;
    flex-direction: column;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    height: 100%;
    position: relative;
}

.bx-blog-card:hover {
    transform: translateY(-6px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.12);
}

.bx-blog-thumb-wrap {
    position: relative;
    width: 100%;
    height: 215px;
    overflow: hidden;
    background: #0f172a;
}

.bx-blog-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.bx-blog-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.bx-blog-card:hover .bx-blog-thumb-wrap img {
    transform: scale(1.06);
}

.bx-blog-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.35) 100%);
    pointer-events: none;
}

.bx-blog-tag-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #0284c7;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.bx-blog-read-time {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.bx-blog-content {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bx-blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.bx-blog-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bx-blog-meta .bx-blog-author {
    color: #2563eb;
    font-weight: 600;
}

.bx-blog-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    color: #0f172a !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
}

.bx-blog-title a {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.bx-blog-title a:hover {
    color: #0284c7 !important;
}

.bx-blog-desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 18px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 64px;
}

.bx-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    gap: 10px;
}

.bx-blog-tags-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bx-tag-chip {
    font-size: 11px;
    font-weight: 600;
    color: #0284c7;
    background: #e0f2fe;
    padding: 3px 8px;
    border-radius: 6px;
}

.bx-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: #0284c7;
    text-decoration: none !important;
    transition: all 0.2s ease;
    padding: 6px 14px;
    border-radius: 8px;
    background: #f0f9ff;
    white-space: nowrap;
}

.bx-blog-btn:hover {
    background: #0284c7;
    color: #ffffff !important;
    transform: translateX(2px);
}

/* Empty State */
.bx-blog-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
    margin: 20px 0;
}

.bx-blog-empty-icon {
    font-size: 42px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.bx-blog-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.bx-blog-empty p {
    font-size: 14px;
    color: #64748b;
}

/* Load More / Pagination */
.bx-blog-loadmore-wrap {
    text-align: center;
    margin: 30px 0 20px;
}

.bx-blog-loadmore-btn {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.bx-blog-loadmore-btn:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   ARTICLE DETAIL PAGE STYLES
   ========================================================================== */

.bx-article-detail-wrap {
    max-width: 960px;
    margin: 15px auto 50px;
    background: #ffffff;
    padding: 36px 40px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

@media (max-width: 767px) {
    .bx-article-detail-wrap {
        padding: 24px 18px;
        border-radius: 14px;
    }
}

.bx-article-top-nav {
    margin-bottom: 20px;
}

.bx-article-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #0284c7;
    text-decoration: none !important;
    padding: 7px 15px;
    background: #f0f9ff;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.bx-article-back-link:hover {
    background: #0284c7;
    color: #ffffff !important;
}

.bx-article-header {
    margin-bottom: 24px;
}

.bx-article-cat-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.bx-article-cat-badge {
    background: #0284c7;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 6px;
    text-decoration: none !important;
}

.bx-article-main-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin: 12px 0 16px 0;
    letter-spacing: -0.4px;
}

@media (max-width: 767px) {
    .bx-article-main-title {
        font-size: 22px;
    }
}

.bx-article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.bx-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bx-article-featured-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    background: #f1f5f9;
}

.bx-article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.bx-article-body {
    font-size: 16px;
    line-height: 1.85;
    color: #334155;
    margin-bottom: 35px;
}

.bx-article-body p {
    margin-bottom: 18px;
}

.bx-article-body h2,
.bx-article-body h3,
.bx-article-body h4 {
    color: #0f172a;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 14px;
}

.bx-article-body ul,
.bx-article-body ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.bx-article-body li {
    margin-bottom: 8px;
}

.bx-article-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    margin-bottom: 30px;
}

.bx-tags-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

.bx-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bx-tag-badge {
    background: #f1f5f9;
    color: #334155 !important;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.bx-tag-badge:hover {
    background: #0284c7;
    color: #ffffff !important;
}

.bx-author-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 22px 24px;
    border-radius: 16px;
    margin: 30px 0 40px;
}

.bx-author-avatar i {
    font-size: 48px;
    color: #2563eb;
}

.bx-author-name {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.bx-author-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Related Articles in Detail */
.bx-related-articles-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f1f5f9;
}

.bx-section-head {
    margin-bottom: 22px;
}

.bx-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.bx-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

/* Clean comments */
.bx-comments-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.bx-comments-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 20px;
}

.bx-comment-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.bx-comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bx-comment-name {
    font-weight: 700;
    color: #0f172a;
}

.bx-comment-date {
    font-size: 12px;
    color: #94a3b8;
}

.bx-comment-text {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

.bx-comment-form-wrap {
    margin-top: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
}

.bx-comment-form-wrap h4 {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 18px;
}
