/* ==========================================================================
   Tema "Learnova" — lapisan tampilan di atas styles.css.
   Kembali ke desain lama: hapus <link theme-learnova.css> di CORPU-KH.html,
   atau salin isi folder backup-desain-lama/ ke root.
   ========================================================================== */

:root {
    --font-main: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    --primary: #6d5bf5;
    --primary-light: #8b7cf8;
    --primary-dark: #4f3fd6;
    --primary-soft: #f0eeff;
    /* Turunan warna utama: ditimpa theme-color.js bila admin mengganti Warna Tema */
    --primary-rgb: 109, 91, 245;
    --primary-bright: #8b7cf8;
    --primary-deep: #312a8f;
    --primary-navy: #1d1847;
    --secondary: #c5a022;
    --accent-soft: #fde68a;
    --bg-body: #f5f6fb;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-topbar: rgba(245, 246, 251, 0.85);
    --text-main: #1f2140;
    --text-muted: #7c7f9a;
    --border-color: #eceef5;
    --shadow-sm: 0 1px 2px rgba(31, 33, 64, 0.04), 0 4px 14px rgba(31, 33, 64, 0.04);
    --shadow-md: 0 8px 24px rgba(31, 33, 64, 0.07);
    --shadow-lg: 0 16px 40px rgba(31, 33, 64, 0.10);
    --border-radius: 18px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
}

[data-theme="dark"] {
    --primary: #8b7cf8;
    --primary-light: #a79bff;
    --primary-dark: #6d5bf5;
    --primary-soft: rgba(139, 124, 248, 0.14);
    --primary-rgb: 139, 124, 248;
    --primary-bright: #a79bff;
    --primary-navy: #13142a;
    --bg-body: #0e0f1c;
    --bg-card: #171829;
    --bg-sidebar: #13142a;
    --bg-topbar: rgba(14, 15, 28, 0.85);
    --text-main: #eef0ff;
    --text-muted: #9a9cbc;
    --border-color: #262842;
}

/* Poppins hanya dimuat s.d. 600: semua permintaan 700-900 di kode lama tampil semibold, tidak terlalu tebal */
body { font-family: var(--font-main); }
*, *::before, *::after { font-synthesis-weight: none; }

/* --- Sidebar (menu datar seperti contoh: ikon abu, item aktif = pil ungu muda) --- */
.sidebar { border-right: 1px solid var(--border-color); box-shadow: none; }
.sidebar-header { border-bottom: none; padding: 22px 20px 10px; }
.sidebar-header:hover { background: transparent; }
.brand-name { color: var(--text-main); }
.brand-sub { color: var(--primary); }
.sidebar-search { padding: 10px 16px; }
.sidebar-search i { left: 30px; }
.sidebar-search input { border-radius: 12px; background: var(--bg-body); border-color: transparent; }
.sidebar-nav { padding: 6px 14px; }
.nav-category { margin-bottom: 2px; }

.nav-category-btn,
[data-theme="dark"] .nav-category-btn {
    border-radius: 12px !important;
    padding: 10px 12px !important;
    font-size: 0.86rem;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    background: transparent;
}
.nav-category-btn span,
[data-theme="dark"] .nav-category-btn span { color: inherit !important; }
.nav-category-btn i:first-child,
[data-theme="dark"] .nav-category-btn i:first-child { color: inherit !important; filter: none; font-size: 1.15rem; }
.nav-category-btn:hover,
[data-theme="dark"] .nav-category-btn:hover { background: var(--bg-body) !important; color: var(--text-main) !important; }
.nav-category-btn.active,
[data-theme="dark"] .nav-category-btn.active { background: transparent !important; color: var(--text-main) !important; font-weight: 600 !important; }
.nav-arrow { font-size: 1rem; opacity: 0.6; }

.nav-items { padding-left: 0; border-left: none; margin: 2px 0 6px; }
.nav-item { border-radius: 12px; padding: 9px 12px 9px 40px; font-size: 0.84rem; }
.nav-item i { font-size: 1.05rem; }
.nav-item:hover,
[data-theme="dark"] .nav-item:hover { background: var(--bg-body); color: var(--text-main); }
.nav-item.active,
[data-theme="dark"] .nav-item.active {
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    font-weight: 600;
}
.nav-item.active i { color: var(--primary) !important; }

/* Kaki sidebar: kartu pengguna + tombol keluar */
.sidebar-footer { display: flex; align-items: center; gap: 8px; padding: 12px 14px 16px; border-top: none; }
.sidebar-user {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 10px;
    padding: 10px; border-radius: 14px;
    background: var(--bg-body); color: var(--text-main);
    transition: background 0.2s;
}
.sidebar-user:hover { background: var(--primary-soft); }
.sidebar-user[hidden] { display: none; }
.sidebar-user-avatar {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff; font-size: 0.78rem; font-weight: 600;
}
.sidebar-user-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sidebar-user-info strong { font-size: 0.8rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info small { font-size: 0.7rem; color: var(--text-muted); }
.sidebar-footer .logout-footer {
    width: auto !important; flex: 0 0 auto;
    padding: 12px !important; border-radius: 12px;
    justify-content: center !important;
}
.sidebar-footer .logout-footer i { margin: 0; }
.sidebar-footer .sidebar-user:not([hidden]) + .logout-footer span { display: none; }
.sidebar-user[hidden] + .logout-footer { width: 100% !important; justify-content: flex-start !important; gap: 10px; }
.sidebar.collapsed .sidebar-user-info,
.sidebar.collapsed .sidebar-user { display: none; }

/* --- Topbar --- */
.topbar { border-bottom: none; }
.topbar-btn { border-radius: 12px; background: var(--bg-card); box-shadow: var(--shadow-sm); }
.topbar-btn:hover { background: var(--primary-soft); color: var(--primary); }
.topbar-user { border-radius: 14px; background: var(--bg-card); border-color: var(--border-color); box-shadow: var(--shadow-sm); }
.topbar-user-avatar,
[data-theme="dark"] .topbar-user-avatar { border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important; color: #fff !important; }

/* --- Kartu --- */
.glass,
.stat-card,
.summary-card,
.chart-card,
.content-card,
.course-card,
.settings-card,
.stat-mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}
.glass { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Kartu bagian: judul + isi dalam satu kartu (Portofolio, Profil Karier, laporan) */
.section-card { padding: 18px 20px; margin-top: 16px; }
.section-card:first-child { margin-top: 0; }
.section-card > h3 { font-size: 1rem; font-weight: 600; margin: 0 0 12px; }
.section-card .glass { background: none; border: 0; box-shadow: none; padding: 0 !important; border-radius: 0; }
.section-card > p.text-muted:last-child { margin: 0; font-size: 0.9rem; }
.summary-card::before { display: none; }
.summary-card:hover,
.course-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.summary-icon, .stat-icon { border-radius: 14px; }

.summary-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.summary-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "label icon" "value icon" "sub icon";
    align-items: center;
    column-gap: 12px;
    row-gap: 2px;
    padding: 18px 20px;
}
.summary-card .summary-header { grid-area: icon; }
.summary-card .summary-label { grid-area: label; font-size: 0.82rem; font-weight: 500; color: var(--text-main); }
.summary-card .summary-value { grid-area: value; margin: 4px 0 2px; font-weight: 700; }
.summary-card .summary-sub { grid-area: sub; font-size: 0.74rem; color: var(--text-muted); }
.summary-card .summary-icon { width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; }

.chart-card { padding: 20px; gap: 14px; }
.chart-title { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; font-weight: 600; }
.chart-title i { color: var(--primary); font-size: 1.1rem; }
.view-all { color: var(--primary); font-weight: 600; font-size: 0.8rem; }

.progress-bar-container { height: 8px; border-radius: 99px; background: var(--primary-soft); }
.progress-bar-fill { border-radius: 99px; background: linear-gradient(90deg, var(--primary-light), var(--primary)); }

/* --- Tombol --- */
.btn-primary,
[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.28) !important;
}
.btn-primary:hover,
[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.38) !important;
}
.btn-primary i,
[data-theme="dark"] .btn-primary i { color: #fff !important; }
.btn-secondary, .btn-outline { border-radius: 12px; }

/* --- Bottom navigation (mobile) --- */
.bottom-nav { display: none; }

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 95;
        background: var(--bg-card);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -6px 20px rgba(31, 33, 64, 0.06);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    }
    .bottom-nav button {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 6px 0;
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--text-muted);
        border-radius: 12px;
    }
    .bottom-nav button i { font-size: 1.3rem; }
    .bottom-nav button.active { color: var(--primary); }
    .bottom-nav button.active i { background: var(--primary-soft); border-radius: 10px; padding: 2px 14px; }
    .bottom-nav button[hidden] { display: none; }

    .main { padding-bottom: 72px; }
    .chatbot-floating-wrapper { bottom: 84px !important; right: 16px !important; }
    .chatbot-tooltip-bubble { display: none !important; }
    .topbar { padding: 0 12px; gap: 8px; }
    .topbar-left { min-width: 0; flex: 1; gap: 10px; }
    .topbar-breadcrumb { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .topbar-right { gap: 6px; flex-shrink: 0; }
    .topbar-user-wrap { margin-left: 0; }
    .topbar-user { padding: 4px; }
    .topbar-user-info, .topbar-dropdown-arrow { display: none; }
    .summary-card, .chart-card { padding: 16px; }
}

