/* Enhancement khusus halaman berita dan detail berita */
.news-page-hero,
.article-header-upgrade {
    position: relative;
    overflow: hidden;
}

.news-page-hero::after,
.article-header-upgrade::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    pointer-events: none;
}

.hero-kicker,
.article-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.news-main-search {
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.search-result-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 18px;
    background: #eef6ff;
    color: #24415f;
    border: 1px solid #dbeafe;
}

.search-result-note a {
    margin-left: auto;
    font-weight: 700;
    text-decoration: none;
}

.news-card-upgrade {
    border: 1px solid rgba(15, 23, 42, .08);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.news-card-upgrade:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, .12);
    border-color: rgba(37, 99, 235, .2);
}

.news-image-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.news-image-link img {
    transition: transform .35s ease;
}

.news-card-upgrade:hover .news-image-link img {
    transform: scale(1.05);
}

.news-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #075985;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0d6efd;
    font-weight: 800;
    text-decoration: none;
}

.read-more-link i {
    transition: transform .2s ease;
}

.read-more-link:hover i {
    transform: translateX(4px);
}

.empty-news-state {
    text-align: center;
    padding: 50px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, .16);
    box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}

.empty-news-state > i {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 2rem;
    margin-bottom: 16px;
}

.article-container-wide {
    max-width: 1180px;
}

.article-main-card,
.comments-box-upgrade {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.article-main-card {
    padding: 18px;
}

.article-thumb-upgrade {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 22px;
}

.article-meta-upgrade {
    gap: 10px 18px;
}

.share-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef7ff 55%, #f0fdf4 100%);
    border: 1px solid rgba(37, 99, 235, .12);
}

.share-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 900;
    color: #0f172a;
    margin-bottom: 12px;
}

.share-panel-title i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #fff;
    color: #0d6efd;
    box-shadow: 0 10px 20px rgba(15, 23, 42, .08);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: .9rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, .18);
    opacity: .94;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.twitter { background: #0f172a; }
.share-btn.telegram { background: #229ed9; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.copy-link { background: #64748b; cursor: pointer; }

.share-hint {
    display: block;
    margin-top: 10px;
    color: #64748b;
}

.article-content-upgrade {
    padding: 4px 8px 10px;
}

.comment-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.section-mini-label {
    color: #0d6efd;
    font-size: .8rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.comment-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
    font-size: .86rem;
}

.comment-item-upgrade {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
}

.comment-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #14b8a6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.news-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 16px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
    padding: 16px;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #0f172a;
}

.sidebar-title span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
    color: #0d6efd;
}

.sidebar-search {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .08);
}

.sidebar-search input {
    border: 0;
    background: transparent;
    outline: none;
    min-width: 0;
    width: 100%;
    padding-left: 10px;
}

.sidebar-search button {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 0;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
}

.sidebar-list {
    display: grid;
    gap: 12px;
}

.sidebar-news-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    padding: 10px;
    border-radius: 18px;
    transition: background .2s ease, transform .2s ease;
}

.sidebar-news-item:hover {
    background: #f8fafc;
    transform: translateX(3px);
}

.sidebar-thumb-wrap {
    width: 70px;
    height: 58px;
    flex: 0 0 70px;
    overflow: hidden;
    border-radius: 14px;
    background: #e2e8f0;
}

.sidebar-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-news-item h6,
.event-mini-item h6,
.file-mini-item h6 {
    margin: 0 0 4px;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-item small,
.event-mini-item small,
.file-mini-item small {
    color: #64748b;
    font-size: .78rem;
}

.sidebar-news-item.compact {
    padding: 10px 12px;
    border: 1px solid rgba(15, 23, 42, .06);
    background: #fbfdff;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.quick-menu-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 84px;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, .06);
    font-weight: 800;
    font-size: .86rem;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.quick-menu-grid a:hover {
    transform: translateY(-3px);
    background: #0d6efd;
    color: #fff;
}

.quick-menu-grid i {
    font-size: 1.35rem;
}

.event-mini-list,
.file-mini-list {
    display: grid;
    gap: 12px;
}

.event-mini-item,
.file-mini-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
    padding: 10px;
    border-radius: 18px;
    background: #fbfdff;
    border: 1px solid rgba(15, 23, 42, .06);
}

.event-date-box {
    width: 48px;
    flex: 0 0 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd, #14b8a6);
    color: #fff;
    text-align: center;
    padding: 7px 4px;
    box-shadow: 0 10px 22px rgba(13, 110, 253, .18);
}

.event-date-box strong {
    display: block;
    font-size: 1.1rem;
    line-height: 1;
}

.event-date-box span {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
}

.file-mini-item > i {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 14px;
    background: #eff6ff;
    color: #0d6efd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.sidebar-empty {
    margin: 0;
    color: #64748b;
    font-size: .9rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.article-tags .badge {
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.18) !important;
    transition: all 0.2s ease;
}

.article-tags .badge:hover {
    color: #fff;
    background: #2563eb !important;
    border-color: #2563eb !important;
}

@media (max-width: 991.98px) {
    .news-sidebar {
        position: static;
        margin-top: 8px;
    }

    .article-main-card {
        padding: 12px;
        border-radius: 22px;
    }

    .share-btn span {
        display: none;
    }

    .share-btn {
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .search-result-note,
    .comment-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-result-note a {
        margin-left: 0;
    }

    .quick-menu-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .quick-menu-grid a {
        min-height: 72px;
        font-size: .72rem;
        border-radius: 16px;
    }

    .quick-menu-grid i {
        font-size: 1.15rem;
    }
}
