/* ============================================================
   NEWS DETAIL PAGE — Modern Editorial Two-Column Architecture
   ============================================================ */

.nd-page {
    background: transparent;
    padding: 32px 0 96px;
    min-height: 75vh;
    width: 100%;
    box-sizing: border-box;
}

.nd-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(16px, 3vw, 36px);
    box-sizing: border-box;
}

/* ── Top Secondary Navigation ── */
.nd-top-nav {
    margin-bottom: 24px;
    width: 100%;
}

.nd-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8a8a9a;
    text-decoration: none;
    border: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.nd-back-link svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.nd-back-link:hover {
    color: #454796;
    border: none;
    text-decoration: none;
}

.nd-back-link:hover svg {
    transform: translateX(-4px);
}

/* ── Editorial Two-Column Grid Layout (Tighter gap) ── */
.nd-article-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(320px, 470px) minmax(0, 1fr);
    gap: clamp(24px, 3vw, 42px);
    align-items: start;
    box-sizing: border-box;
}

/* ── Left Column: Media Stage ── */
.nd-media-column {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (min-width: 992px) and (min-height: 600px) {
    .nd-media-column {
        position: sticky;
        top: 32px;
    }
}

.nd-media-sticky {
    position: relative;
    width: 100%;
}

.nd-media-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    cursor: zoom-in;
    outline: none;
    border: none;
    box-shadow: none;
    box-sizing: border-box;
}

.nd-media-stage:focus-visible {
    outline: 3px solid #454796;
    outline-offset: 3px;
}

/* Primary hero image without borders or background */
.nd-hero-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    border: none;
    transition: transform 0.3s ease;
}

.nd-media-stage:hover .nd-hero-image {
    transform: scale(1.015);
}

/* ── Elegant Bottom-Right Multi-Image Counter ── */
.nd-media-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 17, 30, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.78rem;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.nd-media-counter svg {
    opacity: 0.85;
}

/* ── Right Column: Article Content ── */
.nd-content-column {
    width: 100%;
    min-width: 0;
    padding-top: 4px;
    box-sizing: border-box;
}

/* ── Article Header ── */
.nd-article-header {
    margin-bottom: 28px;
}

.nd-label {
    display: inline-block;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #454796;
    margin-bottom: 12px;
}

.nd-title {
    font-family: OpenSans-Black, sans-serif;
    font-size: clamp(1.85rem, 3.2vw, 2.6rem);
    font-weight: 900;
    line-height: 1.22;
    color: #1a1a2e;
    margin: 0 0 16px;
    word-break: break-word;
}

.nd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.88rem;
    color: #8a8a9a;
    font-family: OpenSans-Regular, sans-serif;
    margin-bottom: 20px;
}

.nd-meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d0d0e0;
}

.nd-author {
    color: #58534C;
    font-family: OpenSans-SemiBold, sans-serif;
}

.nd-divider {
    height: 3px;
    width: 44px;
    background: #454796;
    border-radius: 2px;
}

/* ── Article Body (Editorial Typography) ── */
.nd-body {
    font-family: OpenSans-Regular, sans-serif;
    font-size: 1.06rem;
    line-height: 1.85;
    color: #2e2e3e;
    word-break: break-word;
}

.nd-body p {
    margin-bottom: 1.5em;
}

.nd-body h2 {
    font-family: OpenSans-Black, sans-serif;
    font-size: 1.45rem;
    color: #1a1a2e;
    margin: 2.2em 0 0.8em;
}

.nd-body h3 {
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 1.2rem;
    color: #454796;
    margin: 1.8em 0 0.6em;
}

.nd-body a {
    color: #454796;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    border: none;
    transition: color 0.2s;
}

.nd-body a:hover {
    color: #31326b;
    border: none;
}

.nd-body ul,
.nd-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.5em;
}

.nd-body li {
    margin-bottom: 0.5em;
}

.nd-body blockquote {
    border-left: 3px solid #454796;
    padding: 10px 0 10px 22px;
    margin: 2em 0;
    color: #454796;
    font-style: italic;
    background: rgba(69, 71, 150, 0.03);
    border-radius: 0 8px 8px 0;
}

