/* ═══════════════════════════════════════════════
   NEWS LISTING PAGE
═══════════════════════════════════════════════ */

main.news {
    width: 100%;
    min-height: 100vh;
    background-color: var(--DefaultBackgroundColor);
    display: flex;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 60px;
}

main.news .main-content {
    width: 72%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
}

/* Side ads */
main.news .side-ads-bar {
    position: fixed;
    width: 160px;
    height: 600px;
    left: clamp(30px, 3vw, 90px);
    top: 14vh;
    background-color: transparent;
}
main.news .side-ads-bar.right {
    left: auto;
    right: clamp(30px, 3vw, 90px);
}
main.news .main-content .top-ads-bar {
    width: 100%;
    height: 90px;
    margin-bottom: 20px;
    background: #e5e7eb;
    border-radius: 8px;
}

/* ── Page header ── */
.news-page-header {
    margin-bottom: 28px;
}
.news-page-header h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--TextDefaultColor);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.news-page-header h1 .fa-futbol { color: #22c55e; font-size: 1.5rem; }
.news-page-sub {
    color: #888;
    font-size: .9rem;
}

/* ── Tag pills (shared) ── */
.tag-pill {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(34, 197, 94, .1);
    color: #16a34a;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
}
.tag-pill:hover { background: rgba(34, 197, 94, .2); color: #15803d; }
.tag-pill.small { font-size: .68rem; padding: 2px 8px; }

/* ── Featured hero article ── */
.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 16px;
    overflow: hidden;
    background: var(--CardBackgroundColor);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
    margin-bottom: 32px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    min-height: 340px;
}
.featured-article:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.featured-img-wrap {
    position: relative;
    overflow: hidden;
    background: #111827;
    isolation: isolate;
    height: 100%;
    min-height: 280px;
}
.featured-img-wrap .img-backdrop {
    position: absolute;
    inset: -12px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.45) saturate(1.3);
    z-index: 0;
}
.featured-img-wrap img {
    position: relative;
    z-index: 1;
    margin: auto;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .4s ease;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,.5));
}
.featured-article:hover .featured-img-wrap img { transform: scale(1.03); }
.featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: #22c55e;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.featured-body {
    padding: 32px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}
.featured-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.featured-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--TextDefaultColor);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-subtitle {
    font-size: .95rem;
    color: #555;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}
.featured-summary {
    font-size: .88rem;
    color: #777;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-meta {
    display: flex;
    gap: 16px;
    font-size: .8rem;
    color: #aaa;
    align-items: center;
}
.featured-meta span { display: flex; align-items: center; gap: 5px; }
.featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .85rem;
    font-weight: 700;
    color: #22c55e;
    margin-top: 4px;
}
.featured-article:hover .featured-cta { gap: 10px; }

/* ── Tag filter strip ── */
.tag-filter-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.tag-filter-pill {
    display: inline-block;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
    color: #555;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    transition: all .15s;
}
.tag-filter-pill:hover, .tag-filter-pill.active {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}

/* ── News card grid ── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* ── News card ── */
.news-card {
    display: flex;
    flex-direction: column;
    background: var(--CardBackgroundColor);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0,0,0,.09);
}
.card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
    flex-shrink: 0;
    isolation: isolate;
}
.card-img-wrap .img-backdrop {
    position: absolute;
    inset: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.45) saturate(1.3);
    z-index: 0;
}
.card-img-wrap img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,.45));
}
.news-card:hover .card-img-wrap img { transform: scale(1.04); }
.card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--TextDefaultColor);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}
.card-desc {
    font-size: .83rem;
    color: #777;
    line-height: 1.55;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    color: #aaa;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}
.card-time { display: flex; align-items: center; gap: 4px; }
.card-read {
    background: rgba(34,197,94,.08);
    color: #16a34a;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: .72rem;
}

/* ── Empty state ── */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}
.news-empty i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 16px;
    opacity: .35;
}
.news-empty h3 { font-size: 1.2rem; color: #666; margin-bottom: 8px; }
.news-empty p { font-size: .9rem; }

/* ── Pagination ── */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.page-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    background: var(--CardBackgroundColor);
    color: var(--TextDefaultColor);
    transition: all .15s;
}
.page-btn:hover { background: #22c55e; color: #fff; border-color: #22c55e; }
.page-btn.disabled { opacity: .4; pointer-events: none; }
.page-numbers { display: flex; gap: 4px; }
.page-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--TextDefaultColor);
    border: 1px solid var(--border-color);
    background: var(--CardBackgroundColor);
    transition: all .15s;
}
.page-num:hover, .page-num.active {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}
.page-ellipsis {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: .85rem;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
    main.news .side-ads-bar { display: none; }
    main.news .main-content { width: 90%; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .featured-article { grid-template-columns: 1fr; min-height: auto; }
    .featured-img-wrap { height: 220px; }
    .featured-body { padding: 20px; }
    .featured-title { font-size: 1.2rem; }
}

@media (max-width: 600px) {
    main.news .main-content { width: 95%; }
    .news-grid { grid-template-columns: 1fr; }
    .news-page-header h1 { font-size: 1.5rem; }
}

