/* ════════════════════════════════════════════════════════════
 * GBI Slawi — detail-news.css
 * Halaman detail berita dan komentar
 * ════════════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════════════
   PAGE HEADER
   ════════════════════════════════════════════════════════════ */
.news-page-header {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.news-page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.news-page-header h2 {
    font-size: clamp(32px, 5vw, 54px);
    margin: 14px 0 12px;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.news-page-header p {
    font-size: 15px;
    color: var(--text2);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   TOOLBAR
   ════════════════════════════════════════════════════════════ */
.news-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 52px;
    padding: 16px 20px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.news-toolbar-right {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.news-search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
    max-width: 300px;
}

.news-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    pointer-events: none;
    opacity: 0.4;
}

.news-search {
    width: 100%;
    padding: 10px 36px 10px 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.news-search:focus {
    border-color: var(--gold-border);
    box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.06);
}

.news-search::placeholder {
    color: var(--text3);
}

.news-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text3);
    cursor: pointer;
    font-size: 12px;
}

.news-filter-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid var(--border);
    cursor: pointer;
    background: transparent;
    color: var(--text2);
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
}

.news-archive-select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--text2);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.news-archive-select:focus {
    border-color: var(--gold-border);
}

/* ════════════════════════════════════════════════════════════
   SECTION DIVIDER
   ════════════════════════════════════════════════════════════ */
.news-section-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 64px 0 32px;
    color: var(--text3);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.news-section-divider::before,
.news-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.news-section-divider span {
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════
   HERO — FEATURED + TERKINI
   ════════════════════════════════════════════════════════════ */
.news-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.25);
}

/* ── Featured Card ── */
.news-featured {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg3);
    transition: background 0.25s;
    border-right: 1px solid var(--border);
}

.news-featured:hover {
    background: var(--bg4);
}

.news-featured-img {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg4);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-featured:hover .news-featured-img img {
    transform: scale(1.03);
}

.news-emoji-bg {
    font-size: 64px;
    opacity: 0.25;
}

.news-img-placeholder {
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg4);
    min-height: 80px;
}

.news-img-placeholder.sm {
    font-size: 24px;
    min-height: 56px;
}

.news-img-placeholder.xs {
    font-size: 18px;
    min-height: 40px;
    width: 44px;
    flex-shrink: 0;
    border-radius: 8px;
}

.news-img-placeholder.large {
    font-size: 80px;
    min-height: 320px;
    border-radius: 16px;
}

/* Gradient overlay on image */
.news-featured-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.4) 0%,
            transparent 50%);
    pointer-events: none;
}

.news-new-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--gold);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 2;
}

.news-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
    position: relative;
}

.cat-ibadah {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
}

.cat-pelayanan {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
}

.cat-komunitas {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
}

.cat-pengumuman {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}

.news-featured-body {
    padding: 28px 32px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-featured-title {
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
    transition: color 0.2s;
}

.news-featured:hover .news-featured-title {
    color: var(--gold);
}

.news-featured-desc {
    color: var(--text2);
    font-size: 14px;
    line-height: 1.75;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row */
.news-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: var(--text3);
}

.news-dot {
    opacity: 0.35;
}

.news-author {
    color: var(--text2);
    font-weight: 600;
}

.news-date,
.news-views,
.news-read-time {
    color: var(--text3);
    font-size: 12px;
}

.news-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text3);
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.news-like-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: var(--text3);
    font-family: inherit;
    transition: color 0.2s, transform 0.15s;
    padding: 2px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.news-like-btn:hover {
    color: var(--gold);
    transform: scale(1.08);
}

/* ── Side List ── */
.news-side-list {
    display: flex;
    flex-direction: column;
    background: var(--bg3);
}

.news-side-label {
    padding: 18px 20px 12px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0;
    border-bottom: 1px solid var(--border);
}

.news-side-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
    flex: 1;
}

.news-side-item:last-child {
    border-bottom: none;
}

.news-side-item:hover {
    background: var(--bg4);
}

.news-side-img {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg4);
}

.news-side-img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.news-side-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.news-side-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.news-side-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
}

.news-side-item:hover .news-side-title {
    color: var(--gold);
}

.news-side-foot {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 11px;
    color: var(--text3);
}

/* ════════════════════════════════════════════════════════════
   POPULAR GRID
   ════════════════════════════════════════════════════════════ */
.news-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.news-popular-item {
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 18px 20px;
    background: var(--bg3);
    transition: background 0.2s;
    position: relative;
}

.news-popular-item:hover {
    background: var(--bg4);
}

