/* Modern Homepage + Header + Footer
   Loaded after the legacy stylesheet so existing inner pages remain untouched. */

:root {
    --np-brand: #0b5d4b;
    --np-brand-dark: #073f35;
    --np-footer: #071a17;
    --np-footer-bottom: #04110f;
    --np-text: #17201e;
    --np-muted: #66726f;
    --np-line: #e4eae8;
    --np-surface: #ffffff;
    --np-soft: #f4f7f6;
    --np-danger: #b42318;
    --np-radius-sm: 10px;
    --np-radius: 16px;
    --np-radius-lg: 24px;
    --np-shadow-sm: 0 8px 24px rgba(12, 36, 30, .07);
    --np-shadow: 0 18px 50px rgba(12, 36, 30, .12);
}

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

body {
    overflow-x: hidden;
}

body.np-overlay-open {
    overflow: hidden;
}

.modern-home-page {
    background: #f7f9f8;
    color: var(--np-text);
}

.modern-home-page #main-content {
    min-height: 60vh;
}

.modern-home-page a {
    color: inherit;
}

.modern-home-page img {
    display: block;
}

/* Header */
.np-header {
    position: relative;
    z-index: 1000;
    background: var(--np-surface);
}

.np-topbar {
    background: #f2f6f4;
    border-bottom: 1px solid var(--np-line);
    color: #44504d;
}

.np-topbar__inner,
.np-brandbar__inner,
.np-mobilebar__inner,
.np-mainnav__inner,
.np-breaking__inner {
    display: flex;
    align-items: center;
}

.np-topbar__inner {
    min-height: 38px;
    justify-content: space-between;
    gap: 18px;
}

.np-topbar__date {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    white-space: nowrap;
}

.np-topbar__date i {
    color: var(--np-brand);
    font-size: 18px;
}

.np-topbar__divider {
    width: 1px;
    height: 14px;
    background: #cbd5d1;
}

.np-social {
    display: flex;
    align-items: center;
    gap: 7px;
}

.np-social a {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid #d5dfdc;
    border-radius: 50%;
    color: #43514d;
    font-size: 15px;
    transition: .2s ease;
}

.np-social a:hover {
    color: #fff;
    border-color: var(--np-brand);
    background: var(--np-brand);
    transform: translateY(-1px);
}

.np-brandbar {
    background: #fff;
}

.np-brandbar__inner {
    min-height: 116px;
    justify-content: space-between;
    gap: 32px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.np-brand {
    display: inline-flex;
    width: min(290px, 30%);
    align-items: center;
}

.np-brand img {
    width: 100%;
    max-height: 88px;
    object-fit: contain;
    object-position: left center;
}

.np-brandbar__ad {
    display: flex;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
    overflow: hidden;
}

.np-brandbar__ad img,
.np-brandbar__ad iframe {
    max-width: 100% !important;
}

.np-mainnav {
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--np-brand);
    box-shadow: 0 8px 22px rgba(3, 32, 25, .18);
}

.np-mainnav__inner {
    min-height: 52px;
    gap: 10px;
}

.np-home-link,
.np-category-scroll a,
.np-nav-action {
    color: rgba(255, 255, 255, .92);
    font-size: 17px;
    font-weight: 500;
}

.np-home-link {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, .16);
    white-space: nowrap;
}

.np-home-link i {
    font-size: 20px;
}

.np-home-link:hover,
.np-home-link.is-active {
    color: #fff;
    background: rgba(0, 0, 0, .16);
}

