:root {
    --primary-color: #00a8ff;
    --primary-glow-color: rgba(0, 168, 255, 0.5);
    --text-color: #e0e0e0;
    --secondary-text-color: #bbbbbb;
    --background-color: #0f0f12;
    --card-background-color: #1a1a1e;
    --glass-background-color: rgba(0, 0, 0, 0.6);
    --border-color: #333333;
    --font-family: 'Poppins', sans-serif;
}

/* --- Animasi --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- Pengaturan Dasar & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p {
    margin: 0;
    padding: 0;
}


.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
    filter: brightness(1.2);
}

.main-header {
    /* background: linear-gradient(90deg, rgba(77, 192, 250, 0.436) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.85) 100%); */
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 5;
}

main {
    padding-top: 80px;
    flex-grow: 1;
}

.sidebar-widget {
    width: 300px;
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(26, 26, 30, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
}

.animate-slide-up {
    transform: translateY(50px);
    opacity: 0;
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.animate-on-load {
    animation: fadeInUp 0.2s ease-out forwards;
}

.animate-on-load-delay-1 {
    animation: fadeInUp 0.2s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-on-load-delay-2 {
    animation: fadeInUp 0.4s ease-out 0.3s forwards;
    opacity: 0;
}

.nav-search-mobile {
    position: relative;
}

.nav-search-mobile .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 8px;
}

.search-suggestions {
    padding: 10px;
}

.nav-search {
    position: relative;
}

.nav-search .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    margin-top: 8px;
    border-radius: 8px;
}

.nav-search .search-suggestions,
.nav-search-mobile .search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    width: 350px;
    margin-top: 8px;
    z-index: 1000;
    display: none;
    background: rgb(16, 16, 16, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px;
    overflow: hidden;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #e0e0e0;
    border-radius: 8px;
    margin: 4px 5px;
    border-bottom: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.suggestion-item:hover {
    color: #ffffff;
    background-color: #3a3f4b;
    transform: translateX(5px);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
    flex-shrink: 0;
}

.suggestion-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .post-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pagination-wrapper {
    margin-top: 40px;
    text-align: center;
}

.nav-search-mobile {
    display: none;
}

.nav-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px;
    background-color: transparent;
    border: none;
    color: var(--secondary-text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    border-radius: 5px;
    order: 2;
}

.nav-search-btn:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.nav-search-input {
    width: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    border-width: 0;
    height: 38px;
    border-radius: 8px;
    outline: none;
    order: 1;
    background-color: var(--card-background-color);
    color: var(--text-color);
    border-style: solid;
    border-color: var(--border-color);

    transition: width 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out, border-width 0.4s ease-in-out;
}

.nav-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow-color);
}

.nav-search.active .nav-search-input {
    width: 150px;
    opacity: 1;
    visibility: visible;
    padding: 5px 10px;
    border-width: 1px;
}

.nav-search.active .nav-search-btn {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- Header & Navigasi --- */
.main-header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 1s ease;
    background-color: var(--background-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.main-header.scrolled {
    background-color: var(--glass-background-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.main-header .container .nalog {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
}

/* --- Judul & Logo --- */
.blog-title {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 700;
}

.blog-title img {
    height: 40px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 35px;
    margin: 0;
    padding: 0;
    align-items: center;
    position: relative;
}

.main-nav a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--secondary-text-color);
    transition: color 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.main-nav a i {
    margin-right: 8px;
}

.main-nav a.active,
.main-nav a:hover {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    /* animation: gradient-slide 2s linear infinite; */
    /* smooth fade for nav items */
    transition: background 0.45s ease-in-out, color 0.35s ease-in-out, filter 0.35s ease-in-out, opacity 0.35s ease-in-out;
    -webkit-transition: background 0.45s ease-in-out, -webkit-text-fill-color 0.35s ease-in-out, filter 0.35s ease-in-out, opacity 0.35s ease-in-out;
    will-change: background, color, opacity, filter;
}

/* hero */
.static-hero {
    padding: 100px 40px 100px 40px;
    text-align: center;
    background: #111418;
    border-bottom: 1px solid var(--border-color);
}

.static-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}

.static-hero .hero-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 700px;
    margin: 0 auto;
}

/* --- Hero Slider untuk Halaman Utama (Index) --- */
.featured-hero-section {
    padding-top: 3px;
    background-color: var(--background-color);
    overflow-x: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    /* Trik untuk memusatkan dan menghilangkan gap */
}

/* === Hero Slider Section === */
.hero-slider .slide {
    height: 550px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Aturan untuk Gambar Latar --- */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* --- Aturan untuk Lapisan Gelap di atas Gambar --- */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* --- Aturan untuk Konten (Tulisan, Tombol, dll) --- */
.slide .container {
    position: relative;
    z-index: 3;
}

.slide-content {
    max-width: 700px;
    color: #fff;
    margin: 0 auto;
}

/* Halaman Category */
.category-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.category-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem;
    aspect-ratio: 1 / 1;
    transition: all 0.3s ease-out;
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -5px rgba(0, 168, 255, 0.2);
}

.category-icon {
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1;
}

.category-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.article-count {
    font-size: 0.90rem;
    color: var(--secondary-text-color);
}

.no-categories-message {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    grid-column: 1 / -1;
}

.slide-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 15px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.slide-category:hover {
    background-color: transparent;
    border-color: var(--primary-color);
}

.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.6);
}

