.nd-page { background: rgba(69, 71, 150, 0.06); }
.nd-page { background: #fafafa; }

.nd-outer {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Back link ── */
.nd-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 48px 0 36px;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #9e9ea8;
    text-decoration: none;
    transition: color 0.2s;
    border: none;
}
.nd-back:hover { color: #454796; border: none; }
.nd-back svg { transition: transform 0.2s; }
.nd-back:hover svg { transform: translateX(-4px); }

/* ── Two-column split ── */
.nd-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
    margin-bottom: 80px;
}

/* ── LEFT: slideshow column ── */
.nd-col-img {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #1a1a2e;
}

/* Slideshow container */
.nd-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Each slide */
.nd-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.nd-slide.active { opacity: 1; }

.nd-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Prev / Next arrows */
.nd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.nd-arrow:hover { background: rgba(69,71,150,0.8); }
.nd-arrow.prev { left: 14px; }
.nd-arrow.next { right: 14px; }

/* Dot indicators */
.nd-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.nd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    border: none;
}
.nd-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

/* Image counter badge */
.nd-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    font-family: OpenSans-SemiBold, sans-serif;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 9999px;
    z-index: 10;
}

/* ── RIGHT: content column ── */
.nd-col-text {
    background: #ffffff;
    padding: 56px 52px;
    height: 100vh;
    overflow: hidden;       /* column itself does NOT scroll */
    display: flex;
    flex-direction: column;
}
/* Header & footer are pinned */
.nd-col-text > header,
.nd-col-text > footer { flex-shrink: 0; }
/* Only the body scrolls */
.nd-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;   /* room for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #e0e0f0 transparent;
}
.nd-body::-webkit-scrollbar { width: 4px; }
.nd-body::-webkit-scrollbar-track { background: transparent; }
.nd-body::-webkit-scrollbar-thumb { background: #d0d0e8; border-radius: 9999px; }

.nd-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #454796;
    margin-bottom: 8px;
}
.nd-title {
    font-family: OpenSans-Black, sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.nd-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #9e9ea8;
    font-family: OpenSans-Regular, sans-serif;
    margin-bottom: 12px;
}
.nd-meta-dot {
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #d0d0e0;
}
.nd-divider {
    height: 3px;
    width: 40px;
    background: #454796;
    border-radius: 2px;
    margin-bottom: 16px;
}

/* ── Body ── */
.nd-body {
    font-family: OpenSans-Regular, sans-serif;
    font-size: 1rem;
    line-height: 1.85;
    color: #3a3a4a;
}
.nd-body p  { margin-bottom: 1.4em; }
.nd-body h2 { font-family: OpenSans-Black, sans-serif; font-size: 1.3rem; color: #1a1a2e; margin: 2.2em 0 0.7em; }
.nd-body h3 { font-family: OpenSans-SemiBold, sans-serif; font-size: 1.05rem; color: #454796; margin: 1.8em 0 0.5em; }
.nd-body a { color: #454796; text-decoration: underline; text-underline-offset: 3px; border: none; }
.nd-body a:hover { color: #31326b; border: none; }
.nd-body ul, .nd-body ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.nd-body li { margin-bottom: 0.4em; }
.nd-body blockquote { border-left: 3px solid #454796; padding: 4px 0 4px 18px; margin: 1.8em 0; color: #454796; font-style: italic; }
.nd-body table { width: 100%; border-collapse: collapse; margin: 1.8em 0; font-size: 0.88em; }
.nd-body th { background: #454796; color: #fff; padding: 9px 12px; text-align: left; font-family: OpenSans-SemiBold, sans-serif; }
.nd-body td { padding: 9px 12px; border-bottom: 1px solid #eee; }
.nd-body tr:nth-child(even) td { background: #f7f7fb; }

/* ── Footer ── */
.nd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #eaeaf0;
}
.nd-share { display: flex; align-items: center; gap: 10px; }
.nd-share a { opacity: 0.45; transition: opacity 0.2s, transform 0.2s; border: none; }
.nd-share a:hover { opacity: 1; transform: scale(1.1); border: none; }

/* ── Mobile ── */
@media (max-width: 900px) {
    .nd-outer { padding: 0 16px; }
    .nd-split { grid-template-columns: 1fr; border-radius: 14px; }
    .nd-col-img { position: relative; height: 320px; }
    .nd-col-text { padding: 32px 24px; }
}

/* ── Zoom Icon ── */
.nd-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none; /* Passes click to the image underneath */
}
.nd-slide:hover .nd-zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.nd-slide img.nd-zoomable {
    cursor: zoom-in;
    transition: transform 0.3s;
}
.nd-slide:hover img.nd-zoomable {
    transform: scale(1.02);
}

/* ── Lightbox Modal ── */
.nd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.nd-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.nd-lightbox img {
    max-width: 95vw !important;
    max-height: 95vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.nd-lightbox.active img {
    transform: scale(1);
}
.nd-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.nd-lightbox-close:hover {
    opacity: 1;
}