.np-category-scroll {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.np-category-scroll::-webkit-scrollbar {
    display: none;
}

.np-category-scroll a {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    padding: 0 13px;
    white-space: nowrap;
    transition: .18s ease;
}

.np-category-scroll a:hover,
.np-category-scroll a.is-active {
    color: #fff;
    background: rgba(0, 0, 0, .15);
}

.np-mainnav__actions {
    display: flex;
    align-items: stretch;
    border-left: 1px solid rgba(255, 255, 255, .16);
}

.np-nav-action {
    display: inline-flex;
    min-width: 50px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 11px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.np-nav-action:hover {
    background: rgba(0, 0, 0, .16);
}

.np-nav-action i {
    font-size: 20px;
}

.np-mobilebar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 1040;
    background: var(--np-brand);
    box-shadow: 0 5px 18px rgba(3, 32, 25, .22);
}

.np-mobilebar__inner {
    min-height: 58px;
    justify-content: space-between;
    gap: 10px;
}

.np-mobile-logo {
    display: flex;
    max-width: 180px;
    height: 45px;
    align-items: center;
    justify-content: center;
}

.np-mobile-logo img {
    width: auto;
    max-width: 100%;
    max-height: 43px;
    object-fit: contain;
}

.np-icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.np-icon-button:hover {
    background: rgba(255, 255, 255, .2);
}

.np-icon-button--dark {
    background: #edf2f0;
    color: var(--np-text);
}

.np-icon-button--dark:hover {
    background: #e1e8e5;
}

.np-breaking {
    background: #fff;
    border-bottom: 1px solid var(--np-line);
}

.np-breaking__inner {
    min-height: 46px;
    overflow: hidden;
}

.np-breaking__label {
    display: inline-flex;
    position: relative;
    z-index: 2;
    min-width: 148px;
    min-height: 46px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: var(--np-brand-dark);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.np-breaking__label::after {
    position: absolute;
    top: 0;
    right: -18px;
    border-top: 23px solid transparent;
    border-bottom: 23px solid transparent;
    border-left: 18px solid var(--np-brand-dark);
    content: "";
}

.np-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4b4b;
    box-shadow: 0 0 0 0 rgba(255, 75, 75, .65);
    animation: npPulse 1.8s infinite;
}

@keyframes npPulse {
    70% {
        box-shadow: 0 0 0 8px rgba(255, 75, 75, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 75, 75, 0);
    }
}

.np-breaking__viewport {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    padding-left: 28px;
}

.np-breaking__track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 30px;
    animation: npTicker 45s linear infinite;
}

.np-breaking__track:hover {
    animation-play-state: paused;
}

.np-breaking__track a,
.np-breaking__track span {
    color: #25312e;
    font-size: 16px;
    white-space: nowrap;
}

.np-breaking__track i {
    margin-right: 6px;
    color: var(--np-danger);
    font-size: 9px;
}

@keyframes npTicker {
    from {
        transform: translateX(12vw);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Drawer + Search */
.np-drawer-backdrop {
    position: fixed;
    z-index: 1190;
    inset: 0;
    background: rgba(2, 16, 13, .58);
    backdrop-filter: blur(3px);
}

.np-drawer {
    position: fixed;
    z-index: 1200;
    top: 0;
    left: 0;
    width: min(390px, 90vw);
    height: 100dvh;
    overflow-y: auto;
    background: #fff;
    box-shadow: 20px 0 60px rgba(0, 0, 0, .22);
    transform: translateX(-105%);
    transition: transform .25s ease;
}

.np-drawer.is-open {
    transform: translateX(0);
}

.np-drawer__header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--np-line);
}

.np-drawer__logo {
    display: flex;
    max-width: 190px;
    height: 48px;
    align-items: center;
}

.np-drawer__logo img {
    max-width: 100%;
    max-height: 48px;
    object-fit: contain;
}

.np-drawer__body {
    padding: 18px;
}

.np-drawer__primary {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--np-brand);
    color: #fff;
    font-size: 18px;
}

.np-drawer__categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.np-drawer__categories a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid var(--np-line);
    border-radius: 10px;
    color: var(--np-text);
    font-size: 16px;
}

.np-drawer__categories a:hover {
    border-color: var(--np-brand);
    color: var(--np-brand);
    background: #f1f8f5;
}

.np-drawer__extras {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--np-line);
}

