/* ---- Pengaturan Dasar & Layout Global ---- */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    color: #000000;
    line-height: 1.6;
}


.main-header, .main-content {
    width: 100%;
}

.container {
    max-width: 1200px; /* Batasan lebar untuk konten utama */
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Header ---- */
.main-header {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    font-size: 1.5em;
    font-weight: bold;
    color: #e60012;
    text-decoration: none;
}

.header-nav a, .tombol-search {
    margin-left: 20px;
    padding: 8px 12px;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s;
}

.header-nav a:hover, .tombol-search:hover {
    background-color: #ddd;
}

/* ---- Main Visual Section ---- */
.main-visual {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.mv-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -2; /* Pastikan di bawah search-container */
}

/* Kotak pencarian di tengah gambar */
.update-con {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1;
}


/* ---- Timeline Section ---- */
.timeline {
    padding: 50px 0;
    text-align: center;
    background-color: black;
    color: #fff;
}

.timeline-title img {
    width: 300px;
    height: auto;
}

.timeline-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 20px 0;
}

.timeline-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px;
}

.timeline-carousel::-webkit-scrollbar {
    display: none;
}

.timeline-card {
    flex-shrink: 0;
    width: 250px;
    background-color: rgb(87, 0, 0);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.timeline-card img {
    width: 100%;
    height: auto;
    display: block;
}

.timeline-card .card-body {
    padding: 15px;
}

.timeline-card h3 {
    font-size: 1.3em;
    margin: 0 0 10px;
    color: #eee;
}

.timeline-card .card-date {
    font-size: 0.9rem;
    color: white;
}

/* ---- Carousel Navigation ---- */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-bottom: 3rem;
}

.nav-arrow {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Gaya dasar body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a; /* Latar belakang sangat gelap */
    color: #e2e8f0; /* Teks berwarna terang */
}


/* ---- daily update ---- */

/* Box-sizing universal untuk kemudahan layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* -------------------- Container Utama -------------------- */
.card-grid {
  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 1.5rem; 
  padding: 1rem;
  background-color: black;
}

/* -------------------- Gaya Judul Bagian -------------------- */
.tittle2 {
    text-align: center;
    padding: 1rem;
    background-color: #000000;
}

.tittle2 h1 {
    font-size: 2rem;
    color:white;
}


/* -------------------- Gaya Kartu Individu -------------------- */
.card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden; /* Penting agar gambar tidak keluar dari border-radius */
  box-shadow: 0 4px 6px black;
  transition: transform 0.2s ease-in-out;
  flex-direction: column;
  display: flex;
  min-height: 350px;
}

.card:hover {
  transform: translateY(-5px); /* Efek saat mouse diarahkan ke kartu */
}

/* -------------------- Gaya Gambar dan Badge -------------------- */
.card-image-container {
  position: relative; /* Penting untuk posisi lencana "UP" */
}

.card img {
  width: 100%;
  height: auto;
  display: block; /* Menghilangkan spasi ekstra di bawah gambar */
}

.up-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: red;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* -------------------- Gaya Konten Teks -------------------- */
.card-content {
  padding: 0.5em;
  display: flex;
  flex-direction: column;
  flex-grow: 5;
  justify-content: space-between;
}

.card a {
    color: inherit; /* Ini akan membuat warna teks link sama dengan warna teks biasa */
    text-decoration: none; /* Ini untuk menghilangkan garis bawah */
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  align-items: center;
}

.card-title2 {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    align-items: center;
}


.card-author {
  font-size: 0.9rem;
  color: #666;
  align-items: end;
}

/* -------------------- Gaya Metadata (di bawah) -------------------- */
.card-metadata {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 0.8rem;
  color: #888;
}

/* ---- Footer ---- */
.main-footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    color: #aaa;
    font-size: 0.9em;
}

/* ---- Media Queries ---- */
@media (max-width: 992px) {
    .main-header {
        flex-direction: column;
        gap: 15px;
    }
}
@media (max-width: 576px) {
    .header-nav {
        flex-direction: column;
    }
    .header-nav a {
        margin: 5px 0;
    }
}