.slide-content h1 a {
    color: #fff;
    text-decoration: none;
}

.slide-content p {
    font-size: 1.1rem;
    color: #cbcbcb;
    margin-bottom: 25px;
}


/* --- Navigasi Slider --- */
.slick-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    gap: 15px;
    padding-left: 0;
    z-index: 5;
    list-style: none;
}

.slick-dots li button {
    font-size: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
    background-color: #fff;
    transform: scale(1.3);
}

.slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.slick-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
}

.slick-arrow::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.slick-prev {
    left: 30px;
}

.slick-prev::before {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.slick-next {
    right: 30px;
}

.slick-next::before {
    transform: rotate(45deg);
    margin-right: 3px;
}

@media (max-width: 425px) {
    .hero-slider .slide {
        height: 450px;
    }


    .slide-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .slide-content {

        padding-left: 15px;
        padding-right: 15px;
    }


    .slick-arrow {
        width: 40px;
        height: 40px;
    }

    .slick-prev {
        left: 15px;
    }

    .slick-next {
        right: 15px;
    }


    .slick-dots {
        bottom: 20px;
    }
}

/* === Popular Posts Section === */
.popular-posts-section {
    padding: 40px 0px;
    padding-bottom: 40px;
    background-color: var(--background-color);
}

.popular-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(3fr, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 25px;
}

.popular-card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

}

.popular-card:hover {
    border-radius: 12px;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.15);
}

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

.popular-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform .4s ease;
}

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

.popular-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.popular-card-category {
    display: inline-block;
    background-color: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
    align-self: flex-start;
}

.popular-card-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    flex-grow: 1;
    font-weight: bold;
}

.popular-card-title a {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
}

.popular-card-title a:hover {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
}

@keyframes gradient-slide {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}
.gradien {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
}

/* Post Card Terbaru */
.post-title a:hover {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
}

