/* News Category Page Styles */

/* Main Layout */
.news-category {
    background: #f5f5f5;
}

/* Header Styles */
.news-header {
    background: #fff;
    border-bottom: 5px solid #fdbf30;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-title-wrapper {
    padding: 0 15px;
    margin-bottom: 15px;
}

.news-category-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(44, 90, 160, 0.1);
}

/* Sub Navigation */
.news-subnav {
    background: #fff;
    padding: 15px 0;
}

.news-subnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-subnav-list li {
    margin: 5px;
}

.news-subnav-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 20px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.news-subnav-list a:hover {
    background: #e8f2ff;
    color: #fdbf30;
    border-color: #fdbf30;
    transform: translateY(-2px);
}

.news-subnav-list .current-cat a {
    background: #fdbf30;
    color: black;
    border-color: #fdbf30;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

/* Content Layout */
.news-content-wrapper {
    background: #fff;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
}

.news-main-content {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Featured Story */
.news-featured-story {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.news-featured-story:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
}

.news-featured-image {
    position: relative;
    overflow: hidden;
}

.news-featured-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-featured-story:hover .news-featured-image img {
    transform: scale(1.05);
}

.news-featured-content {
    padding: 25px;
}

.news-featured-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.news-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-featured-title a:hover {
    color: #2c5aa0;
}

.news-featured-summary {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.news-featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #999;
    font-size: 13px;
}

.news-featured-location {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(44, 90, 160, 0.3);
}

/* Category-specific overrides for news list */
.news-category .news-list {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

/* Category-specific first item - special layout on desktop */
.news-category .news-list .news-item:first-child {
    display: flex;
    flex-direction: column;
    order: -1;
    flex-shrink: 0;
    background: white;
    border-bottom: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.news-category .news-list .news-item:first-child .news-content {
    padding: 25px;
}

.news-category .news-list .news-item:first-child:hover {
    background: white;
}

.news-content {
    flex: 1;
}

.news-location {
    background: linear-gradient(135deg, #2c5aa0, #1e3a8a);
    color: #fff;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
    box-shadow: 0 2px 4px rgba(44, 90, 160, 0.2);
}

.news-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #2c5aa0;
}

.news-summary {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #999;
    font-size: 12px;
}

/* Thumbnail styles are now handled by news-common.css */

/* Sidebar */
.news-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    height: fit-content;
}

.news-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #fdbf30;
    position: relative;
}

.news-sidebar-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 3px;
}

.news-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-related-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.news-related-list li:last-child {
    border-bottom: none;
}

.news-related-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.3s ease;
    flex: 1;
}

.news-related-list a:hover {
    color: #2c5aa0;
}

.news-related-time {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* Pagination */
.news-pagination {
    text-align: center;
    padding: 40px 0;
    background: #fff;
}

.news-pagination .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.news-pagination .page-numbers a,
.news-pagination .page-numbers span {
    display: block;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e5e5;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.news-pagination .page-numbers a:hover,
.news-pagination .page-numbers .current {
    background: #fdbf30;
    color: white;
    border-color: #fdbf30;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-content-wrapper {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .news-subnav-list {
        gap: 10px;
        justify-content: center;
    }

    .news-subnav-list a {
        padding: 8px 12px;
        font-size: 13px;
    }

    .news-category-title {
        font-size: 26px;
    }

    .news-featured-title {
        font-size: 22px;
    }

    .news-item {
        flex-direction: column;
        gap: 12px;
    }

    /* .news-list .news-item:first-child .news-thumb height inherited from news-common.css */

    /* Reset first-child to match other items ONLY at mobile */
    .news-list .news-item:first-child {
        display: flex;
        flex-direction: row;
        order: 0;
        background: white;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        min-height: 120px;
        border-bottom: 1px solid #e9ecef;
    }

    .news-list .news-item:first-child .news-thumb {
        width: 120px;
        height: 120px;
        order: 0;
        flex-shrink: 0;
    }

    .news-list .news-item:first-child .news-content {
        padding: 15px 20px;
        order: 1;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .news-list .news-item:first-child .news-summary {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .news-list .news-item:not(:first-child) {
        padding: 0;
    }

    .news-category .news-list .news-item:first-child .news-thumb {
        order: -1;
        width: 100%;
        height: 220px;
        flex-shrink: 0;
    }

    .news-category .news-list .news-item:first-child .news-content {
        order: 1;
        padding: 15px;
    }

    .news-category .news-list .news-item:first-child .news-title {
        font-size: 16px;
    }

    .news-category .news-list .news-item:first-child .news-excerpt {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .news-content {
        padding: 15px;
    }

    .news-item {
        flex-direction: column;
        gap: 8px;
    }

    /* Mobile: first-child stacks like others when screen is very small */
    @media (max-width: 480px) {
        .news-content-wrapper {
            padding: 5px;
        }

        .news-list .news-item:first-child {
            flex-direction: column;
            min-height: auto;
        }

        .news-category .news-list .news-item:first-child .news-thumb {
            order: -1;
            width: 100%;
            height: 150px;
            flex-shrink: 0;
        }

        .news-list .news-item:first-child .news-content {
            padding: 15px;
            order: 1;
        }
        
        .news-category .news-list .news-item:first-child .news-content {
            padding: 10px;
        }

        .news-content {
            padding: 10px;
        }

    }

    .news-thumb {
        min-width: 100%;
        /* Height inherited from news-common.css */
    }

    .news-meta {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .news-category {
        font-size: 10px;
    }

    .news-featured-image img {
        height: 250px;
    }

    .news-featured-content {
        padding: 20px;
    }

    .news-list {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .news-header {
        padding: 15px 0;
    }

    .news-category-title {
        font-size: 22px;
    }

    .news-subnav {
        padding: 12px 0;
    }

    .news-subnav-list {
        gap: 8px;
        align-items: center;
        justify-content: left;
    }

    .news-subnav-list a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .news-featured-image img {
        height: 200px;
    }

    .news-featured-content {
        padding: 15px;
    }

    .news-featured-title {
        font-size: 18px;
    }

    .news-list {
        padding: 10px 0;
    }

    .news-sidebar {
        padding: 20px;
    }
}
