﻿/* ═══════════════════════════════════════════════════════════════
   VARSITY NEWS — STANDALONE PUBLIC STYLES
   No dependency on _Layout or styles.css
   ═══════════════════════════════════════════════════════════════ */

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --success: #34a853;
    --danger: #ea4335;
    --warning: #fbbc04;
    --info: #4285f4;
    --dark: #171717;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: #ffffff;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ─── TOP NAVBAR ─── */
.news-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.92);
}

.news-topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.news-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: -0.02em;
}

    .news-brand i {
        font-size: 1.1rem;
        color: var(--dark);
    }

    .news-brand .accent {
        color: var(--gray-500);
        font-weight: 600;
    }

.news-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.news-topbar-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

    .news-topbar-link:hover {
        color: var(--dark);
        background: var(--gray-100);
    }

.news-topbar-btn {
    padding: 0.55rem 1.25rem;
    background: var(--dark);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 2px solid var(--dark);
    transition: all 0.2s;
}

    .news-topbar-btn:hover {
        background: transparent;
        color: var(--dark);
    }

/* ─── HERO ─── */
.news-hero {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, #0a0a0a 100%);
    color: #fff;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

    .news-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 48px 48px;
        pointer-events: none;
    }

.news-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.news-hero-left {
    flex: 1;
}

.news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.news-hero-left h1 {
    font-size: clamp(1.6rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

    .news-hero-left h1 span {
        color: var(--gray-400);
    }

.news-hero-left p {
    color: var(--gray-400);
    font-size: 1.05rem;
    max-width: 480px;
    line-height: 1.6;
}

.news-hero-right {
    flex-shrink: 0;
}

.news-stat {
    text-align: center;
}

.news-stat-num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.news-stat-lbl {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.3rem;
}

/* ─── FILTER BAR ─── */
.news-filterbar {
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    position: sticky;
    top: 60px;
    z-index: 900;
}

.news-filterbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .news-filter-group > i {
        color: var(--gray-400);
        font-size: 0.85rem;
    }

.news-select {
    padding: 0.6rem 2.2rem 0.6rem 0.85rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23737373' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    transition: all 0.2s;
    min-width: 170px;
}

    .news-select:focus {
        outline: none;
        border-color: var(--dark);
        box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    }

.news-search-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 320px;
}

    .news-search-wrap i {
        position: absolute;
        left: 0.85rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray-400);
        font-size: 0.85rem;
    }

.news-search {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.2rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--dark);
    background: var(--gray-50);
    transition: all 0.2s;
}

    .news-search:focus {
        outline: none;
        border-color: var(--dark);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    }

    .news-search::placeholder {
        color: var(--gray-400);
    }

.news-sort-pills {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.news-pill {
    padding: 0.55rem 1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 100px;
    background: #fff;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

    .news-pill:hover {
        border-color: var(--gray-400);
        color: var(--dark);
    }

    .news-pill.active {
        background: var(--dark);
        color: #fff;
        border-color: var(--dark);
    }

/* ─── MAIN CONTENT ─── */
.news-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.news-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

/* ─── LIST ─── */
.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1.75rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-200);
    cursor: pointer;
    transition: background 0.2s;
}

    .news-item:first-child {
        padding-top: 0;
    }

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item:hover {
        background: var(--gray-50);
    }

    .news-item.featured {
        grid-template-columns: minmax(260px, 380px) 1fr;
        gap: 0;
        padding: 0;
        margin-bottom: 1.75rem;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
        background: #fff;
        align-items: stretch;
        transition: box-shadow 0.2s, border-color 0.2s;
    }

        .news-item.featured:hover {
            background: #fff;
            box-shadow: var(--shadow);
            border-color: var(--gray-300);
        }

.news-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    aspect-ratio: 1 / 1;
}

.news-item.featured .news-image {
    aspect-ratio: auto;
    height: 100%;
    border-radius: 0;
    min-height: 220px;
}

.news-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.05);
}

.news-image i {
    font-size: 2.5rem;
}

