        @import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@400;500;700&display=swap');

        /* ==========================================================================
        1. PENGATURAN DASAR & RESET TOTAL
        ========================================================================== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Plus Jakarta Sans', sans-serif;
            -webkit-tap-highlight-color: transparent;
        }

       body {
            background-color: #f9f4f0;
            color: #1e1e24;
            display: flex;
            justify-content: center;
            min-height: 100vh;
        }

        /* --- REAL UI CONTAINER --- */
        .app-page {
            width: 100%;
            max-width: 480px; /* Batas maksimal lebar estetik untuk tampilan aplikasi mobile di desktop */
            background-color: #f9f4f0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            position: relative;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
            overflow-x: hidden;
        }

        /* --- BANNER HEADER (PAS LEBAR LAYAR) --- */
       /* --- PREMIUM BANNER SLIDER CONTINER --- */
        .app-header-banner {
            width: 100%;
            position: relative;
            background-color: #f9f4f0; 
            overflow: hidden; /* Menyembunyikan 5 banner lainnya yang mengantre di kanan */
            display: block;
            line-height: 0;
        }

        /* Jalur memanjang horizontal tempat mengantre seluruh slide */
        .slider-track {
            display: flex;
            width: 100%;
            height: auto;
            /* Efek transisi geser ke kiri melambat yang sangat halus (smooth ease) */
            transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
        }

        /* Tiap block slide dipaksa mengunci lebar 100% layar aplikasi */
        .slide {
            min-width: 100%;
            width: 100%;
            flex-shrink: 0;
        }

        .slide .banner-img {
            width: 100%;
            height: auto;
            display: block;
        }

        /* Tombol Kembali / Navigasi (Z-index dinaikkan agar tidak tertimpa slide) */
        .btn-back-nav {
            position: absolute;
            top: 20px;
            left: 20px;
            width: 42px;
            height: 42px;
            background-color: rgba(255, 255, 255, 0.35);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-radius: 14px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #ffffff;
            cursor: pointer;
            font-weight: bold;
            text-decoration: none;
            z-index: 30;
        }

        /* --- INDIKATOR DOTS PREMIUM --- */
        .slider-dots {
            position: absolute;
            bottom: 45px; /* Diletakkan agak ke atas sedikit agar tidak tertutup lengkungan konten utama */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 6px;
            z-index: 25;
        }

        .dot {
            width: 6px;
            height: 6px;
            background-color: rgba(255, 255, 255, 0.4);
            border-radius: 50%;
            transition: all 0.3s ease;
        }

        /* Efek titik memanjang saat aktif (tren UI modern) */
        .dot.active {
            background-color: #ffffff;
            width: 16px;
            border-radius: 4px;
        }

        /* Konten utama tetap menimpa slider secara melengkung */
        .app-content-body {
            background-color: #f9f4f0;
            border-radius: 32px 32px 0 0;
            margin-top: -35px; 
            position: relative;
            padding: 32px 24px;
            z-index: 40; /* Lebih tinggi dari slider */
            box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.02);
        }

        /* --- KONTEN UTAMA --- */
        .app-content-body {
            background-color: #f9f4f0;
            border-radius: 32px 32px 0 0;
            margin-top: -35px; /* Menarik konten ke atas untuk memotong banner secara melengkung halus */
            position: relative;
            padding: 32px 24px;
            /* flex-grow: 1; */
            z-index: 10;
            box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.02);
        }

        /* Judul & Bookmark */
        .course-title-area {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
            gap: 12px;
        }

        .course-main-title {
            font-size: 34px;
            font-weight: 700;
            color: #121214;
            line-height: 1.1;
            letter-spacing: -0.5px;
        }

        .btn-bookmark {
            background: none;
            border: none;
            color: #ff5b5b;
            font-size: 26px;
            cursor: pointer;
            padding-top: 2px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Mentor / Instructor */
        .mentor-badge {
            display: flex;
            align-items: center;
            margin-bottom: 24px;
        }

        .mentor-img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            margin-right: 12px;
        }

        .mentor-name {
            font-size: 14px;
            color: #ff5b5b;
            font-weight: 600;
        }

        /* Deskripsi Teks */
        .course-desc-text {
            font-size: 14px;
            color: #6e6e77;
            line-height: 1.6;
            margin-bottom: 32px;
        }

        /* Header Bagian Lessons */
        .lessons-section-title {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .text-lessons {
            font-size: 18px;
            font-weight: 700;
            color: #121214;
        }

        .text-duration {
            font-size: 14px;
            color: #8e8e96;
            display: flex;
            align-items: center;
            gap: 6px;
        }

       /* --- LIST CARD LESSONS --- */
       /* --- PREMIUM CARD LIST INTEGRATION --- */
        /* --- PREMIUM CARD LIST INTEGRATION (TINGGI SERAGAM) --- */
        .lesson-item-card {
            display: flex;
            align-items: center; /* Menjaga semua komponen tetap center secara vertikal */
            justify-content: space-between;
            background: #ffffff;
            border-radius: 24px; 
            padding: 20px 20px;   
            margin-bottom: 20px;
            gap: 16px; 
            
            /* Mengunci tinggi card agar seragam (115px adalah tinggi ideal untuk deskripsi 2 baris) */
            height: 90px; 
            
            border: 1px solid rgba(255, 255, 255, 0.7); 
            box-shadow: 
                0 4px 6px -1px rgba(0, 0, 0, 0.02),
                0 10px 20px -3px rgba(142, 131, 120, 0.06); 
                
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            position: relative;
        }
        
        .lesson-item-card:hover, .lesson-item-card:active {
            transform: translateY(-4px) scale(1.01);
            box-shadow: 
                0 10px 15px -3px rgba(142, 131, 120, 0.05),
                0 20px 25px -5px rgba(142, 131, 120, 0.1);
        }

        .lesson-item-left {
            display: flex;
            align-items: center; /* Tetap seimbang di tengah secara vertikal */
            gap: 20px; 
            flex: 1;
            height: 100%; /* Memaksa area kiri mengisi penuh tinggi card */
        }

        /* --- WADAH IKON PREMIUM --- */
        .lesson-icon-wrapper {
            width: 64px;  
            height: 64px;
            border-radius: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
            background: #ffffff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
            border: 1px solid rgba(0, 0, 0, 0.02);
            transition: transform 0.3s ease;
        }

        .lesson-item-card:hover .lesson-icon-wrapper {
            transform: scale(1.08);
        }

        .lesson-png-icon {
            width: 44px;  
            height: 44px;
            object-fit: contain;
            display: block;
        }

        /* --- TIPOGRAFI & AREA TEKS --- */
        .lesson-detail-meta {
            display: flex;
            flex-direction: column;
            gap: 4px; 
            padding-right: 12px;
            flex: 1;
            justify-content: center; /* Membuat teks pendek maupun panjang tetap rapi di tengah vertikal */
        }

        .text-lesson-name {
            font-size: 17px;
            font-weight: 800; 
            color: #111827;   
            letter-spacing: -0.3px;
        }

        .text-lesson-time {
            font-size: 13px; /* Sedikit dikecilkan agar teks panjang aman dalam batas 115px */
            color: #6b7280;   
            line-height: 1.4;
            font-weight: 500;
            
            /* Mengatur agar teks deskripsi maksimal 2 baris, jika lebih akan otomatis rapi */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* --- ACTION BUTTONS (STATUS) --- */
        .action-status-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            border: none;
            cursor: pointer;
            outline: none;
            flex-shrink: 0; /* Mencegah tombol kanan berubah bentuk */
            transition: opacity 0.2s;
        }

        .action-status-btn:hover {
            opacity: 0.9;
        }

        /* 1. Status Selesai (Checked) */
        .status-is-done {
            background-color: #d1f7f9;
            color: #00b4d8;
            font-size: 14px;
        }

        /* 2. Status Sedang Berjalan (Progress Orange) */
        .status-is-playing-orange {
            border: 2px solid #ff7a00;
            color: #ff7a00;
            font-size: 12px;
            background: linear-gradient(90deg, #ff7a00 40%, #ffffff 40%);
            padding-left: 2px;
        }

        /* 3. Status Siap Putar (Play Green) */
        .status-is-playing-green {
            border: 2px solid #62d362;
            color: #62d362;
            font-size: 12px;
            background-color: #ffffff;
            padding-left: 2px;
        }

        /* --- CSS TAMBAHAN UNTUK ICON PNG --- */
        .lesson-png-icon {
            width: 78px;        /* Atur lebar gambar png */
            height: 78px;       /* Atur tinggi gambar png */
            object-fit: contain;/* Menjaga proporsi gambar agar tidak gepeng */
            display: block;
        }

        /* Pastikan pembungkusnya tetap center (opsional, untuk memastikan kembali) */
        .lesson-icon-wrapper {
            width: 52px;
            height: 52px;
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-shrink: 0;
        }

        /* ==========================================================================
        CSS UNTUK APP FOOTER
        ========================================================================== */
        /* --- PERBAIKAN PADA FOOTER --- */
        .app-footer {
            margin-top: 40px;
            padding-top: 10px;
            /* Berikan padding bawah yang ideal (misal 24px) agar jaraknya presisi */
            padding-bottom: 7px; 
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        /* Garis pembatas tipis */
        .footer-divider {
            border: none;
            border-top: 1px solid #e1dad5; /* Menyesuaikan warna krem background */
            margin-bottom: 8px;
        }

        /* Item baris informasi */
        .footer-info-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .footer-icon {
            font-size: 16px;
            flex-shrink: 0;
            opacity: 0.8;
        }

        .footer-text {
            font-size: 13px;
            color: #6e6e77;
            line-height: 1.5;
        }

        /* Baris link sosial media & email */
        .footer-contact-row {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 4px;
        }

        .footer-link {
            font-size: 13px;
            color: #1a56db; /* Warna biru link yang kontras */
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
            transition: opacity 0.2s;
        }

        .footer-link:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

        /* Teks Hak Cipta */
        .footer-copyright {
            font-size: 11px;
            color: #a0a0a5;
            text-align: center;
            margin-top: 16px;
            margin-bottom: 0; /* Pastikan tidak ada margin tambahan di bawah */
            font-weight: 500;
        }