/* =====================================================
   NEWSROOM PAGE - VIS Rating
   Modern Finance Business Style
   ===================================================== */

/* ===== Hero Section — uses shared .page-hero from style.css ===== */

/* ===== Tab Navigation ===== */
/* Tab Navigation → dùng shared .tabs-nav / .tabs-list / .tab-btn trong style.css */

/* ===== Featured News Section ===== */
.nr-featured-section {
    padding: 64px 0 40px;
}

.nr-section-header {
    margin-bottom: 36px;
}

.nr-section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.nr-section-label svg {
    width: 16px;
    height: 16px;
}

.nr-section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.nr-section-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 680px;
    line-height: 1.7;
}

/* Featured Grid */
.nr-featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.nr-featured-grid > .nr-featured-main,
.nr-featured-grid > .nr-featured-side {
    height: 100%;
}

.nr-featured-main .nr-card-main {
    height: 100%;
}

/* News Card */
.nr-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.nr-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.nr-card-image {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.nr-card-main .nr-card-image {
    height: 300px;
}

.nr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.nr-card:hover .nr-card-image img {
    transform: scale(1.05);
}

.nr-card-image-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 22% 18%, rgba(139, 211, 255, 0.28) 0%, rgba(139, 211, 255, 0) 48%),
        radial-gradient(circle at 82% 78%, rgba(0, 187, 255, 0.2) 0%, rgba(0, 187, 255, 0) 52%),
        linear-gradient(135deg, #0b3b79 0%, #1562bc 52%, #0a2f66 100%);
}

.nr-card-image-default .nr-default-thumb-logo {
    width: 42px;
    height: auto;
    object-fit: contain;
    opacity: 0.95;
    filter: drop-shadow(0 4px 10px rgba(var(--primary-rgb), 0.25));
    transition: none;
}

.nr-card:hover .nr-card-image-default .nr-default-thumb-logo {
    transform: none;
}

.nr-card-image-default .nr-card-image-overlay {
    display: none;
}

.nr-card-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(var(--primary-rgb),0.6) 100%);
}

.nr-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.nr-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(var(--secondary-rgb),0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
}

.nr-badge.blog {
    background: rgba(5,150,105,0.9);
}

.nr-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nr-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.nr-card-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.nr-card-source img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

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

.nr-card-title {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.nr-card-main .nr-card-title {
    font-size: 1.35rem;
}

.nr-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.nr-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: var(--transition);
}

.nr-card:hover .nr-read-more {
    gap: 10px;
}

.nr-read-more svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

/* Compact Side Card */
.nr-featured-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.nr-featured-side .nr-card-compact {
    flex: 1 1 0;
    min-height: 0;
}

.nr-card-compact {
    flex-direction: column;
    justify-content: center;
}

.nr-card-compact .nr-card-body {
    padding: 20px 24px;
}

.nr-card-compact .nr-card-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nr-card-compact .nr-card-excerpt {
    -webkit-line-clamp: 2;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.nr-card-compact .nr-read-more {
    font-size: 0.8rem;
}

/* ===== News List Section ===== */
.nr-list-section {
    padding: 40px 0 72px;
}

/* Toolbar */
.nr-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    min-width: 0;
}

.nr-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nr-chip {
    padding: 7px 18px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: #fff;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.nr-chip:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nr-chip.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.nr-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fff;
    min-width: 280px;
    max-width: 100%;
    box-sizing: border-box;
    transition: var(--transition);
}

.nr-search-bar:focus-within {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(var(--secondary-rgb),0.1);
}

.nr-search-bar svg {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.nr-search-bar input {
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.88rem;
    color: var(--text-dark);
    width: 100%;
    min-width: 0;
    background: transparent;
}

.nr-search-bar input::placeholder {
    color: var(--text-subtle);
}

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

.nr-news-grid .nr-card-image {
    height: 200px;
}

.nr-news-grid .nr-card-title {
    font-size: 1rem;
}

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

/* Pagination */
.nr-pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nr-page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font-size: 0.85rem;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
}

.nr-page-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nr-page-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
}

.nr-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.nr-page-btn svg {
    width: 16px;
    height: 16px;
}

/* CTA section — shared CSS in style.css (.cta-section, .cta-grid, .cta-card, .cta-card-icon, .cta-title, .cta-desc) */

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    html,
    body {
        overflow-x: hidden;
    }

    .page-hero,
    .tabs-nav,
    .nr-featured-section,
    .nr-list-section,
    .cta-section {
        overflow-x: clip;
    }

    .tabs-nav .container,
    .tabs-list,
    .nr-toolbar,
    .nr-filter-chips,
    .nr-search-bar {
        max-width: 100%;
    }

    .nr-featured-grid {
        grid-template-columns: 1fr;
    }

    .nr-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nr-filter-chips {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .nr-filter-chips::-webkit-scrollbar {
        display: none;
    }

    .nr-search-bar {
        width: 100%;
        min-width: 0;
    }

    .nr-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* hero responsive handled by style.css */
}

@media (max-width: 768px) {
    .nr-featured-section,
    .nr-list-section {
        padding: 48px 0 32px;
    }

    .nr-section-header {
        margin-bottom: 24px;
    }

    .nr-section-label {
        gap: 6px;
        font-size: 0.74rem;
        margin-bottom: 8px;
        letter-spacing: 0.8px;
    }

    .nr-section-label svg {
        width: 14px;
        height: 14px;
    }

    .nr-section-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
        line-height: 1.25;
    }

    .nr-section-desc {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .nr-featured-side .nr-card-compact {
        flex: initial;
        min-height: auto;
    }

    .nr-news-grid {
        grid-template-columns: 1fr;
    }

    .nr-search-bar {
        width: 100%;
        min-width: 0;
    }

    .nr-filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .cta-card {
        padding: 28px;
    }

    .cta-section {
        padding: 56px 0;
    }

}

@media (max-width: 480px) {
    .nr-section-header {
        margin-bottom: 18px;
    }

    .nr-section-title {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }

    .nr-section-desc {
        font-size: 0.86rem;
    }

    .nr-card-image {
        height: 180px;
    }

    .nr-card-main .nr-card-image {
        height: 220px;
    }

    .nr-card-body {
        padding: 18px;
    }

    .nr-card-main .nr-card-title {
        font-size: 1.1rem;
    }

    .nr-news-grid .nr-card-image {
        height: 160px;
    }
}
