/* ===== Berita ===== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.news-item {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-ice);
    border-radius: 14px;
    padding: 22px 24px;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.08);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.news-title a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--accent-primary);
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.news-summary {
    color: var(--text-main);
    margin-bottom: 12px;
}

.article-title {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin: 10px 0 6px;
}

.article-body {
    margin-top: 16px;
    color: var(--text-main);
    white-space: pre-line;
}

/* ===== Berita: toolbar admin, thumbnail, galeri, form ===== */
.berita-toolbar {
    margin-bottom: 18px;
}

.berita-admin-aksi {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 14px;
}

.news-thumb {
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border-ice);
}

.news-thumb img {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
}

.berita-gambar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0 18px;
}

.berita-gambar a {
    display: block;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-ice);
    background: rgba(8, 21, 36, 0.4);
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.berita-gambar a:hover {
    transform: translateY(-3px);
    border-color: var(--accent-primary);
}

.berita-gambar img {
    display: block;
    max-width: 320px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: cover;
}

.form-berita {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-ice);
    border-radius: 16px;
    padding: 22px 24px;
    backdrop-filter: blur(10px);
}

.form-label-berita {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
}

.form-label-berita .opsional {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-berita input[type="text"],
.form-berita textarea {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-ice);
    background: rgba(8, 21, 36, 0.55);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.form-berita textarea {
    resize: vertical;
    line-height: 1.6;
}

.form-berita input[type="text"]:focus,
.form-berita textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(95, 211, 240, 0.15);
}

.form-berita-aksi {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.form-berita-aksi button {
    padding: 11px 26px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: var(--accent-primary);
    color: #04121f;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
    box-shadow: 0 6px 18px rgba(95, 211, 240, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-berita-aksi button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(95, 211, 240, 0.45);
}

.gambar-hapus-item {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-soft);
    cursor: pointer;
}

.gambar-hapus-item img {
    max-width: 140px;
    max-height: 110px;
    border-radius: 10px;
    border: 1px solid var(--border-ice);
    object-fit: cover;
}

/* ===== Bagikan berita (tombol mengambang) ===== */
.berita-share {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 12px 10px;
    border: 1px solid var(--border-ice);
    border-radius: 999px;
    background: rgba(8, 21, 36, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.share-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    font-size: 0.58rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(180deg, var(--highlight), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-primary);
    margin: 2px 0 4px;
}

.share-sep {
    width: 20px;
    height: 1px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--border-ice), transparent);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-ice);
    background: rgba(8, 21, 36, 0.5);
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    background: rgba(95, 211, 240, 0.12);
}

.share-btn svg {
    width: 18px;
    height: 18px;
    display: block;
}

.share-wa:hover { border-color: #25d366; background: rgba(37, 211, 102, 0.15); color: #25d366; }
.share-x:hover { border-color: #e8f4fb; background: rgba(232, 244, 251, 0.12); color: var(--highlight); }
.share-fb:hover { border-color: #1877f2; background: rgba(24, 119, 242, 0.15); color: #1877f2; }
.share-tg:hover { border-color: #2aabee; background: rgba(42, 171, 238, 0.15); color: #2aabee; }
.share-copy:hover, .share-native:hover { color: var(--highlight); }

.share-copy.tersalin {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.22);
    color: #25d366;
}

@media (max-width: 992px) {
    .berita-share {
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 14px;
        padding: 10px 12px;
        border-radius: 16px 16px 0 0;
    }

    .share-label {
        writing-mode: horizontal-tb;
        transform: none;
        align-self: center;
        margin: 0 4px 0 0;
    }

    .share-btn {
        width: 38px;
        height: 38px;
    }
}