/*
Archive/Category Page Styles - Automotive Layout
*/

/* Archive Page Main Layout */
.archive-page-automotive {
    background: #fff;
    padding: 0 0 40px 0;
}

/* Adjust for home page with transparent header */
.home .archive-page-automotive {
    padding: 180px 0 40px 0;
}

/* Archive Header */
.archive-header-automotive {
    text-align: center;
    padding-bottom: 20px;
    position: relative;
}

.archive-title-automotive {
    font-size: 28px;
    font-weight: 400;
    color: #02020b;
    font-family: 'Roboto Condensed', sans-serif;
    text-transform: uppercase;
    background: #fff;
    padding: 0 30px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.archive-header-automotive::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    right: 0;
    height: 1px;
    background: #ddd;
    z-index: 0;
    transform: translateY(-50%);
}

.archive-description {
    font-size: 16px;
    color: #666;
    margin: 0 auto;
    max-width: 600px;
    line-height: 1.6;
}


/* Archive Content Wrapper */
.archive-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* Archive Main Content */
.archive-main-content {
    grid-column: 1;
}

/* Archive Posts Grid */
.archive-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

/* Archive Post Card */
.archive-post-card {
    background: #fff;
    overflow: hidden;
}
/* Archive Post Image */
.archive-post-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 10px;
}

.archive-post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Archive Post Content */

.archive-post-category {
    background: #1a936f;
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
    border-radius: 3px;
    font-family: 'Roboto Condensed', sans-serif;
}

.archive-post-title {
    font-size: 20px;
    font-weight: 400;
    line-height: 24px;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 5px 0 15px;
}

.archive-post-title a {
    color: #02020b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-post-title a:hover {
    color: #1a936f;
}

.meta-separator {
    margin: 0 8px;
}

/* Archive Sidebar */
.archive-sidebar {
    grid-column: 2;
    position: sticky;
    top: 120px;
}

/* Trending Articles Widget */
.trending-articles-widget {
    background: #fff;
    overflow: hidden;
}

.widget-title {
    line-height: 16px;
    color: #02020b;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    padding-bottom: 10px;
}

/* Trending Article Item */
.trending-article-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: background-color 0.3s ease;
}

.trending-article-item:last-child {
    border-bottom: none;
}

.trending-article-item:hover {
    background-color: #f9f9f9;
}


/* Trending Number */
.trending-number {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: #92c93b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Trending Content */
.trending-content {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0 0 10px 0;
}

.trending-image {
    flex: 0 0 75px;
    height: 75px;
    width: 75px;
    overflow: hidden;
}

.trending-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.trending-text {
    flex: 1;
}

.trending-title {
    font-size: 14px;
    line-height: 20px;
    color: #02020b;
    text-transform: capitalize;
    font-weight: 400;
}

.trending-title a {
    color: #02020b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.trending-title a:hover {
    color: #1a936f;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-posts-found h2 {
    font-size: 28px;
    color: #02020b;
    margin-bottom: 15px;
}

.no-posts-found p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.back-home-link {
    display: inline-block;
    background: #1a936f;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.back-home-link:hover {
    background: #02020b;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border: 1px solid #ddd;
    color: #02020b;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #1a936f;
    color: white;
    border-color: #1a936f;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 15px;
}

/* Responsive Design */
@media (max-width: 991px) {
  
    .archive-main-content {
        grid-template-columns: 2fr;
    }
}

@media (max-width: 768px) {
    .archive-page-automotive {
        padding: 80px 0 30px 0;
    }

    .archive-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .archive-title-automotive {
        font-size: 24px;
        padding: 0 20px;
    }
    
    .archive-post-content {
        padding: 15px;
    }
    
    .trending-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .trending-image {
        flex: none;
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .archive-page-automotive {
        padding: 60px 0 20px 0;
    }
    
    .archive-header-automotive {
        margin-bottom: 30px;
    }
    
    .archive-title-automotive {
        font-size: 20px;
        padding: 0 15px;
    }
    
    .archive-posts-grid {
        gap: 20px;
    }
    
    .archive-post-image img {
        height: 160px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .page-numbers {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .archive-posts-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .archive-post-content {
        padding: 0;
    }
} 