.dashboard {
    font-family: Arial, sans-serif;
}

h1 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #000;
}

.translate-section {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 48%;
    text-align: center;
}

.translate-card a, .quiz-card a {
    display: block;
    background-color: #1976d2;
    color: white;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

.translate-card a:hover, .quiz-card a:hover {
    background-color: #c1c1c1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 1.5em;
    margin: 0;
}

.view-all {
    background-color: #1976d2;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
}

.view-all:hover {
    background-color: #ffffff;
}

.video-scroll {
    display: flex;
    overflow-x: auto;
}

.video-item {
    width: 300px;
    margin-right: 10px;
    text-align: center;
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.video-item p {
    margin-top: 8px;
    font-size: 0.9em;
}

.translate-banner {
    background-color: #1976d2;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.translate-banner img.translate-icon {
    width: 250px; /* Atur ukuran yang diinginkan */
    height: auto;
    margin-right: 20px;
}



.translate-banner h2 {
    flex: 1;
}

.translate-banner button {
    background-color: white;
    color: #1976d2;
    border: none;
    padding: 10px 20px;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
}

.articles-section {
    margin-top: 20px;
}

.articles-section h2 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.article-scroll {
    display: flex;
    overflow-x: auto;
}

.article {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    width: 250px;
    margin-right: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.article img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.article p {
    margin: 10px 0;
    font-size: 0.9em;
}

.article a {
    text-decoration: none;
    color: #1976d2;
}

.article a:hover {
    text-decoration: underline;
}

/* Default (Dark Mode) */
.clock-container {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    border: none;
    color: #ffffff; /* Warna teks untuk mode gelap */
    font-family: 'Arial', sans-serif;
    text-align: center;
    position: absolute;
    top: 10px;
    right: 10px;
}

.date {
    font-size: 14px;
    margin-bottom: 4px;
    font-weight: normal;
    letter-spacing: 0.5px;
    opacity: 0.8; /* Beri transparansi pada teks */
}

.clock {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Light Mode */
body.light-mode .clock-container {
    color: #2c2c2c; /* Warna teks untuk mode terang */
}

body.light-mode .date {
    opacity: 1; /* Tingkatkan visibilitas di mode terang */
}

body.light-mode .clock {
    font-weight: bold;
}


.button-container {
        display: flex;
        gap: 10px; /* Jarak antar tombol */
        margin-top: 15px; /* Jarak tombol dari judul */
    }
    
    .kamus-button {
        display: inline-block;
        padding: 10px 20px;
        background-color: #0056b3; /* Warna tombol, sesuaikan jika perlu */
        color: #ffffffff;
        text-decoration: none;
        border-radius: 5px;
        transition: background-color 0.3s ease; /* Efek hover */
    }
    
    .kamus-button:hover {
        background-color: #c1c1c1; /* Warna tombol saat hover */
    }
    .video-scroll {
        display: flex;
        overflow-x: auto;  /* Enables horizontal scrolling */
        padding: 10px;
        gap: 20px;
        scroll-behavior: smooth;  /* Smooth scrolling */
    }
    .video-item {
        width: 300px;
        flex-shrink: 0;  /* Prevents the video items from shrinking */
        position: relative;
        border-radius: 8px;
        overflow: hidden;
    }
    .video-thumbnail {
        width: 100%;
        cursor: pointer;
        border-radius: 8px;
        transition: transform 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
    .video-thumbnail:hover {
        transform: scale(1.05);
    }
    iframe {
        width: 100%;
        height: 180px;
    }

    /* Optional scrollbar customization */
    .video-scroll::-webkit-scrollbar {
        height: 8px;
    }
    .video-scroll::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.4);  /* Scrollbar thumb color */
        border-radius: 10px;
    }
    .video-scroll::-webkit-scrollbar-track {
        background: transparent;
    }
    
    /* Wrapper untuk scrollable article */
    .article-scroll {
        display: flex;
        overflow-x: auto;
        padding: 15px 0;
        gap: 20px;
        scroll-behavior: smooth; /* Smooth scrolling effect */
    }

    /* Setiap item artikel */
    .article-item {
        flex: 0 0 300px;
        background-color: #ffffff;
        border-radius: 10px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Shadow for depth */
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    /* Animasi saat hover */
    .article-item:hover {
        transform: translateY(-5px); /* Efek naik sedikit saat dihover */
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

    /* Gambar dalam artikel */
    .article-item img {
        width: 100%;
        height: 180px;
        object-fit: cover; /* Menjaga proporsi gambar */
        border-bottom: 3px solid #007bff; /* Border bawah untuk gambar */
    }

    /* Judul artikel */
    .article-item p a {
        font-size: 18px;
        font-weight: bold;
        color: #333;
        text-decoration: none;
        margin: 15px;
        display: block;
        transition: color 0.3s ease;
    }

    /* Animasi link judul artikel saat hover */
    .article-item p a:hover {
        color: #007bff; /* Warna berubah saat hover */
    }

    /* Info penulis dan tanggal */
    .article-item p:last-of-type {
        font-size: 14px;
        color: #777;
        margin: 0 15px 15px;
    }

    /* Tombol "Semua" */
    .view-all {
        color: #ffffffff;
        text-decoration: none;
        font-weight: bold;
        font-size: 16px;
    }

    .view-all:hover {
        text-decoration: underline;
    }
    .translate-quiz-section {
    display: flex;
    justify-content: space-between; /* Atau space-around, space-evenly */
    gap: 20px; /* Atur jarak antar card */
    margin-bottom: 20px; /* Beri jarak dari bawah */
}

.card {
    background-color: #f0f0f0; /* Warna latar belakang card */
    padding: 20px;
    border-radius: 8px;
    flex: 1; /* Membuat card mengisi ruang yang tersedia */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center; /* Memusatkan teks dalam card */
}
.video-scroll,
.article-scroll {
  overflow: hidden; /* Menyembunyikan konten yang meluap di luar container */
  white-space: nowrap; /* Memastikan semua item tetap dalam satu baris */
}

.video-scroll-inner,
.article-scroll-inner {
  display: inline-flex;
  gap: 1.5rem; /* Jarak antar item */
  animation: scroll-loop 20s linear infinite; /* Menerapkan animasi loop */
}

/* Animasi saat hover, item berhenti */
.video-scroll-inner:hover,
.article-scroll-inner:hover {
  animation-play-state: paused;
}

.video-item,
.article-item {
  flex: 0 0 auto;
  width: 250px; /* Atur lebar item */
}

/* Definisi animasi pergerakan */
@keyframes scroll-loop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* Menggeser ke kiri sebesar 50% lebar konten */
  }
}