/* ==========================================================================
   Tipografi: satu keluarga font, skala ukuran proporsional (mengecil mulus di layar kecil)
   ========================================================================== */
body, button, input, select, textarea, option,
h1, h2, h3, h4, h5, h6 { font-family: var(--font-main); }
code, pre, kbd { font-family: ui-monospace, Consolas, monospace; }

h1, h2, h3, h4 { letter-spacing: -0.01em; line-height: 1.25; }

/* Judul hero halaman */
.home-hero .home-title,
.catalog-hero-title,
.faq-hero-title { font-size: clamp(1.55rem, 1rem + 2vw, 2.3rem) !important; letter-spacing: -0.02em; line-height: 1.2; }
.motto-main { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.6rem) !important; line-height: 1.2; }

/* Judul bagian */
.bg-section-title,
.section-title { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem) !important; }
.bg-info-box h3,
.philosophy-summary h3 { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem) !important; }

/* Teks isi */
.home-hero .home-definition { font-size: clamp(0.92rem, 0.88rem + 0.25vw, 1.05rem); line-height: 1.7; }
.bg-content { font-size: clamp(0.9rem, 0.87rem + 0.2vw, 0.98rem); line-height: 1.75; }
.bg-info-box li, .motto-item { font-size: 0.9rem; }
.motto-item strong { font-size: 1.05rem; }

/* Angka statistik */
.summary-value, .stat-info p { font-size: clamp(1.35rem, 1.15rem + 0.7vw, 1.75rem) !important; }

/* Halaman Pengenalan CorpU */
.home-hero { background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.12) 100%); border-color: rgba(var(--primary-rgb), 0.16); }
[data-theme="dark"] .home-hero { background: linear-gradient(145deg, rgba(var(--primary-rgb), 0.10) 0%, rgba(var(--primary-rgb), 0.22) 100%); border-color: var(--border-color); }
.philosophy-intro { font-size: clamp(0.92rem, 0.88rem + 0.25vw, 1.02rem); line-height: 1.7; border-left-color: var(--primary); }
.motto-item strong { color: var(--accent-soft); }

/* Sisa hijau merek -> ungu (hijau status "selesai/lulus" sengaja dibiarkan) */
.btn-ticket-submit,
[data-theme="dark"] .btn-ticket-submit {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-color: var(--primary-dark);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.28);
    color: #fff;
}
.btn-ticket-submit:hover,
[data-theme="dark"] .btn-ticket-submit:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.38);
}
[data-theme="dark"] .ticket-modal-icon-badge { background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); }

/* ==========================================================================
   Lebar halaman seragam: setiap pembungkus halaman memenuhi area konten
   dengan tepi yang sejajar (template JS menulis max-width/padding inline berbeda-beda)
   ========================================================================== */
.content > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
.content > .page-content,
.content > .helpdesk-container,
.content > .faq-container { padding: 0 !important; }

/* ==========================================================================
   Tabel seragam di semua halaman (mengikuti tabel Kursus & Materi).
   !important dipakai karena banyak template JS menulis padding/ukuran inline.
   ========================================================================== */
.content table:not([id^="printArea"] table) {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    font-size: 0.875rem !important;
}
.content table:not([id^="printArea"] table) th {
    background: rgba(var(--primary-rgb), 0.06) !important;
    color: var(--primary) !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    text-align: left;
    padding: 13px 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    white-space: nowrap;
}
.content table:not([id^="printArea"] table) th:first-child { border-top-left-radius: 12px; }
.content table:not([id^="printArea"] table) th:last-child { border-top-right-radius: 12px; }
.content table:not([id^="printArea"] table) td {
    font-size: 0.875rem !important;
    color: var(--text-main);
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color) !important;
}
.content table:not([id^="printArea"] table) td:not([colspan]) { padding: 13px 16px !important; }
.content table:not([id^="printArea"] table) tbody tr:last-child td { border-bottom: none !important; }
.content table:not([id^="printArea"] table) tbody tr:hover td { background: rgba(var(--primary-rgb), 0.03); }
[data-theme="dark"] .content table th { background: rgba(var(--primary-rgb), 0.12) !important; }

/* ==========================================================================
   Responsif tambahan
   ========================================================================== */
.home-logo { max-width: 100%; }

@media (max-width: 768px) {
    .content h1 { font-size: clamp(1.35rem, 1rem + 2.4vw, 1.7rem) !important; }
    .content h2 { font-size: clamp(1.15rem, 1rem + 1.2vw, 1.35rem); }

    /* Padding kartu bertumpuk jangan memakan lebar layar */
    .home-container { gap: 18px; padding-bottom: 24px; }
    .home-hero { padding: 28px 18px !important; border-radius: 22px; }
    .home-logo { width: 260px; margin-bottom: 18px; }
    .background-card,
    .philosophy-card,
    .philosophy-summary,
    .motto-card { padding: 22px 16px !important; border-radius: 20px; }
    .bg-info-box, .ph-item { padding: 16px; }
    .philosophy-intro { padding-left: 14px; }
    .bg-info-grid { gap: 14px; }
    .motto-explanation { grid-template-columns: 1fr; gap: 10px; }
    .motto-item { padding: 14px; }
    .glass, .content-card, .settings-card { border-radius: 16px; }

    /* Tabel lebar: gulir di dalam tabel, bukan seluruh halaman */
    .content :has(> table) { max-width: 100%; overflow-x: auto; }
    .content table { min-width: 620px; }
    .content th { white-space: nowrap; }

    /* Header judul + tombol (flex inline di template JS) boleh turun baris */
    .content [style*="justify-content: space-between"],
    .content [style*="justify-content:space-between"],
    .card-header, .chart-header, .section-header { flex-wrap: wrap; gap: 10px; }
    .content .page-content[style*="padding"] { padding: 4px 0 !important; }
}