.np-drawer__extras a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 8px 4px;
    color: #3e4b48;
    font-size: 17px;
}

.np-drawer__extras i {
    width: 24px;
    color: var(--np-brand);
    font-size: 22px;
}

.np-search-dialog {
    display: grid;
    position: fixed;
    z-index: 1250;
    inset: 0;
    place-items: start center;
    padding: 10vh 18px 18px;
    background: rgba(2, 16, 13, .68);
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
    backdrop-filter: blur(5px);
}

.np-search-dialog.is-open {
    opacity: 1;
    visibility: visible;
}

.np-search-dialog__panel {
    width: min(680px, 100%);
    padding: 22px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--np-shadow);
    transform: translateY(-16px);
    transition: transform .22s ease;
}

.np-search-dialog.is-open .np-search-dialog__panel {
    transform: translateY(0);
}

.np-search-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.np-search-dialog__header h2 {
    color: var(--np-text);
    font-size: 28px;
    font-weight: 700;
}

.np-search-form {
    display: flex;
    gap: 10px;
}

.np-search-form input {
    min-width: 0;
    height: 52px;
    flex: 1;
    padding: 0 16px;
    border: 1px solid #ccd8d4;
    border-radius: 12px;
    color: var(--np-text);
    font-family: inherit;
    font-size: 18px;
    outline: 0;
}

.np-search-form input:focus {
    border-color: var(--np-brand);
    box-shadow: 0 0 0 3px rgba(11, 93, 75, .12);
}

.np-search-form button {
    display: inline-flex;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--np-brand);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    cursor: pointer;
}

.np-mobile-bottom-nav {
    display: none;
}

/* Homepage */
.hm-home {
    padding-bottom: 34px;
}

.hm-hero-section {
    padding: 24px 0 10px;
}

.hm-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.58fr) minmax(260px, .82fr) minmax(260px, .72fr);
    gap: 16px;
    align-items: stretch;
}

.hm-card-media,
.hm-lead-card,
.hm-side-card,
.hm-category-lead__image,
.hm-popular-card__image,
.hm-list-card__image,
.hm-video-lead > a,
.hm-photo-card {
    display: block;
    position: relative;
    overflow: hidden;
}

.hm-lead-card {
    height: 100%;
    min-height: 500px;
    border-radius: var(--np-radius-lg);
    background: #dce5e2;
    box-shadow: var(--np-shadow-sm);
}

.hm-lead-card .hm-card-media {
    height: 100%;
}

.hm-lead-card img,
.hm-side-card img,
.hm-category-lead__image img,
.hm-popular-card__image img,
.hm-list-card__image img,
.hm-video-lead img,
.hm-video-thumb img,
.hm-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.hm-lead-card:hover img,
.hm-side-card:hover img,
.hm-category-lead:hover img,
.hm-popular-card:hover img,
.hm-list-card:hover img,
.hm-video-lead:hover img,
.hm-video-list article:hover img,
.hm-photo-card:hover img {
    transform: scale(1.035);
}

.hm-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 14, 12, 0) 28%, rgba(4, 14, 12, .88) 100%);
}

.hm-lead-card__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(22px, 3vw, 40px);
    color: #fff;
}

.hm-category-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    margin-bottom: 10px;
    padding: 2px 11px;
    border-radius: 999px;
    background: var(--np-brand);
    color: #fff;
    font-size: 15px;
}

.hm-lead-card__content h1 {
    max-width: 860px;
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 48px);
    font-weight: 700;
    line-height: 1.22;
    text-shadow: 0 3px 18px rgba(0, 0, 0, .28);
}

.hm-lead-card__content p {
    max-width: 760px;
    margin-top: 12px;
    color: rgba(255, 255, 255, .88);
    font-size: 18px;
    line-height: 1.55;
}

.hm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    color: var(--np-muted);
    font-size: 14px;
}

.hm-lead-card .hm-meta {
    color: rgba(255, 255, 255, .82);
}

