* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 10%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

/* Slider Container */


.image-slide {
    margin-top: 100px;
    background-color: #121212;
}


.slider {
    position: relative;
    width: 100%; /* Slider full width */
    max-width: 800px; /* Maksimal lebar */
    margin: auto; /* Center slider */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    box-shadow: 0px 0px 10px #9cecfb;
  }
  
  /* Slides Wrapper */
  .slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }
  
  /* Single Slide */
  .slide {
    min-width: 100%; /* Slide memenuhi seluruh lebar */
    height: 400px;
  }
  
  .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: scale 0.50s ease-out, filter 0.25s ease-in-out;
  }

  .slide img:hover {
    scale: 1.05;
    filter: grayscale(0);
  }

.logo {
    display: flex;
    align-items: center;
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
}

.logo-img {
    width: 5rem;
    height: auto;
    margin-right: 1.2rem;
    object-fit: cover;
    border-radius: 50%;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    color:white;
    text-shadow: 0px 0px 10px #9cecfb,
                 0px 0px 10px #9cecfb,
                 0px 0px 10px #65c7f7,
                 0px 0px 10px #65c7f7;
}

.navbar {
    position: relative;
    top: 0;
    display: flex;
    gap: 20px;
    z-index: 1000;
}

.navbar a {
    color: #fff;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.navbar a.active, .navbar a:hover {
    color: white;
    text-shadow: 0px 0px 10px cyan,
                 0px 0px 10px cyan,
                 0px 0px 10px cyan,
                 0px 0px 10px cyan;
}
.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.home-content {
    margin-top: 100px; /* Offset header height */
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.recent-posts {
    margin-top: 80px; /* Sesuaikan nilai ini untuk mengatur jarak ke bawah */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.post:hover {
    color:white;
    box-shadow: 0px 0px 10px cyan,
                 0px 0px 10px cyan,
                 0px 0px 10px cyan,
                 0px 0px 10px cyan;
    transition: 0.5s ease;
}
.post {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%; /* Pastikan semua post memiliki tinggi yang sama */
}

.post img {
    width: 100%;
    height: auto; /* Menjaga proporsi gambar */
    object-fit: cover;
}

.post-content {
    padding: 15px;
    flex-grow: 1; /* Pastikan konten mengisi ruang */
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px;
    text-decoration: none;
    color: white;
}

.post-date {
    font-size: 14px;
    color: #aaa;
    margin-top: auto; /* Taruh di bagian bawah konten */
}


.post:hover {
    transform: scale(1.05);
}


.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination a {
    padding: 10px 15px;
    margin: 0 5px;
    text-decoration: none;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.pagination a.active {
    background-color: #f0a500;
}

.pagination a:hover {
    background-color: #444;
}