/* ====== BASE ====== */
:root {
    --bg: #f6f8fb;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(226, 232, 240, 0.9);
    --card: #ffffff;
    --primary: #2563eb;
}

* {
    box-sizing: border-box;
}
body {
    background: var(--bg);
    color: var(--text);
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 20px;
    width: 100%;
}

/* cegah elemen nyelonong ke kanan */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
main {
    overflow-x: hidden;
}

/* ====== HERO ====== */
.news-hero {
    padding: 18px 0 6px;
}
.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}
.news-hero h1 {
    font-size: 28px;
    margin: 0;
}
.news-hero p {
    margin: 6px 0 0;
    color: var(--muted);
}

/* ====== TOOLBAR ====== */
.news-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 18px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
    transition: 0.2s ease;
}
.chip:hover {
    transform: translateY(-1px);
}

/* ====== LAYOUT GRID ====== */
.news-layout {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 980px) {
    .news-layout {
        grid-template-columns: 1fr;
    }
}

/* ====== FEATURED ====== */
.featured {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.featured .thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: #e9eef6;
    overflow: hidden;
}
.featured .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.25s ease;
}
.featured:hover .thumb img {
    transform: scale(1.02);
}
.featured .body {
    padding: 14px 14px 16px;
}
.meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}
.featured h2 {
    margin: 8px 0 10px;
    font-size: 20px;
    line-height: 1.25;
}
.excerpt {
    color: #334155;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
    border: 1px solid rgba(37, 99, 235, 0.25);
    background: rgba(37, 99, 235, 0.12);
    color: #1e40af;
    transition: 0.2s ease;
}
.btn:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.16);
}

/* ====== GRID CARDS ====== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}
@media (max-width: 680px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}
.card .thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: #e9eef6;
    overflow: hidden;
}
.card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card .body {
    padding: 12px;
}

.card h3 {
    margin: 8px 0 8px;
    font-size: 16px;
    line-height: 1.25;
}

/* clamp biar rapi */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .excerpt {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
}

/* ====== SIDEBAR ====== */
.sidebar {
    position: sticky;
    top: 92px;
}
@media (max-width: 980px) {
    .sidebar {
        position: static;
        top: auto;
    }
}

.widget {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}
.widget h4 {
    margin: 0 0 10px;
}
.widget a {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 900;
}
.widget a:hover {
    background: rgba(37, 99, 235, 0.08);
}
.widget .small {
    font-size: 13px;
    color: var(--muted);
    font-weight: 800;
}

/* ====== PAGINATION (Tailwind default links) ====== */
.pagination {
    margin-top: 18px;
}

/* ====== DETAIL PAGE ====== */
.news-detail {
    padding: 10px 0 24px;
}

.detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.news-breadcrumb {
    color: var(--muted);
    font-weight: 800;
    font-size: 13px;
}
.news-breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}
.news-breadcrumb a:hover {
    text-decoration: underline;
}

.news-dot {
    margin: 0 6px;
    opacity: 0.7;
}

.btn-ghost {
    display: inline-flex;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    font-weight: 900;
    text-decoration: none;
    color: var(--text);
}

.news-article-title {
    margin: 8px 0 10px;
    font-size: 30px;
    line-height: 1.15;
}

.news-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    font-weight: 900;
    color: var(--text);
    font-size: 13px;
}

.news-banner {
    margin-top: 10px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e9eef6;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}
.news-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}
.btn-outline {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border: 1px solid var(--line);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.85fr;
    gap: 18px;
    align-items: start;
}
@media (max-width: 980px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

.news-article-body {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.news-content {
    font-size: 16px;
    line-height: 1.9;
    color: #0f172a;
}
.news-content p {
    margin: 0 0 12px;
}

.news-writer {
    margin-top: 16px;
    font-weight: 900;
    color: var(--muted);
}

.detail-sidebar {
    position: sticky;
    top: 92px;
}
@media (max-width: 980px) {
    .detail-sidebar {
        position: static;
        top: auto;
    }
}

.side-link {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    color: var(--text);
}
.side-link:hover {
    background: rgba(37, 99, 235, 0.08);
}

.side-item {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
}
.side-item:hover {
    background: rgba(37, 99, 235, 0.08);
}
.side-title {
    font-weight: 900;
    color: var(--text);
}
.side-date {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted);
    margin-top: 4px;
}

/* ========= NEWS PAGE (PRO) ========= */
.news-page-wrap {
    padding: 14px 0 26px;
}

.news-hero-pro {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.hero-left {
    flex: 1;
    min-width: 0;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    background: rgba(15, 118, 110, 0.1);
    border: 1px solid rgba(15, 118, 110, 0.18);
    color: #0f766e;
}

.news-hero-pro h1 {
    margin: 10px 0 6px;
    font-size: 28px;
    line-height: 1.15;
    color: #0f172a;
}

.news-hero-pro p {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    max-width: 720px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(226, 232, 240, 0.9);
    font-weight: 900;
    font-size: 13px;
    color: #0f172a;
    text-decoration: none;
}

.chip-soft {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
    color: #1e40af;
}
.chip-link:hover {
    transform: translateY(-1px);
}

.hero-right {
    width: 260px;
}
/* ===== MINI QUICK ACTION CARD ===== */
.hero-mini-card {
    height: 100%;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(
        180deg,
        rgba(37, 99, 235, 0.14),
        rgba(37, 99, 235, 0.04)
    );
    border: 1px solid rgba(37, 99, 235, 0.18);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.mini-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 1000;
    color: #0f172a;
    margin-bottom: 12px;
}

.mini-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.mini-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.9);
    transition: 0.2s ease;
}
.mini-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
}

