.ns-article {
    --ns-max: 1200px;
    --ns-gutter: 24px;
    --ns-color-text: #1C2D3A;
    --ns-color-muted: #6B7280;
    --ns-color-accent: #F2992F;
    --ns-color-border: #E5E7EB;
    --ns-color-bg: #ffffff;
    --ns-font-heading: 'Exo 2', sans-serif;
    --ns-font-body: 'Roboto', sans-serif;
    background: var(--ns-color-bg);
    color: var(--ns-color-text);
}

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

.ns-container {
    width: 100%;
    max-width: var(--ns-max);
    margin: 0 auto;
    padding-left: var(--ns-gutter);
    padding-right: var(--ns-gutter);
}

.ns-container--narrow {
    max-width: var(--ns-max);
}
.ns-article .homepage-news {
    border: none;
}
.ns-article .homepage-news .homepage-row {
    max-width: var(--ns-max);
    margin: 10px auto;
}


.ns-breadcrumbs-bar {
    border-bottom: 1px solid var(--ns-color-border);
    padding: 14px 0;
}

.ns-breadcrumbs-bar .breadcrumbs-wrapper {
    margin: 0;
    padding: 0;
}

.ns-hero {
    width: 100%;
    max-width: var(--ns-max);
    margin: 0 auto;
}

.ns-hero-inner {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.ns-hero-img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.ns-header {
    padding-top: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ns-color-border);
}

.ns-tag {
    display: inline-block;
    font-family: var(--ns-font-heading);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ns-color-accent);
    margin-bottom: 16px;
}

.ns-title {
    font-family: var(--ns-font-heading);
    font-weight: 800;
    font-size: 40px;
    line-height: 1.2;
    color: var(--ns-color-text);
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

.ns-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.ns-date {
    font-family: var(--ns-font-body);
    font-size: 14px;
    color: var(--ns-color-muted);
    letter-spacing: 0.02em;
}

.ns-share {
    display: flex;
    align-items: center;
}

/* ---------- Article body ---------- */
.ns-body {
    padding-top: 36px;
    padding-bottom: 48px;
    font-family: var(--ns-font-body);
    font-size: 18px;
    line-height: 1.75;
    color: var(--ns-color-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ns-body p {
    margin: 0 0 24px;
}

.ns-body p:last-child {
    margin-bottom: 0;
}

.ns-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px;
    display: block;
}

.ns-body h2,
.ns-body h3,
.ns-body h4 {
    font-family: var(--ns-font-heading);
    font-weight: 700;
    color: var(--ns-color-text);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.ns-body h2 { font-size: 28px; }
.ns-body h3 { font-size: 22px; }
.ns-body h4 { font-size: 18px; }

.ns-body ul,
.ns-body ol {
    padding-left: 24px;
    margin: 0 0 24px;
}

.ns-body li {
    margin-bottom: 8px;
}

.ns-body blockquote {
    margin: 32px 0;
    padding: 20px 24px;
    border-left: 4px solid var(--ns-color-accent);
    background: #FFF8F0;
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.ns-body a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ns-body a:hover {
    color: #1D4ED8;
}

.ns-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.ns-body table th,
.ns-body table td {
    padding: 10px 14px;
    border: 1px solid var(--ns-color-border);
    text-align: left;
    font-size: 15px;
}

.ns-body table th {
    background: #F9FAFB;
    font-weight: 600;
}

/* ---------- Section titles (Gallery / Downloads) ---------- */
.ns-section-title {
    font-family: var(--ns-font-heading);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.3;
    color: var(--ns-color-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ns-color-border);
}

/* ---------- Gallery ---------- */
.ns-gallery {
    padding-bottom: 48px;
}

.ns-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.ns-gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    aspect-ratio: 4 / 3;
}

.ns-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.ns-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Downloads ---------- */
.ns-downloads {
    padding-bottom: 56px;
}

.ns-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ns-file-list li {
    border-bottom: 1px solid var(--ns-color-border);
}

.ns-file-list li:last-child {
    border-bottom: none;
}

.ns-file-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    font-family: var(--ns-font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--ns-color-text);
    text-decoration: none;
    transition: color 0.1s ease;
}

.ns-file-list a:hover {
    color: var(--ns-color-accent);
}

.ns-file-icon {
    flex-shrink: 0;
    color: var(--ns-color-muted);
}

.ns-file-list a:hover .ns-file-icon {
    color: var(--ns-color-accent);
}


.ns-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 40px;
}

.ns-layout-main {
    min-width: 0;
}

.ns-sidebar-inner {
    top: 24px;
}

.ns-sidebar-title {
    font-family: var(--ns-font-heading);
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ns-color-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ns-color-accent);
}

.ns-sidebar-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ns-color-text);
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #F9FAFB;
    transition: box-shadow 0.1s ease, transform 0.1s ease;
}

