* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a237e;
    --primary-dark: #0d1442;
    --accent: #c62828;
    --accent-dark: #a51f1f;
    --text: #2c2c2c;
    --text-light: #6b7280;
    --border: #e5e7eb;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f0f2f5;
    color: var(--text);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Poppins', Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-top: 20px;
}

.main-content {
    flex: 3;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 260px;
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.btn:hover {
    background: var(--primary-dark);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-img {
    position: relative;
    height: 160px;
    background: #e0e0e0;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-img span {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 3px;
}

.card-body {
    padding: 12px;
}

.card-body h4 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.card-body h4 a:hover {
    color: var(--primary);
}

.card-body small {
    color: #777;
    font-size: 0.8rem;
}

.card-body p {
    color: #555;
    font-size: 0.85rem;
    margin: 8px 0;
}

.card-body .btn-outline {
    display: inline-block;
    background: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}

.card-body .btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

h3.section-title {
    font-size: 1.2rem;
    border-left: 4px solid var(--primary);
    padding-left: 10px;
    margin: 30px 0 15px;
}

.main-content h3.section-title:first-child {
    margin-top: 0;
}

.box {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.box-title {
    background: var(--primary);
    color: #fff;
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.populer-list {
    padding: 6px 14px;
}

.populer-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.populer-item:last-child {
    border-bottom: none;
}

.populer-thumb {
    flex: 0 0 60px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    background: #e0e0e0;
}

.populer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.populer-info h5 {
    font-size: 0.85rem;
    line-height: 1.3;
    margin-bottom: 4px;
}

.populer-info h5 a:hover {
    color: var(--primary);
}

.populer-info small {
    color: #999;
    font-size: 0.7rem;
}

.populer-empty {
    padding: 16px 14px;
    color: #999;
    font-size: 0.85rem;
    text-align: center;
}

.ad-box .box-title {
    background: var(--accent);
}

.ad-slot {
    display: block;
    width: 100%;
    border-radius: 6px;
    margin: 12px 0;
    overflow: hidden;
    text-align: center;
}

.ad-slot img {
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ad-slot .ad-nama {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 6px;
    font-weight: 600;
}

.breadcrumb {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.65rem;
}

.article {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 25px;
}

.article-img {
    width: 100%;
    max-height: 420px;
    overflow: hidden;
    background: #e0e0e0;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-img-caption {
    padding: 8px 24px;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
}

.article-body {
    padding: 24px;
}

.article-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.article-title {
    font-size: 1.6rem;
    line-height: 1.35;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-light);
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-content {
    font-size: 1rem;
    color: #333;
}

.article-content p {
    margin-bottom: 14px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
    margin: 20px 0 10px;
}

.article-content img {
    border-radius: 6px;
    margin: 14px 0;
}

.article-content ul,
.article-content ol {
    margin: 0 0 14px 22px;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    background: #f7f7fa;
    padding: 10px 16px;
    margin: 14px 0;
    color: #444;
    font-style: italic;
}

.article-content pre {
    background: #1e1e2e;
    color: #eee;
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 14px 0;
    font-size: 0.85rem;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== Share ===== */
.share-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.share-label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #333;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    transition: opacity .15s ease, transform .15s ease;
}

.share-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.share-btn i {
    font-size: 0.95rem;
}

.share-whatsapp {
    background: #25D366;
}

.share-telegram {
    background: #229ED9;
}

.share-facebook {
    background: #1877F2;
}

.share-x {
    background: #000000;
}

.share-tiktok {
    background: #000000;
}

.share-instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.share-copy {
    background: #4b5563;
}

.share-native {
    background: var(--primary);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: #1a1a1a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== 404 ===== */
.not-found {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 60px 24px;
    text-align: center;
}

.not-found i {
    font-size: 2.6rem;
    color: var(--accent);
    margin-bottom: 16px;
}

.not-found h2 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.not-found p {
    color: var(--text-light);
    margin-bottom: 18px;
    font-size: 0.9rem;
}

@media(max-width:900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
    }
}

@media(max-width:600px) {
    .article-img {
        max-height: 220px;
    }

    .article-title {
        font-size: 1.3rem;
    }
}