.mini-ico {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.16);
    font-size: 16px;
}

.mini-arrow {
    margin-left: auto;
    opacity: 0.8;
    font-weight: 1000;
}

.mini-links a {
    display: block;
    padding: 10px 10px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 900;
    color: #0f172a;
}
.mini-links a:hover {
    background: rgba(37, 99, 235, 0.1);
}

@media (max-width: 980px) {
    .news-hero-pro {
        flex-direction: column;
    }
    .hero-right {
        width: 100%;
    }
}

/* Grid kartu berita */
.news-grid-pro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 820px) {
    .news-grid-pro {
        grid-template-columns: 1fr;
    }
}

.news-card-pro {
    display: flex;
    gap: 14px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    transition: 0.2s ease;
}
.news-card-pro:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.news-card-pro .thumb {
    width: 230px;
    flex: 0 0 230px;
    background: #e9eef6;
    overflow: hidden;
}
.news-card-pro .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.25s ease;
}
.news-card-pro:hover .thumb img {
    transform: scale(1.04);
}

.news-card-pro .body {
    padding: 14px 14px 14px 0;
    min-width: 0;
    flex: 1;
}

.meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-weight: 900;
    font-size: 13px;
}
.meta .dot {
    opacity: 0.7;
}

.title {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.25;
}
.title a {
    color: #0f172a;
    text-decoration: none;
}
.title a:hover {
    text-decoration: underline;
}

.excerpt {
    margin: 0;
    color: #475569;
    line-height: 1.7;
    font-size: 14px;
}

.btn-read {
    display: inline-flex;
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.22);
    color: #1e40af;
    font-weight: 1000;
    text-decoration: none;
    transition: 0.2s ease;
}
.btn-read:hover {
    transform: translateY(-1px);
    background: rgba(37, 99, 235, 0.16);
}

.pagination-wrap {
    margin-top: 18px;
}

/* clamp */
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.empty-state {
    text-align: center;
    padding: 30px 0;
    color: #64748b;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
}

/* ===== SHARE BOX ===== */
.share-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 18px 0 22px;
}

.share-label {
    font-weight: 900;
    font-size: 14px;
    color: #475569;
    margin-right: 6px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

/* ICON */
.share-btn .icon {
    width: 18px;
    height: 18px;
}

/* WhatsApp */
.share-btn.wa {
    color: #0f5132;
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.25);
}
.share-btn.wa:hover {
    background: rgba(25, 135, 84, 0.18);
    transform: translateY(-1px);
}

/* Facebook */
.share-btn.fb {
    color: #0d47a1;
    background: rgba(24, 119, 242, 0.12);
    border-color: rgba(24, 119, 242, 0.25);
}
.share-btn.fb:hover {
    background: rgba(24, 119, 242, 0.18);
    transform: translateY(-1px);
}

/* Copy link */
.share-btn.link {
    color: #1e293b;
    background: rgba(148, 163, 184, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
}
.share-btn.link:hover {
    background: rgba(148, 163, 184, 0.28);
    transform: translateY(-1px);
}

/* mobile */
@media (max-width: 640px) {
    .share-label {
        width: 100%;
        margin-bottom: 4px;
    }

    /* ===== QUICK SERVICE SIDEBAR ===== */
    .quick-service {
        padding: 16px;
    }

    .quick-title {
        font-size: 16px;
        font-weight: 1000;
        margin-bottom: 12px;
        color: #0f172a;
    }

    .quick-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 14px;
        text-decoration: none;
        background: rgba(248, 250, 252, 0.95);
        border: 1px solid rgba(226, 232, 240, 0.9);
        font-weight: 900;
        color: #0f172a;
        transition: 0.2s ease;
    }

    .quick-link:last-child {
        margin-bottom: 0;
    }

    .quick-link:hover {
        transform: translateY(-1px);
        border-color: rgba(37, 99, 235, 0.3);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    }

    .quick-icon {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(37, 99, 235, 0.1);
        font-size: 16px;
    }

    .quick-text {
        flex: 1;
    }

    .quick-arrow {
        opacity: 0.7;
        font-size: 16px;
    }
}

/* SLIDE */

/* ===== FULL WIDTH NEWS BANNER ===== */
.news-hero-banner {
    width: 100%;
    min-height: 320px;
    background-image: url("../img/berita-banner2.png"); /* GANTI GAMBAR DI SINI */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.news-hero-overlay {
    min-height: 320px;
    display: flex;
    align-items: center;
}

.news-hero-banner .news-hero-pro {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
}

.news-hero-banner .hero-badge {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: #e5f0ff;
}

.news-hero-banner h1 {
    color: #ffffff;
}

.news-hero-banner p {
    color: #ffffff;
}

.news-hero-banner .chip {
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}