.popular-card-meta {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    display: flex;
    gap: 15px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.popular-meta span {
    display: flex;
    align-items: center;
}

.popular-meta i {
    margin-right: 6px;
}


/* --- Grid Artikel Utama & Kartu Modern --- */
.posts-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Aturan untuk layar besar (desktop) */
@media (min-width: 992px) {
    .main-content-grid {
        grid-template-columns: 4fr 1fr;
        align-items: start;
    }
}
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.post-grid-container {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .slide-button {
        font-size: 1rem;
        padding: 14px 32px;
        gap: 10px;
    }

    .slide-button i {
        font-size: 1.4rem;
    }

    .popular-grid-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .post-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Android L */
@media (max-width: 425px) {
    .slide-button {
        font-size: 0.65rem;
        padding: 8px 15px;
        gap: 6px;
    }

    .slide-button i {
        font-size: 0.5rem;
    }

    .popular-posts-section,
    .posts-section {
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .slide-content h1,
    .slide-title {
        text-align: center;
        font-size: 1.5rem;
        line-height: 1;
    }

    .slide-content p,
    .slide-subtitle {
        font-size: 0.7rem;
        overflow: hidden;
    }

    .popular-card-title {
        font-size: 1.05rem;
    }

    .article-title {
        font-size: 1.4rem;
    }
}

/* Penyesuaian lain untuk mobile */
@media (max-width: 992px) {
    .nav-search.active .nav-search-input {
        width: 100px;
        opacity: 1;
        visibility: visible;
        padding: 5px 10px;
        border-width: 1px;
    }

    .nav-search-mobile.active .nav-search-input-mobile {
        width: 100px;
        opacity: 1;
        visibility: visible;
        padding: 5px 10px;
        border-width: 1px;
    }

    .main-content-grid {
        display: flex;
        flex-direction: column;
    }

    .main-column {
        order: 2;
    }

    .sidebar-column {
        order: 1;
    }

    .slide-title,
    .slide-content h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    .slide-content p,
    .slide-subtitle {
        font-size: 1rem;
    }


    .sidebar-column .sidebar-widget:not(.search-widget) {
        display: none;
    }
}

/* Tombol Hero Utama */
.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    font-family: var(--font-family);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.2);
}

.slide-button:hover {
    background-color: #008ad1;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--primary-glow-color);
    color: #fff;
    background-color: var(--primary-color);
    filter: brightness(1.1);
}

.slide-button i {
    margin-right: 9px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.slide-button:hover i {
    transform: translateX(5px);
}

.post-card {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    min-width: 0;
    /* <-- TAMBAHKAN BARIS INI */
}

.post-card:hover {
    border-radius: 12px;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.15);
}

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

.post-card-image {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
    transition: transform .4s ease;
}

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

.post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-category {
    display: inline-block;
    background-color: rgba(0, 168, 255, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
    align-self: flex-start;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    flex-grow: 1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    font-weight: bold;
}

.post-title a {
    color: var(--text-color);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    display: flex;
    gap: 15px;
    margin-top: 10px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-meta i {
    margin-right: 6px;
}

/* paginasi */
.pagination {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: block;
    padding: 0.5rem 0.9rem;
    color: #a0a0a0;
    text-decoration: none;
    background-color: #2c3034;
    border: 1px solid #495057;
    border-radius: 0.375rem;
    transition: all 0.2s ease-in-out;
}

.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: transparent;
}

.page-link:hover {
    color: #ffffff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* Tombol untuk halaman yang sedang aktif */
.page-item.active .page-link {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}


/* --- Sidebar & Widget --- */
.sidebar-column {
    /* position: -webkit-sticky;
    position: sticky; */
    top: 120px;
    z-index: 10;
}

.sidebar-widget {
    margin-bottom: 40px;
    background-color: var(--card-background-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.widget-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

/* Archive */
.archive-year {
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.month-list {
    margin-left: 1rem;
    list-style-type: disc;
    padding-left: 1rem;
    color: var(--primary-color);
}

.month-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-color);
}

.month-list li a:hover {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    animation: gradient-slide 1.6s linear infinite;
}

.search-widget form {
    display: flex;
}

.search-widget input[type="search"] {
    width: 100%;
    border: 1px solid var(--border-color);
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.search-widget input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-widget button {
    padding: 0 15px;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child a {
    border-bottom: none;
}

.category-list li a:hover span {
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 1.6s linear infinite;
}

.category-list li a i {
    color: var(--primary-color);
}

/* --- Style Halaman Spesifik --- */
.category-card {
    text-align: center;
}

.category-card .post-card-content {
    justify-content: center;
    align-items: center;
}

.category-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.category-card:hover i {
    transform: scale(1.1);
}

.contact-form-wrapper {
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    animation: fadeInUp 0.5s ease-out forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #2c2c34;
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow-color);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
}

.article-container {
    padding-top: 50px;
}

.article-header {
    text-align: center;
    padding: 20px 20px 40px 20px;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 25px;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    max-width: 800px;
    margin: 0 auto 25px auto;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 8px;
    color: var(--primary-color);
}

.article-feature-image {
    margin: 0 0 50px 0;
}

.article-feature-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.article-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5em;
}

.article-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2em;
    margin-bottom: 1em;
}

.article-content a {
    text-decoration: underline;
    font-weight: 700;
}

.article-content ul,
.article-content ol {
    padding-left: 20px;
    margin-bottom: 1.5em;
}

.article-content li {
    margin-bottom: 0.8em;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 25px;
    margin: 2em 0;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--secondary-text-color);
}

.article-footer {
    max-width: 750px;
    margin: 50px auto 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-tags a {
    display: inline-block;
    background-color: var(--card-background-color);
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 50px;
    margin-right: 10px;
    margin-bottom: 10px;
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-tags a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.back-to-home-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 0 20px;
}

.back-to-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-text-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-to-home-btn:hover {
    color: var(--primary-color);
    filter: none;
}

.back-to-home-btn i {
    transition: transform 0.3s ease;
}

.back-to-home-btn:hover i {
    transform: translateX(-5px);
}

/* --- Footer --- */
.site-footer {
    background-color: var(--background-color, #0f0f12);
    border-top: 1px solid var(--border-color, #2a2a30);
    padding: 5rem 0 0 0;
    margin-top: 60px;
    font-size: 0.95rem;
    color: var(--secondary-text-color, #a0a0a0);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 4rem;
    grid-template-columns: 1fr;
}


/* 4 kolom untuk desktop */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    }
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), #7bd3ff, #b3f0ff);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
    animation: gradient-slide 2s linear infinite;
    margin: 0 0 1rem 0;
}


.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color, #e0e0e0);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Aksen garis bawah pada judul kolom */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color, #00a8ff);
}

.footer-about {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-background-color, #1a1a1e);
    color: var(--secondary-text-color, #a0a0a0);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    background-color: var(--primary-color, #00a8ff);
    color: #fff;
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--secondary-text-color, #a0a0a0);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color, #00a8ff);
    padding-left: 5px;
}

/* Styling Form Newsletter */
.newsletter-form {
    display: flex;
    margin-top: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    border: 1px solid var(--border-color, #2a2a30);
    background-color: var(--background-color, #0f0f12);
    color: var(--text-color, #e0e0e0);
    padding: 12px 15px;
    border-radius: 8px 0 0 8px;
    border-right: none;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color, #00a8ff);
}

.newsletter-form button {
    flex-shrink: 0;
    padding: 0 15px;
    border: 1px solid var(--primary-color, #00a8ff);
    background-color: var(--primary-color, #00a8ff);
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Baris Copyright */
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color, #2a2a30);
    color: var(--secondary-text-color, #a0a0a0);
    font-size: 0.9rem;
}

/* --- Navbar Responsif & Kursor Kustom --- */
.nav-toggle {
    display: none;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    z-index: 1001;
}

.hamburger {
    display: block;
    position: relative;
    width: 28px;
    height: 3px;
    background-color: var(--secondary-text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 28px;
    height: 3px;
    background-color: var(--secondary-text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger::before {
    transform: translateY(-8px);
}

.hamburger::after {
    transform: translateY(8px);
}

.hero-slider-wrapper:hover {
    cursor: none;
}

.custom-cursor {
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 200;
    opacity: 0;
    visibility: hidden;
}

.custom-cursor.visible {
    opacity: 1;
    visibility: visible;
}

.custom-cursor::before,
.custom-cursor::after {
    position: absolute;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor::before {
    content: '«';
}

.custom-cursor::after {
    content: '»';
}

.custom-cursor.cursor-left::before {
    opacity: 1;
}

.custom-cursor.cursor-right::after {
    opacity: 1;
}

/* --- Aturan Responsif Media Query --- */
@media (max-width: 768px) {

    /* ATURAN UMUM MOBILE */
    .nav-search-mobile {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .nav-search-btn-mobile {
        display: inline-flex;
        align-items: center;
        padding: 10px;
        background-color: transparent;
        border: none;
        color: var(--secondary-text-color);
        font-size: 1.2rem;
        cursor: pointer;
        transition: color 0.3s ease;
        border-radius: 5px;
        order: 2;
    }

    .nav-search-btn-mobile:hover {
        color: var(--primary-color);
        background-color: transparent;
    }

    .nav-search-input-mobile {
        width: 0;
        opacity: 0;
        visibility: hidden;
        padding: 0;
        border-width: 0;
        height: 38px;
        border-radius: 8px;
        outline: none;
        order: 1;
        background-color: var(--card-background-color);
        color: var(--text-color);
        border-style: solid;
        border-color: var(--border-color);
        transition: width 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out, border-width 0.4s ease-in-out;
    }

    .nav-search-input-mobile:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 10px var(--primary-glow-color);
    }

    .nav-search-mobile.active .nav-search-input-mobile {
        width: 100px;
        opacity: 1;
        visibility: visible;
        padding: 5px 10px;
        border-width: 1px;
    }

    .nav-search-mobile.active .nav-search-btn-mobile {
        color: var(--primary-color);
    }

    .nav-search {
        display: none;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 15px;
    }

    .article-feature-image img {
        height: 300px;
    }

    .back-to-home-wrapper {
        padding-top: 100px;
    }

    .hero-slider-wrapper,
    .hero-slider .slide {
        height: 80vh;
    }

    .slick-arrow {
        width: 40px;
        height: 40px;
    }

    .slick-prev {
        left: 15px;
    }

    .slick-next {
        right: 15px;
    }


    /* --- NAVIGASI & DROPDOWN MOBILE --- */
    .main-nav {
        position: relative;
    }

    .nav-toggle {
        display: block;
    }

    .main-nav ul {
        display: none;
        position: absolute;
        top: calc(100% + 20px);
        right: 0;
        width: 250px;
        background-color: rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        padding: 10px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8);
        gap: 5px;
        z-index: 1100;
    }

    /* Tampilkan dropdown saat nav-active */
    .main-nav.nav-active ul {
        display: flex;
        flex-direction: column;
    }

    /* Animasi untuk ikon hamburger */
    .main-nav.nav-active .hamburger {
        background-color: transparent;
    }

    .main-nav.nav-active .hamburger::before {
        transform: translateY(0) rotate(45deg);
    }

    .main-nav.nav-active .hamburger::after {
        transform: translateY(0) rotate(-45deg);
    }
}