.news-popular-rank {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    flex-shrink: 0;
    width: 36px;
    text-align: center;
    transition: color 0.2s;
}

.news-popular-item:hover .news-popular-rank {
    color: var(--gold-border);
}

.news-popular-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg4);
}

.news-popular-img img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.news-popular-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-popular-body h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    transition: color 0.2s;
}

.news-popular-item:hover .news-popular-body h4 {
    color: var(--gold);
}

/* ════════════════════════════════════════════════════════════
   ALL NEWS GRID
   ════════════════════════════════════════════════════════════ */
#news-grid,
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    border-color: var(--gold-border);
}

.news-card-img {
    position: relative;
    overflow: hidden;
    background: var(--bg4);
}

.news-card-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-img img {
    transform: scale(1.04);
}

.news-card-img .news-cat-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.news-card-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.news-card:hover .news-card-title {
    color: var(--gold);
}

.news-card-desc {
    font-size: 13px;
    color: var(--text2);
    line-height: 1.7;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Empty state */
.news-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text3);
}

.news-empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.news-empty-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text2);
    margin-bottom: 6px;
}

.news-empty-sub {
    font-size: 13px;
}

/* ════════════════════════════════════════════════════════════
   DETAIL NEWS LAYOUT
   ════════════════════════════════════════════════════════════ */
.news-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: flex-start;
    margin-top: 8px;
}

/* ── Article Header ── */
.news-detail-header {
    margin-bottom: 32px;
}

.news-detail-title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text);
    margin: 14px 0 24px;
    letter-spacing: -0.01em;
}

.news-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.news-detail-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-dim), var(--bg4));
    border: 2px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.author-role {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.news-detail-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text3);
    flex-wrap: wrap;
}

.news-detail-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Article Image ── */
.news-detail-img {
    margin-bottom: 36px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.3);
}

.news-detail-img img {
    width: 100%;
    border-radius: 16px;
    object-fit: cover;
    max-height: 500px;
    display: block;
    transition: transform 0.5s ease;
}

.news-detail-img:hover img {
    transform: scale(1.01);
}

/* ── Article Content ── */
.news-detail-content {
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--text2);
}

.news-detail-content p {
    margin-bottom: 20px;
}

.news-detail-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    color: var(--text);
    margin: 36px 0 16px;
    font-weight: 700;
}

.news-detail-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 28px 0 12px;
}

.news-lead {
    font-size: 18px !important;
    font-weight: 500;
    color: var(--text) !important;
    line-height: 1.7 !important;
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    background: var(--gold-dim);
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px !important;
}

/* ── Tags ── */
.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.news-tag {
    padding: 5px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text3);
    transition: all 0.2s;
    cursor: default;
    background: var(--bg3);
}

.news-tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}

/* ── Detail Actions ── */
.news-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.news-action-btn {
    padding: 11px 24px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg3);
    color: var(--text2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-dim);
}

.news-action-btn.liked {
    background: var(--gold-dim);
    border-color: var(--gold);
    color: var(--gold);
}

.news-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

.news-share-label {
    font-size: 12px;
    color: var(--text3);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-share-btn {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: var(--text2);
}

.news-share-btn.wa:hover {
    border-color: #25D366;
    color: #fff;
    background: #25D366;
}

.news-share-btn.copy:hover {
    border-color: var(--gold);
    color: #000;
    background: var(--gold);
}

/* Copy toast */
.copy-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    z-index: 999;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .35);
    animation: toastIn .3s cubic-bezier(.34, 1.56, .64, 1);
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════ */
.news-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-widget {
    padding: 24px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.sidebar-widget-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* Sidebar news list */
.sidebar-news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.sidebar-news-item:hover {
    opacity: 0.85;
}

.sidebar-news-item:hover .sidebar-news-title {
    color: var(--gold);
}

.sidebar-news-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.sidebar-news-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text);
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-date {
    font-size: 11px;
    color: var(--text3);
}

/* Sidebar categories */
.sidebar-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text2);
    font-size: 13px;
    transition: all 0.2s;
}

.sidebar-cat-item:hover {
    background: var(--bg4);
    color: var(--text);
}

