/* ==========================================================================
   TECHNOSAGA-STYLE KNOWLEDGE HUB BLOG STYLES
   ========================================================================== */

/* Hero Header */
.tech-blog-hero {
    background: radial-gradient(ellipse at 50% 30%, rgba(245, 158, 11, 0.12) 0%, rgba(15, 23, 42, 0.98) 65%, #0b0f19 100%), #0b0f19;
    padding: 90px 20px 70px;
    text-align: center;
    color: #ffffff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tech-hero-badge {
    display: inline-block;
    padding: 7px 22px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.35);
    margin-bottom: 20px;
}

.tech-hero-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 15px;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.tech-hero-title .tech-highlight {
    color: #f59e0b;
    background: linear-gradient(135deg, #fbbf24 20%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tech-hero-sub {
    font-size: 1.12rem;
    color: #94a3b8;
    max-width: 660px;
    margin: 0 auto 35px;
    line-height: 1.6;
}

/* Search Box */
.tech-search-box {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
}

.tech-search-form {
    position: relative;
    width: 100%;
}

.tech-search-input {
    width: 100%;
    padding: 16px 55px 16px 26px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.tech-search-input::placeholder {
    color: #64748b;
}

.tech-search-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.tech-search-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #f59e0b;
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.2s;
}

.tech-search-btn:hover {
    transform: translateY(-50%) scale(1.15);
}

/* Layout Container */
.tech-blog-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.tech-blog-layout {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.tech-main-feed {
    flex: 1;
    min-width: 0;
}

.tech-sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* Category Filter Pills */
.tech-cat-pills-bar {
    margin: 40px 0 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.tech-pill {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.tech-pill:hover {
    border-color: #f59e0b;
    color: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.tech-pill.active {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* Featured Post Card (Hero Layout) */
.tech-featured-card {
    background: #141824;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 48% 52%;
    margin-bottom: 45px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.tech-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.2);
}

.tech-featured-img-wrap {
    position: relative;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
}

.tech-featured-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.tech-featured-card:hover .tech-featured-img-wrap img {
    transform: scale(1.04);
}

.tech-featured-content {
    padding: 36px 36px 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 18px;
}

.tech-featured-title {
    font-size: clamp(1.4rem, 2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0 0 14px;
}

.tech-featured-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.tech-featured-title a:hover {
    color: #fbbf24;
}

.tech-featured-excerpt {
    color: #94a3b8;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.tech-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 24px;
    align-items: center;
}

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

.tech-meta-row i {
    color: #f59e0b;
}

.tech-btn-featured {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid #d97706;
    color: #d97706;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    background: transparent;
}

.tech-btn-featured:hover {
    background: #d97706;
    color: #ffffff;
    gap: 14px;
}

/* 2-Column Post Grid */
.tech-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.tech-post-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.tech-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.tech-card-img-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: #0f172a;
}

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

.tech-post-card:hover .tech-card-img-wrap img {
    transform: scale(1.06);
}

.tech-card-cat-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: #d97706;
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

.tech-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tech-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 12px;
}

.tech-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.tech-card-title a:hover {
    color: #d97706;
}

.tech-card-excerpt {
    color: #64748b;
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.tech-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-card-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.tech-card-tag:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.tech-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.82rem;
    color: #94a3b8;
}

.tech-card-footer-meta {
    display: flex;
    gap: 12px;
    align-items: center;
}

.tech-card-footer-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tech-card-btn {
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid #d97706;
    color: #d97706;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    background: transparent;
}

.tech-card-btn:hover {
    background: #d97706;
    color: #ffffff;
    gap: 10px;
}

/* Pagination */
.tech-pagination {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    margin: 40px 0 60px;
    align-items: center;
}

.tech-pagination .page-numbers {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #334155;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tech-pagination .page-numbers:hover {
    border-color: #d97706;
    color: #d97706;
}

.tech-pagination .page-numbers.current {
    background: #d97706;
    border-color: #d97706;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

/* Sidebar Styling */
.tech-widget-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid #eef2f6;
    margin-bottom: 30px;
}

.tech-widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
    padding-bottom: 10px;
    position: relative;
    display: inline-block;
}

.tech-widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    background: #d97706;
    border-radius: 2px;
}

/* Categories Widget */
.tech-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
}

.tech-cat-item:last-child {
    border-bottom: none;
}

.tech-cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.tech-cat-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d97706;
    display: inline-block;
}

.tech-cat-item:hover .tech-cat-link {
    color: #d97706;
    transform: translateX(4px);
}

.tech-cat-count {
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Recent Posts Widget */
.tech-rp-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.tech-rp-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
}

.tech-rp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    background: #0f172a;
}

.tech-rp-info h4 {
    font-size: 0.93rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1e293b;
    margin: 0 0 5px;
    transition: color 0.2s;
}

.tech-rp-item:hover .tech-rp-info h4 {
    color: #d97706;
}

.tech-rp-date {
    font-size: 0.8rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Popular Tags Widget */
.tech-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 7px 16px;
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag-pill:hover {
    border-color: #d97706;
    color: #d97706;
    background: #ffffff;
    transform: translateY(-2px);
}

/* Newsletter Widget (Dark) */
.tech-widget-newsletter {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tech-newsletter-title {
    color: #f59e0b;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.tech-newsletter-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tech-newsletter-input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.tech-newsletter-input:focus {
    outline: none;
    border-color: #f59e0b;
    background: rgba(255, 255, 255, 0.09);
}

.tech-newsletter-btn {
    width: 100%;
    padding: 13px;
    border-radius: 8px;
    background: #d97706;
    color: #111827;
    font-weight: 700;
    font-size: 0.96rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.2s, transform 0.2s;
}

.tech-newsletter-btn:hover {
    background: #f59e0b;
    transform: translateY(-2px);
}

/* CTA Project Banner Widget */
.tech-widget-cta {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.25);
}

.tech-cta-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #ffffff;
}

.tech-cta-desc {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 22px;
}

.tech-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.tech-cta-btn:hover {
    background: #020617;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .tech-blog-layout {
        flex-direction: column;
    }
    .tech-sidebar {
        width: 100%;
    }
    .tech-featured-card {
        grid-template-columns: 1fr;
    }
    .tech-featured-img-wrap {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .tech-posts-grid {
        grid-template-columns: 1fr;
    }
    .tech-featured-content {
        padding: 25px;
    }
    .tech-blog-hero {
        padding: 60px 15px 50px;
    }
}
