/* Import Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    color: #ffffff;
}

/* Navigasi Landing Page (Kanan Atas) */
#landing-page header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 5%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#landing-page .logo {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

#landing-page nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

#landing-page nav ul li a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

#landing-page nav ul li a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Hero Section */
#landing-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 8%;
}

@keyframes tipisGlow {
    0% { text-shadow: 0 0 10px rgba(79, 70, 229, 0.5); }
    50% { text-shadow: 0 0 20px rgba(79, 70, 229, 0.9), 0 0 30px rgba(255, 255, 255, 0.4); }
    100% { text-shadow: 0 0 10px rgba(79, 70, 229, 0.5); }
}

#landing-page h1 {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    max-width: 800px;
    animation: tipisGlow 3s infinite alternate ease-in-out;
    line-height: 1.1;
}

#landing-page p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 0 40px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
}

#landing-page .cta-btn {
    padding: 14px 35px;
    background-color: #4f46e5;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.4);
}

#landing-page .cta-btn:hover {
    background-color: #4338ca;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.6);
}

#landing-page footer {
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CSS MODUL LEARNING */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-color: #f8fafc;
    --text-main: #334155;
    --text-heading: #0f172a;
    --border-light: #e2e8f0;
    --success: #10b981;
    --danger: #ef4444;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
}

#landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#module-page {
    display: none;
    background: linear-gradient(rgba(248, 250, 252, 0.88), rgba(248, 250, 252, 0.95)), 
                url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    position: relative;
    line-height: 1.7;
}

#module-page header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-heading);
    padding: 12px 5%;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.home-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.audio-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #10b981;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.audio-toggle-btn.muted {
    background: #64748b;
    box-shadow: none;
}

#module-page header b { 
    flex: 1; 
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-heading);
}

#module-page select { 
    padding: 8px 12px; 
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #f8fafc;
    color: var(--text-main);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
}

#module-page #bar { 
    height: 4px; 
    background: linear-gradient(90deg, var(--primary), #3b82f6); 
    width: 0; 
    transition: width 0.4s ease; 
    position: sticky;
    top: 0;
    z-index: 101;
}

#module-page main {
    max-width: 850px;
    margin: 0 auto;
    padding: 20px 20px 100px;
}

#module-page .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    padding: 35px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#module-page h1, #module-page h2, #module-page h3 { color: var(--text-heading); font-weight: 600; }
#module-page h1 { font-size: 2.2rem; margin-bottom: 0.5em; }
#module-page h2 { color: var(--primary); font-size: 1.6rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 12px; margin-bottom: 20px;}
#module-page h3 { font-size: 1.2rem; margin-top: 25px; }
#module-page p { margin: 0 0 1.2em 0; color: var(--text-main); font-size: 1.05rem; }

#module-page button, #module-page .btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
#module-page button:hover { background: var(--primary-hover); transform: translateY(-2px); }
#module-page button.alt { background: #ffffff; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }

#module-page nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
}





#module-page table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 20px 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border-light);}
#module-page td, #module-page th { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border-light); }
#module-page th { background: #f8fafc; font-weight: 600; color: var(--text-heading); }

#module-page .tt { font-size: 1.15rem; border-left: 4px solid var(--primary); padding: 16px 20px; margin: 15px 0; background: #eef2ff; border-radius: 0 8px 8px 0; color: #3730a3; font-style: italic; }
#module-page .note { background: var(--warning-bg); border-left: 4px solid var(--warning-text); padding: 16px; border-radius: 0 8px 8px 0; margin: 15px 0; color: var(--warning-text); font-size: 0.95rem; }
#module-page .vid { aspect-ratio: 16/9; background: #e2e8f0; display: flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; margin-bottom: 20px; }
#module-page .vid iframe { width: 100%; height: 100%; border: 0; }

#module-page .q { margin: 20px 0; background: #f8fafc; padding: 20px; border-radius: 12px; border: 1px solid var(--border-light); }
#module-page .q b { display: block; margin-bottom: 12px; color: var(--text-heading); }
#module-page .q label { display: flex; align-items: center; padding: 8px 12px; cursor: pointer; border-radius: 6px; }
#module-page .q label:hover { background: #e2e8f0; }
#module-page .q input[type="radio"] { margin-right: 10px; accent-color: var(--primary); }
#module-page .ok { color: var(--success); font-weight: 500; margin-left: 10px;}
#module-page .no { color: var(--danger); font-weight: 500; margin-left: 10px;}

#module-page .tag { display: inline-block; background: #e0e7ff; color: var(--primary-hover); border-radius: 20px; padding: 4px 12px; font-size: 0.85rem; font-weight: 500; }
#module-page #pg.tag { background: #f1f5f9; color: #64748b; font-size: 1rem; }
#module-page .big { font-size: 2.5rem; font-weight: 700; color: var(--primary); }

#module-page .progress-meta { display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; max-width:850px; margin:14px auto 0; padding:0 20px; color:#64748b; font-size:.85rem; }
#module-page .chapter-strip { max-width:850px; margin:18px auto 0; padding:0 20px; display:flex; gap:8px; flex-wrap:wrap; }
#module-page .chapter-pill { border:1px solid var(--border-light); background:#fff; color:var(--text-main); border-radius:20px; padding:6px 12px; font:500 .8rem 'Poppins',sans-serif; cursor:pointer; transition: all 0.2s ease; }
#module-page .chapter-pill.active { background:var(--primary); color:#fff; border-color:var(--primary); transform: scale(1.05); }
#module-page .chapter-pill.done { border-color:var(--success); color:#047857; }

.audio-control-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 10px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

@media(max-width: 768px) {
    #landing-page h1 { font-size: 2.5rem; }
    #landing-page header { flex-direction: column; gap: 15px; align-items: flex-start; }
    #landing-page nav ul { justify-content: flex-start; gap: 10px; }
    #module-page .card { padding: 20px; }
    #module-page header { padding: 12px; }
    #module-page header b { font-size: 0.95rem; width: 100%; }
}