/* =================================================================
   GLOBAL & FONT (Contoh menggunakan Google Font 'Poppins')
================================================================= */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

/* =================================================================
   PENYESUAIAN WARNA TEKS UNTUK DARK MODE
================================================================= */

/* Mengatur warna semua judul menjadi lebih terang */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    color: #f8f9fa;
}

/* Mengatur warna link default */
a {
    color: #6cff8d; /* Warna aksen hijau neon */
    text-decoration: none;
}

a:hover {
    color: #98ffb3;
}

/* =================================================================
   DARK MODE STYLES
================================================================= */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    width: auto !important;

    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
}
/* Warna tema gelap */
:root {
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --input-bg: #1a1a1d; /* Warna latar belakang input */
    --border-color: #343a40; /* Warna border */
    --accent-color: #6cff8d; /* Warna aksen hijau neon */
    --heading-color: #e0e0e0; /* Warna judul */
    --text-muted-color: #b0b3b8; /* Warna teks yang lebih redup */
}
/* Dark mode styles */
html.dark-mode {
    /* Tema Gelap */
    --bg-color: #121212;
    --text-color: #f0f0f0;
    --input-bg: #1a1a1d; /* Tambahkan ini */
    --border-color: #343a40;
    --accent-color: #6cff8d; /* Warna aksen hijau neon */
    --heading-color: #e0e0e0; /* Warna judul */
    --text-muted-color: #b0b3b8; /* Warna teks yang lebih redup */
}
/* html.dark-mode {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    scroll-behavior: smooth;
} */

/* =================================================================
   NAVBAR AESTHETIC
================================================================= */
/* Tampilan Awal Navbar (Transparan) */
/* Tampilan Awal Navbar (Solid) */
/* Wadah Utama Navbar */
/* Wadah Utama Navbar */
.navbar-aesthetic {
    /* INI KUNCI UTAMANYA */
    position: sticky;
    top: 0;
    z-index: 1030; /* Gunakan z-index yang tinggi */

    /* Kode yang lain biarkan saja */
    background: transparent;
    overflow: visible;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Lapisan Background Baru */
.navbar-aesthetic::before {
    content: ""; /* Wajib ada untuk pseudo-element */
    position: absolute; /* Mengisi seluruh ruang navbar */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Meletakkan lapisan ini DI BELAKANG konten navbar */

    /* Di sini kita letakkan gradient solid */
    background: linear-gradient(to left, #121212 40%, #218838, #28a745);

    /* INI KUNCINYA: Transisi sekarang pada opacity, bukan background */
    transition: opacity 0.4s ease-out;

    /* Opacity awal (saat di atas) */
    opacity: 1; /* 1 = Jelas / Solid */
}

/* Mengubah Opacity Lapisan Background Saat di-scroll */
.navbar-aesthetic.scrolled::before {
    opacity: 0.5; /* 0.5 = Samar-samar / 50% transparan */
}
/* Memperbaiki layout agar form tidak terpotong */
.navbar-aesthetic .navbar-collapse {
    justify-content: space-between !important;
}

/* .navbar-aesthetic .navbar-brand {
    color: #f0f0f0;
    font-size: 1.5rem;
} */

.navbar-aesthetic .nav-link {
    color: rgba(255, 255, 255, 0.8);
    position: relative;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    margin: 0 0.2rem;
    transition: color 0.3s ease;
}

/* Gaya umum nav-link */
.navbar-aesthetic .nav-link {
    position: relative;
    color: #ccc;
    transition: color 0.3s ease;
}

/* Gaya umum nav-link */
.navbar-aesthetic .nav-link {
    position: relative;
    color: #ccc;
    padding: 0.4rem 0;
    margin: 0 0.4rem;

    /* BARU: Kondisi awal untuk animasi, agar transisi lebih mulus */
    transform: scale(1);
    text-shadow: 0 0 10px rgba(108, 255, 141, 0); /* Dimulai dengan shadow transparan */

    /* DIUBAH: Menggunakan cubic-bezier untuk transisi yang lebih natural */
    transition: color 0.3s ease, text-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Saat hover atau aktif pada link */
.navbar-aesthetic .nav-link:not(.dropdown-toggle):hover,
.navbar-aesthetic .nav-link:not(.dropdown-toggle).active {
    color: #6cff8d;
    text-shadow: 0 0 10px rgba(108, 255, 141, 0.6);
    transform: scale(1.05);
}

/* Style untuk form pencarian */
.navbar-aesthetic .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f0f0f0;
}

.navbar-aesthetic .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.navbar-aesthetic .form-control:focus {
    background-color: transparent;
    border-color: #6cff8d;
    color: #fff;
    box-shadow: 0 0 10px rgba(108, 255, 141, 0.1);
}
/* =================================================================
   SVG WAVE DIVIDER & FOOTER AESTHETIC - DESAIN BARU
================================================================= */

/* --- SVG WAVE --- */
.svg-divider {
    position: relative;
    bottom: -2px; /* Disesuaikan agar menempel sempurna */
    transform: rotate(180deg);
    /* ... sisa kode svg-divider biarkan sama ... */
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}
.svg-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 110px;
}
.svg-divider .shape-fill {
    /* Warna gelombang disamakan dengan background footer baru */
    fill: #1a1a1d;
}

/* --- FOOTER UTAMA --- */
.footer-aesthetic {
    /* DIUBAH: Background dengan gradient gelap yang subtle */
    background: linear-gradient(135deg, #1a1a1d 0%, #121212 100%);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    /* BARU: Bayangan di atas footer untuk efek kedalaman */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer-aesthetic .footer-heading {
    text-transform: uppercase;
    margin-bottom: 1.3rem;
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1rem;
    letter-spacing: 1px;
    /* BARU: Persiapan untuk garis bawah */
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

/* BARU: Garis bawah aesthetic untuk judul footer */
/* .footer-aesthetic .footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
} */

.footer-aesthetic .footer-text {
    font-size: 0.9rem;
    /* line-height: 1.6; */
}
.footer-aesthetic .footer-text-1 {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block; /* Required for transform */
    position: relative; /* For the shine effect */
    overflow: hidden; /* Contains the shine */
}

.footer-aesthetic .footer-text-1:hover {
    color: var(--accent-color);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 10px rgba(108, 255, 141, 0.4);
    font-weight: bold;
}

.footer-aesthetic .footer-text-1::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(108, 255, 141, 0.2),
        transparent
    );
    transition: 0.5s;
}

.footer-aesthetic .footer-text-1:hover::after {
    left: 100%;
}

/* --- LINK FOOTER DENGAN ANIMASI BARU --- */
.footer-aesthetic .footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: normal;
    display: inline-block;
    position: relative;
    overflow: hidden;
    padding: 3px 0;
}

