/* ============ Gaya Umum ============ */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #444;
}

h1, h2, h3, h4 {
    margin: 0;
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============ Fungsionalitas Show/Hide ============ */
.hidden {
    display: none !important;
}

.hidden-section {
    display: none !important;
}

/* ============ Splash Screen ============ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-logo {
    width: 100px; /* Ukuran logo */
    height: auto;
    margin-bottom: 20px;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-left-color: #007bff;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Sembunyikan konten utama sampai splash screen selesai */
.content-wrapper {
    opacity: 0;
    transition: opacity 0.5s ease-in;
    display: none; /* Sembunyikan wrapper saat loading */
}

.content-wrapper.visible {
    opacity: 1;
    display: block; /* Tampilkan wrapper setelah loading */
}

/* ============ Sidebar ============ */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: #fff;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: left 0.3s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.sidebar-logo {
    width: 60px;
    height: auto;
    margin-bottom: 10px;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.sidebar-header p {
    font-size: 12px;
    color: #888;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.sidebar-item:hover {
    background-color: #f0f2f5;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-right: 15px;
    font-size: 16px;
}

.icon-green { background-color: #28a745; }
.icon-purple { background-color: #6f42c1; }
.icon-yellow { background-color: #ffc107; }
.icon-blue { background-color: #007bff; }

.sidebar-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.sidebar-text p {
    font-size: 12px;
    color: #888;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}

/* ============ Header ============ */
.header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f0f2f5;
}

.menu-icon {
    font-size: 24px;
    margin-right: 20px;
    color: #888;
    cursor: pointer;
}

.header-text {
    flex-grow: 1;
}

.header-text h1 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
}

.header-text p {
    font-size: 14px;
    color: #888;
}

/* ============ Konten Utama & Artikel ============ */
.main-content {
    padding: 0 20px;
    padding-bottom: 80px;
}

/* Kartu "Sekilas tentang TOEFL" */
.toefl-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #55b7ff;
    color: #fff;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toefl-text h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.toefl-text p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 10px;
}

.toefl-image {
    width: 120px;
    height: auto;
}

/* Bagian Umum */
.section {
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.see-all {
    font-size: 14px;
    color: #007bff;
    font-weight: 500;
}

/* ============ Gaya Baru untuk Panah dan List ============ */
.vocabulary-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.2s ease-in-out;
}
 
.scroll-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
    left: 5px;
}

.scroll-btn-right {
    right: 5px;
}
 
.scroll-btn i {
    font-size: 18px;
    color: #555;
}

/* Daftar Vocabulary */
.vocabulary-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth; /* Tambahkan scroll behavior smooth */
    padding: 0 40px; /* Tambahkan padding untuk ruang panah */
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.vocabulary-list::-webkit-scrollbar {
    display: none;
}

.vocab-card {
    flex: 0 0 120px;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.vocab-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.dot-green { background-color: #28a745; }
.dot-purple { background-color: #6f42c1; }
.dot-red { background-color: #dc3545; }

.vocab-word {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    word-break: break-word;
}

.vocab-type {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Gaya untuk "Selengkapnya" yang dapat diklik */
.vocab-type.clickable {
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
}

/* Quote of the day */
.quote-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.quote-icon {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 10px;
}
 
/* Gaya untuk teks kutipan */
.quote-text {
    font-style: italic;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin: 0;
}
 
.quote-text::before,
.quote-text::after {
    content: '"';
}

/* Bagian Iklan */
.ad-section {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ad-section::-webkit-scrollbar {
    display: none;
}
.ad-section img {
    flex-shrink: 0;
    height: 100px;
    border-radius: 8px;
}

/* ============ Gaya Artikel Baru ============ */
.article-container {
    padding: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.article-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.article-container h3 {
    font-size: 18px;
    font-weight: 600;
    color: #555;
    margin-top: 20px;
    margin-bottom: 10px;
}

.article-container p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    text-align: justify;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ Navigasi Bawah ============ */
.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #fff;
    border-top: 1px solid #ddd;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #888;
    font-size: 12px;
    padding: 5px;
    flex-grow: 1;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 5px;
}

.nav-item.active {
    color: #007bff;
}

/* ============ Responsivitas ============ */
@media (min-width: 768px) {
    .header {
        padding: 20px 50px;
    }
    .main-content, .article-container {
        padding: 0 50px;
        max-width: 800px;
        margin: 0 auto;
    }
    .bottom-nav {
        display: none;
    }
}