/* ==========================================================================
   Dashboard (tata letak mengikuti contoh Learnova)
   ========================================================================== */
.dash-greet { margin-bottom: 20px; }
.dash-greet > span { font-size: 0.88rem; color: var(--text-muted); }
.dash-greet h2 { margin: 2px 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 700; }
.dash-greet p { margin: 0; font-size: 0.86rem; color: var(--text-muted); }

.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
.dash-grid > * { min-width: 0; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.dash-grid .chart-container { height: 260px; }

.smart-dashboard-container { gap: 18px; }
.smart-dashboard-container > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.smart-dashboard-container > :empty { display: none; }
.text-muted { color: var(--text-muted); }
.dash-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px 12px; text-align: center; font-size: 0.84rem; color: var(--text-muted); }
.dash-fill { flex: 1; display: flex; flex-direction: column; }
.dash-news > .dash-empty { grid-column: 1 / -1; }
.dash-empty i { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: var(--primary); background: var(--primary-soft); }

.chart-center { position: absolute; left: 0; right: 0; top: calc(50% - 14px); transform: translateY(-50%); text-align: center; pointer-events: none; }
.chart-center strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.chart-center span { font-size: 0.72rem; color: var(--text-muted); }

[data-theme="dark"] .bg-blue-light { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; }
[data-theme="dark"] .bg-green-light { background: rgba(34, 197, 94, 0.14); color: #86efac; }
[data-theme="dark"] .bg-purple-light { background: rgba(167, 139, 250, 0.16); color: #c4b5fd; }
[data-theme="dark"] .bg-gold-light { background: rgba(250, 204, 21, 0.14); color: #fde047; }

/* Kartu "Lanjutkan Belajar" (hanya mobile, seperti contoh aplikasi) */
.dash-hero { display: none; }

/* Timeline jadwal */
.tl-item { display: grid; grid-template-columns: 64px 14px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; }
.tl-item + .tl-item { border-top: 1px dashed var(--border-color); }
.tl-time strong { display: block; font-size: 0.84rem; font-weight: 600; }
.tl-time span { font-size: 0.72rem; color: var(--text-muted); }
.tl-dot { position: relative; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 3px solid var(--primary); background: var(--bg-card); }
.tl-body strong { display: block; font-size: 0.86rem; font-weight: 600; }
.tl-body span { font-size: 0.74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.tl-tag { font-size: 0.72rem; font-weight: 600; color: #16a34a; background: #dcfce7; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
[data-theme="dark"] .tl-tag { background: rgba(22, 163, 74, 0.15); color: #4ade80; }

/* Donut progres */
.donut-wrap { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 24px; flex: 1; }
.donut {
    --p: 0;
    position: relative; width: 150px; aspect-ratio: 1; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--primary-soft) 0);
}
.donut::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--bg-card); }
.donut-center { position: relative; text-align: center; }
.donut-center strong { display: block; font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.donut-center span { font-size: 0.7rem; color: var(--text-muted); }
.donut-legend { display: grid; gap: 12px; flex: 1; min-width: 150px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.donut-legend i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend span { flex: 1; color: var(--text-muted); }
.donut-legend strong { font-weight: 600; }

/* Target belajar */
.goal + .goal { margin-top: 18px; }
.goal-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 0.84rem; }
.goal-head strong { font-weight: 600; }
.goal-head span { font-weight: 600; color: var(--primary); }
.goal small { display: block; margin-top: 6px; font-size: 0.72rem; color: var(--text-muted); }

/* Kartu sorotan bergradasi (setara kartu "Current Streak") */
.dash-highlight {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: 20px; text-align: center; color: #fff;
    border-radius: var(--border-radius);
    background: linear-gradient(160deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    box-shadow: 0 14px 30px rgba(var(--primary-rgb), 0.3);
}
.dash-highlight-title { font-size: 0.84rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dash-highlight-icon { width: 64px; height: 64px; margin: 12px 0 8px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: rgba(255, 255, 255, 0.18); }
.dash-highlight strong { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.dash-highlight span { font-size: 0.84rem; opacity: 0.9; }
.dash-highlight small { margin-top: 8px; font-size: 0.72rem; opacity: 0.85; }

/* Daftar kursus */
.course-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border-radius: 14px; cursor: pointer;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, background 0.2s;
}
.course-row + .course-row { margin-top: 10px; }
.course-row:hover { border-color: var(--primary); background: var(--primary-soft); }
.course-row-icon { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.course-row-info { flex: 1; min-width: 0; }
.course-row-info strong { display: block; font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-row-info span { font-size: 0.74rem; color: var(--text-muted); }
.course-row-pct { font-size: 0.84rem; font-weight: 600; }

/* Pembaruan pengetahuan */
.dash-news { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.dash-news-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-body); }
.dash-news-item .summary-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; }
.dash-news-item strong { display: block; font-size: 0.84rem; font-weight: 600; }
.dash-news-item span { font-size: 0.72rem; color: var(--text-muted); }

/* ==========================================================================
   Halaman profil (avatar bulat + menu daftar seperti contoh)
   ========================================================================== */
.profile-layout { display: grid !important; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.profile-side { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; position: sticky; top: 90px; margin: 0 !important; }
.profile-side .profile-avatar {
    width: 96px; height: 96px; margin-bottom: 8px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: #fff; font-size: 2rem; font-weight: 600;
    box-shadow: 0 0 0 6px var(--primary-soft);
}
/* Foto profil: mengisi lingkaran avatar mana pun (topbar, dropdown, halaman Profil) */
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.topbar-user-avatar, #dropdownAvatarBig { overflow: hidden; }
.profile-avatar-upload { position: relative; cursor: pointer; }
.profile-avatar-upload .avatar-img { border-radius: 50%; }
.profile-avatar-edit {
    position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1rem;
    background: var(--bg-card); color: var(--primary); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm);
}
.profile-avatar-upload:hover .profile-avatar-edit { background: var(--primary); color: #fff; }
.profile-photo-remove { background: none; border: 0; padding: 0; margin: -2px 0 4px; font: inherit; font-size: 0.78rem; color: var(--text-muted); cursor: pointer; text-decoration: underline; }
.profile-photo-remove:hover { color: #dc2626; }
.profile-name { margin: 0; font-size: 1.15rem !important; font-weight: 700; color: var(--text-main); }
.profile-meta { font-size: 0.8rem; color: var(--text-muted); overflow-wrap: anywhere; }
.profile-facts { width: 100%; display: grid; gap: 8px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--bg-body); text-align: left; }
.profile-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.78rem; }
.profile-facts span { color: var(--text-muted); }
.profile-facts strong { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.profile-menu { width: 100%; display: flex; flex-direction: column; margin-top: 6px; }
.profile-menu a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--border-color); color: var(--text-main); font-size: 0.86rem; font-weight: 500; }
.profile-menu a:last-child { border-bottom: none; }
.profile-menu a span { flex: 1; text-align: left; }
.profile-menu a i { font-size: 1.15rem; color: var(--text-muted); }
.profile-menu a:hover, .profile-menu a:hover i { color: var(--primary); }
.profile-menu a.danger, .profile-menu a.danger i { color: #ef4444; }
.profile-main { margin: 0 !important; }

/* ==========================================================================
   Form & tab halaman
   ========================================================================== */
.content input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
.content select,
.content textarea {
    border-radius: 12px !important;
    border: 1px solid var(--border-color) !important;
    background-color: var(--bg-body) !important;
    font-size: 0.88rem !important;
}
.content input:focus,
.content select:focus,
.content textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    background-color: var(--bg-card) !important;
    box-shadow: 0 0 0 3px var(--primary-soft) !important;
}
.content label { font-weight: 600 !important; }

.page-tabs { padding: 0 !important; margin: 0 0 18px !important; gap: 8px !important; }
/* Tab di bawah judul: rapatkan jarak judul -> tab */
:has(+ .page-tabs-below) { margin-bottom: 14px !important; }
.pill-btn { background: var(--bg-card); box-shadow: var(--shadow-sm); font-weight: 500; }
.pill-btn.active { font-weight: 600; }

/* ==========================================================================
   Tablet & mobile
   ========================================================================== */
@media (max-width: 1200px) {
    .span-3, .span-4, .span-5, .span-6 { grid-column: span 6; }
    .span-7, .span-8 { grid-column: span 12; }
}

@media (max-width: 900px) {
    .profile-layout { grid-template-columns: 1fr; }
    .profile-side { position: static; }
}

@media (max-width: 768px) {
    /* Header mobile ringkas: judul halaman + lonceng + avatar (menu ada di bottom-nav) */
    .topbar { height: 64px; }
    .topbar-menu-btn, #themeToggle, .topbar-breadcrumb .breadcrumb-section, .topbar-breadcrumb > i { display: none !important; }
    .topbar-breadcrumb .breadcrumb-page { font-size: 1.05rem; font-weight: 700; color: var(--text-main); }

    .page-tabs { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-right: -14px !important; padding-right: 14px !important; }
    .page-tabs::-webkit-scrollbar { display: none; }
    .page-tabs .pill-btn { flex-shrink: 0; }

    .smart-dashboard-container { gap: 14px; }
    .dash-grid { grid-template-columns: 1fr; gap: 14px; }
    .dash-grid > * { grid-column: auto !important; }
    .dash-courses { order: -1; }

    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px; }
    .summary-card { padding: 14px; column-gap: 8px; }
    .summary-card .summary-icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .summary-card .summary-label { font-size: 0.74rem; }

    .dash-hero {
        position: relative; display: grid; gap: 4px;
        margin-bottom: 16px; padding: 18px 76px 18px 18px;
        border-radius: 20px; cursor: pointer; color: #fff;
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, var(--primary-dark) 100%);
        box-shadow: 0 12px 28px rgba(var(--primary-rgb), 0.35);
    }
    .dash-hero-label { justify-self: start; margin-bottom: 6px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); font-size: 0.7rem; }
    .dash-hero strong { font-size: 1.02rem; font-weight: 600; }
    .dash-hero-sub { font-size: 0.78rem; opacity: 0.85; }
    .dash-hero-progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.72rem; }
    .dash-hero-bar { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); }
    .dash-hero-bar div { height: 100%; border-radius: 99px; background: #fff; }
    .dash-hero-play { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--primary); font-size: 1.4rem; }

    .donut { width: 130px; }
    .tl-item { grid-template-columns: 54px 12px minmax(0, 1fr); }
    .tl-tag { grid-column: 3; justify-self: start; }
}

