/*
CTC Separate Stylesheet
Updated: 2026-04-22 12:17:44
*/

/* Archive Page Styles */
.archive-header {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.archive-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.archive-subtitle {
    font-size: 16px;
    color: #c00;
    font-style: italic;
    margin: 0;
}

/* Filter Section */
.filter-section {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.filter-header {
    display: flex;
    background: #f5f5f5;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.filter-label {
    width: 180px;
    flex-shrink: 0;
}

.filter-description-label {
    flex: 1;
}

.filter-list {
    border: 1px solid #ddd;
    border-top: none;
}

.filter-item {
    display: flex;
    text-decoration: none !important;
    color: inherit;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

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

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

.filter-item.active {
    background-color: #f0f7ff;
}

.filter-button {
    width: 180px;
    padding: 20px;
    font-weight: 600;
    font-size: 15px;
    color: #555;
    flex-shrink: 0;
    border-right: 1px solid #eee;
}

.filter-item.active .filter-button {
    color: #0066cc;
}

.filter-descriptor {
    flex: 1;
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Posts Grid - Force Single Column Layout */
#content .posts-grid,
.site-main .posts-grid,
.page-content .posts-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-auto-flow: unset !important;
}

#content .posts-grid .post-card,
.site-main .posts-grid article.post-card,
.posts-grid > .post-card {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 20px !important;
    float: none !important;
    clear: both !important;
}

.posts-grid .post-card:last-child {
    margin-bottom: 0;
}

.post-card {
    background: #fff;
    overflow: hidden;
}

.post-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.post-thumbnail {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-link:hover .post-thumbnail img {
    transform: scale(1.02);
}

.post-thumbnail.placeholder {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    background: #ccc;
    border-radius: 4px;
}

.post-content {
    padding: 0 0 10px;
}

.post-meta {
    font-size: 11px;
    color: #c41e3a;
    margin: 0 0 5px;
    font-weight: 400;
    text-transform: none;
    text-decoration: none !important;
}

.post-title {
    font-size: 1.8rem !important;
    font-weight: 500;
    color: #c41e3a;
    line-height: 1.1;
    margin: 0;
    text-decoration: none !important;
}

.post-link:hover .post-title {
    text-decoration: none !important;
}

/* No Posts Message */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Pagination */
.pagination {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    text-decoration: none !important;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.pagination a:hover {
    background: #f5f5f5;
}

.pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    .filter-header {
        display: none;
    }
    
    .filter-item {
        flex-direction: column;
    }
    
    .filter-button {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding: 15px;
    }
    
    .filter-descriptor {
        padding: 15px;
        font-size: 13px;
    }
    
    .posts-grid .post-card {
        margin-bottom: 35px;
    }
    
    .archive-title {
        font-size: 24px;
    }
}

@media screen and (max-width: 480px) {
    .archive-header,
    .filter-section,
    .posts-grid,
    .pagination {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .posts-grid {
        padding: 0 15px;
    }
}