/* News Templates Common CSS */

/* Category Header */
.category-header {
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 12px;
}

.category-header-content {
    text-align: center;
}

.category-title {
    font-size: 36px;
    margin: 0 0 15px;
    font-weight: 700;
}

.category-description {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.category-breadcrumb {
    margin-top: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.category-breadcrumb a {
    color: white;
    text-decoration: none;
}

/* Main Content Grid */
.news-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Note: Base news-item styles are inherited from news-common.css */

/* Featured News Section */
.featured-news-section {
    margin-bottom: 40px;
}

.featured-news-section h2 {
    border-bottom: 5px solid;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.featured-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

/* Featured News Item */
.featured-news-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.featured-news-image {
    height: 200px;
    overflow: hidden;
}

.featured-news-content {
    padding: 20px;
}

.featured-news-title {
    margin: 0 0 15px;
    font-size: 18px;
    line-height: 1.4;
}

.featured-news-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.featured-news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.news-category-tag {
    color: black;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
}

.featured-news-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* Latest News Section */
.latest-news-section h2 {
    border-bottom: 5px solid;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

/* Latest News Item */
.latest-news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.latest-news-image {
    flex-shrink: 0;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
}

.latest-news-content {
    flex: 1;
}

.latest-news-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.4;
}

.latest-news-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.latest-news-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #666;
}

.latest-news-excerpt {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* News Stats */
.news-stats {
    color: #666;
    font-size: 14px;
}

/* Empty State */
.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
}

.news-empty-state h3 {
    color: #666;
    margin-bottom: 15px;
}

.news-empty-state p {
    color: #999;
}

/* Search Highlight */
.search-highlight {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3cd;
    border-left: 3px solid #fdbf30;
    border-radius: 4px;
    font-size: 12px;
}

.search-term {
    background: #fdbf30;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .latest-news-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .latest-news-image {
        width: 100%;
        height: 180px;
        order: -1;
    }

    .latest-news-content {
        order: 1;
    }

    .latest-news-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .latest-news-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
    }

    .latest-news-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    .category-title {
        font-size: 28px;
    }

    /* Featured News Responsive */
    .featured-news-item {
        margin-bottom: 15px;
    }

    .featured-news-content {
        padding: 15px;
    }

    .featured-news-title {
        font-size: 16px;
        line-height: 1.4;
    }

    .featured-news-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 11px;
    }

    .featured-news-excerpt {
        font-size: 13px;
        line-height: 1.5;
    }

    /* News Item Responsive */
    .news-item {
        flex-direction: column;
        gap: 12px;
        min-height: auto;
        padding: 12px;
    }

    .news-thumb {
        width: 100%;
        height: 150px;
        order: -1;
    }

    .news-content {
        padding: 15px;
        order: 1;
    }

    /* Section Headers */
    .featured-news-section h2,
    .latest-news-section h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .news-content-grid {
        gap: 15px;
    }

    .latest-news-item {
        padding: 12px;
        margin-bottom: 15px;
    }

    .latest-news-image {
        height: 160px;
    }

    .latest-news-title {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .latest-news-meta {
        font-size: 10px;
        gap: 6px;
    }

    .latest-news-excerpt {
        font-size: 12px;
    }

    .featured-news-content {
        padding: 12px;
    }

    .featured-news-title {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .featured-news-meta {
        font-size: 10px;
        gap: 6px;
    }

    .featured-news-excerpt {
        font-size: 12px;
    }

    .news-category-tag {
        font-size: 9px;
        padding: 1px 6px;
    }

    /* Section Headers */
    .featured-news-section h2,
    .latest-news-section h2 {
        font-size: 18px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }

    /* Search and Tag specific */
    .search-highlight {
        padding: 6px 10px;
        font-size: 11px;
        margin-top: 8px;
    }

    .search-term {
        padding: 1px 4px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .news-item {
        flex-direction: column;
        gap: 8px;
        padding: 0;
    }

    .news-thumb {
        height: 120px;
    }

    .news-content {
        padding: 10px;
    }

    .news-title {
        font-size: 0.1rem !important;
    }
}
