/* === News Page Styles === */

/* Page Header */
.news-page-header {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.page-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.header-search-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    min-width: 260px;
    transition: border-color 0.2s;
}

.header-search-box:focus-within {
    border-color: var(--primary-color);
}

.header-search-box i {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.header-search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
}

.header-search-box input::placeholder {
    color: var(--text-muted);
}

/* Filter Tabs */
.news-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover {
    color: var(--text-primary);
    border-color: #444;
}

.filter-tab.active {
    background-color: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

/* Featured Article */
.featured-article {
    margin-bottom: 3rem;
}

.featured-article-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    min-height: 360px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
}

.featured-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.featured-article-card:hover h2 {
    color: var(--primary-color);
}

.featured-img {
    position: relative;
    overflow: hidden;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article-card:hover .featured-img img {
    transform: scale(1.04);
}

.featured-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.featured-info {
    padding: 2rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
}

.featured-info .category-tag {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
}

.featured-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.25;
    transition: color 0.2s;
}

.featured-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-meta-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.author-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name-sm {
    font-size: 0.82rem;
    font-weight: 600;
}

.meta-dot {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.meta-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Articles Grid */
.all-articles {
    margin-bottom: 5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 2.5rem;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.article-card.hidden {
    display: none;
}

.article-card-img {
    width: 100%;
    height: 190px;
    overflow: hidden;
}

.article-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.article-card:hover .article-card-img img {
    transform: scale(1.06);
}

.article-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.6rem;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-time-sm {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s;
}

.article-card:hover h3 {
    color: var(--primary-color);
}

.article-card-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.article-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.read-more {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.no-results p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

/* Load More */
.load-more-row {
    display: flex;
    justify-content: center;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    min-width: 220px;
}

/* Responsive */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title { font-size: 1.75rem; }
    .page-title-row { align-items: flex-start; flex-direction: column; }
    .header-search-box { min-width: 100%; }
    
    .featured-article-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .featured-img { height: 220px; }
    .featured-info { padding: 1.25rem; }
    .featured-info h2 { font-size: 1.25rem; }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .all-articles {
        margin-bottom: 7rem;
    }
}
