/* ========================
   GLOBAL
======================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: #f0f4f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================
   HEADER
======================== */
header {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center; /* tetap tengah di layar */
    align-items: center;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

.logo-link .logo {
    height: 45px;   /* atur ukuran logo */
    width: auto;
    margin-right: 12px;
}

.logo-link .site-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
}


/* ========================
   CONTAINER
======================== */
.container {
    display: flex;
    max-width: 1300px;
    margin: 30px auto;
    gap: 25px;
    flex: 1;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ========================
   MAIN
======================== */
.main {
    flex: 3;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    text-align: left;
}

/* ========================
   MAIN ARTICLE-PAGE
======================== */
.main.article-page {
    flex: 3;
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-align: left;
}

/* Artikel satu per satu (linear) */
.article-item {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.article-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #3742fa;
    margin-bottom: 8px;
}

.article-date {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.article-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.article-desc a {
    color: #3742fa;
    font-weight: 700;
}

.article-desc a:hover {
    color: #2f3542;
    text-decoration: underline;
}

/* ========================
   SIDEBAR
======================== */
.sidebar {
    flex: 1;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e90ff;
    border-bottom: 2px solid #1e90ff;
    padding-bottom: 8px;
}

.sidebar ul li a {
    color: #2f3542;
    font-weight: 500;
    transition: 0.3s;
}

.sidebar ul li a:hover {
    color: #3742fa;
}

/* ========================
   PAGINATION
======================== */
.pagination a {
    background: #3742fa;
    color: #fff;
    text-align: center;
    line-height: 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.pagination a.active {
    background: #ff4757;
}

.pagination a:hover {
    transform: scale(1.1);
}

/* ========================
   FOOTER
======================== */
footer {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    text-align: center;
    padding: 30px 15px;
    font-size: 15px;
    box-shadow: 0 -4px 8px rgba(0,0,0,0.1);
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

footer a {
    color: #ffdd59;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================
   MEDIA QUERIES
======================== */
@media screen and (max-width: 992px) {
    .container {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .main, .sidebar {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 15px;
        box-sizing: border-box;
    }
}

@media screen and (max-width: 768px) {
    .article-title {
        font-size: 22px;
    }
    .article-desc {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .article-title {
        font-size: 20px;
    }
    .article-desc {
        font-size: 14px;
        line-height: 1.5;
    }
    .pagination a {
        width: 30px;
        height: 30px;
        line-height: 30px;
        font-size: 14px;
    }
}

/* ========================
   SPONSORED / EXTERNAL LINKS
======================== */
.sidebar h3.sponsored {
    font-size: 20px;
    color: #e1306c; /* warna khas Instagram */
    margin-bottom: 10px;
    border-bottom: 2px solid #e1306c;
    padding-bottom: 6px;
}

.external-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.external-links a {
    display: inline-block;
    background: #e1306c;       /* warna utama tombol Instagram */
    color: #fff;               /* teks putih */
    padding: 8px 15px;         /* jarak dalam tombol */
    border-radius: 8px;        /* sudut membulat */
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease; /* animasi halus */
    text-decoration: none;
}

.external-links a:hover {
    background: #c13584;       /* warna saat hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Responsive untuk layar kecil */
@media screen and (max-width: 480px) {
    .external-links {
        flex-direction: column;
    }
    .external-links a {
        width: 100%;
        text-align: center;
    }
}

/* ========================
   NAV ARTICLE
======================== */
.nav-article {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 10px 15px;
    background: #f0f4f8;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-size: 16px;
}

.nav-article a {
    display: inline-block;
    background: #3742fa;       /* warna tombol */
    color: #fff;               /* teks putih */
    padding: 10px 20px;
    border-radius: 50px;       /* membuat tombol membulat */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-article a:hover {
    background: #2f3542;       /* warna saat hover */
    transform: translateY(-2px);
}

/* Jika tidak ada prev atau next, tombol tidak muncul, jadi responsif tetap aman */
.nav-article a:first-child {
    margin-right: auto; /* tombol kiri ke kiri */
}

.nav-article a:last-child {
    margin-left: auto; /* tombol kanan ke kanan */
}

/* Media query untuk layar kecil */
@media screen and (max-width: 768px) {
    .nav-article {
        flex-direction: column;
        gap: 10px;
    }
    .nav-article a {
        width: 100%;
        text-align: center;
    }
}

/* ========================
   HALAMAN STATIS / 404 BUTTON
======================== */
.main.static-page .btn {
    display: inline-block;
    background: #3742fa;       /* warna utama tombol */
    color: #fff;               /* teks putih */
    padding: 14px 30px;        /* jarak dalam tombol */
    border-radius: 50px;       /* sudut membulat */
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.main.static-page .btn:hover {
    background: #2f3542;       /* warna saat hover */
    transform: translateY(-2px);
}
