/**
 * Services Archive Page Styles
 * Professional styling for services listing
 * @package V4Education
 * @version 1.0.0
 */

/* ==========================================================================
   Page Header Section
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, #1E3A5F 0%, #0B5EA8 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.page-header .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.page-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-header .page-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.page-header .breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.page-header .breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.page-header .breadcrumbs a:hover {
    color: #06b6d4;
}

.page-header .breadcrumbs .separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

.page-header .breadcrumbs .current {
    color: #06b6d4;
    font-weight: 500;
}

.page-header .category-description {
    margin-top: 20px;
}

.page-header .category-description p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    line-height: 1.7;
}

/* ==========================================================================
   Services Filter Section
   ========================================================================== */

.services-filter {
    background: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.services-filter .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn i {
    font-size: 0.9rem;
    color: #06b6d4;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #f8fafc;
    border-color: #06b6d4;
    color: #06b6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.filter-btn.active i {
    color: #ffffff;
}

/* ==========================================================================
   Services Archive Section
   ========================================================================== */

.services-archive {
    background: #f9fafb;
    padding: 80px 0;
    min-height: 500px;
}

.services-archive .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Services Grid Layout */
.services-archive .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 0;
}

/* Service Card Styling */
.services-archive .service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 35px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Stagger animation for cards */
.services-archive .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-archive .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-archive .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-archive .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-archive .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-archive .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-archive .service-card:nth-child(n+7) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-archive .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.services-archive .service-card:hover::before {
    transform: scaleX(1);
}

.services-archive .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.15);
    border-color: #06b6d4;
}

/* Icon/Image Wrapper */
.service-icon-wrapper {
    margin-bottom: 25px;
}

.service-featured-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0;
}

.service-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.services-archive .service-card:hover .service-featured-image img {
    transform: scale(1.05);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-icon i {
    font-size: 2.5rem;
    color: #ffffff;
    transition: all 0.4s ease;
}

.services-archive .service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.35);
}

/* Service Content */
.service-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-title a {
    color: #1E3A5F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: #06b6d4;
}

/* Category Badge */
.service-category {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Service Excerpt */
.service-excerpt {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    flex: 1;
}

.service-excerpt p {
    margin-bottom: 0;
}

/* Read More Button */
.btn-service {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-service i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.btn-service:hover {
    background: #ffffff;
    color: #06b6d4;
    border-color: #06b6d4;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.btn-service:hover i {
    transform: translateX(4px);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination a,
.pagination span.current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: #ffffff;
    color: #334155;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #06b6d4;
    color: #ffffff;
    border-color: #06b6d4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
}

.pagination span.current {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: #ffffff;
    border-color: #06b6d4;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.pagination .dots {
    color: #94a3b8;
    padding: 0 8px;
}

.pagination .prev,
.pagination .next {
    gap: 8px;
}

/* ==========================================================================
   No Services State
   ========================================================================== */

.no-services,
.no-results-filter {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    border: 2px dashed #e5e7eb;
}

.no-results-filter {
    padding: 60px 20px;
    margin-bottom: 40px;
}

.no-services-icon,
.no-results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-results-icon {
    width: 80px;
    height: 80px;
}

.no-services-icon i,
.no-results-icon i {
    font-size: 3rem;
    color: #06b6d4;
}

.no-results-icon i {
    font-size: 2.5rem;
}

.no-results-filter h3 {
    font-size: 1.75rem;
    color: #1E3A5F;
    margin-bottom: 15px;
}

.no-results-filter p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
    margin: 0 auto 30px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-services-icon i {
    font-size: 3rem;
    color: #06b6d4;
}

.no-services h2 {
    font-size: 2rem;
    color: #1E3A5F;
    margin-bottom: 15px;
}

.no-services p {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */

.services-archive + .cta-section {
    background: linear-gradient(135deg, #1E3A5F 0%, #0B5EA8 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.services-archive + .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(34, 211, 238, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
    line-height: 1.6;
}

.cta-content .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: #ffffff;
    color: #06b6d4;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
    background: #06b6d4;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 1200px) {
    .services-archive .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-header .page-title {
        font-size: 2.25rem;
    }
    
    .services-filter {
        padding: 30px 0;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.875rem;
    }
    
    .services-archive {
        padding: 60px 0;
    }
    
    .services-archive .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .services-archive .service-card {
        padding: 35px 30px;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .page-header .container,
    .services-filter .container,
    .services-archive .container,
    .cta-section .container {
        padding: 0 20px;
    }
    
    .page-header {
        padding: 50px 0 35px;
    }
    
    .page-header .page-title {
        font-size: 1.875rem;
    }
    
    .page-header .breadcrumbs {
        font-size: 0.875rem;
    }
    
    .services-filter {
        position: relative;
        padding: 25px 0;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-buttons::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-buttons::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 4px;
    }
    
    .filter-buttons::-webkit-scrollbar-thumb {
        background: #06b6d4;
        border-radius: 4px;
    }
    
    .services-archive .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-title {
        font-size: 1.375rem;
    }
    
    .pagination {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .pagination a,
    .pagination span.current {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .page-header .page-title {
        font-size: 1.625rem;
    }
    
    .services-archive .service-card {
        padding: 30px 25px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .btn-service {
        width: 100%;
        justify-content: center;
    }
}
