/* ==================================
   ARCHIVE PAGES - SIMPLIFIED STYLING
   ================================== */

/* Remove gap between header and content */
.site-main {
    margin-top: 0;
    padding-top: 0;
}

/* Service Archive Specific Styles */
.service-item-header {
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    padding: 40px 0;
    text-align: center;
}

.service-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto;
}

.service-icon-wrapper i {
    font-size: 3rem;
    color: var(--secondary-color);
}

.service-content,
.project-content {
    position: relative;
}

.service-description,
.project-description {
    margin: 15px 0 20px 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.service-description p,
.project-description p {
    color: var(--text-dark);
    margin: 0;
}

/* Project Meta Info - Simplified */
.project-meta {
    background: #fafafa;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.project-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 5px 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.project-meta-item i {
    color: var(--primary-color);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.project-meta-item span {
    color: var(--text-dark);
    line-height: 1.4;
}

.service-action,
.project-action {
    margin-top: 20px;
    padding-top: 0;
}

/* Page Header Enhanced */
.page-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 50px;
    margin-top: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h100v100H0z" fill="none"/><path d="M0 0l50 50M50 0l50 50M0 50l50 50" stroke="rgba(255,193,7,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .page-title {
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.page-header .page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Enhanced Archive Grid */
.archive-grid {
    margin: 60px 0;
}

.archive-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.archive-item:hover {
    transform: translateY(-5px);
}

.archive-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.archive-item-content .entry-title {
    margin-bottom: 15px;
}

.archive-item-content .entry-title a {
    transition: color 0.3s ease;
}

.archive-item-content .entry-title a:hover {
    color: var(--primary-color);
}

/* Button Styling */
.archive-item .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.archive-item .btn i {
    transition: transform 0.3s ease;
}

.archive-item .btn:hover i {
    transform: translateX(5px);
}

/* No Results Styling */
.no-results {
    text-align: center;
    padding: 80px 20px;
    background: #fafbfc;
    border-radius: 8px;
    margin: 40px 0;
}

.no-results h2 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.no-results p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .service-icon-wrapper i {
        font-size: 2.2rem;
    }
    
    .service-item-header {
        padding: 30px 0;
    }
    
    .project-meta {
        padding: 12px;
        gap: 8px;
    }
    
    .project-meta-item {
        font-size: 0.85rem;
        padding: 4px 8px;
    }
    
    .archive-grid {
        margin: 40px 0;
    }
    
    .page-header {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .page-header .page-title {
        font-size: 2rem;
    }
    
    .archive-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-meta {
        flex-direction: column;
    }
    
    .project-meta-item {
        width: 100%;
    }
    
    .no-results {
        padding: 60px 15px;
    }
    
    .no-results h2 {
        font-size: 1.5rem;
    }
    
    .no-results p {
        font-size: 0.95rem;
    }
}

/* Pagination Styling Enhancement */
.posts-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.posts-pagination .nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.posts-pagination a,
.posts-pagination span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.posts-pagination .current {
    font-weight: 700;
}

/* Animation for items on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.archive-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.archive-item:nth-child(1) { animation-delay: 0.1s; }
.archive-item:nth-child(2) { animation-delay: 0.2s; }
.archive-item:nth-child(3) { animation-delay: 0.3s; }
.archive-item:nth-child(4) { animation-delay: 0.4s; }
.archive-item:nth-child(5) { animation-delay: 0.5s; }
.archive-item:nth-child(6) { animation-delay: 0.6s; }