/* =========================================================
   NEWS PAGE HERO - MATCH FEATURED PAGE THEME
========================================================= */

.news-hero {
    min-height: 300px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(8, 17, 32, 0.9), rgba(19, 45, 87, 0.86)),
        url('../img/banner1.png') center / cover no-repeat;
}

.news-hero:after {
    content: '';
    position: absolute;
    inset: auto -80px -120px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 54px solid rgba(252, 91, 98, 0.12);
}

.news-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    padding: 70px 0;
    color: #fff;
}

.news-hero-content span {
    display: block;
    margin-bottom: 12px;
    color: #fc5b62;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-hero-content h1 {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.04;
}

.news-hero-content p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
    line-height: 1.7;
}

/* =========================================================
   NEWS LISTING
========================================================= */

.news-listing-section,
.news-detail-section {
    padding: 56px 0 72px;
}

.news-listing-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.news-listing-head h2 {
    margin: 6px 0 8px;
    color: var(--iw-text);
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 800;
}

.news-listing-head p {
    max-width: 620px;
    margin: 0;
    color: var(--iw-muted);
    line-height: 1.7;
}

.news-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--iw-coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-eyebrow:before {
    content: '';
    width: 26px;
    height: 2px;
    border-radius: 999px;
    background: var(--iw-gradient-coral);
}

.news-filter-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.news-filter-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--iw-border);
    border-radius: 999px;
    background: #fff;
    color: var(--iw-muted-dark);
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--iw-shadow-xs);
}

.news-filter-pills a:hover,
.news-filter-pills a.is-active {
    border-color: rgba(252, 91, 98, 0.28);
    background: rgba(252, 91, 98, 0.1);
    color: var(--iw-coral);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--iw-border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--iw-shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    height: 100%;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(252, 91, 98, 0.22);
    box-shadow: var(--iw-shadow-card);
}

.news-card-img {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: radial-gradient(circle at 20% 18%, rgba(252, 91, 98, 0.2), transparent 34%),
        linear-gradient(135deg, #edf6ff, #f8fbff);
    overflow: hidden;
}

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

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

.news-image-placeholder,
.news-detail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(15, 23, 42, 0.34);
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    font-size: 2.2rem;
}

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

.news-card-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--iw-muted);
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.news-card-title {
    margin: 0;
}

.news-card-title a {
    color: var(--iw-text);
    font-size: 1.08rem;
    line-height: 1.32;
    font-weight: 800;
    text-decoration: none;
}

.news-card-title a:hover {
    color: var(--iw-coral);
}

.news-card-excerpt {
    margin: 12px 0 0;
    color: var(--iw-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.news-card-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;
    color: var(--iw-coral);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.news-card-link i {
    transition: transform 0.25s ease;
}

.news-card-link:hover i {
    transform: translateX(3px);
}

.news-empty-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 38px 24px;
    border: 1px dashed rgba(100, 116, 139, 0.32);
    border-radius: 22px;
    background: #fff;
    text-align: center;
    box-shadow: var(--iw-shadow-xs);
}

.news-empty-state i {
    margin-bottom: 14px;
    color: rgba(252, 91, 98, 0.62);
    font-size: 2.2rem;
}

.news-empty-state h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 800;
}

.news-empty-state p {
    margin: 0;
    color: var(--iw-muted);
}

.news-page-actions,
.news-detail-actions {
    display: flex;
    justify-content: center;
    margin-top: 36px;
}

.news-secondary-link,
.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--iw-primary);
    font-weight: 800;
    text-decoration: none;
}

.news-secondary-link {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--iw-border);
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--iw-shadow-xs);
}

.news-secondary-link:hover,
.news-back-link:hover {
    color: var(--iw-coral);
}

/* =========================================================
   NEWS DETAIL
========================================================= */

.news-detail-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--iw-border);
    box-shadow: var(--iw-shadow-card);
    overflow: hidden;
}

.news-detail-card > img {
    width: 100%;
    height: clamp(260px, 42vw, 520px);
    object-fit: cover;
}

.news-detail-placeholder {
    min-height: 320px;
    background: radial-gradient(circle at 20% 18%, rgba(252, 91, 98, 0.18), transparent 34%),
        linear-gradient(135deg, #edf6ff, #f8fbff);
    font-size: 3rem;
}

.news-detail-body {
    padding: 34px;
}

.news-back-link {
    margin-bottom: 18px;
    color: var(--iw-muted-dark);
    font-size: 0.9rem;
}

.news-detail-body h2 {
    margin: 0 0 14px;
    color: var(--iw-text);
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 800;
    line-height: 1.12;
}

.news-detail-date {
    margin-bottom: 24px;
}

.news-detail-content {
    color: var(--iw-muted-dark);
    font-size: 1.02rem;
    line-height: 1.85;
}

.news-detail-content p,
.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.1rem;
}

.news-detail-content img {
    height: auto;
    border-radius: 16px;
    margin: 18px 0;
}

.news-detail-content a {
    color: var(--iw-blue);
    font-weight: 700;
}

/* =========================================================
   LATEST NEWS SIDEBAR
========================================================= */

.news-sidebar {
    background: #fff;
    border: 1px solid var(--iw-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--iw-shadow-soft);
    position: sticky;
    top: 96px;
}

.news-sidebar-head {
    margin-bottom: 18px;
}

.news-sidebar-head h5 {
    margin: 6px 0 0;
    color: var(--iw-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.news-sidebar-item {
    display: flex;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.news-sidebar-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.news-sidebar-thumb {
    width: 76px;
    height: 58px;
    flex: 0 0 76px;
    border-radius: 10px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 18%, rgba(252, 91, 98, 0.18), transparent 34%),
        linear-gradient(135deg, #edf6ff, #f8fbff);
}

.news-sidebar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-sidebar-title {
    color: var(--iw-text);
    font-size: 0.92rem;
    line-height: 1.35;
    font-weight: 800;
    text-decoration: none;
}

.news-sidebar-title:hover {
    color: var(--iw-coral);
}

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

@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-listing-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-filter-pills {
        justify-content: flex-start;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-hero {
        min-height: 260px;
    }

    .news-hero-content {
        padding: 54px 0;
    }

    .news-listing-section,
    .news-detail-section {
        padding: 42px 0 56px;
    }
}

@media (max-width: 767px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-detail-body {
        padding: 24px 20px;
    }

    .news-filter-pills {
        gap: 8px;
    }

    .news-filter-pills a {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .news-sidebar-item {
        gap: 12px;
    }
}
