    :root {
      --primary: #4F46E5; --secondary: #EC4899;
      --bg-color: #f8f9fa; --card-bg: rgba(255, 255, 255, 0.9);
      --text-main: #1f2937; --font-main: 'Poppins', sans-serif;
      /* Garis tepi: halus tapi tetap terlihat di tema terang */
      --line: rgba(15, 23, 42, 0.10); --line-strong: rgba(15, 23, 42, 0.18); --gold: #c9a227; --gold-text: #9a7614;
      --bs-border-color: rgba(15, 23, 42, 0.12); --bs-border-color-translucent: rgba(15, 23, 42, 0.12);
    }

    [data-bs-theme="dark"] {
      --bg-color: #0f172a; --card-bg: rgba(30, 41, 59, 0.8); --text-main: #f1f5f9;
      /* Garis tepi tema gelap: abu kebiruan lembut, tidak menyilaukan */
      --line: rgba(148, 163, 184, 0.14); --line-strong: rgba(148, 163, 184, 0.26); --gold: #d4af37; --gold-text: #d4af37;
      --bs-border-color: rgba(148, 163, 184, 0.18); --bs-border-color-translucent: rgba(148, 163, 184, 0.18);
      background: radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.15), transparent 25%),
                  radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15), transparent 25%);
      background-color: #0f172a;
    }

    body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-main); transition: 0.3s ease; min-height: 100vh; display: flex; flex-direction: column; }
    
    .marquee-container { background: linear-gradient(90deg, var(--primary), var(--secondary)); color: white; padding: 8px 0; overflow: hidden; white-space: nowrap; position: relative; display: flex; }
    .marquee-text { display: inline-block; padding-left: 100%; animation: marquee var(--marquee-dur, 40s) linear infinite; font-weight: 500; font-size: clamp(0.82rem, 0.74rem + 0.3vw, 1rem); will-change: transform; }
    .marquee-container:hover .marquee-text, .marquee-container:active .marquee-text { animation-play-state: paused; }
    @media (prefers-reduced-motion: reduce) { .marquee-text { animation: none; padding-left: 12px; white-space: normal; } .marquee-container { white-space: normal; } }
    @keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

    .navbar-custom { background: var(--card-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
    .navbar-custom .nav-item { margin: 0 5px; }
    .navbar-custom .nav-link { transition: all 0.3s ease; border-radius: 8px; padding: 8px 16px !important; color: var(--text-main) !important; font-weight: 500; }
    .navbar-custom .nav-link:hover, .navbar-custom .nav-link:focus { background-color: rgba(79, 70, 229, 0.1); color: var(--primary) !important; transform: translateY(-2px); }
    .navbar-custom .dropdown-item { transition: all 0.2s ease; border-radius: 6px; margin: 2px 5px; width: auto; font-weight: 500; }
    .navbar-custom .dropdown-item:hover { background-color: rgba(79, 70, 229, 0.1); color: var(--primary) !important; padding-left: 20px; }
    
    /* Submenu terbuka otomatis saat kursor di atas menu (laptop/desktop). Di HP tetap ketuk untuk buka. */
    @media (min-width: 992px) and (hover: hover) {
      .navbar-custom .nav-item.dropdown > .dropdown-menu { display: block; visibility: hidden; opacity: 0; margin-top: 0; transform: translateY(6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
      .navbar-custom .nav-item.dropdown:hover > .dropdown-menu,
      .navbar-custom .nav-item.dropdown:focus-within > .dropdown-menu,
      .navbar-custom .nav-item.dropdown > .dropdown-menu.show { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
      .navbar-custom .nav-item.dropdown:last-child > .dropdown-menu { right: 0; left: auto; }
      .navbar-custom .nav-item.dropdown > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }  /* jembatan agar menu tidak menutup saat kursor turun */
    }
    .theme-btn { background: none; border: none; font-size: 1.2rem; color: var(--text-main); cursor: pointer; transition: transform 0.2s; }
    .theme-btn:hover { transform: scale(1.1); color: var(--primary); }
    .login-nav-btn { background: none; border: 1px solid var(--text-main); border-radius: 50%; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: var(--text-main); cursor: pointer; transition: all 0.2s; }
    .login-nav-btn:hover { border-color: var(--primary); color: var(--primary); transform: scale(1.1); }

    .glass-card { background: var(--card-bg); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); transition: 0.2s; cursor: pointer; }
    .glass-card:hover { transform: translateY(-5px); }
    .link-thumbnail { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; border-top-left-radius: 16px; border-top-right-radius: 16px; }

    .portfolio-marquee-container { display: flex; overflow-x: hidden; width: 100%; padding: 15px 0; position: relative; margin-top: 15px; }
    .portfolio-marquee-container::before, .portfolio-marquee-container::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
    .portfolio-marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
    .portfolio-marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }
    .portfolio-marquee-track { display: flex; width: max-content; animation: marquee-portfolio 30s linear infinite; }
    .portfolio-marquee-container:hover .portfolio-marquee-track { animation-play-state: paused; }
    .marquee-block { display: flex; gap: 1.5rem; padding-right: 1.5rem; }
    @keyframes marquee-portfolio { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
    .portfolio-item { width: 320px; flex-shrink: 0; white-space: normal; }

    .admin-wrapper { display: flex; flex: 1; overflow: hidden; }
    .sidebar { width: 250px; background: var(--card-bg); border-right: 1px solid var(--line); transition: 0.3s; z-index: 1040; overflow-y: auto; }
    .main-content { flex: 1; overflow-y: auto; padding: 20px; }
    .nav-item-custom { padding: 10px 20px; color: var(--text-main); display: block; text-decoration: none; border-radius: 8px; margin: 4px 10px; font-weight: 500; font-size: 0.95rem; }
    .nav-item-custom:hover, .nav-item-custom.active { background: rgba(79, 70, 229, 0.1); color: var(--primary); }
    
    @media (max-width: 768px) {
      .sidebar { position: fixed; left: -250px; height: 100vh; }
      .sidebar.active { left: 0; }
      .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1030; }
      .sidebar-overlay.active { display: block; }
      .portfolio-marquee-container::before, .portfolio-marquee-container::after { width: 30px; }
    }

    .placeholder-glow .placeholder { background: linear-gradient(90deg, rgba(128,128,128,0.2) 25%, rgba(128,128,128,0.3) 50%, rgba(128,128,128,0.2) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
    @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
    .opacity-60 { opacity: 0.6; pointer-events: none; }
    
    .text-truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; }
    .text-truncate-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1.05rem; }
    .fade-enter { animation: fadeIn 0.4s ease-in-out; }
    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    
    .search-input-wrapper { border-radius: 50px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--card-bg); backdrop-filter: blur(10px); transition: 0.3s; }
    .search-input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2); }
    .search-input-wrapper input:focus { box-shadow: none; border: none; }

    .carousel-control-prev-icon, .carousel-control-next-icon { background-color: rgba(0,0,0,0.6); border-radius: 50%; padding: 1.2rem; background-size: 50%; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
    .carousel-control-prev, .carousel-control-next { opacity: 0.8; width: 10%; }
    .carousel-control-prev:hover, .carousel-control-next:hover { opacity: 1; }

    .pagination .page-link { background-color: var(--card-bg); border-color: var(--line); color: var(--text-main); font-weight: 500; transition: 0.2s; cursor: pointer; }
    .pagination .page-link:hover { background-color: rgba(79, 70, 229, 0.1); color: var(--primary); }
    .pagination .active .page-link { background-color: var(--primary); border-color: var(--primary); color: white; }

    /* Fix Tema Gelap untuk Quill */
    .ql-toolbar { background: rgba(255,255,255,0.9); border-radius: 8px 8px 0 0; border: 1px solid rgba(128,128,128,0.3) !important; }
    .ql-container { background: var(--card-bg); border-radius: 0 0 8px 8px; color: var(--text-main); font-family: var(--font-main); font-size: 0.95rem; border: 1px solid rgba(128,128,128,0.3) !important; border-top: none !important; }
    .ql-editor { min-height: 150px; }
    .rte-wrapper { margin-bottom: 1rem; }
    .rte-wrapper > textarea { width: 100%; min-height: 260px; }
    /* Editor teks kaya (Jodit) menyatu dengan tema situs */
    .jodit-container:not(.jodit_inline) { border-radius: 8px; border-color: var(--line-strong); }
    .jodit-wysiwyg { font-family: var(--font-main); font-size: 0.95rem; line-height: 1.7; }
    .jodit_theme_dark.jodit-container, .jodit_theme_dark .jodit-wysiwyg { color: #e2e8f0; }
    .jodit-wysiwyg table, .detail-body table { border-collapse: collapse; max-width: 100%; margin: 1rem 0; }
    .jodit-wysiwyg td, .jodit-wysiwyg th { border: 1px solid rgba(128,128,128,0.45); padding: 6px 10px; }
    /* Kompatibilitas konten lama berkelas Quill (ql-*) saat disunting di editor baru */
    .jodit-wysiwyg .ql-align-center { text-align: center; } .jodit-wysiwyg .ql-align-right { text-align: right; } .jodit-wysiwyg .ql-align-justify { text-align: justify; }
    .jodit-wysiwyg pre.ql-syntax { background: #23241f; color: #f8f8f2; padding: 12px 16px; border-radius: 8px; white-space: pre-wrap; overflow: auto; }

    /* Halaman detail (artikel, produk, karya, halaman kustom) */
    .no-lift:hover { transform: none; }
    .detail-body.ql-editor { padding: 0; height: auto; min-height: 0; overflow: visible; font-size: 1.05rem; line-height: 1.75; color: var(--text-main); }
    .detail-body img, .detail-body video { max-width: 100%; height: auto; border-radius: 12px; }
    .detail-body iframe { max-width: 100%; border: 0; border-radius: 12px; }
    .detail-body iframe.ql-video { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .detail-body a { color: var(--primary); }
    .detail-body td, .detail-body th { border: 1px solid rgba(128,128,128,0.45); padding: 0.5rem 0.75rem; vertical-align: top; overflow-wrap: anywhere; }
    .detail-body th { background: rgba(128,128,128,0.14); font-weight: 700; text-align: left; }
    .detail-body pre:not(.ql-syntax) { background: #23241f; color: #f8f8f2; padding: 12px 16px; border-radius: 8px; white-space: pre-wrap; overflow: auto; }
    .detail-body pre { overflow-x: auto; }
    .detail-body hr { border-color: rgba(128,128,128,0.5); opacity: 1; }
    .detail-body .ql-align-justify, .detail-body [style*="text-align: justify"] { text-align: justify; }
    /* Ponsel: tabel 2 kolom ditumpuk per baris; tabel 3+ kolom diperkecil agar muat tanpa geser */
    @media (max-width: 575px) {
      .detail-body td, .detail-body th { text-align: left !important; padding: 0.4rem 0.5rem; overflow-wrap: anywhere; min-width: 0; }
      .detail-body table:has(th:nth-child(3)) { table-layout: fixed; width: 100% !important; font-size: 0.85rem; }
      .detail-body table:not(:has(th:nth-child(3))) thead { display: none; }
      .detail-body table:not(:has(th:nth-child(3))), .detail-body table:not(:has(th:nth-child(3))) tbody, .detail-body table:not(:has(th:nth-child(3))) tr, .detail-body table:not(:has(th:nth-child(3))) td { display: block; width: 100% !important; }
      .detail-body table:not(:has(th:nth-child(3))) tr { border: 1px solid rgba(128,128,128,0.45); border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; }
      .detail-body table:not(:has(th:nth-child(3))) td { border: 0; padding: 0.5rem 0.75rem; }
      .detail-body table:not(:has(th:nth-child(3))) td:first-child { background: rgba(128,128,128,0.14); }
      .detail-body table:not(:has(th:nth-child(3))) td:last-child { text-align: justify !important; }
    }
    .breadcrumb { --bs-breadcrumb-divider-color: rgba(128, 128, 128, 0.7); }
    .breadcrumb a { color: var(--primary); text-decoration: none; }
    .breadcrumb a:hover { text-decoration: underline; }
    .breadcrumb-item.active { color: var(--text-main); opacity: 0.7; }

    /* Beranda: kicker, tombol kedua, layanan, ajakan, footer */
    .link-thumbnail.thumb-wide { aspect-ratio: 1200 / 630; }
    .hero-kicker { color: #7c3aed; font-size: 0.95rem; }
    [data-bs-theme="dark"] .hero-kicker { color: #a78bfa; }
    .btn-hero-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; border-radius: 8px; transition: 0.2s; }
    .btn-hero-outline:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
    [data-bs-theme="dark"] .btn-hero-outline { border-color: #a78bfa; color: #c4b5fd; }
    [data-bs-theme="dark"] .btn-hero-outline:hover { background: #7c3aed; border-color: #7c3aed; color: #fff; }
    .service-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
    .cta-box { border-radius: 20px; background: linear-gradient(135deg, #4F46E5, #9333ea 55%, #EC4899); box-shadow: 0 10px 30px rgba(79,70,229,0.25); }
    .brand-gradient { background: linear-gradient(90deg, #818cf8, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .footer-link { color: inherit; opacity: 0.75; text-decoration: none; margin: 0 0.6rem; font-size: 0.9rem; white-space: nowrap; }
    .footer-link:hover { opacity: 1; color: var(--primary); }
    .footer-social { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-left: 0.35rem; border-radius: 50%; color: inherit; opacity: 0.75; border: 1px solid var(--line-strong); text-decoration: none; transition: 0.2s; line-height: 1; vertical-align: middle; }
    .footer-social:hover { opacity: 1; color: #fff; background: var(--primary); border-color: var(--primary); }
    @media (max-width: 767px) { .footer-social { margin: 0 0.25rem; } .footer-link { display: inline-block; margin: 0.15rem 0.5rem; } }

    /* Halaman login: tepat di tengah layar */
    .auth-page { flex: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 0; }
    .auth-page.d-none { display: none !important; }

/* Kredit pembuat di footer demo: tanpa garis bawah, hover hanya ganti warna */
.footer-dev{display:inline-flex;align-items:center;gap:.3rem;color:inherit;text-decoration:none!important;vertical-align:middle}
.footer-dev:hover{color:var(--primary);text-decoration:none!important}
.footer-dev img{border-radius:4px}

    /* ===== Video YouTube terbaru ===== */
    .yt-section { padding: 1rem 0 2.5rem; }
    .yt-latest { display: flex; gap: 1.5rem; align-items: center; padding: 1.25rem; cursor: auto; }
    .yt-thumb { position: relative; flex: 0 0 46%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #000; cursor: pointer; }
    .yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
    .yt-thumb:hover img { transform: scale(1.03); }
    .yt-thumb.is-short img { object-fit: contain; }
    .yt-frame { flex: 0 0 46%; width: 46%; aspect-ratio: 16 / 9; border: 0; border-radius: 12px; background: #000; }
    .yt-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 45px; transform: translate(-50%, -50%); background: #ff0000; border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
    .yt-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%); border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
    .yt-info { flex: 1; min-width: 0; }
    .yt-label { color: #ef4444; font-weight: 700; font-size: .78rem; letter-spacing: .4px; text-transform: uppercase; margin-bottom: .35rem; }
    .yt-title { font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem); font-weight: 700; line-height: 1.35; margin-bottom: 1rem; }
    .yt-latest .btn { white-space: nowrap; }
    .yt-btn-watch { background: #ff0000; color: #fff; border: 0; }
    .yt-btn-watch:hover, .yt-btn-watch:focus { background: #d90000; color: #fff; }
    .yt-btn-sub, .yt-btn-later { background: rgba(128,128,128,.18); color: var(--text-main); border: 0; }
    .yt-btn-sub:hover, .yt-btn-later:hover { background: rgba(128,128,128,.3); color: var(--text-main); }
    @media (max-width: 767.98px) {
      .yt-latest { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1rem; }
      .yt-thumb, .yt-frame { flex: none; width: 100%; }
      .yt-latest .btn { flex: 1; }
    }

    .yt-slider { padding: 1.25rem; cursor: auto; }
    .yt-slider-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
    .yt-nav { width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(128,128,128,.18); color: var(--text-main); }
    .yt-nav:hover:not(:disabled) { background: rgba(128,128,128,.32); }
    .yt-nav:disabled { opacity: .35; }
    .yt-track { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: .25rem; }
    .yt-track::-webkit-scrollbar { display: none; }
    .yt-slide { flex: 0 0 calc((100% - 2rem) / 3); scroll-snap-align: start; min-width: 0; }
    .yt-slide .yt-thumb, .yt-slide .yt-frame { display: block; width: 100%; flex: none; }
    .yt-slide-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: .6rem; font-weight: 600; line-height: 1.4; color: var(--text-main); text-decoration: none; }
    .yt-slide-title:hover { color: var(--primary); }
    @media (max-width: 991.98px) { .yt-slide { flex-basis: calc((100% - 1rem) / 2); } }
    @media (max-width: 575.98px) { .yt-slider { padding: 1rem; } .yt-slide { flex-basis: 82%; } .yt-slider-head .btn { padding: .4rem .7rem; } .yt-ctrl { width: 100%; } .yt-ctrl .yt-btn-sub { margin-right: auto; } }

    /* Bingkai emas bagian video di atas footer (ukuran tetap selebar konten lain) */
    .yt-section .yt-slider, .yt-section .yt-latest { border: 1.5px solid var(--gold) !important; box-shadow: 0 0 0 1px rgba(212,175,55,.15), 0 6px 22px rgba(212,175,55,.12); }
    .yt-section .yt-label { color: var(--gold-text); }
    
    .yt-card { position: fixed; right: 20px; bottom: 20px; z-index: 1080; width: 330px; background: var(--card-bg); color: var(--text-main); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 36px rgba(0,0,0,.28); overflow: hidden; opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s; }
    [data-bs-theme="light"] .yt-card, :root:not([data-bs-theme="dark"]) .yt-card { background: rgba(255,255,255,.97); }
    .yt-card.show { opacity: 1; transform: none; }
    .yt-card-head { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; font-size: .72rem; font-weight: 700; color: #ef4444; letter-spacing: .4px; }
    .yt-x { width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(128,128,128,.2); color: var(--text-main); font-size: 1.1rem; line-height: 1; }
    .yt-x:hover { background: rgba(128,128,128,.35); }
    .yt-card-body { padding: 0 .75rem .75rem; }
    .yt-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; margin-bottom: .6rem; }
    .yt-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .yt-card .yt-play { width: 48px; height: 34px; border-radius: 9px; }
    .yt-card .yt-play::after { border-left-width: 14px; border-top-width: 8px; border-bottom-width: 8px; }
    .yt-card-title { font-weight: 700; font-size: .9rem; line-height: 1.35; margin-bottom: .55rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .yt-card-bar { height: 3px; background: rgba(128,128,128,.25); }
    .yt-card-bar i { display: block; height: 100%; width: 100%; background: #ef4444; }
    @media (max-width: 575.98px) {
      .yt-card { left: 10px; right: 10px; bottom: 10px; width: auto; }
      .yt-card-body { display: flex; gap: .65rem; align-items: center; }
      .yt-card-thumb { flex: 0 0 40%; margin-bottom: 0; }
      .yt-card-text { flex: 1; min-width: 0; }
      .yt-card-title { font-size: .82rem; }
    }
    /* Kartu pengumuman: bingkai emas, ringkas */
    .yt-card { width: 250px; border-radius: 14px; border: 1.5px solid var(--gold); box-shadow: 0 0 0 1px rgba(212,175,55,.15), 0 10px 28px rgba(0,0,0,.3), 0 4px 16px rgba(212,175,55,.14); }
    .yt-card-head { color: var(--gold-text); padding: .4rem .6rem; font-size: .66rem; }
        .yt-card .yt-x { width: 24px; height: 24px; font-size: .95rem; }
    .yt-card-body { padding: 0 .6rem .6rem; }
    .yt-card-thumb { margin-bottom: .45rem; border-radius: 8px; }
    .yt-card .yt-play { width: 38px; height: 27px; border-radius: 7px; }
    .yt-card .yt-play::after { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
    .yt-card-title { font-size: .78rem; margin-bottom: .45rem; }
    .yt-card .btn-sm { padding: .25rem .4rem; font-size: .75rem; }
    .yt-card-bar { height: 2px; }
    .yt-card-bar i { background: linear-gradient(90deg, var(--gold), #f3d27a); }
    @media (max-width: 575.98px) {
      .yt-card { width: auto; left: 10px; right: 10px; bottom: 10px; border-radius: 16px; }
      .yt-card-head { padding: .55rem .75rem; font-size: .72rem; }
      .yt-card .yt-x { width: 28px; height: 28px; font-size: 1.1rem; }
      .yt-card-body { padding: 0 .75rem .75rem; gap: .65rem; }
      .yt-card-thumb { flex: 0 0 40%; margin-bottom: 0; border-radius: 10px; }
      .yt-card .yt-play { width: 48px; height: 34px; border-radius: 9px; }
      .yt-card .yt-play::after { border-left-width: 14px; border-top-width: 8px; border-bottom-width: 8px; }
      .yt-card-title { font-size: .82rem; margin-bottom: .55rem; }
      .yt-card .btn-sm { padding: .3rem .5rem; font-size: .8rem; }
      .yt-card-bar { height: 3px; }
    }
    @media (prefers-reduced-motion: reduce) { .yt-card { transition: none; } }

/* Tab di halaman Pengaturan Web (admin) */
.set-tabs { border-bottom-color: var(--line); }
.set-tabs .nav-link { color: var(--text-main); opacity: .7; font-weight: 600; border: 0; border-bottom: 2px solid transparent; background: none; }
.set-tabs .nav-link:hover { opacity: 1; }
.set-tabs .nav-link.active { opacity: 1; color: var(--primary); border-bottom-color: var(--primary); background: none; }
.set-subtabs { gap: .4rem; flex-wrap: wrap; }
.set-subtabs .nav-link { padding: .35rem .85rem; font-size: .85rem; font-weight: 600; color: var(--text-main); background: rgba(128,128,128,.14); border-radius: 999px; }
.set-subtabs .nav-link.active { background: var(--primary); color: #fff; }

/* Bingkai emas lebih lembut di tema terang agar nyaman di mata */
[data-bs-theme="light"] .yt-section .yt-slider, [data-bs-theme="light"] .yt-section .yt-latest, [data-bs-theme="light"] .yt-card { box-shadow: 0 0 0 1px rgba(201,162,39,.10), 0 6px 18px rgba(15,23,42,.06); }
/* Garis pemisah bawaan Bootstrap ikut warna tema */
.border-top, .border-bottom, .border-secondary-subtle { border-color: var(--bs-border-color) !important; }
.form-control, .form-select { border-color: var(--line-strong); }

/* ===== Responsif beranda (HP / tablet / laptop) ===== */
.hero-photo { max-width: 320px !important; width: 100%; }
.svc-desc { text-align: left; }
@media (min-width: 1200px) { .svc-desc { text-align: justify; } }
@media (max-width: 991.98px) {
  .hero-photo { max-width: 220px !important; }
  .hero-text #phSkills, .hero-text .d-flex.flex-wrap.gap-2 { justify-content: center; }
  .svc-col:last-child { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 767.98px) { .svc-col:last-child { flex: 0 0 100%; } }
@media (max-width: 575.98px) {
  .hero-photo { max-width: 170px !important; }
  #phName { font-size: 2rem; }
  .service-card { padding: 1.25rem !important; }
}

/* ===== Tombol bagikan ===== */
.share-bar { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.25rem; margin: .5rem 0 1.5rem; }
.share-label { font-weight: 700; }
.share-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.share-btn { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; border: 1px solid var(--line); background: var(--card-bg); color: var(--brand); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.share-btn:hover, .share-btn:focus-visible { background: var(--brand); color: #fff; transform: translateY(-2px); border-color: transparent; }
[data-bs-theme="dark"] .share-btn[style*="--text-main"]:hover { color: #0f172a; }
@media (max-width: 575.98px) { .share-bar { flex-direction: column; align-items: flex-start; } .share-btn { width: 40px; height: 40px; } }

/* ===== Kode di dalam konten (artikel, produk, karya, halaman) =====
   Kode sebaris: latar lembut + teks kontras sesuai tema (bukan merah di atas putih).
   Blok kode (pre): tetap gelap di kedua tema. */
:root { --code-bg: rgba(99, 102, 241, 0.10); --code-fg: #4338ca; --code-border: rgba(99, 102, 241, 0.22); }
[data-bs-theme="dark"] { --code-bg: rgba(129, 140, 248, 0.14); --code-fg: #c7d2fe; --code-border: rgba(129, 140, 248, 0.28); }
.detail-body :not(pre) > code, .ql-snow .ql-editor.detail-body :not(pre) > code, .ql-snow .ql-editor code {
  background: var(--code-bg) !important; color: var(--code-fg) !important; border: 1px solid var(--code-border);
  border-radius: 6px; padding: .1em .4em; font-size: .88em; font-weight: 500; word-break: break-word;
}
.detail-body pre, .ql-snow .ql-editor pre, .ql-snow .ql-editor pre.ql-syntax {
  background: #1e1e2e !important; color: #e2e8f0 !important; border: 1px solid var(--line);
  border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; font-size: .9em; line-height: 1.6;
}
.detail-body pre code, .ql-snow .ql-editor pre code { background: none !important; color: inherit !important; border: 0; padding: 0; font-size: inherit; }

/* ===== Editor teks (Jodit) selaras tema situs, nyaman di mata ===== */
.jodit-container:not(.jodit_inline) {
  --jd-color-border: rgba(15, 23, 42, 0.14); --jd-color-background-default: #ffffff; --jd-color-panel: #f8fafc;
  --jd-color-text: #1f2937; --jd-color-icon: #475569; --jd-color-text-icons: #475569;
  --jd-color-button-background-hover: rgba(99, 102, 241, 0.12); --jd-color-background-button-hover: rgba(99, 102, 241, 0.12);
  --jd-color-placeholder: #94a3b8; --jd-font-default: 'Poppins', sans-serif;
  border-radius: 12px !important; overflow: hidden; border-color: var(--jd-color-border) !important;
}
.jodit-container:not(.jodit_inline) .jodit-toolbar__box:not(:empty) { background: var(--jd-color-panel); border-bottom: 1px solid var(--jd-color-border); }
.jodit-container:not(.jodit_inline) .jodit-status-bar { background: var(--jd-color-panel); color: #64748b; border-top: 1px solid var(--jd-color-border); }
.jodit-container:not(.jodit_inline) .jodit-wysiwyg { background: var(--jd-color-background-default); color: var(--jd-color-text); font-family: 'Poppins', sans-serif; font-size: 15px; line-height: 1.75; padding: 16px 18px !important; }
.jodit-container .jodit-toolbar-button:hover:not([disabled]), .jodit-container .jodit-toolbar-button__button:hover:not([disabled]) { background-color: var(--jd-color-button-background-hover) !important; }
.jodit-container .jodit-toolbar-button_variant_initial[aria-pressed=true]:not([disabled]),
.jodit-container .jodit-toolbar-button__button[aria-pressed=true]:not([disabled]) { background-color: rgba(99, 102, 241, 0.18) !important; }
.jodit-container .jodit-source__mirror { background: #0f172a; color: #e2e8f0; font-size: 13px; line-height: 1.6; }
.jodit-wysiwyg :not(pre) > code { background: var(--code-bg); color: var(--code-fg); border: 1px solid var(--code-border); border-radius: 6px; padding: .1em .4em; font-size: .88em; }
.jodit-wysiwyg pre { background: #1e1e2e; color: #e2e8f0; border-radius: 10px; padding: .9rem 1rem; }
.jodit-wysiwyg blockquote { border-left: 3px solid var(--primary); margin-left: 0; padding-left: 1rem; opacity: .9; }

/* Tema gelap: warna mengikuti palet situs (biru-abu tua), bukan abu-abu Jodit */
.jodit_theme_dark, .jodit_theme_dark.jodit-container:not(.jodit_inline) {
  --jd-dark-background-color: #0f172a; --jd-dark-background-ligher: #1e293b; --jd-dark-toolbar-color: #1e293b;
  --jd-dark-text-color: #e2e8f0; --jd-dark-icon-color: #cbd5e1; --jd-dark-border-color: rgba(148, 163, 184, 0.26);
  --jd-dark-toolbar-seperator-color1: #1e293b; --jd-dark-toolbar-seperator-color2: #334155; --jd-dark-toolbar-seperator-color3: #334155;
  --jd-color-border: rgba(148, 163, 184, 0.20); --jd-color-background-default: #0f172a; --jd-color-panel: #1e293b;
  --jd-color-text: #e2e8f0; --jd-color-icon: #cbd5e1; --jd-color-text-icons: #cbd5e1; --jd-color-label: #cbd5e1;
  --jd-color-button-background-hover: rgba(148, 163, 184, 0.16); --jd-color-background-button-hover: rgba(148, 163, 184, 0.16);
  --jd-color-placeholder: #64748b; --jd-color-background-selection: rgba(129, 140, 248, 0.35);
}
.jodit_theme_dark .jodit-status-bar { color: #94a3b8 !important; }
.jodit_theme_dark .jodit-toolbar-button__button[aria-pressed=true]:not([disabled]) { background-color: rgba(129, 140, 248, 0.22) !important; }
.jodit_theme_dark .jodit-toolbar-button svg, .jodit_theme_dark .jodit-toolbar-button__trigger svg { fill: #cbd5e1; }
.jodit_theme_dark .jodit-popup__content, .jodit_theme_dark .jodit-dialog__panel { background: #1e293b !important; color: #e2e8f0; }
.jodit_theme_dark .jodit-input, .jodit_theme_dark .jodit-select, .jodit_theme_dark .jodit-form input, .jodit_theme_dark .jodit-form textarea { background: #0f172a !important; color: #e2e8f0 !important; border-color: rgba(148, 163, 184, 0.26) !important; }
.jodit_theme_dark .jodit-wysiwyg a { color: #a5b4fc; }

/* ===== Admin: tampilan kartu / daftar (Produk, Karya, Artikel) ===== */
.view-toggle .btn { border: 1px solid var(--line-strong); color: var(--text-main); background: var(--card-bg); padding: .35rem .65rem; }
.view-toggle .btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.admin-card { overflow: hidden; cursor: auto; }
.admin-thumb { background: rgba(128,128,128,.12); display: flex; align-items: center; justify-content: center; color: var(--text-main); opacity: .95; overflow: hidden; flex: none; }
.admin-thumb i { font-size: 1.6rem; opacity: .35; }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-card .admin-thumb { aspect-ratio: 16 / 9; }
.admin-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.admin-badges .badge { font-weight: 600; }
.admin-actions { display: flex; gap: .4rem; justify-content: flex-end; flex-wrap: wrap; }
.admin-row { display: flex; align-items: center; gap: 1rem; padding: .65rem .9rem; cursor: auto; }
.admin-row .admin-thumb { width: 96px; height: 54px; border-radius: 8px; }
.admin-row .admin-thumb i { font-size: 1.1rem; }
.admin-row-main { flex: 1; min-width: 0; }
.admin-row .admin-title { -webkit-line-clamp: 1; }
.admin-row .admin-badges { margin-bottom: .2rem; }
.admin-row .admin-badges .badge { font-size: .68rem; }
.admin-list { --bs-gutter-y: .5rem; }
@media (max-width: 575.98px) {
  .admin-row { flex-wrap: wrap; gap: .6rem .8rem; }
  .admin-row .admin-thumb { width: 72px; height: 48px; }
  .admin-row .admin-actions { width: 100%; justify-content: flex-start; }
  .admin-row .admin-title { -webkit-line-clamp: 2; }
}
.admin-card-compact { border-left: 3px solid var(--primary) !important; }
.admin-card-compact .admin-title { -webkit-line-clamp: 3; }