/* Judul halaman tanpa ikon: lebih bersih & elegan (ikon di judul kartu/section tetap) */
.content h1 > i[class^="ri-"], .content h1 > i[class*=" ri-"],
.content h2 > i[class^="ri-"], .content h2 > i[class*=" ri-"],
.admin-title-wrap > i[class*="ri-"] { display: none; }

/* ==========================================================================
   Chatbot K-Bot (HelpDesk): header ringkas, satu baris, tanpa emoji
   ========================================================================== */
.chatbot-window { width: 370px; border-radius: 22px; border: 1px solid var(--border-color); box-shadow: 0 24px 60px rgba(31, 33, 64, 0.18); }
.chatbot-header {
    padding: 14px 14px 14px 16px; gap: 10px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
    border-bottom: none;
}
.chatbot-header-info { min-width: 0; flex: 1; gap: 10px; }
.chatbot-avatar { width: 42px; height: 42px; flex-shrink: 0; }
.chatbot-title-wrap { min-width: 0; }
.chatbot-title { font-size: 0.95rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbot-subtitle { font-size: 0.72rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatbot-header-actions { flex-shrink: 0; align-items: center; gap: 4px; }
.chatbot-gender-badge {
    padding: 5px 10px; margin-right: 2px; gap: 5px;
    font-size: 0.7rem; font-weight: 500; white-space: nowrap;
    background: rgba(255, 255, 255, 0.16); border: none; border-radius: 99px;
}
.chatbot-gender-badge:hover { transform: none; background: rgba(255, 255, 255, 0.28); }
.chatbot-hdr-btn { width: 30px; height: 30px; border-radius: 50%; background: transparent; }
.chatbot-hdr-btn:hover { background: rgba(255, 255, 255, 0.18); }

.chatbot-notice-bar,
[data-theme="dark"] .chatbot-notice-bar {
    justify-content: center; padding: 7px 14px;
    background: var(--primary-soft); border-bottom: none;
    color: var(--primary); font-size: 0.7rem; font-weight: 500;
}

.chatbot-messages-body { padding: 16px 14px; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; }
.chatbot-messages-body::-webkit-scrollbar { width: 6px; }
.chatbot-messages-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 99px; }
.chat-avatar { width: 32px; height: 32px; }
.chat-bubble { padding: 10px 14px; font-size: 0.84rem; line-height: 1.55; border-radius: 18px; }
.bot-msg .chat-bubble { border-top-left-radius: 6px; box-shadow: none; }
.user-msg .chat-bubble { border-top-right-radius: 6px; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); }
.chat-time { font-size: 0.66rem; }

.chatbot-quick-prompts { margin-top: 0; padding: 0; border: none; background: transparent; }
.quick-prompts-label { margin-bottom: 8px; font-size: 0.72rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.quick-prompts-list { gap: 8px; }
.quick-prompt-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 99px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    font-size: 0.74rem; font-weight: 500; color: var(--text-main);
}
.quick-prompt-btn i { color: var(--primary); font-size: 0.95rem; }
.quick-prompt-btn:hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

.chatbot-input-bar { padding: 12px 14px; gap: 10px; border-top: 1px solid var(--border-color); background: var(--bg-card); }
.chatbot-input-bar input { border-radius: 99px; padding: 11px 16px; font-size: 0.84rem; background: var(--bg-body); border: 1px solid transparent; }
.chatbot-input-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.chatbot-send-btn { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)); box-shadow: 0 6px 14px rgba(var(--primary-rgb), 0.3); }

@media (max-width: 768px) {
    /* Mobile: panel jadi lembar penuh di atas bottom-nav; tombol pemicu disembunyikan saat terbuka */
    .chatbot-floating-wrapper.open .chatbot-window {
        position: fixed; top: 12px; left: 12px; right: 12px; bottom: 84px;
        width: auto; height: auto; max-width: none; max-height: none; margin: 0;
    }
    .chatbot-floating-wrapper.open .chatbot-trigger-btn { display: none; }
}

/* Avatar dropdown profil ikut bulat seperti avatar lain */
#dropdownAvatarBig { border-radius: 50% !important; background: linear-gradient(135deg, var(--primary-light), var(--primary-dark)) !important; }

