/* =========================================
   NEWS PAGE
   ========================================= */

/* ---- Active link in the header ---- */
#umuri-header-root .umuri-top-row .secondary-nav a.active {
    color: var(--accent-color) !important;
    box-shadow: 0 3px 0 var(--accent-color) !important;
}

/* ---- Masthead ---- */
.nw-masthead {
    margin-top: 170px; /* clears the desktop header */
    background: #f7f3f0;
    border-bottom: 1px solid #e6ddd8;
    padding: 44px 0 40px;
}

.nw-crumbs {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a7b77;
    margin-bottom: 14px;
}

.nw-crumbs a {
    color: #8a7b77;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nw-crumbs a:hover {
    color: var(--accent-color);
}

.nw-crumbs span {
    margin: 0 8px;
    color: #c4b8b4;
}

.nw-masthead h1 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--primary-color);
}

.nw-masthead p {
    margin: 0;
    max-width: 560px;
    font-size: 16px;
    line-height: 1.6;
    color: #5f5350;
}

/* ---- Shared bits ---- */
.nw-label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.nw-meta {
    font-size: 13px;
    color: #7a7a7a;
    margin-bottom: 16px;
}

.nw-dot {
    display: inline-block;
    width: 3px;
    height: 3px;
    margin: 0 10px 3px;
    border-radius: 50%;
    background: #b5b5b5;
}

.nw-link {
    display: inline-block;
    padding-bottom: 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: color 0.2s ease;
}

.nw-link:hover {
    color: var(--accent-color);
}

/* ---- Featured story ---- */
.nw-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 44px;
    align-items: center;
    padding: 50px 0;
    border-bottom: 1px solid #e6e6e6;
}

.nw-featured-media {
    display: block;
    overflow: hidden;
    background: #eee;
}

.nw-featured-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.nw-featured-body h2 {
    margin: 0 0 14px;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.nw-featured-body h2 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nw-featured-body h2 a:hover {
    color: var(--accent-color);
}

.nw-featured-body p {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

/* ---- Layout ---- */
.nw-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 56px;
    padding: 50px 0 80px;
}

.nw-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-color);
}

.nw-section-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
}

.nw-section-tools {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

.nw-section-tools a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.nw-section-tools a:hover {
    text-decoration: underline;
}

/* ---- Article cards ---- */
.nw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px 32px;
}

.nw-card {
    display: flex;
    flex-direction: column;
}

.nw-card-media {
    display: block;
    overflow: hidden;
    background: #eee;
    margin-bottom: 18px;
}

.nw-card-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.nw-card:hover .nw-card-media img {
    transform: scale(1.03);
}

.nw-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nw-card h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
}

.nw-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nw-card h3 a:hover {
    color: var(--accent-color);
}

.nw-card p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nw-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
    font-size: 13px;
    color: #8a8a8a;
}

.nw-card-foot a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nw-card-foot a:hover {
    color: var(--accent-color);
}

/* ---- Empty state ---- */
.nw-empty {
    padding: 50px 30px;
    text-align: center;
    background: #f7f3f0;
    border: 1px solid #e6ddd8;
}

.nw-empty h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: var(--primary-color);
}

.nw-empty p {
    margin: 0 0 18px;
    color: #666;
    font-size: 15px;
}

/* ---- Pagination ---- */
.nw-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 50px;
}

.nw-page-link {
    min-width: 40px;
    padding: 10px 14px;
    border: 1px solid #ddd;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    color: #444;
    text-decoration: none;
    background: #fff;
    transition: all 0.2s ease;
}

a.nw-page-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.nw-page-link.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ---- Sidebar ---- */
.nw-widget {
    margin-bottom: 40px;
}

.nw-widget-title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
}

.nw-widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 48px;
    height: 3px;
    background: var(--accent-color);
}

.nw-widget-text {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Search */
.nw-search {
    display: flex;
}

.nw-search input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.nw-search input:focus {
    border-color: var(--primary-color);
}

.nw-search button {
    width: 46px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nw-search button:hover {
    background: var(--accent-color);
}

/* Categories */
.nw-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nw-cats li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.nw-cats li a {
    color: #444;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nw-cats li a:hover,
.nw-cats li.active a {
    color: var(--accent-color);
}

.nw-cats li span {
    font-size: 12px;
    color: #999;
}

/* Subscribe */
.nw-subscribe input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.nw-subscribe input:focus {
    border-color: var(--primary-color);
}

.nw-subscribe button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 0;
    background: var(--accent-color);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.nw-subscribe button:hover {
    background: var(--primary-color);
}

.nw-form-msg {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 18px;
}

.nw-form-msg.ok { color: #2e7d32; }
.nw-form-msg.error { color: #b3261e; }

/* Small items (newsletter + recent posts) */
.nw-mini {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.nw-mini img {
    display: block;
    width: 84px;
    height: 70px;
    flex-shrink: 0;
    object-fit: cover;
    background: #eee;
}

.nw-mini img.newsletter-open {
    cursor: pointer;
}

.nw-mini h4 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.nw-mini h4 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nw-mini h4 a:hover {
    color: var(--accent-color);
}

.nw-mini-date {
    display: block;
    font-size: 12px;
    color: #999;
}

.nw-mini-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.nw-mini-link:hover {
    text-decoration: underline;
}

/* ---- Newsletter preview modal ---- */
.nl-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: #3a3a3a;
    flex-direction: column;
}

.nl-modal.open { display: flex; }

.nl-modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 20px;
    background: var(--primary-color);
    color: #fff;
}

.nl-modal-title {
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nl-modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.nl-download {
    background: var(--accent-color);
    color: #fff;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.nl-download:hover { background: #fff; color: var(--primary-color); }

.nl-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.nl-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    text-align: center;
}

.nl-modal-body canvas {
    display: block;
    margin: 0 auto 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nl-status {
    color: #fff;
    font-size: 15px;
}

.nl-status a {
    color: var(--accent-color);
}

/* =========================================
   REPORTS & PUBLICATIONS SECTION
   ========================================= */
.nw-reports {
    padding: 60px 0 80px;
    background: #f7f3f0;
    border-top: 1px solid #e6ddd8;
}

.nw-reports-head {
    text-align: center;
    margin-bottom: 50px;
}

.nw-reports-head h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.nw-reports-head h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.nw-reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.nw-report-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e6ddd8;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nw-report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.nw-report-cover {
    height: 200px;
    background: #eee;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nw-report-cover img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.nw-report-card:hover .nw-report-cover img {
    transform: scale(1.05);
}

.nw-report-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nw-report-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.nw-report-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
    line-height: 1.4;
}

.nw-report-body p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px;
    flex-grow: 1;
}

.nw-report-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.nw-report-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 5px;
    transition: background 0.3s;
    align-self: flex-start;
    border: 2px solid var(--primary-color) !important;
}

.nw-report-btn:hover {
    background: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .nw-masthead {
        margin-top: 70px; /* mobile header is 70px tall */
    }
}

@media (max-width: 992px) {
    .nw-featured {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 40px 0;
    }

    .nw-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 40px 0 60px;
    }

    .nw-sidebar {
        padding-top: 20px;
        border-top: 1px solid #e6e6e6;
    }

    .nw-reports-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nw-masthead {
        padding: 32px 0 30px;
    }

    .nw-masthead h1 {
        font-size: 28px;
    }

    .nw-featured-body h2 {
        font-size: 24px;
    }

    .nw-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .nw-section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .nl-modal-title {
        font-size: 13px;
    }

    .nw-reports-grid { grid-template-columns: 1fr; }
    .nw-reports-head h2 { font-size: 26px; }
}