.footer-aesthetic .footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 0 10px rgba(108, 255, 141, 0.4);
    font-weight: bold;
}

.footer-aesthetic .footer-links a::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(108, 255, 141, 0.2),
        transparent
    );
    transition: 0.5s;
}

.footer-aesthetic .footer-links a:hover::after {
    left: 100%;
}

/* --- IKON SOSIAL MEDIA DENGAN EFEK GLOW --- */
.footer-aesthetic .social-icons .social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.footer-aesthetic .social-icons .social-icon:hover {
    background-color: var(--accent-color);
    color: #1a1a1d;
    transform: translateY(-5px);
    /* BARU: Efek cahaya (glow) */
    box-shadow: 0 0 15px var(--accent-color);
}

/* --- BAR BAWAH FOOTER DENGAN GRADIENT --- */
/* --- BAR BAWAH FOOTER DENGAN GRADIENT --- */
.footer-bottom-bar {
    padding: 1rem 0;
    background: linear-gradient(90deg, #121212 0%, #218838 50%, #121212 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    /* --- Trik CSS untuk Full-Width --- */
    width: 100vw; /* Lebar = 100% dari lebar layar */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-bottom-bar p,
.footer-bottom-bar a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-bottom-bar a:hover {
    color: #fff;
}
/* =======================================================
   STYLE UTAMA UNTUK HALAMAN HOMEPAGE
======================================================= */

/* ======================
   HERO POST UTAMA
====================== */
.hero-post-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 0.75rem;
    border: none;
}

.hero-post-card .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hero-post-card:hover .hero-image {
    transform: scale(1.05);
}

.hero-post-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 0.95),
        rgba(18, 18, 18, 0.4),
        transparent
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 2;
}