.nd-body img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    margin: 1.8em 0;
    display: block;
}

.nd-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 0.95em;
}

.nd-body th,
.nd-body td {
    padding: 10px 14px;
    border: 1px solid #e2e4ea;
    text-align: left;
}

.nd-body th {
    background: #f4f5fa;
    font-family: OpenSans-SemiBold, sans-serif;
}

/* ── Article Footer & Social Sharing ── */
.nd-article-footer {
    margin-top: 52px !important;
    padding-top: 32px !important;
    border-top: 1px solid #edf0f5 !important;
    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    width: 100% !important;
}

.nd-share-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.nd-share-title {
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a8a9a;
}

.nd-share-links {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.nd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.82rem;
    text-decoration: none;
    border: 1px solid #e2e4ea;
    background: #ffffff;
    color: #454796;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nd-share-btn img {
    width: 18px;
    height: 18px;
    display: block;
}

.nd-share-btn:hover {
    border-color: #454796;
    background: #f4f5fa;
    color: #31326b;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(69, 71, 150, 0.12);
}

.nd-bottom-nav {
    padding-top: 18px;
    border-top: 1px solid #f0f2f6;
}

.nd-back-link.--bottom {
    margin: 0;
}

/* ── Fullscreen Lightbox Modal ── */
.nd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(10, 12, 22, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.nd-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.nd-lightbox-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 92vw;
    max-height: 88vh;
}

.nd-lightbox-img {
    max-width: 90vw !important;
    max-height: 85vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transform: scale(0.96);
    transition: transform 0.25s ease;
}

.nd-lightbox.active .nd-lightbox-img {
    transform: scale(1);
}

.nd-lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10010;
}

.nd-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.nd-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10010;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.nd-lightbox-arrow:hover {
    background: #454796;
    transform: translateY(-50%) scale(1.1);
}

.nd-lightbox-arrow.prev { left: 24px; }
.nd-lightbox-arrow.next { right: 24px; }

.nd-lightbox-footer {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10010;
}

.nd-lightbox-counter {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
}

/* ── Admin Edit Button ── */
.nd-admin-edit-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #454796;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(69, 71, 150, 0.4);
    z-index: 9000;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nd-admin-edit-btn:hover {
    background: #fff;
    color: #454796;
    border-color: #454796;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(69, 71, 150, 0.5);
    text-decoration: none;
}

/* ── Tablet & Mobile Responsiveness ── */
@media (max-width: 991px) {
    .nd-page {
        padding: 24px 0 72px;
        width: 100%;
    }

    .nd-container {
        width: 100%;
    }

    .nd-article-layout {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nd-media-column {
        position: static;
        width: 100%;
    }

    .nd-content-column {
        width: 100%;
    }

    .nd-media-stage {
        width: 100%;
    }

    .nd-hero-image {
        width: 100%;
    }

    .nd-lightbox-arrow.prev { left: 14px; }
    .nd-lightbox-arrow.next { right: 14px; }
}

@media (max-width: 600px) {
    .nd-page {
        padding: 16px 0 60px;
    }

    .nd-top-nav {
        margin-bottom: 20px;
    }

    .nd-article-layout {
        gap: 24px;
    }

    .nd-media-stage {
        border-radius: 12px;
    }

    .nd-hero-image {
        border-radius: 12px;
    }

    .nd-title {
        font-size: 1.55rem;
        margin-bottom: 12px;
    }

    .nd-body {
        font-size: 1rem;
        line-height: 1.75;
    }

    .nd-article-footer {
        margin-top: 32px !important;
        padding-top: 20px !important;
        background: transparent !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        width: 100% !important;
    }

    .nd-share-section {
        margin-bottom: 24px;
    }

    .nd-share-links {
        gap: 8px;
    }

    .nd-share-btn {
        padding: 7px 16px;
        font-size: 0.78rem;
    }

    .nd-lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .nd-lightbox-close {
        top: 14px;
        right: 14px;
        width: 40px;
        height: 40px;
    }

    .nd-lightbox-footer {
        bottom: 16px;
    }

    .nd-admin-edit-btn {
        bottom: 16px;
        right: 16px;
        padding: 10px 14px;
        font-size: 0.78rem;
    }
}
