/* ============================================================
   BLOG PAGE — ZDC TECH GLOBAL SOLUTIONS — PREMIUM DESIGN
============================================================ */

/* ── Hero Section ── */
.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0b1a 0%, #13142a 60%, #1a1b2e 100%);
    overflow: hidden;
    padding: 140px 0 70px;
    font-family: 'Sora', sans-serif;
}
.blog-hero canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.35;
    pointer-events: none;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    width: 520px; height: 320px;
    background: radial-gradient(ellipse at center, rgba(103,128,210,0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(103,128,210,0.15);
    border: 1px solid rgba(103,128,210,0.4);
    border-radius: 30px;
    padding: 7px 18px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #a3b4f5;
}
.hero-title {
    font-size: 54px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #fff 30%, #a3b4f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 24px;
    font-weight: 400;
}
.hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 30px;
    padding: 7px 20px;
    font-size: 13px;
}
.hero-breadcrumb a { color: #7f9cf5; text-decoration: none; font-weight: 600; }
.hero-breadcrumb .sep { color: rgba(255,255,255,0.25); }
.hero-breadcrumb .current { color: rgba(255,255,255,0.85); font-weight: 600; }

@media (max-width: 767px) {
    .hero-title { font-size: 32px; }
    .blog-hero { padding: 110px 0 50px; }
}

/* ── Main Blog Layout ── */
.blog-layout {
    background: #05050f; /* Dark background */
    padding: 80px 0 100px;
    font-family: 'Inter', sans-serif;
}

/* ━━ Combined Filter Bar ━━ */
.blog-filter-bar {
    margin-bottom: 40px;
}
.filter-bar-inner {
    background: linear-gradient(145deg, #0a0c1e 0%, #111427 100%);
    border-radius: 50px;
    border: 1px solid rgba(103,128,210,0.18);
    box-shadow: 0 16px 40px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
    padding: 6px 6px 6px 20px;
    display: flex;
    align-items: center;
    gap: 0;
}

/* Dropdown side */
.filter-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 180px;
    flex-shrink: 0;
}
.filter-select-icon {
    position: absolute;
    left: 0px;
    color: rgba(103,128,210,0.8);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}
.filter-select {
    width: 100%;
    padding: 10px 26px 10px 24px;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.filter-select option {
    background: #111427;
    color: #e2e8f0;
    font-weight: 500;
}
.filter-select-arrow {
    position: absolute;
    right: 0px;
    color: rgba(255,255,255,0.3);
    font-size: 11px;
    pointer-events: none;
}

/* Divider */
.filter-bar-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    margin: 0 16px;
    flex-shrink: 0;
}

/* Search side */
.filter-search-form {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
    background: transparent;
}
.filter-search-icon {
    position: absolute;
    left: 0px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    pointer-events: none;
}
.filter-search-input {
    flex: 1;
    padding: 12px 14px 12px 28px !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    box-shadow: none !important;
}
.filter-search-input::placeholder { color: rgba(255,255,255,0.3) !important; }
.filter-search-btn {
    padding: 12px 28px;
    background: linear-gradient(135deg, #3753b8, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}
.filter-search-btn:hover {
    background: linear-gradient(135deg, #0d6efd, #3753b8);
    box-shadow: 0 6px 18px rgba(13,110,253,0.4);
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .filter-bar-inner { flex-direction: column; padding: 14px; gap: 12px; }
    .filter-bar-divider { width: 100%; height: 1px; margin: 0; }
    .filter-select-wrap { width: 100%; }
}

/* ── Blog Card ── */
.blog-card {
    background: #0d0f1f;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(103,128,210,0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.5);
    border-color: rgba(103,128,210,0.4);
}
.blog-card-img {
    position: relative;
    overflow: hidden;
    height: 230px;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.blog-card:hover .blog-card-img img {
    transform: scale(1.07);
}
.blog-cat-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(135deg, #3753b8, #0d6efd);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(13,110,253,0.3);
}
.read-time-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(13,15,31,0.65);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.05);
}
.blog-card-body {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 14px;
}
.blog-meta span { display: flex; align-items: center; gap: 5px; }
.blog-meta i { color: #0d6efd; }
.blog-card-title {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
    color: #f8fafc;
    margin-bottom: 12px;
    font-family: 'Sora', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
    text-decoration: none;
}
.blog-card-title:hover { color: #3b82f6; }
.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #94a3b8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}
.blog-card-footer {
    padding: 16px 28px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.blog-author-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.author-name {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}
.read-article-btn {
    font-size: 13px;
    font-weight: 700;
    color: #3b82f6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}
.read-article-btn:hover { gap: 10px; color: #60a5fa; }

/* ── Sidebar Widgets ── */
.blog-sidebar-widget {
    background: #0d0f1f;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(103,128,210,0.15);
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.sidebar-widget-title {
    font-family: 'Sora', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(255,255,255,0.05);
    position: relative;
}
.sidebar-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(135deg, #3753b8, #0d6efd);
    border-radius: 2px;
}
/* ── Dark Search Widget (Sidebar Top) ── */
.sidebar-dark-search {
    background: linear-gradient(145deg, #0d0f1f 0%, #111427 60%, #161930 100%);
    border-radius: 22px;
    padding: 28px 26px;
    margin-bottom: 26px;
    border: 1px solid rgba(103,128,210,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.sidebar-dark-search::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(103,128,210,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.dark-search-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.dark-search-icon-wrap {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #3753b8, #0d6efd);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(13,110,253,0.35);
}
.dark-search-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 3px;
}
.dark-search-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin: 0;
}
.dark-search-form { position: relative; }
.dark-search-input-wrap {
    position: relative;
    margin-bottom: 12px;
}
.dark-search-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(103,128,210,0.7);
    font-size: 14px;
    pointer-events: none;
}
.dark-search-input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(103,128,210,0.25);
    border-radius: 12px;
    font-size: 14px;
    color: #fff;
    outline: none;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}
.dark-search-input::placeholder { color: rgba(255,255,255,0.3); }
.dark-search-input:focus {
    border-color: rgba(103,128,210,0.7);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(103,128,210,0.12);
}
.dark-search-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #3753b8, #0d6efd);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Sora', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}
.dark-search-btn:hover {
    background: linear-gradient(135deg, #0d6efd, #3753b8);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13,110,253,0.4);
}
.dark-search-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.dark-tag-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.dark-search-tag {
    padding: 4px 12px;
    background: rgba(103,128,210,0.15);
    border: 1px solid rgba(103,128,210,0.25);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #a3b4f5;
    text-decoration: none;
    transition: all 0.2s;
}
.dark-search-tag:hover {
    background: rgba(103,128,210,0.35);
    color: #fff;
    border-color: rgba(103,128,210,0.5);
}

.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.sidebar-cat-item:last-child { border-bottom: none; }
.sidebar-cat-item:hover { color: #3b82f6; }
.sidebar-cat-item:hover .cat-count { background: #3b82f6; color: #fff; }
.sidebar-cat-item i { font-size: 12px; color: #3b82f6; margin-right: 8px; }
.cat-count {
    background: rgba(255,255,255,0.05);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    transition: all 0.2s;
}
.sidebar-recent-post {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sidebar-recent-post:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-img {
    width: 72px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}
.recent-post-title {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.4;
    text-decoration: none;
    display: block;
    margin-bottom: 5px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.recent-post-title:hover { color: #3b82f6; }
.recent-post-date { font-size: 12px; color: #64748b; }
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-item {
    padding: 6px 15px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
    border: 1px solid transparent;
}
.tag-item:hover {
    background: rgba(103,128,210,0.15);
    color: #fff;
    border-color: rgba(103,128,210,0.3);
}

/* ── Newsletter CTA Sidebar ── */
.newsletter-widget {
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border-radius: 20px;
    padding: 30px 24px;
    color: #fff;
    text-align: center;
}
.newsletter-widget h5 {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}
.newsletter-widget p {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 18px;
}
.newsletter-input {
    width: 100%;
    padding: 11px 16px;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 13px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
}
.newsletter-submit-btn {
    width: 100%;
    padding: 11px;
    border-radius: 10px;
    background: #fff;
    color: #0d6efd;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.newsletter-submit-btn:hover {
    background: #f0f4ff;
    transform: scale(1.02);
}

/* ── No Posts ── */
.no-posts-box {
    text-align: center;
    padding: 60px 20px;
    background: #0d0f1f;
    border-radius: 20px;
    border: 1px dashed rgba(103,128,210,0.3);
}
.no-posts-box .icon { font-size: 56px; color: rgba(255,255,255,0.1); margin-bottom: 20px; }

/* ── Pagination ── */
.blog-pagination { margin-top: 50px; }
.blog-pagination .page-link {
    width: 44px;
    height: 44px;
    border-radius: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.05);
    color: #cbd5e1;
    margin: 0 4px;
    background: #0d0f1f;
    transition: all 0.2s;
}
.blog-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3753b8, #0d6efd);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 16px rgba(13,110,253,0.3);
}
.blog-pagination .page-item .page-link:hover {
    background: rgba(103,128,210,0.15);
    color: #fff;
    border-color: rgba(103,128,210,0.3);
}
.blog-pagination .page-item.disabled .page-link {
    opacity: 0.3;
    pointer-events: none;
}