/* ==========================================================================
   Halaman depan (landing) pengunjung — #preloader.landing
   Tata letak mengikuti portal Digitalent (header 2 baris, slider + 2 banner,
   pita pelatihan, tema populer, pita gelap), warna tetap tema Learnova.
   ========================================================================== */
#preloader.landing {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth;
    background: var(--bg-card); animation: none; color: var(--text-main);
    --dg-navy: var(--primary-navy);
}
.landing .ld-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.landing h1, .landing h2, .landing h3 { font-weight: 600; color: var(--text-main); }
.landing section[id] { scroll-margin-top: 140px; }

/* Tombol pil (Masuk/Daftar) */
.dg-pill {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--primary); cursor: pointer; text-decoration: none;
    background: var(--primary); color: #fff; font: 500 0.85rem var(--font-main);
    padding: 7px 22px; border-radius: 999px; transition: background .2s, color .2s;
}
.dg-pill:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.dg-pill-outline { background: transparent; color: var(--primary); }
.dg-pill-outline:hover { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.dg-pill-light { background: #fff; border-color: #fff; color: var(--primary-dark); padding: 10px 24px; }
.dg-pill-light:hover { background: var(--primary-soft); border-color: var(--primary-soft); }

/* Header 2 baris: logo + pencarian + tombol, lalu baris menu */
.dg-header { position: sticky; top: 0; z-index: 20; background: var(--bg-card); }
.dg-top { border-bottom: 1px solid var(--border-color); }
.dg-top-inner { display: flex; align-items: center; gap: 28px; height: 84px; }
.dg-brand img { height: 64px; display: block; }
[data-theme="dark"] .dg-brand img, [data-theme="dark"] .dg-footer-logo, [data-theme="dark"] .dg-art-card img { background: #e2e8f0; border-radius: 10px; padding: 3px 6px; }
.dg-search { flex: 1; max-width: 600px; margin: 0 auto; display: flex; align-items: center; background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 999px; padding: 0 6px 0 20px; height: 42px; }
.dg-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: var(--text-main); font: 400 0.85rem var(--font-main); }
.dg-search button { border: none; background: none; color: var(--text-main); font-size: 1.1rem; cursor: pointer; padding: 6px 10px; }
.dg-actions { display: flex; gap: 10px; }
/* Kontrol khusus mobile (tersembunyi di desktop) */
.dg-icon { width: 42px; height: 42px; border: none; border-radius: 10px; background: transparent; color: var(--text-main); font-size: 1.5rem; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.dg-burger { background: var(--bg-body); }
.dg-burger, .dg-mobile-icons, .dg-nav-actions { display: none; }
.dg-nav { background: var(--bg-card); box-shadow: 0 2px 6px rgba(31, 33, 64, 0.06); }
.dg-nav-inner { display: flex; justify-content: space-between; gap: 8px; height: 48px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.dg-nav-inner::-webkit-scrollbar { display: none; }
.dg-nav a { color: var(--text-main); text-decoration: none; font-size: 0.88rem; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.dg-nav a:hover { color: var(--primary); }
.dg-new { background: #ef4444; color: #fff; font-size: 0.6rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }

/* Hero: pita warna di separuh atas, slider besar + 2 banner bertumpuk */
.dg-hero { background: linear-gradient(var(--primary) 0 50%, transparent 50%); padding: 4px 0 40px; }
.dg-hero-grid { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 0; box-shadow: var(--shadow-lg); border-radius: 4px; overflow: hidden; }
.dg-slider { position: relative; aspect-ratio: 16 / 8.2; overflow: hidden; background: var(--primary-dark); }
.dg-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: 24px; padding: 40px 72px; color: #fff; opacity: 0; transition: opacity .6s; pointer-events: none;
    background: radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.18), transparent 40%), linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--primary-light)); }
.dg-slide.active { opacity: 1; pointer-events: auto; }
.dg-slide-alt { background: radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.2), transparent 45%), linear-gradient(120deg, var(--primary-deep), var(--primary) 70%, var(--primary-light)); }
.dg-slide-deep { background: radial-gradient(circle at 20% 20%, rgba(167, 139, 250, 0.35), transparent 45%), linear-gradient(120deg, var(--dg-navy), var(--primary-dark)); }
.dg-slide-kicker { display: inline-block; font-size: 0.75rem; font-weight: 500; letter-spacing: .04em; background: rgba(255, 255, 255, 0.16); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.landing .dg-slide h1 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.6rem); line-height: 1.15; margin-bottom: 12px; }
.dg-slide h1 em { font-style: normal; color: var(--accent-soft); }
.dg-slide p { font-size: 0.9rem; opacity: .9; line-height: 1.6; margin-bottom: 20px; max-width: 440px; }
.dg-slide-art { display: grid; place-items: center; }
.dg-art-card { width: min(100%, 230px); aspect-ratio: 1; border-radius: 28px; background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); transform: rotate(-4deg); }
.dg-art-card img { width: 72%; }
.dg-art-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dg-art-icons i { width: 86px; height: 86px; border-radius: 24px; display: grid; place-items: center; font-size: 2.3rem; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25); }
.dg-art-icons i:first-child { grid-column: span 2; justify-self: center; background: #fff; color: var(--primary); }
.dg-slide-img { padding: 0; display: block; background: var(--primary-dark); }
.dg-slide-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dg-slide-img.has-text::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 16, 60, 0.78), rgba(20, 16, 60, 0.35) 55%, transparent); }
.dg-slide-img .dg-slide-text { position: absolute; z-index: 1; left: 72px; top: 50%; transform: translateY(-50%); max-width: 52%; }
.dg-slide-link { position: absolute; inset: 0; z-index: 1; }
.dg-single .dg-slider-btn, .dg-single .dg-dots { display: none; }
.dg-slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 1.4rem; cursor: pointer; display: grid; place-items: center; }
.dg-slider-btn:hover { background: rgba(255, 255, 255, 0.35); }
.dg-slider-btn.prev { left: 16px; }
.dg-slider-btn.next { right: 16px; }
.dg-dots { position: absolute; bottom: 16px; left: 72px; z-index: 2; display: flex; gap: 6px; }
.dg-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: width .3s; }
.dg-dots button.active { width: 26px; background: #fff; }
.dg-side { display: grid; grid-template-rows: 1fr 1fr; }
.dg-banner { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 24px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--primary-deep), var(--primary)); }
.dg-banner-soft { background: linear-gradient(135deg, var(--primary-light), var(--primary)); }
.dg-banner span { align-self: flex-start; font-size: 0.68rem; font-weight: 600; background: #fff; color: var(--primary-dark); padding: 3px 10px; border-radius: 6px; }
.dg-banner b { font-size: 1.25rem; font-weight: 600; line-height: 1.25; margin-top: 6px; max-width: 70%; }
.dg-banner small { font-size: 0.78rem; opacity: .9; max-width: 68%; line-height: 1.45; }
.dg-banner i { position: absolute; right: -10px; bottom: -14px; font-size: 6.5rem; opacity: .22; transition: transform .3s; }
.dg-banner:hover i { transform: scale(1.08) rotate(-6deg); }
/* Banner sisi hero dari Rilis Media (dicentang admin): foto + judul */
.dg-banner-photo { justify-content: flex-end; background: var(--primary-navy); }
.dg-banner-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dg-banner-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 8, 30, 0.85), rgba(10, 8, 30, 0.15) 70%); }
.dg-banner-photo > * { position: relative; z-index: 1; }
.dg-banner-photo > img { position: absolute; z-index: 0; }
.dg-banner-photo b { max-width: 100%; font-size: 1.05rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-banner-photo small { max-width: 100%; }
.dg-banner-photo:hover > img { transform: scale(1.05); }

/* Section umum */
.dg-section { padding: 56px 0; }
.dg-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.dg-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
.dg-head p { font-size: 0.9rem; color: var(--text-muted); }
.dg-head a[hidden] { display: none; }
.dg-head a { color: var(--primary); font-size: 0.95rem; font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; }
.dg-gray { background: var(--bg-body); }
.dg-line { border-top: 1px solid var(--border-color); }

/* Kategori (setara "Pilih Akademi"): kartu kecil ringkas, 8 kolom */
.dg-cats { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px; }
.dg-cat { cursor: pointer; font-family: var(--font-main); color: var(--text-main); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 8px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.dg-cat:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
/* Ilustrasi kategori (folder icon/): gambar diskalakan proporsional dalam kotak seragam */
.dg-cat-art { width: 100%; height: 84px; display: block; margin-bottom: 10px; overflow: hidden; }
.dg-cat-art img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.dg-cat:hover .dg-cat-art img { transform: scale(1.06); }
.dg-cat b { font-size: 0.78rem; font-weight: 600; line-height: 1.3; min-height: 2.6em; display: flex; align-items: center; }
.dg-cat small { font-size: 0.7rem; color: var(--text-muted); }

/* Pita warna: pelatihan terbaru */
.dg-band { background: var(--primary); }
.landing .dg-band h2, .dg-band .dg-head p, .dg-band .dg-head a { color: #fff; }
.dg-band .dg-head p { opacity: .9; }
.dg-course { border-radius: 10px; border: none; }
.dg-course .ld-thumb { aspect-ratio: 16 / 9.5; }
.dg-course-cat { font-size: 0.75rem; color: var(--text-muted); }
.dg-course h3 { font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dg-course .ld-meta { margin-top: auto; padding-top: 6px; }

/* Platform mitra (setara "Tema Pelatihan Populer") */
.dg-topics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.dg-topics-art { position: relative; height: 260px; max-width: 460px; margin: 0 auto; width: 100%; }
/* Logo resmi mitra melayang di pelat putih (tetap putih di dark mode); ukuran logo proporsional terhadap pelatnya */
.dg-logo { position: absolute; display: grid; place-items: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow-md); width: 78px; height: 78px; padding: 14px; animation: dg-float 6s ease-in-out infinite; }
.dg-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.dg-logo-wide { width: 150px; height: 64px; padding: 12px 16px; }
.dg-logo.l1 { left: 50%; top: 50%; width: 180px; height: 78px; margin: -39px 0 0 -90px; z-index: 1; box-shadow: var(--shadow-lg); animation-delay: -1s; }
.dg-logo.l2 { left: 2%; top: 4%; transform: rotate(-5deg); animation-delay: -2s; }
.dg-logo.l3 { right: 6%; top: 0; transform: rotate(6deg); animation-delay: -3s; }
.dg-logo.l4 { left: 10%; bottom: 2%; transform: rotate(5deg); animation-delay: -4s; }
.dg-logo.l5 { right: 12%; bottom: 0; width: 72px; height: 72px; transform: rotate(-6deg); animation-delay: -5s; }
@keyframes dg-float { 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .dg-logo { animation: none; } }
.dg-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.dg-topic { text-align: left; cursor: pointer; font-family: var(--font-main); background: var(--bg-card); color: var(--text-main); border: none; border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; transition: box-shadow .2s, transform .2s; }
/* Pelat logo putih tetap (juga di dark mode) agar logo resmi terbaca; logo lebar/kotak diskalakan proporsional */
.dg-topic:hover { box-shadow: var(--shadow-md); transform: translateX(3px); }
.dg-topic b { font-size: 0.88rem; font-weight: 600; }
.dg-topic small { font-size: 0.75rem; color: var(--text-muted); }

/* Skillhub Kemnaker: carousel kartu (geser + titik) */
.sk-logo { height: 46px; display: block; margin-bottom: 14px; }
[data-theme="dark"] .sk-logo, [data-theme="dark"] .sk-foot img { background: #fff; border-radius: 8px; padding: 4px 8px; }
.sk-head { align-items: center; }
.sk-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 14px; scrollbar-width: none; }
.sk-track::-webkit-scrollbar { display: none; }
.sk-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--text-main); box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s; }
.sk-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.sk-cover { width: 100%; aspect-ratio: 16 / 9.3; object-fit: cover; display: block; background: var(--bg-body); }
.sk-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sk-body small { font-size: 0.78rem; color: var(--text-muted); }
.sk-body b { font-size: 0.9rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--border-color); font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; }
.sk-foot b { color: var(--text-main); font-weight: 600; }
.sk-foot img { height: 22px; }
.sk-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.sk-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; padding: 0; background: var(--border-color); cursor: pointer; transition: width .3s, background .3s; }
.sk-dots button.active { width: 26px; background: var(--primary); }
@media (max-width: 1024px) { .sk-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 720px) { .sk-logo { height: 38px; } }