/* Awal: disembunyikan */
.hero-post-card .hero-title,
.hero-post-card .btn-readmore {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease-out;
}

/* Saat hover: muncul */
.hero-post-card:hover .hero-title,
.hero-post-card:hover .btn-readmore {
    opacity: 1;
    transform: translateY(0);
}

.hero-post-card .hero-title a {
    color: #fff;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    transition: color 0.2s ease;
}

.hero-post-card .hero-title a:hover {
    color: #6cff8d;
}

.hero-post-card .btn-readmore {
    margin-top: 1rem;
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 0.5rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero-post-card .btn-readmore:hover {
    background-color: #6cff8d;
    color: #111;
    transform: translateY(-2px);
}

/* ======================
   KARTU ARTIKEL POPULER
====================== */
/* ======================
   KARTU ARTIKEL POPULER - FIX OVERLAY & ANIMASI
====================== */
.popular-post-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 250px;
    border: none;
}

.popular-post-card .popular-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.popular-post-card:hover .popular-card-image {
    transform: scale(1.05);
}

.popular-post-card .card-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 0.95),
        rgba(18, 18, 18, 0.4),
        transparent
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeSlideUp 0.6s ease-out forwards;
    animation-delay: 0.3s;
}

.popular-post-card .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 0.25rem;
}