.sidebar-cat-count {
    background: var(--bg4);
    border: 1px solid var(--border);
    color: var(--text3);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

/* ════════════════════════════════════════════════════════════
   PREV / NEXT NAVIGATION
   ════════════════════════════════════════════════════════════ */
.news-nav-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.news-nav-btn {
    padding: 22px 26px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.news-nav-btn:hover {
    border-color: var(--gold-border);
    background: var(--bg4);
    transform: translateY(-2px);
}

.news-nav-right {
    text-align: right;
}

.news-nav-dir {
    font-size: 11px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.news-nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text2);
    line-height: 1.5;
    transition: color 0.2s;
}

.news-nav-btn:hover .news-nav-title {
    color: var(--text);
}

/* ════════════════════════════════════════════════════════════
   REVEAL ANIMATION
   ════════════════════════════════════════════════════════════ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {

    #news-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-detail-layout {
        grid-template-columns: 1fr 280px;
        gap: 36px;
    }
}

@media (max-width: 1024px) {
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 900px) {
    .news-hero {
        grid-template-columns: 1fr;
    }

    .news-featured {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 768px) {
    .section-berita {
        padding: calc(65px + 48px) 16px 80px;
    }

    .news-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .news-search-wrap {
        max-width: 100%;
    }

    .news-toolbar-right {
        flex-direction: column;
        align-items: stretch;
    }

    .news-filter-tabs {
        justify-content: flex-start;
        gap: 6px;
    }

    #news-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-popular-grid {
        grid-template-columns: 1fr;
    }

    .news-nav-btns {
        grid-template-columns: 1fr;
    }

    .news-nav-right {
        text-align: left;
    }

    .news-detail-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .news-detail-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-share-group {
        margin-left: 0;
    }

    .news-detail-title {
        font-size: clamp(22px, 6vw, 34px);
    }

    .news-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .news-nav-btns {
        margin-top: 32px;
        padding-top: 32px;
    }

    .news-featured-body {
        padding: 20px 20px 24px;
    }

    .news-lead {
        font-size: 15px !important;
        padding: 14px 18px;
    }
}

@media (max-width: 480px) {
    .news-popular-item {
        gap: 10px;
        padding: 14px 16px;
    }

    .news-popular-rank {
        font-size: 24px;
        width: 28px;
    }

    .news-detail-info {
        gap: 10px;
        font-size: 12px;
    }
}

/* ════════════════════════════════════════════════════════════
   DETAIL NEWS — detail-news.blade.php
   ════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════
   READING PROGRESS BAR
══════════════════════════════════════════════════════ */
#nd-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), #f0d060);
    z-index: 9999;
    transition: width .1s linear;
    box-shadow: 0 0 12px rgba(201, 168, 76, .7);
}

/* ══════════════════════════════════════════════════════
   CINEMATIC HERO
══════════════════════════════════════════════════════ */
.nd-cinematic {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--deep);
}

.nd-cinematic-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 6s ease;
    display: block;
}

.nd-cinematic.loaded .nd-cinematic-bg {
    transform: scale(1);
}

.nd-cinematic-emoji-bg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 180px;
    opacity: .06;
}

.nd-cinematic-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .15) 80%, transparent 100%),
        linear-gradient(to right, rgba(0, 0, 0, .3) 0%, transparent 60%);
}

.nd-cinematic-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 28px 52px;
}

.nd-cinematic-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    margin-bottom: 32px;
    padding-top: 32px;
    display: flex;
    width: fit-content;
    transition: color .2s;
}

.nd-cinematic-back:hover {
    color: var(--gold);
}

.nd-cinematic-cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: rgba(201, 168, 76, .2);
    border: 1px solid rgba(201, 168, 76, .5);
    color: var(--gold);
    border-radius: 4px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.nd-cinematic-title {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -.01em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .4);
}

.nd-cinematic-meta {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
}

.nd-cinematic-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.nd-cinematic-meta-item:first-child {
    padding-left: 0;
}

.nd-cinematic-meta-item:last-child {
    border-right: none;
}

/* ══════════════════════════════════════════════════════
   ARTICLE LAYOUT
══════════════════════════════════════════════════════ */
.nd-layout {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px 100px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 52px;
    align-items: start;
}

.nd-article {
    min-width: 0;
    padding-top: 52px;
}

.nd-sidebar {
    position: sticky;
    top: 28px;
    padding-top: 52px;
}

/* ══════════════════════════════════════════════════════
   ARTICLE BODY
══════════════════════════════════════════════════════ */
.nd-body {
    font-size: 1.05rem;
    line-height: 1.92;
    color: var(--text);
    margin-bottom: 48px;
}

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

.nd-body h2.news-h2 {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.6em 0 .9em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 14px;
}