.hm-hero-side {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.hm-side-card {
    min-height: 119px;
    border-radius: var(--np-radius);
    background: #dce5e2;
    box-shadow: var(--np-shadow-sm);
}

.hm-side-card .hm-card-media {
    height: 100%;
    min-height: inherit;
}

.hm-side-card__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 14px;
    color: #fff;
}

.hm-side-card__content span {
    display: inline-block;
    margin-bottom: 4px;
    color: #d7f2eb;
    font-size: 13px;
}

.hm-side-card__content h2 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.hm-latest-panel {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius-lg);
    background: #fff;
    box-shadow: var(--np-shadow-sm);
}

.hm-panel-heading {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: var(--np-brand-dark);
    color: #fff;
}

.hm-panel-heading span {
    display: block;
    margin-bottom: 2px;
    color: #b9d8d0;
    font-size: 13px;
}

.hm-panel-heading h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.hm-panel-heading > i {
    color: #ffd166;
    font-size: 34px;
}

.hm-latest-list {
    min-height: 0;
    flex: 1;
    overflow-y: auto;
}

.hm-latest-list article {
    border-bottom: 1px solid var(--np-line);
}

.hm-latest-list article:last-child {
    border-bottom: 0;
}

.hm-latest-list a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 16px;
    transition: .18s ease;
}

.hm-latest-list a:hover {
    background: #f1f7f5;
}

.hm-latest-list__time {
    color: var(--np-brand);
    font-size: 14px;
    font-weight: 600;
}

.hm-latest-list h3 {
    margin: 0;
    color: var(--np-text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.38;
}

.hm-ad-slot {
    display: flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    text-align: center;
}

.hm-ad-slot img,
.hm-ad-slot iframe {
    max-width: 100% !important;
}

.hm-section {
    padding: 30px 0;
}

.hm-section-heading {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 18px;
}

.hm-section-heading > div:first-child {
    flex: 0 0 auto;
}

.hm-section-heading span {
    display: block;
    margin-bottom: 2px;
    color: var(--np-brand);
    font-size: 14px;
    font-weight: 600;
}

.hm-section-heading h2 {
    margin: 0;
    color: var(--np-text);
    font-size: clamp(27px, 2.5vw, 36px);
    font-weight: 700;
    line-height: 1.18;
}

.hm-heading-line {
    height: 1px;
    flex: 1;
    margin-bottom: 8px;
    background: linear-gradient(90deg, var(--np-brand), var(--np-line));
}

.hm-all-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    color: var(--np-brand);
    font-size: 16px;
    font-weight: 600;
}

.hm-all-link:hover {
    color: var(--np-brand-dark);
}

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

.hm-popular-card {
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius);
    background: #fff;
    box-shadow: var(--np-shadow-sm);
}

.hm-popular-card__image {
    aspect-ratio: 16 / 9;
    background: #dce5e2;
}

.hm-popular-rank {
    display: grid;
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--np-brand);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.hm-popular-card__content {
    padding: 15px 16px 17px;
}

.hm-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--np-brand);
    font-size: 14px;
    font-weight: 600;
}

.hm-popular-card h3,
.hm-category-lead h3,
.hm-list-card h3,
.hm-video-list h3 {
    margin: 0;
}

.hm-popular-card h3 a {
    color: var(--np-text);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.38;
}

.hm-popular-card h3 a:hover,
.hm-category-lead h3 a:hover,
.hm-list-card h3 a:hover {
    color: var(--np-brand);
}

.hm-category-section:nth-of-type(even) {
    background: #f0f5f3;
}

.hm-category-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr);
    gap: 22px;
}

.hm-category-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
    overflow: hidden;
    border: 1px solid var(--np-line);
    border-radius: var(--np-radius-lg);
    background: #fff;
    box-shadow: var(--np-shadow-sm);
}

.hm-category-lead__image {
    min-height: 360px;
    background: #dce5e2;
}

.hm-category-lead__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vw, 34px);
}