.ns-sidebar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ns-sidebar-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #E5E7EB;
}

.ns-sidebar-card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease;
}

.ns-sidebar-card:hover .ns-sidebar-card-img img {
    transform: scale(1.05);
}

.ns-sidebar-card-body {
    padding: 12px 14px 14px;
}

.ns-sidebar-card-date {
    display: block;
    font-family: var(--ns-font-body);
    font-size: 11px;
    color: var(--ns-color-muted);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.ns-sidebar-card-title {
    font-family: var(--ns-font-heading);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    color: var(--ns-color-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ns-sidebar-card:hover .ns-sidebar-card-title {
    color: var(--ns-color-accent);
}


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

/* ---------- Newspaper float layout ---------- */
.ns-container--wide {
    max-width: 1200px;
}

.ns-article--float .ns-header {
    border-bottom: none;
    padding-bottom: 24px;
}

.ns-newspaper {
    overflow: hidden;
}

.ns-newspaper-img {
    float: left;
    width: 55%;
    max-width: 680px;
    margin: 0 32px 20px 0;
    border-radius: 10px;
    overflow: hidden;
    shape-outside: margin-box;
}

.ns-newspaper-img img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.ns-newspaper .ns-body {
    padding-top: 0;
    padding-bottom: 36px;
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
}

/* First letter drop-cap – classic newspaper touch */
.ns-newspaper .ns-body > p:first-of-type::first-letter {
    float: left;
    font-family: var(--ns-font-heading);
    font-weight: 800;
    font-size: 3.6em;
    line-height: 0.8;
    padding: 4px 10px 0 0;
    color: var(--ns-color-text);
}

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

/* Tablet */
@media screen and (max-width: 1024px) {
    .ns-hero-img {
        max-height: 440px;
    }

    .ns-title {
        font-size: 34px;
    }

    .ns-newspaper-img {
        width: 42%;
        margin-right: 24px;
    }

    .ns-layout {
        grid-template-columns: 1fr 260px;
        gap: 30px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    .ns-article {
        --ns-gutter: 16px;
    }

    .ns-hero {
        padding-top: 16px;
    }

    .ns-article .newsCategories {
        justify-content: center;
        padding: 0 5px;
        overflow: hidden;
    }

    .ns-article .homepage-row {
        width: calc(100% - 40px);
        margin: 0 auto;
    }
    .ns-hero-inner {
        border-radius: 8px;
    }
    .page.page-news-single .breadcrumbs-wrapper, .page.page-news-list .breadcrumbs-wrapper {
        margin: 0;
    }
    .ns-hero-img {
        max-height: 280px;
    }

    .ns-header {
        padding-top: 28px;
        padding-bottom: 24px;
    }

    .ns-tag {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .ns-title {
        font-size: 26px;
        line-height: 1.25;
        margin-bottom: 16px;
    }

    .ns-meta {
        gap: 12px;
    }

    .ns-body {
        font-size: 16px;
        line-height: 1.7;
        padding-top: 28px;
        padding-bottom: 36px;
    }

    .ns-body h2 { font-size: 22px; }
    .ns-body h3 { font-size: 19px; }

    .ns-body blockquote {
        padding: 16px 18px;
        margin: 24px 0;
    }

    .ns-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .ns-section-title {
        font-size: 19px;
    }

    .ns-file-list a {
        font-size: 14px;
        padding: 12px 0;
    }

    .ns-body img {
    margin: 5px;
    }

    /* Newspaper layout stacks on mobile */
    .ns-newspaper-img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        border-radius: 8px;
    }

    .ns-newspaper .ns-body {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    .ns-newspaper .ns-body > p:first-of-type::first-letter {
        font-size: 2.8em;
    }

    /* Sidebar stacks below article on mobile */
    .ns-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .ns-sidebar {
        padding-top: 0;
        border-top: 1px solid var(--ns-color-border);
        padding-bottom: 32px;
    }

    .ns-sidebar-inner {
        position: static;
    }

    .ns-sidebar-title {
        margin-top: 28px;
        font-size: 20px;
    }

    .ns-sidebar-card {
        flex-direction: row;
        border-radius: 8px;
    }

    .ns-sidebar-card-img {
        width: 110px;
        min-width: 110px;
        aspect-ratio: auto;
        min-height: 100%;
    }

    .ns-sidebar-card-title {
        -webkit-line-clamp: 2;
    }

    .ns-body iframe {
        width: 100%;
        border-radius: 8px;
    }
}

/* Small phones */
@media screen and (max-width: 403px) {
    .ns-title {
        font-size: 22px;
    }

    .ns-body {
        font-size: 15px;
    }

    .ns-body img {
    margin: 0px;
    float: none !important;
    width: 100% !important;
    }

    .ns-gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}