.popular-post-card .card-excerpt {
    font-size: 0.95rem;
    color: #ccc;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.popular-post-card .card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.popular-post-card .card-title a:hover {
    color: #6cff8d;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================================================
   GRID KARTU ARTIKEL - DENGAN ANIMASI BARU
================================================================= */

/* Gaya dasar kartu */
.article-grid-card {
    background-color: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2e2e2e;
    /* DIUBAH: Transisi diperbarui agar lebih spesifik dan halus */
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Efek saat kursor mouse di atas kartu */
.article-grid-card:hover {
    /* DIUBAH: Efek angkat dibuat lebih tinggi */
    transform: translateY(-8px);
    /* DIUBAH: Bayangan dibuat sedikit lebih besar dan berwarna hijau */
    box-shadow: 0 15px 30px rgba(108, 255, 141, 0.1);
    /* BARU: Border akan menyala saat hover */
    border-color: #6cff8d;
}

/* Efek saat kartu DITEKAN (diklik dan ditahan) */
.article-grid-card:active {
    transform: scale(0.98);
    border-color: #6cff8d;
    /* DIUBAH: Bayangan dibuat lebih menyebar agar terasa seperti ditekan */
    box-shadow: 0 0 30px rgba(108, 255, 141, 0.6);
}

/* Gambar di dalam kartu */
.card-img-container img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* BARU: Transisi untuk efek zoom pada gambar */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* BARU: Efek zoom pada gambar saat kartu di-hover */
.article-grid-card:hover .card-img-container img {
    transform: scale(1.05);
}

/* Judul Artikel */
.article-grid-card .card-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.article-grid-card .card-title a:hover {
    color: #4cff6d;
}

/* Info Penulis dan Tanggal */
.card-author-info .author-card {
    font-size: 17px;
    color: #aaaaaa;
    font-weight: 500;
}
.card-author-info .update-card {
    font-size: 14px;
    color: #6c757d;
    margin-left: 15px;
    margin-top: 3px;
}

/* =================================================================
   PAGINATION AESTHETIC
================================================================= */
.pagination .page-link {
    background-color: #212529;
    border-color: #343a40;
    color: #f0f0f0;
    margin: 0 4px;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}
.pagination .page-link:hover {
    background-color: #343a40;
    border-color: #6cff8d;
    color: #6cff8d;
}
.pagination .page-item.active .page-link {
    background-color: #6cff8d;
    border-color: #6cff8d;
    color: #121212;
    font-weight: bold;
}
.pagination .page-item.disabled .page-link {
    background-color: #212529;
    color: #6c757d;
    border-color: #343a40;
}

/* =================================================================
   STYLE UNTUK HALAMAN ABOUT US
================================================================= */
/* =================================================================
   GAYA HALAMAN ABOUT US - DESAIN BARU
================================================================= */

/* Gaya untuk judul utama setiap bagian (About Us, Tim Kami) */
.section-title {
    font-weight: 700;
    color: #f8f9fa;
    position: relative;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* Membuat garis bawah aesthetic pada judul */
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    /* background: linear-gradient(to right, #218838, #6cff8d); */
    border-radius: 2px;
}

/* Sedikit penyesuaian untuk teks di bawah judul */
.lead.text-white-50 {
    color: #b0b3b8 !important;
}

/* =================================================================
   DESAIN KARTU TIM YANG BARU & INTERAKTIF
================================================================= */

.team-card {
    background-color: #1c1c1c; /* Warna lebih serasi dengan tema */
    border: 1px solid #2e2e2e;
    border-radius: 15px; /* Sudut lebih tumpul */
    padding: 2.5rem 1rem;
    text-align: center;
    overflow: hidden; /* Penting untuk beberapa efek */
    /* Transisi diperbarui untuk border dan box-shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* --- ANIMASI HOVER PADA KARTU --- */
.team-card:hover {
    transform: translateY(-12px);
    border-color: #6cff8d; /* Border menyala */
    box-shadow: 0 20px 40px rgba(108, 255, 141, 0.15); /* Bayangan hijau */
}

.team-card .team-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #343a40;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 0px rgba(108, 255, 141, 0.5); /* Bayangan awal (tidak terlihat) */
    /* Transisi untuk gambar, border, dan bayangan */
    transition: transform 0.4s ease, border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* --- ANIMASI HOVER PADA GAMBAR --- */
.team-card:hover .team-img {
    transform: scale(1.05); /* Gambar sedikit membesar */
    border-color: #6cff8d; /* Border gambar menyala */
    /* Efek cahaya (glow) di sekitar gambar */
    box-shadow: 0 0 0 5px rgba(108, 255, 141, 0.2);
}

.team-card .team-name {
    color: #f8f9fa;
    margin-bottom: 0.25rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.team-card .team-role {
    color: #6cff8d;
    font-size: 0.9rem;
    font-weight: 500;
    /* Efek transisi untuk perubahan warna */
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

/* --- ANIMASI HOVER PADA TEKS ROLE --- */
.team-card:hover .team-role {
    color: #fff; /* Warna role berubah jadi putih */
    letter-spacing: 1px; /* Jarak huruf sedikit melebar */
}

.about-us-image {
    /* Tentukan tinggi gambar yang kamu inginkan */
    height: 450px;
    width: 100%; /* Lebar mengikuti kolom */
    position: relative;

    /* INI KUNCINYA UNTUK NGE-CROP */
    background-size: cover; /* Membuat gambar menutupi div, sisa gambar akan terpotong */
    background-position: center; /* Memastikan gambar terpotong dari tengah */
    background-repeat: no-repeat; /* Agar gambar tidak berulang */
}

/* Lapisan untuk efek vignet */
.about-us-image::before {
    content: ""; /* Wajib ada untuk ::before */
    position: absolute; /* Menempatkan lapisan ini di atas gambar */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* INI KUNCINYA: Membuat gradient dari transparan ke hitam */
    background: radial-gradient(
        ellipse at center,
        transparent 40%,
        rgba(0, 0, 0, 0.7) 100%
    );

    /* Mengikuti bentuk sudut parent-nya */
    border-radius: inherit;
}

/* =================================================================
   HALAMAN DETAIL ARTIKEL
================================================================= */

/* PERBAIKAN: Memberi jarak dari navbar yang fixed */
.article-banner {
    margin-top: 50px;
    height: 40vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(18, 18, 18, 0.9),
        rgba(18, 18, 18, 0.3)
    );
}

.article-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

/* PERBAIKAN: Memastikan semua teks meta menggunakan warna tema */
.article-card .text-muted {
    color: var(--text-muted-color) !important;
}

.author-name {
    color: var(--accent-color);
}

/* ISI ARTIKEL (DARI CKEDITOR) */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}
.article-body p {
    margin-bottom: 1.5rem;
    color: var(--text-color); /* PERBAIKAN: Memaksa warna paragraf */
}
.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: "Poppins", sans-serif;
    color: var(--heading-color);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}
.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-muted-color);
}
.article-body hr {
    border-top: 1px solid var(--border-color);
}