.nd-body h2.news-h2::before {
    content: '';
    display: block;
    width: 28px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.nd-body blockquote.news-quote {
    border-left: 3px solid var(--gold);
    margin: 2.2em 0;
    padding: 1.2em 1.8em;
    background: rgba(201, 168, 76, .06);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.75;
    position: relative;
}

.nd-body blockquote.news-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: var(--gold);
    opacity: .25;
    position: absolute;
    top: -10px;
    left: 14px;
    line-height: 1;
    font-family: Georgia, serif;
}

.nd-body hr.news-hr {
    border: none;
    margin: 2.8em 0;
    text-align: center;
}

.nd-body hr.news-hr::after {
    content: '\2726  \2726  \2726';
    color: var(--gold);
    font-size: .8rem;
    letter-spacing: .4em;
    opacity: .6;
}

.nd-body ul.news-ul {
    padding-left: 0;
    margin: .8em 0 1.5em;
    list-style: none;
}

.nd-body ul.news-ul li {
    padding: .38em 0 .38em 1.6em;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.nd-body ul.news-ul li:last-child {
    border-bottom: none;
}

.nd-body ul.news-ul li::before {
    content: '\25B8';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: .9rem;
}

.nd-body strong {
    font-weight: 700;
    color: var(--text);
}

/* ══════════════════════════════════════════════════════
   REACTIONS / ENGAGEMENT BAR
══════════════════════════════════════════════════════ */
.nd-engage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .1);
}

.nd-engage-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .84rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    transition: all .22s;
    line-height: 1;
}

.nd-engage-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, .08);
}

.nd-engage-btn.liked {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, .14);
}

@keyframes nd-pop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.22);
    }

    70% {
        transform: scale(.92);
    }

    100% {
        transform: scale(1);
    }
}

.nd-engage-btn.like-pop {
    animation: nd-pop .32s ease;
}

.nd-share-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: .82rem;
    font-family: 'Lato', sans-serif;
    transition: all .2s;
}

.nd-share-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   COMMENT SECTION
══════════════════════════════════════════════════════ */
.nd-comments-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.nd-comments-title {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.nd-comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, .1);
    border: 1px solid rgba(201, 168, 76, .3);
    color: var(--gold);
    font-size: .74rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 3px 12px;
}

.nd-comments-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Compose */
.nd-compose {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    align-items: flex-start;
}

.nd-compose-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(201, 168, 76, .1);
    border: 2px solid rgba(201, 168, 76, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    overflow: hidden;
}

.nd-compose-box {
    flex: 1;
}

.nd-mention-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .76rem;
    color: var(--gold);
    background: rgba(201, 168, 76, .07);
    border: 1px solid rgba(201, 168, 76, .2);
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 8px 14px;
}

.nd-mention-clear {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
    margin-left: auto;
    padding: 0;
    line-height: 1;
}

.nd-compose-textarea {
    width: 100%;
    background: var(--panel);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Lato', sans-serif;
    font-size: .88rem;
    padding: 14px 16px;
    outline: none;
    resize: none;
    transition: border-color .2s, box-shadow .2s;
    min-height: 90px;
    line-height: 1.65;
    box-sizing: border-box;
}

.nd-compose-textarea.has-mention {
    border-radius: 0 0 10px 10px;
}

.nd-compose-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .1);
}

.nd-compose-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 10px;
    gap: 8px;
}

.nd-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--gold);
    color: var(--deep);
    border: none;
    border-radius: 8px;
    font-size: .84rem;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    transition: all .2s;
}

.nd-send-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.nd-send-btn:not(:disabled):hover {
    background: var(--gold-light, #d4b060);
    transform: translateY(-1px);
}

.nd-login-hint {
    font-size: .84rem;
    color: var(--muted);
    padding: 16px 20px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    margin-bottom: 24px;
}

.nd-login-hint a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
}

/* Comment list */
.nk-list {
    display: flex;
    flex-direction: column;
}

.nk-item {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.nk-item:last-child {
    border-bottom: none;
}

.nk-item-inner {
    display: flex;
    gap: 14px;
}

.nk-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(201, 168, 76, .1);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    flex-shrink: 0;
    overflow: hidden;
}

.nk-content {
    flex: 1;
    min-width: 0;
}

.nk-author-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.nk-author {
    font-size: .86rem;
    font-weight: 700;
    color: var(--text);
}

.nk-role-badge {
    font-size: .63rem;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: .06em;
}

.role-admin {
    background: rgba(201, 168, 76, .12);
    border: 1px solid rgba(201, 168, 76, .3);
    color: var(--gold);
}

.role-jemaat {
    background: var(--deep);
    border: 1px solid var(--border);
    color: var(--muted);
}

