/* ==========================================================================
   NEWS COMPONENT: NEWS LISTING & HERO
   Hero Banner, Search Bar, Featured Spotlight Card & News Grid
   ========================================================================== */

.news-page {
    background-color: #f8fafc;
    min-height: calc(100vh - 250px);
    padding: 24px 0 70px;
    font-family: var(--font-family, 'Plus Jakarta Sans', sans-serif);
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

.news-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

@media (max-width: 767px) {
    .news-shell {
        width: calc(100% - 20px);
    }
}

/* ===================================================
   SLIM COMPACT CORPORATE NEWSROOM BANNER
   =================================================== */
.news-hero-slim {
    margin-bottom: 20px;
    position: relative;
}

.news-slim-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* 1. Left: Newsroom Identity */
.slim-news-identity-col {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1 1 36%;
    min-width: 0;
}

.slim-news-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #0062ff;
    color: #ffffff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 98, 255, 0.22);
}

.slim-news-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.slim-news-kicker {
    font-size: 11px;
    font-weight: 700;
    color: #0062ff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
    margin-bottom: 3px;
}

.slim-news-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.slim-news-desc {
    font-size: 12px;
    line-height: 1.45;
    color: #64748b;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.slim-news-desc span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

/* 2. Center: 4 Editorial Badges */
.slim-news-trust-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    flex: 1 1 40%;
    border-left: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    padding: 2px 18px;
}

.slim-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.trust-item-icon {
    color: #0062ff;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 26px;
}

.trust-item-text strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    white-space: nowrap;
}

.trust-item-text span {
    display: block;
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
    margin-top: 2px;
}

/* 3. Right: Compact Search & Quick Tags */
.slim-news-search-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 250px;
    min-width: 0;
}

.slim-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3px 4px 3px 10px;
    transition: all 0.2s ease;
}

.slim-search-box:focus-within {
    background: #ffffff;
    border-color: #0062ff;
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

.slim-search-icon {
    color: #94a3b8;
    margin-right: 6px;
    flex-shrink: 0;
}

.slim-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 12.5px;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
    padding: 5px 0;
    min-width: 0;
}

.slim-search-clear {
    color: #94a3b8;
    font-size: 11px;
    padding: 4px 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.slim-search-clear:hover {
    color: #ef4444;
}

.slim-search-submit {
    background: #0062ff;
    color: #ffffff;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}

.slim-search-submit:hover {
    background: #004ecc;
}

.slim-news-tags {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    font-size: 11px;
}

.tags-prefix {
    color: #64748b;
    font-weight: 600;
    font-size: 11px;
    margin-right: 2px;
}

.tag-chip {
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    padding: 2px 7px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.tag-chip:hover,
.tag-chip.active {
    background: #eff6ff;
    color: #0062ff;
}

/* Responsive */
@media (max-width: 1200px) {
    .news-slim-card {
        flex-wrap: wrap;
        gap: 16px;
        padding: 16px;
    }
    .slim-news-identity-col {
        flex: 1 1 100%;
    }
    .slim-news-trust-col {
        flex: 1 1 calc(100% - 270px);
        border-left: none;
        padding-left: 0;
    }
    .slim-news-search-col {
        flex: 0 0 250px;
    }
}

@media (max-width: 991px) {
    .slim-news-trust-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        border: none;
        padding: 14px 0;
        border-top: 1px solid #f1f5f9;
        border-bottom: 1px solid #f1f5f9;
        flex: 1 1 100%;
    }
    .slim-news-search-col {
        flex: 1 1 100%;
    }
}

@media (max-width: 640px) {
    .news-slim-card {
        padding: 14px;
    }
    .slim-news-title {
        font-size: 16px;
    }
    .slim-news-trust-col {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .trust-item-text strong {
        font-size: 11.5px;
    }
    .trust-item-text span {
        font-size: 10.5px;
    }
}

/* Breadcrumb */
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 22px;
    overflow-x: auto;
    white-space: nowrap;
}

.news-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.news-breadcrumb a:hover {
    color: #0062ff;
}

.news-breadcrumb .sep {
    color: #94a3b8;
    font-size: 11px;
}

.news-breadcrumb .current {
    color: #0062ff;
    font-weight: 700;
}

/* ===================================================
   FEATURED SPOTLIGHT ARTICLE
   =================================================== */
.news-featured-spotlight {
    display: grid;
    grid-template-columns: 1fr;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    margin-bottom: 36px;
    transition: all 0.25s ease;
}

.news-featured-spotlight:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
    border-color: #cbd5e1;
}

.news-featured-media {
    position: relative;
    width: 100%;
    padding-top: 54%;
    background: #f1f5f9;
    overflow: hidden;
    display: block;
}

.news-featured-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-featured-spotlight:hover .news-featured-media img {
    transform: scale(1.03);
}

.news-featured-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.news-featured-content {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-meta-row {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-meta-item i {
    color: #0062ff;
}

.news-featured-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    margin: 0 0 10px;
}

.news-featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-featured-title a:hover {
    color: #0062ff;
}

.news-featured-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 18px;
}

.news-read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0062ff;
    color: #ffffff !important;
    padding: 9px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.news-read-more-btn:hover {
    background: #004ecc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 98, 255, 0.25);
}

.news-read-more-btn i {
    transition: transform 0.2s ease;
}

.news-read-more-btn:hover i {
    transform: translateX(4px);
}

/* ===================================================
   SECTION HEADER
   =================================================== */
.news-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid #e2e8f0;
}