/* SIDEBAR */
.sidebar-sticky {
    position: sticky;
    top: 100px; /* Jarak dari atas setelah scroll */
}
.sidebar-card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.sidebar-title {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}
.author-info {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}
.author-name {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}
.author-role {
    color: var(--text-muted-color);
    font-size: 0.9rem;
}
.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}
.sidebar-links a:hover {
    color: var(--accent-color);
}
/* =================================================================
   HALAMAN KATEGORI - GAYA IKON DENGAN ANIMASI BARU
================================================================= */
.category-card-icon {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    /* Tambahkan 'border-color' ke transisi */
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.category-card-icon:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(108, 255, 141, 0.1); /* Bayangan hijau agar serasi */
    /* BARU: Border akan menyala saat hover */
    border-color: var(--accent-color);
}

.category-card-icon .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--accent-color-rgb), 0.1);
    transition: background-color 0.3s ease;
}

.category-card-icon:hover .card-icon {
    background-color: rgba(var(--accent-color-rgb), 0.2);
}

.category-card-icon .card-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
    /* BARU: Tambahkan transisi untuk ikon */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card-icon:hover .card-icon i {
    /* BARU: Ikon akan berputar dan membesar */
    transform: scale(1.15) rotate(15deg);
}

.category-card-icon .card-title {
    color: var(--heading-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-card-icon .card-text {
    color: var(--text-color);
    font-size: 0.9rem;
    flex-grow: 1;
}

.category-card-icon .btn-category-view {
    background-color: var(--accent-color);
    color: var(--accent-color-text);
    border: none;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    /* BARU: Tombol disembunyikan di awal */
    opacity: 0;
    transform: translateY(15px);
    /* Atur transisi agar muncul dengan halus */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transition-delay: 0.1s; /* Sedikit delay agar muncul setelah kartu terangkat */
}

/* BARU: Tombol akan muncul saat kartu di-hover */
.category-card-icon:hover .btn-category-view {
    opacity: 1;
    transform: translateY(0);
}

.category-card-icon .btn-category-view:hover {
    /* Sedikit menggelapkan tombol saat dihover untuk kontras */
    background-color: #5cff7d;
}

.category-card-icon .btn-category-view:active {
    transform: scale(0.95);
    opacity: 1;
}
/* =================================================================
   CSS HALAMAN KONTAK - DESAIN BARU & KEREN
================================================================= */

/* --- FORM KONTAK --- */
.contact-form {
    background-color: #1c1c1c;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #2e2e2e;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* --- ANIMASI FLOATING LABEL --- */
.form-group.floating-label {
    position: relative;
    margin-bottom: 2rem;
}

.floating-label .form-control {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 1rem;
    border-radius: 8px;
    width: 100%;
    transition: border-color 0.3s ease;
}

.floating-label label {
    color: var(--text-muted-color);
    font-weight: 500;
    position: absolute;
    top: 1rem;
    left: 1rem;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

/* Momen saat labelnya naik */
.floating-label .form-control:focus + label,
.floating-label .form-control:not(:placeholder-shown) + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: #1c1c1c; /* Warna sama dengan background form */
    padding: 0 0.5rem;
}

.floating-label .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(108, 255, 141, 0.2);
}

/* --- TOMBOL GRADIENT --- */
.btn-submit-gradient {
    background: linear-gradient(90deg, #218838, #28a745, #6cff8d);
    background-size: 200% 100%;
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.4s ease, transform 0.2s ease;
}

.btn-submit-gradient:hover {
    background-position: right center; /* Menggeser gradient */
    transform: translateY(-3px);
}

/* --- INFO KONTAK & SOSMED --- */
.contact-info-wrapper {
    padding: 2rem;
    color: #f0f0f0;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
}

.contact-info-item p {
    margin: 0;
    color: var(--text-muted-color);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.1rem;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: #121212;
    transform: translateY(-5px);
}
/* =================================================================
   HALAMAN DAFTAR ARTIKEL (AESTHETIC) - DENGAN ANIMASI BARU
================================================================= */

/* Gaya dasar kartu */
.post-preview-card {
    background-color: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2e2e2e;
    /* DIUBAH: Transisi diperbarui untuk menyertakan border-color */
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Efek saat kursor mouse di atas kartu */
.post-preview-card:hover {
    /* DIUBAH: Efek angkat dibuat lebih tinggi */
    transform: translateY(-8px);
    /* DIUBAH: Bayangan hijau agar serasi */
    box-shadow: 0 15px 30px rgba(108, 255, 141, 0.1);
    /* BARU: Border akan menyala saat hover */
    border-color: #6cff8d;
}

/* Efek saat kartu DITEKAN (diklik dan ditahan) */
.post-preview-card:active {
    transform: scale(0.98) translateY(-5px); /* Sedikit disesuaikan */
    border-color: #6cff8d;
    box-shadow: 0 0 30px rgba(108, 255, 141, 0.6);
}

/* Selector untuk container gambar diubah */
.post-preview-image-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    /* BARU: Transisi untuk efek zoom pada gambar */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* BARU: Efek zoom pada gambar saat kartu di-hover */
.post-preview-card:hover .post-preview-image-wrapper img {
    transform: scale(1.05);
}

/* Selector untuk judul diubah menjadi .post-preview-title */
.post-preview-card .post-preview-title {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.post-preview-title:hover {
    color: #4cff6d;
}

/* Selector untuk info penulis dan tanggal diubah */
.post-preview-meta .post-preview-author {
    font-size: 17px;
    color: #aaaaaa;
    font-weight: 500;
}
.post-preview-meta .post-preview-date {
    font-size: 14px;
    color: #6c757d;
}
/* ======================
   GAYA HALAMAN ARTIKEL DETAIL
====================== */

/* Atur banner agar tidak terlalu tinggi dan responsif */
.article-banner {
    height: 350px;
    width: 85%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0.75rem;
    margin: 5rem auto 1.5rem auto; /* Jarak dari atas (navbar) */
    box-shadow: 0 50px 50px rgba(0, 0, 0, 0.4); /* Bayangan bawah */
    position: relative;
    z-index: 1;
}

/* Tambahkan overlay gelap di atas banner (jika ingin efek gradasi) */

/* .article-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.4);
} */

/* Artikel body gambar tidak full width */
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
    display: block;
    object-fit: contain;
}

/* Sidebar card */
.sidebar-card {
    background-color: #161616;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Judul sidebar */
.sidebar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #28a745;
}

/* Card artikel populer */
.card-popular {
    background-color: #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-popular:hover {
    transform: scale(1.02);
}

/* Judul artikel populer */
.card-popular .card-title {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 600;
    line-height: 1.3;
}

.card-popular .card-title:hover {
    color: #6cff8d;
}

/* Nama penulis */
.author-name {
    font-weight: 700;
    color: #ffffff;
}

.author-role {
    font-size: 0.85rem;
    color: #aaaaaa;
}

/* Responsive tambahan */
@media (max-width: 768px) {
    .article-banner {
        height: 200px;
    }

    .article-body img {
        max-width: 100%;
    }

    .sidebar-card {
        padding: 1rem;
    }
}

/* =================================================================
   SIDEBAR KHUSUS HALAMAN SEARCH RESULTS (GAYA BARU)
================================================================= */
.search-sidebar-card {
    background-color: #161616; /* Latar belakang gelap dari contoh Anda */
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #343a40;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-sidebar-card:hover {
    transform: translateY(-5px); /* Efek mengangkat saat hover */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.search-sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #28a745; /* Warna hijau dari contoh Anda */
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #343a40;
}

.search-sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.search-sidebar-links a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.search-sidebar-post-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.2s ease;
}

.search-sidebar-post-item:hover {
    background-color: #222;
}

.search-sidebar-post-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
}

.search-sidebar-post-item .post-info .post-title {
    color: #f0f0f0;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-sidebar-post-item .post-info .post-title:hover {
    color: #6cff8d;
}

/* =================================================================
   GAYA KARTU ARTIKEL (Untuk Homepage, Search, Kategori, dll)
================================================================= */

.article-card-aesthetic {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card-aesthetic:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.article-card-aesthetic .card-image-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-card-aesthetic .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-aesthetic:hover .card-img-top {
    transform: scale(1.05);
}

.article-card-aesthetic .card-body {
    padding: 1.5rem;
}

.article-card-aesthetic .card-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    text-decoration: none;
}

.article-card-aesthetic .card-title a {
    color: var(--heading-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.article-card-aesthetic .card-title a:hover {
    color: var(--accent-color);
}

.card-author-info {
    display: flex;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.author-avatar-sm {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 9px;
}

.card-author-info .author-name {
    color: var(--heading-color);
    font-weight: 500;
}

.card-author-info .text-muted {
    color: var(--text-muted-color) !important;
}

#search-results {
    position: absolute;
    top: 100%; /* persis di bawah input */
    left: 0;
    right: 0;
    z-index: 9999; /* paling atas */
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
}

#search-results .result-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
#search-results .result-item:hover {
    background-color: #f8f8f8;
}
#search-results .result-item:last-child {
    border-bottom: none; /* hapus border bawah pada item terakhir */
}
#search-results .result-item a {
    color: #333;
    text-decoration: none;
}
#search-results .result-item a:hover {
    color: #28a745; /* warna hijau saat hover */
}
#search-results .result-item .result-title {
    font-weight: 600;
    font-size: 1rem;
}
#search-results .result-item .result-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}
#search-results .result-item .result-date {
    font-size: 0.8rem;
    color: #999;
    margin-top: 3px;
}

