/* CATEGORY PAGE STYLES - COMPLETE */
/* Place this in: wp-content/themes/debmedia/css/category-styles.css */

/* ========== CATEGORY HERO SECTION ========== */
.category-hero {
    background: linear-gradient(135deg, #0A1B4D 0%, #1a2d5f 100%);
    padding: 140px 40px 100px;
    position: relative;
    overflow: hidden;
}

.category-hero-blob-1, .category-hero-blob-2 {
    position: absolute;
    background: #D4AF37;
    opacity: 0.08;
}

.category-hero-blob-1 {
    top: -80px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
}

.category-hero-blob-2 {
    bottom: -100px;
    left: -80px;
    width: 350px;
    height: 350px;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.category-hero-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-hero .breadcrumb {
    color: #B8C5D6;
    font-size: 14px;
    margin-bottom: 25px;
}

.category-hero .breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.category-hero .breadcrumb a:hover {
    opacity: 0.8;
}

.category-badge-large {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.category-badge-large.ai-engineering {
    background: rgba(231, 76, 60, 0.15);
    color: #ff6b6b;
    border: 2px solid rgba(231, 76, 60, 0.3);
}

.category-badge-large.saas-architecture {
    background: rgba(52, 152, 219, 0.15);
    color: #5dade2;
    border: 2px solid rgba(52, 152, 219, 0.3);
}

.category-badge-large.cybersecurity {
    background: rgba(155, 89, 182, 0.15);
    color: #bb8fce;
    border: 2px solid rgba(155, 89, 182, 0.3);
}

.category-badge-large.automation {
    background: rgba(230, 126, 34, 0.15);
    color: #f39c12;
    border: 2px solid rgba(230, 126, 34, 0.3);
}

.category-badge-large.web-development {
    background: rgba(52, 73, 94, 0.15);
    color: #7f8c8d;
    border: 2px solid rgba(52, 73, 94, 0.3);
}

.category-hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
}

.category-description {
    font-size: 20px;
    color: #B8C5D6;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.category-hero-cta {
    margin-bottom: 30px;
}

.category-meta-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.articles-count {
    color: #D4AF37;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 20px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ========== CATEGORY FEATURED SECTION ========== */
.category-featured-section {
    background: #F8F9FA;
    padding: 80px 40px;
}

.category-featured-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 38px;
    color: #0A1B4D;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: #5A6C7D;
}

.category-featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

/* Large Featured Post (Left) */
.category-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: transform 0.4s ease;
}

.category-featured-large:hover {
    transform: translateY(-8px);
}

.category-featured-large .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: 320px;
    overflow: hidden;
}

.featured-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-featured-large:hover .featured-image-large img {
    transform: scale(1.05);
}

.featured-content-large {
    padding: 35px;
}

.featured-content-large h3 {
    font-size: 26px;
    margin-bottom: 15px;
}

.featured-content-large h3 a {
    color: #0A1B4D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-content-large h3 a:hover {
    color: #D4AF37;
}

.featured-content-large .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-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

/* Small Featured Posts (Right) */
.category-featured-grid > :nth-child(n+2) {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-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: 0;
}

.category-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;
}

.featured-content-small h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.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;
    flex-wrap: wrap;
}

/* ========== CATEGORY POSTS GRID SECTION ========== */
.category-posts-grid-section {
    background: #F8F9FA;
    padding: 80px 40px 100px;
}

.category-posts-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Reuse blog-grid styles from main template */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    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;
}

.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);
}

.placeholder-image {
    background: linear-gradient(135deg, #0A1B4D 0%, #1a2d5f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 60px;
    opacity: 0.3;
}

.blog-card-content {
    padding: 25px;
}

.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;
}

.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-name {
    font-size: 14px;
    color: #5A6C7D;
    font-weight: 600;
}

.read-time {
    font-size: 13px;
    color: #8B98AD;
}

.blog-card-footer {
    font-size: 13px;
    color: #8B98AD;
}

.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 18px;
    color: #5A6C7D;
    padding: 60px 20px;
}

/* 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;
}

/* ========== CONTEXTUAL CTA BLOCK ========== */
.category-contextual-cta {
    background: linear-gradient(135deg, #0A1B4D 0%, #162a4f 100%);
    padding: 100px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category-contextual-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #D4AF37;
    opacity: 0.05;
    border-radius: 50%;
}

.category-contextual-cta::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #D4AF37;
    opacity: 0.05;
    border-radius: 50%;
}

.category-contextual-cta-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-icon-large {
    font-size: 72px;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.category-contextual-cta h2 {
    font-size: 40px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.category-contextual-cta p {
    font-size: 19px;
    color: #B8C5D6;
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.trust-item {
    color: #D4AF37;
    font-size: 15px;
    font-weight: 600;
}

/* ========== RELATED CATEGORIES SECTION ========== */
.related-categories-section {
    background: #F8F9FA;
    padding: 100px 40px;
}

.related-categories-container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
    margin-bottom: 50px;
}

.related-category-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;
    text-align: center;
}

.related-category-card:hover {
    transform: translateY(-8px);
    border-color: #D4AF37;
    box-shadow: 0 15px 40px rgba(10, 27, 77, 0.15);
}

.related-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.related-category-card h3 {
    font-size: 20px;
    color: #0A1B4D;
    margin-bottom: 8px;
}

.article-count {
    font-size: 14px;
    color: #8B98AD;
    margin-bottom: 0;
}

.related-category-card .cta-arrow {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 24px;
    color: #D4AF37;
    transition: transform 0.3s ease;
}

.related-category-card:hover .cta-arrow {
    transform: translateX(5px);
}

.view-all-categories {
    text-align: center;
}

/* ========== 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 input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form-inline button {
    padding: 16px 35px;
}

.newsletter-note {
    font-size: 14px;
    color: #8B98AD;
}

/* ========== BUTTON STYLES ========== */
.btn-primary {
    background: #D4AF37;
    color: #0A1B4D;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: #b8961f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #D4AF37;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    border: 2px solid #D4AF37;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background: #D4AF37;
    color: #0A1B4D;
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .category-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 120px 20px 80px;
    }
    
    .category-hero h1 {
        font-size: 36px;
    }
    
    .category-featured-section,
    .category-posts-grid-section,
    .related-categories-section {
        padding: 60px 20px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .category-featured-small {
        grid-template-columns: 1fr;
    }
    
    .featured-image-small {
        width: 100%;
        height: 180px;
    }
    
    .category-contextual-cta {
        padding: 80px 20px;
    }
    
    .category-contextual-cta h2 {
        font-size: 32px;
    }
    
    .cta-buttons-group {
        flex-direction: column;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form-inline {
        flex-direction: column;
    }
    
    .related-categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-hero h1 {
        font-size: 28px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .cta-icon-large {
        font-size: 56px;
    }
}