.hm-category-lead h3 a {
    color: var(--np-text);
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 700;
    line-height: 1.3;
}

.hm-category-lead p {
    margin-top: 12px;
    color: var(--np-muted);
    font-size: 17px;
    line-height: 1.6;
}

.hm-category-list {
    display: grid;
    gap: 12px;
}

.hm-list-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 14px;
    min-height: 110px;
    padding: 10px;
    border: 1px solid var(--np-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(12, 36, 30, .05);
}

.hm-list-card__image {
    min-height: 100px;
    border-radius: 10px;
    background: #dce5e2;
}

.hm-list-card h3 a {
    color: var(--np-text);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.34;
}

.hm-video-section {
    margin: 28px 0;
    padding: 42px 0;
    background: #0b1614;
    color: #fff;
}

.hm-section-heading--dark h2 {
    color: #fff;
}

.hm-section-heading--dark span,
.hm-section-heading--dark .hm-all-link {
    color: #78d3bd;
}

.hm-section-heading--dark .hm-heading-line {
    background: linear-gradient(90deg, #3a8d78, rgba(255, 255, 255, .14));
}

.hm-video-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
    gap: 20px;
}

.hm-video-lead {
    overflow: hidden;
    border-radius: var(--np-radius-lg);
    background: #182622;
}

.hm-video-lead > a {
    aspect-ratio: 16 / 9;
}

.hm-video-lead > a::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82));
    content: "";
}

.hm-play-button {
    display: grid;
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 3px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: rgba(11, 93, 75, .88);
    color: #fff;
    font-size: 34px;
    transform: translate(-50%, -50%);
}

.hm-video-lead__content {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 24px;
}

.hm-video-lead__content h3 {
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.hm-video-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.hm-video-list article {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    background: #13211e;
}

.hm-video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hm-video-thumb span {
    display: grid;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 24px;
    transform: translate(-50%, -50%);
}

.hm-video-list h3 {
    padding: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.hm-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-auto-rows: 190px;
    gap: 12px;
}

.hm-photo-card {
    border-radius: var(--np-radius);
    background: #dce5e2;
}

.hm-photo-card:first-child {
    grid-row: span 2;
}

.hm-photo-card strong {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 14px;
    left: 14px;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
}

.hm-photo-card > i {
    display: grid;
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, .48);
    color: #fff;
    font-size: 21px;
}

/* Notice + Footer */
.np-notice {
    border-top: 1px solid #dfe8e4;
    background: #edf5f2;
}

.np-notice__inner {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 16px;
    overflow: hidden;
}

.np-notice strong {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--np-brand-dark);
    font-size: 17px;
}

.np-notice__text {
    min-width: 0;
    color: #35413e;
    font-size: 16px;
}

.np-footer {
    padding-top: 46px;
    background: var(--np-footer);
    color: rgba(255, 255, 255, .82);
}

.np-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1.05fr;
    gap: 34px;
    padding-bottom: 42px;
}

.np-footer h2 {
    position: relative;
    margin: 0 0 18px;
    padding-bottom: 10px;
    color: #fff;
    font-size: 21px;
    font-weight: 700;
}

.np-footer h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 42px;
    height: 3px;
    border-radius: 99px;
    background: #5dc5aa;
    content: "";
}

.np-footer__brand img {
    max-width: 220px;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
}

.np-footer__brand p {
    margin-top: 16px;
    color: rgba(255, 255, 255, .7);
    font-size: 16px;
    line-height: 1.65;
}

.np-footer__list {
    display: grid;
    gap: 11px;
}

.np-footer__list li {
    display: grid;
    gap: 2px;
}

.np-footer__list span {
    color: rgba(255, 255, 255, .55);
    font-size: 14px;
}

.np-footer__list strong {
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.np-footer__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 14px;
}

.np-footer__links a,
.np-footer__contact a {
    color: rgba(255, 255, 255, .78);
}