/* Info & pengetahuan (setara "Rilis Media") */
.dg-news { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dg-news-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--border-color); border-radius: 10px; text-decoration: none; color: var(--text-main); transition: box-shadow .2s; }
.dg-news-card:hover { box-shadow: var(--shadow-md); }
.dg-news-card small { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: capitalize; }
.dg-news-card b { font-size: 0.88rem; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dg-news-card span { font-size: 0.75rem; color: var(--primary); margin-top: auto; }

/* Pita gelap: setelah pelatihan (setara "Pasca Pelatihan") */
.dg-navy { background: var(--dg-navy); }
.landing .dg-navy h2, .dg-navy .dg-head p { color: #fff; }
.dg-navy .dg-head a { color: var(--primary-bright); }
.dg-career { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
/* Ilustrasi orang: PNG transparan langsung di atas pita gelap */
.dg-career-art { max-width: 520px; width: 100%; justify-self: center; }
.dg-career-art img { display: block; width: 100%; height: auto;
    /* lantai gambar terpotong lurus di kanan & bawah: pudarkan tepinya agar menyatu dengan pita */
    -webkit-mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(to bottom, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 78%, transparent), linear-gradient(to bottom, #000 82%, transparent);
    mask-composite: intersect; }
.dg-career-list { display: flex; flex-direction: column; gap: 14px; }
.dg-career-item { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); color: #fff; }
.dg-career-item > i { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: #c7f0ec; color: var(--dg-navy); }
.dg-career-item b { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.dg-career-item p { font-size: 0.82rem; line-height: 1.6; opacity: .88; }

/* Capaian (setara "Awards") */
.dg-awards { text-align: center; }
.landing .dg-awards h2 { font-size: 1.15rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 36px; color: var(--text-muted); }
.dg-awards h2 b { font-weight: 600; color: var(--text-main); }
/* Angka infografis: gradasi Warna Tema (terang -> gelap), bagian bawah angka "masuk" ke balik lipatan kertas */
.dg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; max-width: 1000px; margin: 0 auto; }
.dg-stat { display: flex; flex-direction: column; align-items: center; }
.dg-stat-num { position: relative; display: block; height: 76px; overflow: hidden; padding: 0 14px; }
.dg-stat-num b { display: block; font-size: 6.2rem; line-height: 1; font-weight: 600; letter-spacing: -2px; color: var(--stat-c); }
.dg-stat-num::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.10)); }
.dg-stat::after { content: ''; display: block; order: 1; width: 78%; height: 14px; margin-top: -2px; background: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0) 70%); }
.dg-stat h4 { order: 2; margin: 14px 0 10px; font-size: 0.9rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-main); }
.dg-stat p { order: 3; font-size: 0.8rem; line-height: 1.6; color: var(--text-muted); max-width: 210px; }
.dg-stat.c1 { --stat-c: var(--primary-light); }
.dg-stat.c2 { --stat-c: var(--primary); }
.dg-stat.c3 { --stat-c: var(--primary-dark); }
.dg-stat.c4 { --stat-c: var(--primary-deep); }

