/* ============================================
   NEWS — Listing + Single Post
   Premium sports editorial style
   ============================================ */

/* ---------- Shared variables ---------- */
.news-page,
.news-single {
    --np-primary: #C71C23;
    --np-primary-dark: #A01821;
    --np-bg: #F8F5EF;
    --np-white: #FFFFFF;
    --np-border: #E5E5E5;
    --np-text: #1a1a1a;
    --np-text-light: #555;
    --np-text-muted: #999;
    --np-radius: 12px;
    --np-radius-sm: 8px;
    --np-shadow: 0 1px 4px rgba(0,0,0,0.06);
    --np-shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
    --np-tr: 0.25s ease;
    --np-max: 1400px;
}

/* ---------- News Hero ---------- */
.news-hero {
    background: var(--np-bg);
    padding: 70px 20px 30px;
    text-align: center;
}

.news-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.news-hero .section-label {
    color: var(--np-primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
    display: block;
}

.news-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: var(--np-text);
    margin-bottom: 20px;
    line-height: 1.1;
}

.news-hero p {
    font-size: 18px;
    color: var(--np-text-light);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 10px;
}

@media (max-width: 768px) {
    .news-hero h1 { font-size: 36px; }
    .news-hero p { font-size: 16px; }
}

@media (max-width: 400px) {
    .news-hero { padding: 50px 16px 24px; }
    .news-hero h1 { font-size: 28px; }
}

/* ============================================
   NEWS LISTING PAGE
   ============================================ */
.news-page {
    background: var(--np-bg);
    padding-bottom: 80px;
    font-family: var(--np-font);
    color: var(--np-text);
    -webkit-font-smoothing: antialiased;
}

.news-page *, .news-page *::before, .news-page *::after { box-sizing: border-box; }

/* Container */
.news-container { max-width: var(--np-max); margin: 0 auto; padding: 0 32px; }

/* ---------- Category Pills ---------- */
.news-filters { padding: 50px 0 36px; }

.news-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.news-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--np-text);
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--np-tr);
    font-family: inherit;
    white-space: nowrap;
    line-height: 1;
    user-select: none;
}

.news-pill:hover { border-color: #bbb; background: #fafafa; }

.news-pill.active {
    background: var(--np-primary);
    color: var(--np-white);
    border-color: var(--np-primary);
}

.news-pill.active:hover { background: var(--np-primary-dark); border-color: var(--np-primary-dark); }

/* ---------- News Grid ---------- */
.news-grid-section { padding: 0 0 20px; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: opacity var(--np-tr);
}

/* ---------- News Card ---------- */
.news-card {
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    overflow: hidden;
    box-shadow: var(--np-shadow);
    transition: transform var(--np-tr), box-shadow var(--np-tr);
}

.news-card:hover { transform: translateY(-5px); box-shadow: var(--np-shadow-hover); }
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-link { display: block; text-decoration: none; color: inherit; }

.news-card-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EDEAE3;
}

.news-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card-category {
    position: absolute;
    bottom: 12px; left: 12px;
    padding: 5px 12px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--np-white);
    background: var(--np-primary);
    border-radius: 4px;
    line-height: 1.3;
}

.news-card-body { padding: 18px 20px 20px; }

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--np-text);
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-date { font-size: 13px; color: var(--np-text-muted); }

/* ---------- Loading ---------- */
.news-loading { display: none; justify-content: center; padding: 56px 0; }

.news-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--np-border);
    border-top-color: var(--np-primary);
    border-radius: 50%;
    animation: np-spin 0.6s linear infinite;
}

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

.news-empty { grid-column: 1 / -1; text-align: center; padding: 64px 0; color: var(--np-text-muted); font-size: 16px; }

/* ---------- Pagination ---------- */
.news-pagination { display: flex; justify-content: center; gap: 8px; padding: 40px 0 0; transition: opacity var(--np-tr); }

.news-page-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    font-size: 14px; font-weight: 500;
    color: var(--np-text);
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--np-tr);
    text-decoration: none;
    user-select: none;
}

.news-page-num:hover { border-color: var(--np-primary); color: var(--np-primary); }

.news-page-num.current {
    background: var(--np-primary); color: var(--np-white);
    border-color: var(--np-primary); cursor: default;
}

.news-page-num.dots { border: none; background: none; cursor: default; color: var(--np-text-muted); min-width: auto; }


/* ============================================
   SINGLE NEWS POST
   ============================================ */
.news-single {
    background: var(--np-bg);
    min-height: 100vh;
    font-family: var(--np-font);
    color: var(--np-text);
    -webkit-font-smoothing: antialiased;
}

.news-single *, .news-single *::before, .news-single *::after { box-sizing: border-box; }

/* Hero — full-width, tall */
.news-single-hero {
    width: 100%;
    max-width: 80%;
    margin: 0 auto;
    height: 500px;
    overflow: hidden;
    background: #EDEAE3;
    position: relative;
    border-radius: var(--np-radius);
}

.news-single-hero-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.news-single-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--np-bg), transparent);
}

/* Container — 80% width, readable */
.news-single-container {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 0 72px;
    margin-top: -28px;
    position: relative;
}