/* overlay badge on the image itself */
.news-item-badge {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--gray-700);
}

    .news-item-badge.sports {
        background: #1e8e3e;
    }

    .news-item-badge.events {
        background: #e0403a;
    }

    .news-item-badge.announcements {
        background: #f9a825;
    }

    .news-item-badge.academic {
        background: #1967d2;
    }

    .news-item-badge.culture-arts {
        background: #6a35c9;
    }

.news-item-badge-featured {
    top: 1rem;
    bottom: auto;
    left: 1rem;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

    .news-item-badge-featured i {
        font-size: 0.65rem;
    }

.news-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.news-item.featured .news-body {
    justify-content: flex-start;
    padding: 1.75rem 2rem;
}

.news-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}

.news-dot {
    color: var(--gray-300);
    font-size: 0.7rem;
}

.news-badge {
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

    .news-badge.sports {
        background: #e6f4ea;
        color: #1e8e3e;
    }

    .news-badge.events {
        background: #fce8e6;
        color: #c5221f;
    }

    .news-badge.announcements {
        background: #fef7e0;
        color: #b06000;
    }

    .news-badge.academic {
        background: #e8f0fe;
        color: #1967d2;
    }

    .news-badge.culture-arts {
        background: #f3e8fd;
        color: #7b1fa2;
    }

.news-uni {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.news-time {
    font-size: 0.8rem;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

    .news-time i {
        display: none;
    }

.news-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item.featured .news-card-title {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.news-excerpt {
    font-size: 0.875rem;
    color: var(--gray-500);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.news-item.featured .news-excerpt {
    font-size: 0.95rem;
    -webkit-line-clamp: 3;
}

.news-footer-row {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.news-item.featured .news-footer-row {
    border-top: 1px solid var(--gray-200);
    margin-top: 1.25rem;
}

.news-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.news-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.news-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.news-author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-author-role {
    font-size: 0.72rem;
    color: var(--gray-400);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-stats-row {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--gray-400);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

    .news-stats-row span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

.news-like-btn {
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

    .news-like-btn:hover {
        color: var(--danger);
    }

    .news-like-btn i.fa-solid {
        color: var(--danger);
    }

    .news-like-btn.liked i {
        color: var(--danger);
    }

.news-comment-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ─── COMMENTS (modal) ─── */
.news-comments {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.news-comments-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.news-comment-form {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.news-comment-input {
    flex: 1;
    resize: vertical;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.875rem;
    color: var(--dark);
    background: var(--gray-50);
    transition: all 0.2s;
}

    .news-comment-input:focus {
        outline: none;
        border-color: var(--dark);
        background: #fff;
        box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
    }

.news-comment-submit {
    padding: 0.6rem 1.1rem;
    background: var(--dark);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

    .news-comment-submit:hover {
        background: var(--primary);
    }

.news-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.news-comments-empty,
.news-comments-loading {
    font-size: 0.85rem;
    color: var(--gray-400);
}

.news-comment {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}

.news-comment-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
}

.news-comment-body {
    flex: 1;
    min-width: 0;
}

.news-comment-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}

.news-comment-author {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
}

.news-comment-time {
    font-size: 0.72rem;
    color: var(--gray-400);
}

.news-comment-delete {
    margin-left: auto;
    border: none;
    background: none;
    color: var(--gray-300);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.2rem;
    transition: color 0.2s;
}

    .news-comment-delete:hover {
        color: var(--danger);
    }

.news-comment-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    word-break: break-word;
}

/* ─── EMPTY STATE ─── */
.news-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--gray-400);
}

    .news-empty i {
        font-size: 3rem;
        margin-bottom: 1rem;
        display: block;
    }

    .news-empty h3 {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 0.5rem;
    }

    .news-empty p {
        font-size: 0.9rem;
    }

/* ─── FOOTER ─── */
.news-footer {
    border-top: 1px solid var(--gray-200);
    padding: 2rem;
    margin-top: 3rem;
}

.news-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.news-footer p {
    font-size: 0.8rem;
    color: var(--gray-400);
}

.news-footer-links {
    display: flex;
    gap: 1.5rem;
}

    .news-footer-links a {
        font-size: 0.8rem;
        color: var(--gray-500);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .news-footer-links a:hover {
            color: var(--dark);
        }

/* ─── MODAL ─── */
.news-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.65);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

    .news-modal.open {
        display: flex;
        animation: fadeIn 0.25s ease;
    }

.news-modal-box {
    background: #fff;
    border-radius: var(--radius);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.news-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: all 0.2s;
}

    .news-modal-close:hover {
        background: var(--dark);
        color: #fff;
    }

.news-modal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.news-modal-body {
    padding: 1.75rem;
}

    .news-modal-body h2 {
        font-size: 1.5rem;
        font-weight: 800;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        color: var(--dark);
    }

.news-modal-excerpt {
    font-size: 0.95rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.news-modal-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

    .news-modal-content p {
        margin-bottom: 1rem;
    }

.news-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-100);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ═══════════════════════════════════════════════════════════════
   TABLET BREAKPOINT (max-width: 768px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .news-topbar-inner {
        padding: 0 1rem;
    }

    .news-hero {
        padding: 2.5rem 1rem;
    }

    .news-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-filterbar {
        padding: 1rem;
        top: 60px;
    }

    .news-filterbar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .news-search-wrap {
        max-width: 100%;
    }

    .news-sort-pills {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }

    .news-main {
        padding: 1.5rem 1rem;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

        .news-item.featured {
            grid-template-columns: 1fr;
        }

    .news-item-badge {
        left: 0.75rem;
        bottom: 0.75rem;
    }

    .news-item.featured .news-image {
        aspect-ratio: 16 / 11;
        height: auto;
        min-height: 0;
    }

    .news-item.featured .news-body {
        padding: 1.25rem 1.5rem;
    }

    .news-item.featured .news-card-title {
        font-size: 1.4rem;
    }

    .news-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SMALL PHONE BREAKPOINT (max-width: 480px)
   Samsung A06, budget Android phones
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    /* ─── Topbar ─── */
    .news-topbar-inner {
        padding: 0 0.75rem;
        height: 52px;
    }

    .news-brand {
        font-size: 1.05rem;
        gap: 0.4rem;
    }

        .news-brand i {
            font-size: 0.95rem;
        }

    .news-modal-content h1 {
        font-size: 1.25rem;
    }

    .news-modal-content h2 {
        font-size: 1.15rem;
    }

    .news-modal-content h3 {
        font-size: 1rem;
    }

    .news-modal-content ul,
    .news-modal-content ol {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }

    .news-modal-content li {
        margin-bottom: 0.4rem;
    }

    /* ─── Hero ─── */
    .news-hero {
        padding: 1.75rem 0.75rem;
    }

    .news-hero-left h1 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }

    .news-hero-left p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .news-eyebrow {
        font-size: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .news-stat-num {
        font-size: 1.8rem;
    }

    .news-stat-lbl {
        font-size: 0.65rem;
    }

    /* ─── Filter Bar ─── */
    .news-filterbar {
        padding: 0.75rem;
        top: 52px;
    }

    .news-filterbar-inner {
        gap: 0.6rem;
    }

    .news-filter-group {
        width: 100%;
    }

        .news-filter-group > i {
            font-size: 0.75rem;
        }

    .news-select {
        min-width: unset;
        width: 100%;
        padding: 0.5rem 2rem 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .news-search-wrap {
        min-width: unset;
        width: 100%;
    }

    .news-search {
        padding: 0.5rem 0.75rem 0.5rem 2rem;
        font-size: 0.8rem;
    }

    .news-search-wrap i {
        left: 0.7rem;
        font-size: 0.75rem;
    }

    .news-sort-pills {
        gap: 0.35rem;
        justify-content: stretch;
    }

    .news-pill {
        padding: 0.45rem 0.75rem;
        font-size: 0.72rem;
        flex: 1;
        text-align: center;
    }

    /* ─── Main Content ─── */
    .news-main {
        padding: 1rem 0.75rem;
    }

    .news-count {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    /* ─── News Items ─── */
    .news-item {
        gap: 0.7rem;
        padding: 1rem 0;
    }

        .news-item.featured {
            gap: 0;
            padding: 0;
            margin-bottom: 1.25rem;
        }

    .news-image {
        aspect-ratio: 16 / 10;
        border-radius: var(--radius-sm);
    }

    .news-item.featured .news-image {
        aspect-ratio: 16 / 10;
        border-radius: 0;
    }

    .news-item.featured .news-body {
        padding: 1rem 1.1rem;
    }

    .news-image i {
        font-size: 1.8rem;
    }

    .news-item-badge {
        left: 0.6rem;
        bottom: 0.6rem;
        padding: 0.3rem 0.65rem;
        font-size: 0.6rem;
    }

    .news-item-badge-featured {
        top: 0.6rem;
        left: 0.6rem;
    }

    .news-meta-row {
        gap: 0.35rem;
        margin-bottom: 0.4rem;
    }

    .news-uni {
        font-size: 0.7rem;
    }

    .news-time {
        font-size: 0.7rem;
    }

    .news-dot {
        font-size: 0.6rem;
    }

    .news-card-title {
        font-size: 0.95rem;
        line-height: 1.3;
        margin-bottom: 0.3rem;
    }

    .news-item.featured .news-card-title {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }

    .news-excerpt {
        font-size: 0.8rem;
        line-height: 1.5;
        -webkit-line-clamp: 2;
    }

    .news-item.featured .news-excerpt {
        font-size: 0.82rem;
        -webkit-line-clamp: 2;
    }

    /* ─── Author & Stats ─── */
    .news-footer-row {
        padding-top: 0.75rem;
        gap: 0.5rem;
    }

    .news-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }

    .news-author-name {
        font-size: 0.75rem;
    }

    .news-author-role {
        font-size: 0.65rem;
    }

    .news-stats-row {
        gap: 0.6rem;
        font-size: 0.7rem;
    }

    /* ─── Modal ─── */
    .news-modal {
        padding: 0;
        align-items: flex-end;
    }

    .news-modal-box {
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 92vh;
        max-width: 100%;
    }

    .news-modal-close {
        top: 0.6rem;
        right: 0.6rem;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .news-modal-img {
        height: 180px;
    }

    .news-modal-body {
        padding: 1rem;
    }

        .news-modal-body h2 {
            font-size: 1.15rem;
            margin-bottom: 0.5rem;
        }

    .news-modal-excerpt {
        font-size: 0.82rem;
        margin-bottom: 0.75rem;
    }

    .news-modal-content {
        font-size: 0.85rem;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .news-modal-footer {
        padding-top: 0.75rem;
        gap: 0.5rem;
    }

    /* ─── Comments in Modal ─── */
    .news-comments {
        margin-top: 1rem;
        padding-top: 1rem;
    }

    .news-comments-title {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }

    .news-comment-form {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .news-comment-input {
        min-height: 40px;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .news-comment-submit {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        width: 100%;
    }

    .news-comment {
        gap: 0.5rem;
    }

    .news-comment-avatar {
        width: 26px;
        height: 26px;
        font-size: 0.65rem;
    }

    .news-comment-author {
        font-size: 0.78rem;
    }

    .news-comment-time {
        font-size: 0.65rem;
    }

    .news-comment-text {
        font-size: 0.8rem;
    }

    .news-comment-delete {
        font-size: 0.7rem;
    }

    /* ─── Empty State ─── */
    .news-empty {
        padding: 3rem 1rem;
    }

        .news-empty i {
            font-size: 2.2rem;
            margin-bottom: 0.75rem;
        }

        .news-empty h3 {
            font-size: 1.1rem;
        }

        .news-empty p {
            font-size: 0.82rem;
        }

    /* ─── Footer ─── */
    .news-footer {
        padding: 1.25rem 0.75rem;
        margin-top: 2rem;
    }

    .news-footer-inner {
        gap: 0.75rem;
    }

    .news-footer p {
        font-size: 0.72rem;
    }

    .news-footer-links {
        gap: 1rem;
    }

        .news-footer-links a {
            font-size: 0.72rem;
        }
}

/* ═══════════════════════════════════════════════════════════════
   EXTRA SMALL PHONE BREAKPOINT (max-width: 360px)
   Very tight screens — Samsung A06 is ~360px CSS viewport
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
    .news-hero-left h1 {
        font-size: 1.3rem;
    }

    .news-hero-left p {
        font-size: 0.82rem;
    }

    .news-card-title {
        font-size: 0.88rem;
    }

    .news-item.featured .news-card-title {
        font-size: 1.05rem;
    }

    .news-excerpt {
        font-size: 0.76rem;
    }

    .news-stats-row {
        gap: 0.45rem;
        font-size: 0.65rem;
    }

    .news-pill {
        padding: 0.4rem 0.6rem;
        font-size: 0.68rem;
    }

    .news-modal-img {
        height: 150px;
    }

    .news-modal-body h2 {
        font-size: 1.05rem;
    }
}

/* ─── MODAL CONTENT — Rich Text Styling ─── */
.news-modal-content {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

    /* Paragraphs */
    .news-modal-content p {
        margin-bottom: 1rem;
    }

    /* Headings */
    .news-modal-content h1,
    .news-modal-content h2,
    .news-modal-content h3,
    .news-modal-content h4,
    .news-modal-content h5,
    .news-modal-content h6 {
        font-weight: 700;
        color: var(--dark);
        margin-top: 1.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .news-modal-content h1 {
        font-size: 1.5rem;
    }

    .news-modal-content h2 {
        font-size: 1.35rem;
    }

    .news-modal-content h3 {
        font-size: 1.15rem;
    }

    .news-modal-content h4 {
        font-size: 1rem;
    }

    .news-modal-content h5 {
        font-size: 0.9rem;
    }

    .news-modal-content h6 {
        font-size: 0.85rem;
        color: var(--gray-500);
    }

    /* Lists */
    .news-modal-content ul,
    .news-modal-content ol {
        margin: 1rem 0 1rem 1.5rem;
        padding-left: 1rem;
    }

    .news-modal-content ul {
        list-style-type: disc;
    }

    .news-modal-content ol {
        list-style-type: decimal;
    }

    .news-modal-content li {
        margin-bottom: 0.5rem;
        line-height: 1.7;
    }

        .news-modal-content li > ul,
        .news-modal-content li > ol {
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
        }

    /* Links */
    .news-modal-content a {
        color: var(--primary);
        text-decoration: underline;
        text-underline-offset: 2px;
        transition: color 0.2s;
    }

        .news-modal-content a:hover {
            color: var(--primary-dark);
        }

    /* Bold / Italic */
    .news-modal-content strong,
    .news-modal-content b {
        font-weight: 700;
        color: var(--dark);
    }

    .news-modal-content em,
    .news-modal-content i {
        font-style: italic;
    }

    /* Blockquotes */
    .news-modal-content blockquote {
        border-left: 3px solid var(--gray-300);
        padding-left: 1rem;
        margin: 1rem 0;
        color: var(--gray-500);
        font-style: italic;
    }

    /* Code */
    .news-modal-content code {
        font-family: var(--font-mono);
        font-size: 0.85em;
        background: var(--gray-100);
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
        color: var(--danger);
    }

    .news-modal-content pre {
        background: var(--gray-900);
        color: #fff;
        padding: 1rem;
        border-radius: var(--radius-sm);
        overflow-x: auto;
        font-family: var(--font-mono);
        font-size: 0.85rem;
        line-height: 1.6;
        margin: 1rem 0;
    }

        .news-modal-content pre code {
            background: transparent;
            color: inherit;
            padding: 0;
        }

    /* Images */
    .news-modal-content img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-sm);
        margin: 1rem 0;
        display: block;
    }

    /* Tables */
    .news-modal-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    .news-modal-content th,
    .news-modal-content td {
        padding: 0.6rem 0.75rem;
        border: 1px solid var(--gray-200);
        text-align: left;
    }

    .news-modal-content th {
        background: var(--gray-100);
        font-weight: 700;
        color: var(--dark);
    }

    /* Horizontal Rule */
    .news-modal-content hr {
        border: none;
        border-top: 1px solid var(--gray-200);
        margin: 1.5rem 0;
    }

    /* First child no top margin */
    .news-modal-content > *:first-child {
        margin-top: 0;
    }

    /* Last child no bottom margin */
    .news-modal-content > *:last-child {
        margin-bottom: 0;
    }