/* Footer abu 3 kolom */
.dg-footer { background: var(--bg-body); padding-top: 56px; }
.dg-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.dg-footer-logo { height: 76px; margin-bottom: 14px; }
.dg-footer p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.dg-footer-actions { display: flex; gap: 10px; }
.dg-footer h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; color: var(--text-main); }
.dg-footer-grid a { display: block; font-size: 0.85rem; color: var(--text-muted); text-decoration: none; margin-bottom: 12px; }
.dg-footer-grid a:hover { color: var(--primary); }
.dg-footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--border-color); }

/* Pengaturan Beranda (admin) */
.hs-list { display: flex; flex-direction: column; gap: 12px; }
.hs-row { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; }
.hs-off { opacity: .55; }
.hs-thumb { width: 180px; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: var(--primary-soft); flex-shrink: 0; }
.hs-thumb img, .hs-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hs-info b { font-size: 0.95rem; font-weight: 600; }
.hs-info span, .hs-info small { font-size: 0.8rem; color: var(--text-muted); }
.hs-actions { display: flex; gap: 6px; }
.hs-preview { max-width: 360px; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden; background: var(--bg-body); border: 1px dashed var(--border-color); display: grid; place-items: center; margin-top: 6px; }
.hs-preview span { font-size: 0.85rem; color: var(--text-muted); }
@media (max-width: 720px) {
    .hs-row { flex-wrap: wrap; }
    .hs-thumb { width: 100%; }
}