.news-section-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.news-total-count {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 600;
}

.news-list-search-form {
    margin-left: auto;
}

.news-search-input-box {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 12px;
    width: 260px;
    transition: all 0.2s ease;
}

.news-search-input-box:focus-within {
    border-color: #0062ff;
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

.news-search-input-box i.search-ico {
    color: #94a3b8;
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}

.news-search-input-box input {
    border: none;
    outline: none;
    font-size: 12.5px;
    font-family: inherit;
    color: #1e293b;
    background: transparent;
    width: 100%;
}

.search-clear-ico {
    color: #94a3b8;
    font-size: 12px;
    margin-left: 6px;
    text-decoration: none;
}

.search-clear-ico:hover {
    color: #ef4444;
}

@media (max-width: 640px) {
    .news-list-search-form {
        width: 100%;
    }
    .news-search-input-box {
        width: 100%;
    }
}

/* ===================================================
   NEWS GRID & CARDS
   =================================================== */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.news-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    transition: all 0.25s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.news-card-media {
    position: relative;
    width: 100%;
    padding-top: 55%;
    background: #f1f5f9;
    overflow: hidden;
    display: block;
}

.news-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-media img {
    transform: scale(1.05);
}

.news-card-body {
    padding: 18px 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-size: 15.5px;
    font-weight: 750;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.news-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.news-card-title a:hover {
    color: #0062ff;
}

.news-card-summary {
    font-size: 13px;
    line-height: 1.6;
    color: #64748b;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}

.news-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0062ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.news-card-link:hover {
    gap: 10px;
}

.news-views-badge {
    font-size: 11.5px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Empty State */
.news-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #e2e8f0;
    border-radius: 16px;
}

.news-empty-icon {
    font-size: 40px;
    color: #94a3b8;
    margin-bottom: 14px;
}

.news-empty-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
}

.news-empty-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 20px;
}

.news-empty-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    background: #0062ff;
    color: #ffffff;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* Pagination */
.news-pagination-wrap {
    margin-top: 40px;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.news-pagination-wrap nav,
.news-pagination-wrap ul.pagination {
    display: flex !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.news-pagination-wrap li.page-item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.news-pagination-wrap li.page-item::before,
.news-pagination-wrap li.page-item::after {
    display: none !important;
    content: none !important;
}

.news-pagination-wrap .page-link,
.news-pagination-wrap nav a,
.news-pagination-wrap nav span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.news-pagination-wrap .page-link:hover,
.news-pagination-wrap nav a:hover {
    background: #eff6ff;
    color: #0062ff;
    border-color: #0062ff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 98, 255, 0.12);
}

.news-pagination-wrap li.active .page-link,
.news-pagination-wrap nav span[aria-current="page"] {
    background: #0062ff !important;
    color: #ffffff !important;
    border-color: #0062ff !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(0, 98, 255, 0.25) !important;
}

.news-pagination-wrap li.disabled .page-link,
.news-pagination-wrap span.page-link[aria-disabled="true"] {
    opacity: 0.45;
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border-color: #e2e8f0 !important;
    cursor: not-allowed;
    pointer-events: none;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-hero-title {
        font-size: 34px;
    }
}

@media(min-width:1200px) {
    .news-page {
        padding: 32px 0 80px;
    }
    .news-hero {
        padding: 44px 40px;
        margin-bottom: 30px;
    }
    .news-hero-title {
        font-size: 38px;
    }
    .news-featured-spotlight {
        grid-template-columns: 1.25fr 1fr;
    }
    .news-featured-media {
        padding-top: 0;
        height: 100%;
        min-height: 360px;
    }
    .news-featured-content {
        padding: 36px 32px;
    }
    .news-featured-title {
        font-size: 24px;
    }
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
