/* ==============================================
   NEWS — List page + Detail page styles
   ============================================== */

/* ---- NEWS LIST PAGE ---- */
.news-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--white);
}
.news-hero__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.news-hero__title {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.0;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--black);
    margin: 0;
}

.news-list {
    position: relative;
    z-index: 2;
    background: #ffffff;
    padding: 80px 0 120px;
    clip-path: inset(0px round var(--radius-section) var(--radius-section) 0 0);
}

/* ---- Horizontal card stack ---- */
.news-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.news-hcard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--section-grey, #f4f4f4);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}
.news-hcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.10);
}

.news-hcard__img-wrap {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.news-hcard__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.news-hcard:hover .news-hcard__img { transform: scale(1.03); }

.news-hcard__body {
    padding: 40px 40px 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-hcard__badge {
    display: inline-block;
    width: fit-content;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--black);
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 16px;
}
.news-hcard__title {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--black);
    margin: 0 0 14px;
}
.news-hcard__excerpt {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-body, #555);
    margin: 0;
}
.news-hcard__arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s, gap 0.3s;
}
.news-hcard:hover .news-hcard__arrow { color: var(--black); gap: 10px; }

/* Alternate: even cards flip image to right */
.news-hcard:nth-child(even) { direction: rtl; }
.news-hcard:nth-child(even) > * { direction: ltr; }

@media (max-width: 768px) {
    .news-hcard { grid-template-columns: 1fr; }
    .news-hcard:nth-child(even) { direction: ltr; }
    .news-hcard__img-wrap { min-height: 220px; }
    .news-hcard__body { padding: 24px 24px 28px; }
}

.news-empty { text-align: center; padding: 80px 0; color: var(--text-muted); font-size: 1.125rem; }

/* ---- NEWS DETAIL PAGE ---- */
.nd-hero {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--black);
}
.nd-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.nd-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 1; }
.nd-hero__fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.08));
    z-index: 2;
    pointer-events: none;
}
.nd-hero__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 80px;
    padding-top: 140px;
}

.nd-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
}
.nd-hero__breadcrumb a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.2s ease; }
.nd-hero__breadcrumb a:hover { color: rgba(255, 255, 255, 0.9); }
.nd-hero__breadcrumb-sep { opacity: 0.4; }
.nd-hero__breadcrumb-current { color: rgba(255, 255, 255, 0.75); max-width: 400px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nd-hero__title {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--white);
    max-width: 900px;
    margin: 0;
    text-transform: uppercase;
}

.nd-hero__scroll {
    position: absolute;
    bottom: 32px;
    right: var(--container-padding);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: nd-scroll-bounce 2.2s ease-in-out infinite;
}
.nd-hero__scroll span { display: block; width: 8px; height: 8px; border-right: 2px solid rgba(255,255,255,0.5); border-bottom: 2px solid rgba(255,255,255,0.5); transform: rotate(45deg); }
.nd-hero__scroll span:last-child { opacity: 0.35; }

@keyframes nd-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Article content */
.nd-article {
    background: var(--white);
    padding: 80px 0;
}
.nd-article__inner { max-width: 860px; margin: 0 auto; padding: 0 var(--container-padding); }

.nd-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 48px;
    transition: color 0.25s ease;
    letter-spacing: 0.01em;
}
.nd-back:hover { color: var(--black); }
.nd-back__arrow { display: inline-block; transition: transform 0.25s ease; }
.nd-back:hover .nd-back__arrow { transform: translateX(-4px); }

/* Video embed */
.nd-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius-lg, 24px);
    overflow: hidden;
    margin-bottom: 48px;
    background: var(--black);
}
.nd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Body text */
.nd-body { font-family: 'Inter', -apple-system, sans-serif; font-size: 1.125rem; line-height: 1.9; color: var(--text-body); }
.nd-body p { margin-bottom: 1.5em; font-size: 1.125rem; line-height: 1.9; color: var(--text-body); }
.nd-body p:last-child { margin-bottom: 0; }

/* Gallery */
.nd-gallery {
    position: relative;
    z-index: 3;
    background: var(--section-grey);
    clip-path: inset(0px round var(--radius-section) var(--radius-section) 0 0);
    padding: 80px 0;
    margin-top: calc(-1 * var(--radius-section));
}
.nd-gallery__heading {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 40px;
}
.nd-gallery__grid { display: grid; gap: 16px; }
.nd-gallery__grid--2col { grid-template-columns: 1fr 1fr; }
.nd-gallery__grid--3 { grid-template-columns: 1fr 1fr; }
.nd-gallery__grid--3 .nd-gallery__item:first-child { grid-column: 1 / -1; }
.nd-gallery__grid--4col { grid-template-columns: 1fr 1fr; }
.nd-gallery__item { overflow: hidden; border-radius: var(--radius-lg, 24px); cursor: pointer; background: var(--light-grey); }
.nd-gallery__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.nd-gallery__item:hover .nd-gallery__img { transform: scale(1.03); }

/* CTA */
.nd-cta {
    position: relative;
    z-index: 4;
    background: var(--black);
    color: var(--white);
    padding: 80px 0;
    clip-path: inset(0px round var(--radius-section) var(--radius-section) 0 0);
    text-align: center;
    margin-top: calc(-1 * var(--radius-section));
}
.nd-cta__heading {
    font-family: 'Inter Tight', 'Inter', -apple-system, sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
}
.nd-cta__sub { font-size: 1rem; color: rgba(255,255,255,0.5); margin-bottom: 36px; }
.nd-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    transition: var(--transition-btn);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: 'Inter', -apple-system, sans-serif;
    text-decoration: none;
    background: var(--white);
    color: var(--black);
}
.nd-cta .btn:hover { background: var(--light-grey); }

/* Lightbox */
#nd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
#nd-lightbox.open { display: flex; }
#nd-lightbox-img {
    max-width: 90vw;
    max-height: 86vh;
    border-radius: var(--radius-md, 16px);
    object-fit: contain;
    display: block;
    box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
#nd-lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: none;
}
#nd-lightbox-close:hover { color: var(--white); background: rgba(255,255,255,0.15); transform: rotate(90deg); }

#nd-lightbox-prev,
#nd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 20px;
    line-height: 1;
    background: rgba(255,255,255,0.06);
    border: none;
    border-radius: var(--radius-sm, 8px);
    transition: opacity 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
#nd-lightbox-prev:hover,
#nd-lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.12); }
#nd-lightbox-prev { left: 24px; }
#nd-lightbox-next { right: 24px; }

/* ---- NEWS RESPONSIVE ---- */
@media (max-width: 1024px) {
    .nd-hero { min-height: 60vh; }
    .nd-gallery__grid--3,
    .nd-gallery__grid--4col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-hero { padding: 120px 0 40px; }
    .news-list { padding: 56px 0; }
    .nd-hero { min-height: 60vh; }
    .nd-hero__content { padding-bottom: 56px; padding-top: 120px; }
    .nd-hero__title { font-size: clamp(1.875rem, 8vw, 2.5rem); }
    .nd-hero__scroll { display: none; }
    .nd-article { padding: 56px 0; }
    .nd-gallery { padding: 56px 0; }
    .nd-gallery__grid--2col,
    .nd-gallery__grid--3,
    .nd-gallery__grid--4col { grid-template-columns: 1fr; }
    .nd-gallery__grid--3 .nd-gallery__item:first-child { grid-column: 1; }
    .nd-cta { padding: 56px 0; }
}