.search-card {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.card-img-link {
    display: block;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.search-card:hover .card-img {
    transform: scale(1.1);
}

.search-card-body {
    padding: 15px;
    flex: 1;
}

.search-card-title a {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.search-card-title a:hover {
    color: #6cff8d;
}

.search-card-desc {
    font-size: 0.9rem;
    color: #aaa;
    margin-top: 5px;
}

.author-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6cff8d;
}
.post-date {
    font-size: 0.8rem;
    color: #888;
    margin-left: 10px;
}

/* === SIDEBAR ARSIP === */

/* Kartu sidebar */
.sidebar-archive-card {
    background-color: #1c1c1c;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #2e2e2e;
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
    padding: 15px 20px;
}

/* Efek hover sidebar */
.sidebar-archive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(108, 255, 141, 0.08);
    border-color: #6cff8d;
}

/* Heading Arsip Artikel */
.sidebar-archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
}

.sidebar-archive-title::after {
    content: "";
    display: block;
    width: 40%;
    height: 3px;
    margin-top: 6px;
    background-color: #6cff8d;
    border-radius: 2px;
}

/* Daftar arsip */
.sidebar-archive-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.sidebar-archive-card ul li {
    margin-bottom: 10px;
}

/* Link arsip */
.sidebar-archive-card ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out, padding-left 0.2s ease-in-out;
}

