/* Category Page Improvements - Simplified */

.category_section {
    background-color: #fcfcfc;
    padding: 3rem 2rem;
}

/* Modern card layout for news items */
.category_container {
    max-width: 1200px;
    margin: 0 auto;
}

.category_header {
    text-align: center;
    margin-bottom: 3rem;
}

.category_header h1 {
    color: var(--primary-dark);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category_header .breadcrumb {
    display: inline-flex;
    text-align: right;
    background: none;
    padding: 0;
    margin: 0;
    border: none;
    font-size: 1.6rem;
    color: #666;
}

/* Hide featured news container */
.featured_news_container {
    display: none !important;
}

/* News metadata styles */
.news_date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news_author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* News Grid */
.news_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.news_card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
}

.news_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.news_card_image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news_card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news_card:hover .news_card_image img {
    transform: scale(1.03);
}

.news_card_content {
    padding: 1.5rem;
}

.news_card_title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-dark);
    line-height: 1.4;
    margin-bottom: 1rem;
    text-decoration: none;
    display: block;
}

.news_card_title:hover {
    color: var(--secondary);
    text-decoration: none;
}

.news_card_summary {
    color: #666;
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news_card_meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #888;
    font-size: 1.5rem;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

/* Load More Button */
.load_more_container {
    text-align: center;
    margin: 3rem 0;
    display: block;
}

.load_more_btn {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.3);
}

.load_more_btn:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(106, 90, 205, 0.4);
}

.load_more_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading_spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Empty State */
.empty_state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty_state_icon {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty_state_title {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.empty_state_text {
    color: #888;
    font-size: 1.3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .category_section {
        padding: 2rem 1rem;
    }

    .category_header h1 {
        font-size: 2rem;
    }

    .news_grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news_card_image {
        height: 180px;
    }

    .news_card_content {
        padding: 1.2rem;
    }

    .news_card_title {
        font-size: 1.7rem;
    }

    .news_card_meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .news_grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news_card_image {
        height: 160px;
    }

    .load_more_btn {
        padding: 0.8rem 2rem;
        font-size: 1.4rem;
    }
}