.nk-time {
    font-size: .72rem;
    color: var(--muted);
    margin-left: auto;
}

.nk-body {
    font-size: .88rem;
    color: var(--text);
    line-height: 1.72;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Mention @Nama dalam komentar / balasan berita */
.nk-mention {
    color: var(--gold);
    font-weight: 700;
    font-size: inherit;
}

.nk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 10px;
}

.nk-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: .78rem;
    font-weight: 500;
    color: var(--muted);
    font-family: 'Lato', sans-serif;
    padding: 0;
    transition: color .2s;
}

.nk-action-btn:hover,
.nk-action-btn.liked {
    color: var(--gold);
}

.nk-delete-btn {
    color: var(--danger, #e05) !important;
    margin-left: auto;
}

.nk-balasans {
    margin-top: 16px;
    margin-left: 54px;
    border-left: 2px solid var(--border);
    padding-left: 18px;
}

.nk-balasan-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.nk-balasan-item:last-child {
    border-bottom: none;
}

@keyframes nk-slide-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nk-new-item {
    animation: nk-slide-in .3s ease;
}

.nk-load-more {
    text-align: center;
    padding: 20px 0;
}

.nk-load-more-btn {
    background: var(--panel);
    border: 1.5px solid var(--border);
    color: var(--muted);
    border-radius: 8px;
    padding: 10px 28px;
    font-family: 'Lato', sans-serif;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

.nk-load-more-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* ══════════════════════════════════════════════════════
   RELATED ARTICLES
══════════════════════════════════════════════════════ */
.nd-related {
    margin-top: 60px;
}

.nd-related-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.nd-related-title {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.nd-related-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.nd-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.nd-rel-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 18px 16px;
    text-decoration: none;
    display: block;
    transition: all .22s;
    position: relative;
    overflow: hidden;
}

.nd-rel-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s;
}

.nd-rel-card:hover {
    border-color: rgba(201, 168, 76, .4);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
}

.nd-rel-card:hover::after {
    transform: scaleX(1);
}

.nd-rel-title {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: .88rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 8px;
    transition: color .2s;
}

.nd-rel-card:hover .nd-rel-title {
    color: var(--gold);
}

.nd-rel-meta {
    font-size: .73rem;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.nd-sidebar-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}

.nd-sidebar-card-head {
    padding: 14px 20px;
    background: rgba(201, 168, 76, .07);
    border-bottom: 1px solid var(--border);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nd-sidebar-card-body {
    padding: 18px 20px;
}

.nd-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: .83rem;
    color: var(--muted);
}

.nd-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nd-stat-val {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 1.05rem;
    color: var(--gold);
    font-weight: 700;
}

.nd-sb-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.nd-sb-share-btn {
    flex: 1;
    min-width: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: 'Lato', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
}

.nd-sb-share-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, .07);
}

.nd-sb-like-big {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 0;
}

.nd-sb-like-big-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all .3s;
    line-height: 1;
}

.nd-sb-like-big-btn:hover {
    border-color: var(--gold);
    transform: scale(1.1);
}

.nd-sb-like-big-btn.liked {
    border-color: var(--gold);
    background: rgba(201, 168, 76, .12);
}

.nd-sb-like-count {
    font-family: var(--font-serif, 'Cinzel', serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.nd-sb-like-label {
    font-size: .72rem;
    color: var(--muted);
}

.nd-sb-rel-link {
    display: block;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.nd-sb-rel-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.nd-sb-rel-title {
    font-size: .84rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
    transition: color .2s;
}

.nd-sb-rel-link:hover .nd-sb-rel-title {
    color: var(--gold);
}

.nd-sb-rel-meta {
    font-size: .71rem;
    color: var(--muted);
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE — DETAIL NEWS
══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .nd-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 16px 80px;
    }

    .nd-sidebar {
        position: static;
        padding-top: 0;
    }

    .nd-article {
        padding-top: 36px;
    }

    .nd-cinematic {
        min-height: 400px;
    }

    .nd-cinematic-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .nd-related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .nd-cinematic {
        min-height: 340px;
    }

    .nd-cinematic-body {
        padding: 0 16px 40px;
    }

    .nd-cinematic-meta-item {
        padding: 0 8px;
        font-size: .74rem;
    }

    .nd-engage {
        gap: 8px;
        padding: 14px 16px;
    }

    .nd-engage-btn {
        padding: 8px 14px;
        font-size: .8rem;
    }

    .nd-layout {
        padding: 0 14px 80px;
    }
