/* BLOG ARCHIVE REDESIGNED - COMPLETE STYLES */
/* Place this in: wp-content/themes/debmedia/css/blog-archive-styles.css */

/* ========== HERO SECTION ========== */
.blog-hero-redesigned {
    background: #0A1B4D;
    padding: 140px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero-blob-1, .hero-blob-2 {
    position: absolute;
    background: #D4AF37;
    opacity: 0.06;
}

.hero-blob-1 {
    top: -100px;
    right: -150px;
    width: 500px;
    height: 500px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.hero-blob-2 {
    bottom: -80px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.blog-hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.blog-hero-redesigned h1 {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 20px;
    color: #B8C5D6;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Search Bar */
.blog-search-bar {
    max-width: 600px;
    margin: 0 auto 30px;
}

.blog-search-bar form {
    display: flex;
    gap: 12px;
}

.blog-search-bar input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
}

.blog-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.blog-search-bar button {
    padding: 16px 35px;
    border-radius: 50px;
}

/* Popular Tags */
.popular-tags-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.tags-label {
    color: #D4AF37;
    font-weight: 600;
    font-size: 14px;
}

.tag-pill {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    color: #B8C5D6;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
}

.tag-pill:hover {
    background: #D4AF37;
    color: #0A1B4D;
}

/* ========== STICKY FILTER BAR ========== */
.category-filter-bar {
    background: #ffffff;
    padding: 20px 40px;
    border-bottom: 2px solid #E8EAF0;
    transition: all 0.3s ease;
    z-index: 100;
}

.category-filter-bar.is-sticky {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.filter-bar-container {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-tabs-enhanced {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: #F8F9FA;
    border: 2px solid #E8EAF0;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #5A6C7D;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #D4AF37;
    color: #0A1B4D;
}

.filter-btn.active {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #ffffff;
}

/* ========== FEATURED POSTS (1 Large + 2 Small) ========== */
.featured-posts-section {
    background: #F8F9FA;
    padding: 60px 40px;
}

.featured-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

.featured-posts-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* Large Featured Post */
.featured-large {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 3px solid #D4AF37;
    position: relative;
    transition: opacity 0.3s ease;
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #D4AF37;
    color: #0A1B4D;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.featured-image-large {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.featured-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-image {
    background: linear-gradient(135deg, #0A1B4D 0%, #1a2d5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 80px;
    opacity: 0.3;
}

.featured-content-large {
    padding: 35px;
}

.category-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.category-badge.ai-engineering {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.category-badge.saas-architecture {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.category-badge.cybersecurity {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.category-badge.automation {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.category-badge.web-development {
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
}

.featured-content-large h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.featured-content-large h2 a {
    color: #0A1B4D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content-large h2 a:hover {
    color: #D4AF37;
}

.excerpt {
    font-size: 16px;
    color: #5A6C7D;
    line-height: 1.8;
    margin-bottom: 20px;
}

.post-meta-large {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #8B98AD;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

/* Small Featured Posts */
.featured-small-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-small {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
}

.featured-small:hover {
    transform: translateX(5px);
    border-color: #D4AF37;
}

.featured-image-small {
    width: 140px;
    height: 100%;
    overflow: hidden;
}

.featured-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content-small {
    padding: 20px 20px 20px 0;
}

.featured-content-small h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.featured-content-small h3 a {
    color: #0A1B4D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content-small h3 a:hover {
    color: #D4AF37;
}

.post-meta-small {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #8B98AD;
}

/* ========== MAIN BLOG GRID ========== */
.main-blog-grid-section {
    background: #F8F9FA;
    padding: 60px 40px 100px;
}

.main-blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.4s ease;
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(10, 27, 77, 0.15);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    font-size: 19px;
    margin-bottom: 12px;
}

.blog-card h3 a {
    color: #0A1B4D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: #D4AF37;
}

.blog-card-excerpt {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.7;
    margin-bottom: 20px;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #E8EAF0;
    margin-bottom: 15px;
}

.meta-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.author-name {
    font-size: 14px;
    color: #5A6C7D;
    font-weight: 600;
}

.read-time {
    font-size: 13px;
    color: #8B98AD;
}

.blog-card-footer {
    font-size: 13px;
    color: #8B98AD;
}

/* ========== PAGINATION ========== */
.blog-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.blog-pagination ul {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.blog-pagination li {
    margin: 0;
}

.blog-pagination a,
.blog-pagination span {
    display: block;
    padding: 12px 20px;
    background: #ffffff;
    border: 2px solid #E8EAF0;
    border-radius: 8px;
    color: #5A6C7D;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-pagination a:hover,
.blog-pagination .current {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #ffffff;
}

/* ========== NEWSLETTER CTA ========== */
.newsletter-cta-section {
    background: #0A1B4D;
    padding: 80px 40px;
}

.newsletter-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-cta-content h2 {
    font-size: 36px;
    color: #ffffff;
    margin-bottom: 15px;
}

.newsletter-cta-content > p {
    font-size: 18px;
    color: #B8C5D6;
    margin-bottom: 35px;
}

.newsletter-form-inline {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto 15px;
}

.newsletter-form-inline input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px;
}

.newsletter-form-inline button {
    padding: 16px 35px;
}

.newsletter-note {
    font-size: 14px;
    color: #8B98AD;
}

/* ========== CATEGORIES CTA ========== */
.categories-cta-section {
    background: #F8F9FA;
    padding: 100px 40px;
}

.categories-cta-container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.category-cta-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
}

.category-cta-card:hover {
    transform: translateY(-8px);
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(10, 27, 77, 0.15);
}

.category-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.category-cta-card h3 {
    font-size: 20px;
    color: #0A1B4D;
    margin-bottom: 10px;
}

.category-cta-card p {
    font-size: 15px;
    color: #5A6C7D;
    line-height: 1.6;
}

.cta-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 24px;
    color: #D4AF37;
    transition: transform 0.3s ease;
}

.category-cta-card:hover .cta-arrow {
    transform: translateX(5px);
}

/* ========== FINAL CTA ========== */
.final-blog-cta {
    background: linear-gradient(135deg, #0A1B4D 0%, #1a2d5f 100%);
    padding: 100px 40px;
    text-align: center;
}

.final-blog-cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.final-blog-cta h2 {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 20px;
}

.final-blog-cta p {
    font-size: 19px;
    color: #B8C5D6;
    margin-bottom: 40px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .featured-posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero-redesigned {
        padding: 120px 20px 60px;
    }

    .blog-hero-redesigned h1 {
        font-size: 36px;
    }

    .blog-search-bar form {
        flex-direction: column;
    }

    .filter-tabs-enhanced {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .featured-posts-section,
    .main-blog-grid-section {
        padding: 40px 20px 70px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .featured-small {
        grid-template-columns: 1fr;
    }

    .featured-image-small {
        width: 100%;
        height: 180px;
    }

    .newsletter-form-inline {
        flex-direction: column;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .blog-hero-redesigned h1 {
        font-size: 28px;
    }
}