/* Hover efek link arsip */
.sidebar-archive-card ul li a:hover {
    color: #6cff8d;
    padding-left: 4px;
}

/* Jumlah artikel di arsip (angka) */
.sidebar-archive-card ul li span {
    color: #aaaaaa;
    font-size: 0.85rem;
    margin-left: 4px;
}

/* === Sidebar Arsip === */
.archive-sidebar-header .archive-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-left: 4px solid #28a745;
    padding-left: 10px;
}

.archive-divider {
    width: 35%;
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 5px;
}

/* Card Arsip */
.archive-sidebar {
    background: #1b1b1b;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.archive-sidebar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* List Arsip */
.archive-list .archive-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #fff;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.archive-list .archive-link:hover {
    color: #28a745;
    padding-left: 5px;
}

.archive-list .archive-count {
    font-size: 0.85rem;
    color: #aaa;
}
/* Hapus border bawah pada item terakhir */
.archive-list .archive-link:last-child {
    border-bottom: none;
}

/* === Sidebar Kategori === */
.category-sidebar {
    background: #1b1b1b;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.category-sidebar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* List kategori */
.category-list .category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    color: #fff;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.category-list .category-link:hover {
    color: #28a745;
    padding-left: 5px;
}

.category-list .category-count {
    font-size: 0.85rem;
    color: #aaa;
}

/* Partner-sidebar */
.partner-sidebar {
    background: #1b1b1b;
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.partner-sidebar:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.partner-logo {
    max-width: 250px; /* <-- Nilai ini diubah dari 200px */
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 255, 128, 0.3);
}

.partner-link {
    display: inline-block;
    margin-top: 5px;
    color: #6cff8d;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.partner-link:hover {
    color: #4cff6d;
    text-decoration: underline;
}