/* Warna Tema (admin) */
.tc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.tc-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); padding: 22px; box-shadow: var(--shadow-sm); }
.tc-title { font-size: 1rem; font-weight: 600; margin: 0 0 14px; }
.tc-field { margin-bottom: 16px; }
.tc-field label { display: block; font-size: 0.88rem; font-weight: 600; }
.tc-field small { display: block; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.tc-pick { display: flex; gap: 10px; align-items: center; }
.tc-pick input[type="color"] { width: 56px; height: 44px; padding: 3px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-body); cursor: pointer; }
.tc-pick input[type="text"] { width: 120px; padding: 10px 12px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-body); color: var(--text-main); font: 500 0.9rem monospace; text-transform: lowercase; }
.tc-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tc-preset { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-body); color: var(--text-main); font: 500 0.8rem var(--font-main); cursor: pointer; text-align: left; }
.tc-preset:hover { border-color: var(--primary); }
.tc-preset span { position: relative; width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.tc-preset i { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--bg-body); }
.tc-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.tc-preview { display: flex; flex-direction: column; gap: 14px; }
.tc-band { border-radius: 12px; padding: 22px; color: #fff; background: linear-gradient(120deg, var(--primary-dark), var(--primary) 60%, var(--primary-light)); }
.tc-band b { display: block; font-size: 1.2rem; font-weight: 600; margin-top: 8px; }
.tc-band em { font-style: normal; color: var(--accent-soft); }
.tc-kicker { font-size: 0.72rem; background: rgba(255, 255, 255, 0.18); padding: 3px 10px; border-radius: 999px; }
.tc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tc-nav { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: 0.85rem; font-weight: 500; }
.tc-navy { border-radius: 12px; padding: 16px 22px; background: var(--primary-navy); color: #fff; font-size: 0.85rem; }
@media (max-width: 900px) { .tc-grid { grid-template-columns: minmax(0, 1fr); } }

/* Rilis Media: detail & halaman kelola */
.dg-news-card { cursor: pointer; }
.mr-overlay { position: fixed; inset: 0; z-index: 100010; background: rgba(10, 10, 30, 0.6); display: grid; place-items: center; padding: 20px; overflow-y: auto; }
.mr-detail { position: relative; width: min(760px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg-card); color: var(--text-main); border-radius: 18px; box-shadow: var(--shadow-lg); }
.mr-detail-img { width: 100%; max-height: 380px; object-fit: cover; display: block; }
.mr-detail-body { padding: 24px 28px 28px; }
.mr-detail h2 { font-size: 1.4rem; font-weight: 600; margin: 8px 0 6px; line-height: 1.35; color: var(--text-main); }
.mr-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.mr-content { font-size: 0.92rem; line-height: 1.8; white-space: pre-line; }
.mr-content a { color: var(--primary); word-break: break-all; }
.mr-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.mr-cat { font-size: 0.75rem; font-weight: 600; color: var(--primary); }
.mr-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mr-tabs button { font: 500 0.82rem var(--font-main); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); cursor: pointer; }
.mr-tabs button span { font-size: 0.72rem; background: var(--primary-soft); color: var(--primary); padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.mr-tabs button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mr-tabs button.active span { background: rgba(255, 255, 255, 0.25); color: #fff; }
.mr-list { display: flex; flex-direction: column; gap: 12px; }
.mr-row { display: flex; align-items: center; gap: 16px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; }
.mr-thumb { width: 132px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 1.6rem; flex-shrink: 0; }
.mr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mr-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.mr-info b { font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.mr-info b:hover { color: var(--primary); }
.mr-info small { font-size: 0.78rem; color: var(--text-muted); }
.mr-info .mr-note { color: #dc2626; }
.mr-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mr-status { font-size: 0.7rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.mr-pending { background: #fef3c7; color: #b45309; }
.mr-published { background: #dcfce7; color: #15803d; }
.mr-rejected { background: #fee2e2; color: #b91c1c; }
.mr-hero { background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; gap: 3px; }
.mr-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.mr-btn { padding: 7px 14px !important; font-size: 0.8rem !important; }
.mr-check { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; font-weight: 500; cursor: pointer; padding: 6px 12px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.mr-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
@media (max-width: 720px) {
    .mr-row { flex-wrap: wrap; }
    .mr-thumb { width: 100%; }
    .mr-actions { justify-content: flex-start; }
    .mr-detail-body { padding: 18px; }
}

/* Kartu bersama (beranda + dashboard) */
.ld-grid { display: grid; gap: 20px; }
.ld-grid > * { min-width: 0; }
.ld-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.ld-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.ld-empty { color: var(--text-muted); font-size: 0.9rem; }
.dg-band .ld-empty { color: #fff; }
.ld-muted { color: var(--text-muted); }

/* Kartu pelatihan */
.ld-courses { grid-template-columns: repeat(4, 1fr); }
.ld-course { overflow: hidden; cursor: pointer; display: flex; flex-direction: column; }
.ld-thumb { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: grid; place-items: center; overflow: hidden; }
.ld-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ld-thumb > i { font-size: 3rem; color: rgba(255, 255, 255, 0.9); }
.ld-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, 0.92); color: var(--primary-dark); font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ld-course-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ld-meta { display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted); }
.ld-meta .ri-star-fill { color: #f5a524; }
.ld-course h3 { font-size: 0.98rem; line-height: 1.4; }
.ld-course p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ld-course-foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border-color); }
.ld-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 0.68rem; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.ld-instr { font-size: 0.78rem; color: var(--text-muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-course-foot b { font-size: 0.95rem; font-weight: 600; color: var(--primary); }

/* Pembelajaran eksternal */
.ext-note { font-size: 0.85rem; margin: -12px 0 16px; }
.ext-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ext-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ext-chip { font-family: var(--font-main); font-size: 0.78rem; font-weight: 500; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); cursor: pointer; }
.ext-chip.active, .ext-chip:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.ext-search { font-family: var(--font-main); font-size: 0.85rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-main); min-width: 220px; }
.ext-more { text-align: center; margin-top: 20px; }
.ext-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 18px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 0.86rem; line-height: 1.6; }
.ext-notice i { font-size: 1.3rem; color: #d97706; line-height: 1.2; }
.ext-notice b { font-weight: 600; }
[data-theme="dark"] .ext-notice { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); color: #fcd34d; }
.ext-notice-sm { display: flex; align-items: center; gap: 6px; margin: -6px 0 14px; font-size: 0.78rem; color: #b45309; }
[data-theme="dark"] .ext-notice-sm { color: #fcd34d; }
.ext-platform { align-self: flex-start; font-size: 0.72rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 4px 10px; border-radius: 999px; }
.ld-thumb + .ld-course-body .ext-platform { display: none; }
.ext-card { position: relative; cursor: default; }
.ext-card > a { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.ext-admin { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.ext-admin .btn-action-icon { background: var(--bg-card); }
.ext-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ext-img-row { display: flex; gap: 10px; align-items: center; }
.ext-img-row img { width: 96px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); flex-shrink: 0; }
@media (max-width: 720px) {
    .ext-form { grid-template-columns: minmax(0, 1fr); }
    .ext-search { min-width: 0; width: 100%; }
    .ext-img-row { flex-wrap: wrap; }
}

/* Pakar */
.ld-experts { grid-template-columns: repeat(4, 1fr); }
.ld-expert { padding: 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ld-expert-photo { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; background: var(--primary-soft); color: var(--primary); font-size: 1.6rem; font-weight: 600; display: grid; place-items: center; margin-bottom: 8px; }
.ld-expert-photo img { width: 100%; height: 100%; object-fit: cover; }
.ld-expert b { font-size: 0.95rem; font-weight: 600; }
.ld-expert small { font-size: 0.78rem; color: var(--primary); }
.ld-expert small.ld-muted { color: var(--text-muted); }

@media (max-width: 1024px) {
    .ld-courses, .ld-experts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dg-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dg-news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dg-hero-grid { grid-template-columns: minmax(0, 1fr); }
    .dg-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .dg-slide { padding: 32px 56px; }
}
@media (max-width: 720px) {
    .landing .ld-wrap { padding: 0 16px; }
    /* Header mobile ala Digitalent: [menu] logo ........ [cari] [akun] */
    .dg-top-inner { flex-wrap: wrap; height: auto; min-height: 68px; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
    .dg-burger { display: grid; }
    .dg-brand img { height: 46px; }
    .dg-actions { display: none; }
    .dg-mobile-icons { display: flex; gap: 2px; margin-left: auto; }
    .dg-search { display: none; order: 3; flex-basis: 100%; height: 40px; }
    .dg-header.search-open .dg-search { display: flex; }
    .dg-nav { display: none; max-height: calc(100vh - 70px); overflow-y: auto; }
    .dg-header.menu-open .dg-nav { display: block; }
    .dg-nav-inner { flex-direction: column; align-items: stretch; height: auto; gap: 0; padding-top: 6px; padding-bottom: 16px; }
    .dg-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
    .dg-nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
    .dg-nav-actions .dg-pill { justify-content: center; padding: 10px; }
    .landing section[id] { scroll-margin-top: 80px; }
    .dg-hero { padding-top: 0; }
    .landing .dg-hero-grid { margin: 0; width: 100%; padding: 0; max-width: none; border-radius: 0; }
    .dg-slider { aspect-ratio: auto; min-height: 300px; }
    .dg-slide { grid-template-columns: minmax(0, 1fr); padding: 26px 22px 46px; }
    .dg-slide-art { display: none; }
    .dg-slider-btn { display: none; }
    .dg-dots { left: 24px; }
    /* 2 banner berdampingan di bawah slider */
    .dg-side { grid-template-columns: 1fr 1fr; }
    .dg-banner { min-height: 150px; padding: 14px; gap: 2px; }
    .dg-banner b { font-size: 0.9rem; max-width: 100%; }
    .dg-banner small { display: none; }
    .dg-banner span { font-size: 0.6rem; padding: 2px 7px; }
    .dg-banner i { font-size: 4rem; right: -8px; bottom: -10px; }
    .dg-banner-photo b { font-size: 0.82rem; -webkit-line-clamp: 3; }
    .dg-banner-photo small { display: block; font-size: 0.68rem; }
    .dg-section { padding: 40px 0; }
    .dg-head { flex-direction: column; align-items: flex-start; margin-bottom: 22px; }
    .dg-head h2 { font-size: 1.25rem; }
    .dg-cats { gap: 8px; }
    .dg-cat { padding: 12px 4px 10px; border-radius: 12px; }
    .dg-cat-art { height: 56px; margin-bottom: 6px; }
    .dg-cat b { font-size: 0.68rem; }
    .dg-cat small { display: none; }
    .dg-slide-img .dg-slide-text { left: 24px; right: 24px; max-width: none; }
    .dg-slider.dg-img-only { aspect-ratio: 16 / 8.2; min-height: 0; }
    .dg-news, .dg-topic-list { grid-template-columns: minmax(0, 1fr); }
    /* Kartu pelatihan 2 kolom (2x2) & isi dipadatkan */
    .ld-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ld-course-body { padding: 10px 11px; gap: 5px; }
    .ld-course h3, .dg-course h3 { font-size: 0.8rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .ld-course p { display: none; }
    .ld-meta { gap: 6px; font-size: 0.66rem; flex-wrap: wrap; }
    .ld-tag { top: 8px; left: 8px; font-size: 0.6rem; padding: 3px 7px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ld-course-foot { gap: 4px; padding-top: 6px; }
    .ld-course-foot b { font-size: 0.72rem; }
    .ld-instr { font-size: 0.68rem; }
    .dg-course-cat { font-size: 0.66rem; }
    .ext-platform { font-size: 0.62rem; padding: 3px 7px; }
    .ext-tools { gap: 10px; }
    .ext-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
    .ext-chips::-webkit-scrollbar { display: none; }
    .ext-chip { white-space: nowrap; }
    .sk-track { grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; }
    .sk-body { padding: 10px 11px; }
    .sk-body b { font-size: 0.8rem; }
    .sk-body small { font-size: 0.66rem; }
    .sk-foot { padding: 8px 11px; font-size: 0.64rem; }
    .sk-foot img { height: 16px; }
    .dg-topics, .dg-career { grid-template-columns: minmax(0, 1fr); }
    .dg-career-art { max-width: 360px; }
    .dg-topics-art { height: 210px; }
    .dg-logo { width: 60px; height: 60px; padding: 10px; border-radius: 14px; }
    .dg-logo-wide { width: 116px; height: 50px; padding: 9px 12px; }
    .dg-logo.l1 { width: 140px; height: 60px; margin: -30px 0 0 -70px; }
    .dg-logo.l5 { width: 56px; height: 56px; }
    .dg-stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .dg-stat-num { height: 56px; }
    .dg-stat-num b { font-size: 4.4rem; }
    .dg-stat h4 { font-size: 0.78rem; }
    .dg-stat p { font-size: 0.74rem; }
    .dg-footer-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