/* Back link */
.news-single-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600;
    color: var(--np-text-light);
    text-decoration: none;
    margin-bottom: 20px;
    padding: 6px 0;
    letter-spacing: 0.2px;
    transition: color var(--np-tr);
}

.news-single-back:hover { color: var(--np-primary); }
.news-single-back svg { flex-shrink: 0; }

/* Article card */
.news-single-article {
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    padding: 36px 40px 40px;
    box-shadow: var(--np-shadow);
}

.news-single-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--np-white);
    background: var(--np-primary);
    border-radius: 4px;
    margin-bottom: 14px;
}

.news-single-title {
    font-size: clamp(22px, 3.2vw, 30px);
    font-weight: 800;
    color: var(--np-text);
    margin: 0 0 10px;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

.news-single-date {
    display: block;
    font-size: 13px;
    color: var(--np-text-muted);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--np-border);
}

/* Content typography */
.news-single-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--np-text-light);
}

.news-single-content p { margin: 0 0 18px; }

.news-single-content h2 {
    font-size: 22px; font-weight: 700;
    color: var(--np-text);
    margin: 32px 0 12px;
}

.news-single-content h3 {
    font-size: 18px; font-weight: 700;
    color: var(--np-text);
    margin: 28px 0 10px;
}

.news-single-content img {
    max-width: 100%; height: auto;
    border-radius: 8px;
    margin: 24px 0;
    display: block;
}

.news-single-content blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid var(--np-primary);
    background: #FAF8F4;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--np-text-light);
}

.news-single-content ul,
.news-single-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.news-single-content li { margin-bottom: 6px; }

.news-single-content a {
    color: var(--np-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-single-content a:hover { color: var(--np-primary-dark); }

/* Share bar */
.news-share {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--np-border);
}
.news-share-label {
    font-size: 12px; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--np-text-muted);
    margin-right: 6px;
}
.news-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.news-share-btn svg { width: 14px; height: 14px; fill: #fff; }
.news-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); opacity: 0.9; }
.news-share-btn.news-share-fb { background: #1877F2; }
.news-share-btn.news-share-x { background: #000; }
.news-share-btn.news-share-li { background: #0A66C2; }
.news-share-btn.news-share-wa { background: #25D366; }

/* Prev / Next */
.news-single-nav {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--np-border);
}

.news-single-nav-link {
    display: flex; flex-direction: column; gap: 4px;
    text-decoration: none;
    padding: 14px 16px;
    background: var(--np-white);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    transition: all var(--np-tr);
    max-width: 48%;
}

.news-single-nav-link:hover { border-color: var(--np-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.news-single-next { text-align: right; margin-left: auto; }

.news-single-nav-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--np-text-muted);
}

.news-single-nav-title {
    font-size: 13px; font-weight: 600;
    color: var(--np-text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ============================================
   RESPONSIVE
   ============================================ */

/* ≤1024px */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .news-single-hero { height: 420px; }
}

/* ≤768px */
@media (max-width: 768px) {
    .news-container { padding: 0 20px; }
    .news-grid { gap: 20px; }
    .news-pills { gap: 8px; }
    .news-pill { padding: 9px 18px; font-size: 13px; }
    .news-card-title { font-size: 16px; }

    .news-single-hero { max-width: 90%; height: 360px; border-radius: 10px; }
    .news-single-container { max-width: 90%; margin-top: -24px; }
    .news-single-article { padding: 28px 28px 32px; }
    .news-single-title { font-size: clamp(20px, 4vw, 26px); }
    .news-single-content { font-size: 15px; line-height: 1.7; }
    .news-single-nav { flex-direction: column; }
    .news-single-nav-link { max-width: 100%; }
}

/* ≤600px */
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; gap: 16px; }
    .news-pill { padding: 8px 16px; font-size: 12px; }
    .news-card-body { padding: 14px 16px 16px; }
    .news-card-title { font-size: 15px; }
    .news-card-category { font-size: 10px; padding: 4px 10px; bottom: 10px; left: 10px; }
    .news-pagination { gap: 6px; padding: 32px 0 0; }
    .news-page-num { min-width: 36px; height: 36px; font-size: 13px; }

    .news-single-hero { max-width: 92%; height: 280px; border-radius: 8px; }
    .news-single-container { max-width: 92%; margin-top: -20px; }
    .news-single-article { padding: 24px 20px 28px; border-radius: 8px; }
    .news-single-title { font-size: 20px; }
    .news-single-content { font-size: 15px; line-height: 1.7; }
    .news-single-nav-link { padding: 12px 14px; }
}

/* ≤400px */
@media (max-width: 400px) {
    .news-container { padding: 0 16px; }
    .news-pills { gap: 6px; }
    .news-pill { padding: 7px 14px; font-size: 11px; }

    .news-single-hero { max-width: 94%; height: 220px; border-radius: 6px; }
    .news-single-container { max-width: 94%; margin-top: -16px; }
    .news-single-article { padding: 20px 16px 24px; }
    .news-single-title { font-size: 19px; }
    .news-single-content { font-size: 14px; line-height: 1.65; }
    .news-single-nav-title { font-size: 12px; }
}
