@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #7f7f7f;
    --secondary: #f0f4ff;
    --primary-hover: #4c3bcf;
    --gray-light: #f5f5f5;
    --border: #e0e0e0;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f0f4ff, #e1e6ff, #4f4f4f);
    background-attachment: fixed;
    font-family: 'Poppins', sans-serif;
    color: #333;
    min-height: 100vh;
}

/* Container Utama */
.blog-container {
    max-width: 1400px;
    margin: 60px auto;
    padding: 20px;
    overflow: hidden;
}

/* Layout 2 Kolom */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
}

/* --- LEFT COLUMN: Konten Utama --- */
.blog-content {
    display: flex;
    flex-direction: column;
}

.blog-title {
    font-family: 'Antonio', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 28px;
    line-height: 1.2;
}

.blog-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.isi-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.isi-content h2, .isi-content h3 {
    font-family: 'Antonio', sans-serif;
    color: #222;
    margin: 28px 0 12px;
}

.isi-content p {
    margin-bottom: 16px;
    text-align: justify;
}

.hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0;
}

.hashtags span {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #eef2ff, #797979);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(94, 79, 236, 0.1);
}

.divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin: 32px 0;
}

.iconsblog {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.iconsblog i {
    transition: color 0.2s ease;
    cursor: pointer;
}

.iconsblog i:hover {
    color: var(--primary);
}

/* --- COMMENTS SECTION --- */
.comments-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.comments-section h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    color: #222;
    margin-bottom: 16px;
}

.comment-form {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-form label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.comment-form input,
.comment-form textarea {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    transition: border 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(88, 80, 236, 0.1);
}

.comment-form button {
    align-self: flex-start;
    /* --- Background Gradient dengan Efek Menyebar/Pudar --- */
    /* Kita buat gradient yang lebih kompleks untuk efek menyebar */
    /* Warna awal: Abu-abu (#7f7f7f) dengan transisi halus */
    background: linear-gradient(90deg,
        rgba(100, 100, 100, 0.8) 0%,     /* Abu-abu tua transparan */
        rgba(127, 127, 127, 1) 25%,     /* Abu-abu solid */
        rgba(127, 127, 127, 1) 50%,     /* Abu-abu solid (bagian tengah) */
        rgba(127, 127, 127, 1) 75%,     /* Abu-abu solid */
        rgba(100, 100, 100, 0.8) 100%   /* Abu-abu tua transparan */
    );
    background-size: 200% 100%;
    background-position: 100% 0; /* Posisi awal */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease, background-position 0.6s ease;
    box-shadow: 0 4px 12px rgba(88, 80, 236, 0.2);
    overflow: hidden;
    position: relative;
}

.comment-form button:hover {
    /* --- Efek Hover dengan Warna Biru dan Efek Menyebar --- */
    /* Gradient hover: Biru tua (#4c3bcf) dengan efek menyebar */
    background: linear-gradient(90deg,
        rgba(50, 40, 180, 0.6) 0%,      /* Biru tua transparan */
        rgba(76, 59, 207, 1) 25%,       /* Biru tua solid */
        rgba(76, 59, 207, 1) 50%,       /* Biru tua solid (bagian tengah) */
        rgba(76, 59, 207, 1) 75%,       /* Biru tua solid */
        rgba(50, 40, 180, 0.6) 100%     /* Biru tua transparan */
    );
    background-size: 200% 100%;
    background-position: 0 0; /* Geser posisi untuk efek transisi */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(88, 80, 236, 0.3);
}
/* --- RIGHT COLUMN: STICKY SIDEBAR --- */
.blog-sidebar {
    position: sticky;
    top: 0px; /* Jarak dari atas saat mulai nempel */
    height: fit-content;
}

.sidebar-sticky {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sidebar-sticky h3 {
    font-family: 'Anton', sans-serif;
    font-size: 1.6rem;
    color: #222;
    margin-bottom: 20px;
    text-align: center;
}

/* Blog Grid di Sidebar */
/* Blog Grid di Sidebar */
.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* --- Penambahan untuk scroll --- */
    max-height: 860px; /* Sesuaikan dengan tinggi 3 card + gap */
    overflow-y: auto;  /* Tampilkan scrollbar vertikal jika perlu */
    padding-right: 5px; /* Opsional: sedikit ruang untuk scrollbar */
    /* ------------------------------- */
}
.blog-grid::-webkit-scrollbar {
    width: 8px;
    transition: opacity 0.3s ease;
}

/* Sembunyikan scrollbar secara default */
.blog-grid::-webkit-scrollbar-track,
.blog-grid::-webkit-scrollbar-thumb {
    background: transparent;
    transition: background 0.3s ease;
}

/* Tampilkan scrollbar saat di-hover */
.blog-grid:hover::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.blog-grid:hover::-webkit-scrollbar-thumb {
    background: rgba(127, 127, 127, 0.5);
    border-radius: 4px;
}

.blog-grid:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(127, 127, 127, 0.7);
}

/* Untuk Firefox - sembunyikan scrollbar default */
.blog-grid {
    scrollbar-width: none;
}

/* Tampilkan scrollbar Firefox saat di-hover */
.blog-grid:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(127, 127, 127, 0.5) rgba(0, 0, 0, 0.05);
}

.blog-card-link {
    text-decoration: none;
}

.blog-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

.blog-card h4 {
    margin: 12px;
    font-size: 1rem;
    color: #222;
    font-weight: 600;
}

.blog-card p {
    margin: 0 12px 12px;
    font-size: 13px;
    color: #555;
}

.card-footer {
    padding: 8px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #555;
}

.card-footer .read-more {
    color: var(--primary);
    font-weight: 600;
    transition: color 0.2s ease;
}

.card-footer .read-more:hover {
    text-decoration: underline;
}
/* --- Floating Content Card --- */
.content-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 16px rgba(255, 255, 255, 0.3) inset;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;
}

/* Efek hover: melayang lebih tinggi */
.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(255, 255, 255, 0.4) inset;
}

/* Pastikan tidak ada overflow yang memotong */
.content-card h1,
.content-card .blog-image,
.content-card .isi-content {
    position: relative;
    z-index: 1;
}

/* Opsional: bayangan halus di dasar card untuk efek "mengambang" */
.content-card::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 20px;
    right: 20px;
    height: 20px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 0, 0, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .sidebar-sticky {
        margin-top: 40px;
    }

    .blog-title {
        font-size: 2.2rem;
    }

    .blog-image {
        height: 250px;
    }
}