.np-footer__links a:hover,
.np-footer__contact a:hover {
    color: #79d8c0;
}

.np-footer__contact {
    display: grid;
    gap: 13px;
    margin: 0;
    font-style: normal;
}

.np-footer__contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, .76);
    font-size: 16px;
    line-height: 1.5;
}

.np-footer__contact i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #70d0b8;
    font-size: 20px;
}

.np-footer-bottom {
    background: var(--np-footer-bottom);
}

.np-footer-bottom__inner {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
}

.np-footer-bottom__credit {
    text-align: right;
}

.np-footer-bottom__credit a {
    color: #7cdbc3;
    font-weight: 600;
}

.np-scroll-top {
    display: grid;
    position: fixed;
    z-index: 900;
    right: 22px;
    bottom: 22px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 14px;
    background: var(--np-brand);
    color: #fff;
    font-size: 23px;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--np-shadow-sm);
    transform: translateY(10px);
    transition: .2s ease;
    cursor: pointer;
}

.np-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tablet */
@media (max-width: 1199.98px) {
    .np-category-scroll a {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 16px;
    }

    .hm-hero-grid {
        grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr);
    }

    .hm-latest-panel {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .hm-latest-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        max-height: 330px;
    }

    .hm-latest-list article:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .hm-category-grid {
        grid-template-columns: 1fr;
    }

    .hm-category-list {
        grid-template-columns: 1fr 1fr;
    }

    .np-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 68px;
    }

    .np-topbar,
    .np-brandbar,
    .np-mainnav {
        display: none;
    }

    .np-mobilebar {
        display: block;
    }

    .np-breaking__inner {
        padding-right: 0;
        padding-left: 0;
    }

    .np-breaking__label {
        min-width: 108px;
        padding: 0 10px;
        font-size: 14px;
    }

    .np-breaking__viewport {
        padding-left: 22px;
    }

    .np-breaking__track {
        gap: 22px;
        animation-duration: 34s;
    }

    .np-breaking__track a,
    .np-breaking__track span {
        font-size: 15px;
    }

    .np-mobile-bottom-nav {
        display: grid;
        position: fixed;
        z-index: 1100;
        right: 0;
        bottom: 0;
        left: 0;
        grid-template-columns: repeat(5, 1fr);
        min-height: 64px;
        padding-bottom: env(safe-area-inset-bottom);
        border-top: 1px solid #dce5e2;
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -7px 22px rgba(12, 36, 30, .12);
        backdrop-filter: blur(10px);
    }

    .np-mobile-bottom-nav a,
    .np-mobile-bottom-nav button {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        border: 0;
        background: transparent;
        color: #61706c;
        font-family: inherit;
        font-size: 12px;
    }

    .np-mobile-bottom-nav i {
        font-size: 23px;
    }

    .np-mobile-bottom-nav .is-active,
    .np-mobile-bottom-nav button:active {
        color: var(--np-brand);
    }

    .np-mobile-bottom-nav__center i {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        margin-top: -22px;
        border: 4px solid #fff;
        border-radius: 50%;
        background: var(--np-brand);
        color: #fff;
        box-shadow: 0 8px 20px rgba(11, 93, 75, .28);
    }

    .np-mobile-bottom-nav__center span {
        margin-top: -1px;
    }

    .hm-hero-section {
        padding-top: 14px;
    }

    .hm-hero-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hm-lead-card {
        min-height: 390px;
        border-radius: 18px;
    }

    .hm-lead-card__content {
        padding: 20px;
    }

    .hm-lead-card__content h1 {
        font-size: clamp(27px, 8vw, 36px);
        line-height: 1.25;
    }

    .hm-lead-card__content p {
        display: none;
    }

    .hm-hero-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .hm-side-card {
        min-height: 170px;
        border-radius: 14px;
    }

    .hm-side-card__content {
        padding: 11px;
    }

    .hm-side-card__content h2 {
        font-size: 17px;
        line-height: 1.3;
    }

    .hm-latest-panel {
        min-height: auto;
        border-radius: 16px;
    }

    .hm-panel-heading {
        min-height: 68px;
        padding: 12px 15px;
    }

    .hm-panel-heading h2 {
        font-size: 22px;
    }

    .hm-latest-list {
        display: block;
        max-height: 380px;
    }

    .hm-latest-list a {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 12px 14px;
    }

    .hm-latest-list h3 {
        font-size: 16px;
    }

    .hm-section {
        padding: 24px 0;
    }

    .hm-section-heading {
        gap: 10px;
        margin-bottom: 14px;
    }

    .hm-section-heading h2 {
        font-size: 28px;
    }

    .hm-section-heading span {
        font-size: 13px;
    }

    .hm-all-link {
        font-size: 14px;
    }

    .hm-popular-grid {
        display: flex;
        gap: 12px;
        margin-right: -12px;
        overflow-x: auto;
        padding-right: 12px;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .hm-popular-grid::-webkit-scrollbar {
        display: none;
    }

    .hm-popular-card {
        min-width: 78vw;
        scroll-snap-align: start;
    }

    .hm-popular-card h3 a {
        font-size: 20px;
    }

    .hm-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hm-category-lead {
        display: block;
        border-radius: 18px;
    }

    .hm-category-lead__image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .hm-category-lead__content {
        padding: 18px;
    }

    .hm-category-lead h3 a {
        font-size: 26px;
    }

    .hm-category-lead p {
        font-size: 16px;
    }

    .hm-category-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hm-list-card {
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 11px;
        min-height: 96px;
        padding: 8px;
    }

    .hm-list-card__image {
        min-height: 88px;
    }

    .hm-list-card h3 a {
        font-size: 17px;
        line-height: 1.32;
    }

    .hm-video-section {
        margin: 18px 0;
        padding: 30px 0;
    }

    .hm-video-grid {
        grid-template-columns: 1fr;
    }

    .hm-play-button {
        width: 58px;
        height: 58px;
        font-size: 28px;
    }

    .hm-video-lead__content {
        padding: 17px;
    }

    .hm-video-lead__content h3 {
        font-size: 24px;
    }

    .hm-video-list {
        display: flex;
        gap: 12px;
        margin-right: -12px;
        overflow-x: auto;
        padding-right: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .hm-video-list::-webkit-scrollbar {
        display: none;
    }

    .hm-video-list article {
        min-width: 67vw;
    }

    .hm-photo-grid {
        display: flex;
        gap: 12px;
        margin-right: -12px;
        overflow-x: auto;
        padding-right: 12px;
        padding-bottom: 8px;
        scrollbar-width: none;
    }

    .hm-photo-grid::-webkit-scrollbar {
        display: none;
    }

    .hm-photo-card,
    .hm-photo-card:first-child {
        min-width: 76vw;
        height: 260px;
    }

    .np-search-dialog {
        padding-top: 8vh;
    }

    .np-search-dialog__panel {
        padding: 17px;
        border-radius: 16px;
    }

    .np-search-dialog__header h2 {
        font-size: 24px;
    }

    .np-search-form {
        display: grid;
    }

    .np-search-form button {
        width: 100%;
    }

    .np-notice__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .np-footer {
        padding-top: 34px;
    }

    .np-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 30px;
    }

    .np-footer-bottom__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .np-footer-bottom__credit {
        text-align: left;
    }

    .np-scroll-top {
        right: 14px;
        bottom: 78px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 399.98px) {
    .np-mobile-logo {
        max-width: 145px;
    }

    .np-drawer__categories {
        grid-template-columns: 1fr;
    }

    .hm-lead-card {
        min-height: 350px;
    }

    .hm-hero-side {
        grid-template-columns: 1fr;
    }

    .hm-side-card {
        min-height: 190px;
    }

    .hm-list-card {
        grid-template-columns: 105px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .np-breaking__track {
        animation: none;
    }
}
