html,body,button,input,textarea,select{font-family:Roboto,sans-serif}
*{box-sizing:border-box}body{margin:0;font-family:Roboto,sans-serif;color:#172033;background:#f7f9fc}a{text-decoration:none;color:inherit}.topbar{height:80px;background:#202427;color:#fff;display:flex;align-items:center;padding:0 28px;gap:35px;position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:10px;min-width:280px;max-width:380px}.brand-mark{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,#8d0010,#d21b2c);display:grid;place-items:center;font-size:21px;font-weight:700;box-shadow:0 5px 15px #0004}.brand strong{font-size:17px}.brand small{display:block;color:#ffbdc3;font-size:10px;margin-top:1px}.nav{display:flex;gap:28px;font-size:14px;font-weight:600;flex:1}.nav a:hover{color:#ffd21a}.login-btn{background:#ffca05;color:#202427;padding:11px 22px;border-radius:24px;font-weight:700;font-size:13px}.hero{min-height:235px;padding:55px 20px;background:radial-gradient(circle at 15% 30%,#b41323 0,#90000d 35%,#650009 100%);position:relative;overflow:hidden}.hero:after{content:"";position:absolute;inset:0;opacity:.13;background-image:radial-gradient(circle,#fff 1px,transparent 1px);background-size:24px 24px}.hero-content{position:relative;z-index:1;max-width:980px;margin:auto;text-align:center}.hero h1{color:#fff;font-size:30px;margin:0 0 8px}.hero p{color:#ffd9dc;margin:0 0 24px}.search{height:54px;background:#fff;border-radius:30px;display:flex;align-items:center;max-width:660px;margin:auto;padding-left:22px;box-shadow:0 10px 30px #3005}.search input{border:0;outline:0;flex:1;font:inherit;color:#555}.search button{border:0;background:#fff;font-size:25px;color:#0c9eea;padding:0 22px;cursor:pointer}.layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;max-width:1280px;margin:30px auto;padding:0 14px}.panel{background:#fff;border:1px solid #e6ebf1;border-radius:18px;box-shadow:0 5px 20px #15233a08}.categories{padding:24px;min-height:500px}.panel-title{font-size:18px;font-weight:700;margin:0 0 22px}.cat{display:block;padding:8px 10px;border-left:1px solid #bbb;font-size:14px}.cat:hover,.cat.active{background:#eef8ff;color:#087bb4}.cat i{width:25px;color:#ffc400}.services-head{padding:18px 28px;border-bottom:1px solid #edf0f4;display:flex;justify-content:space-between;align-items:center}.services-head h2{font-size:18px;margin:0}.services-head p{font-size:12px;color:#8993a7;margin:2px 0}.view-btn{border:0;border-radius:10px;padding:8px 16px;background:#08a98f;color:#fff;font-weight:600}.grid{padding:30px;display:grid;grid-template-columns:repeat(3,1fr);gap:35px 25px}.card{text-align:center;min-height:190px;border:1px solid #e6ebf1;border-radius:14px;padding:20px 14px;background:#fff;box-shadow:0 2px 8px rgba(21,35,58,.035);overflow:hidden}.icon{width:58px;height:58px;border:1px solid #edf0f4;border-radius:14px;margin:0 auto 10px;display:grid;place-items:center;color:#e6334b;font-size:26px;background:#fff;box-shadow:0 3px 10px #1b243508}.badge{font-size:10px;border:1px solid #079cff;color:#078bd9;border-radius:5px;padding:2px 6px;display:inline-block;margin-bottom:8px}.card .category{font-size:11px;color:#a2a8b6}.card h3{font-size:15px;margin:4px 0 7px}.card p{font-size:12px;color:#7c8291;line-height:1.6;margin:0}.empty{padding:60px;text-align:center;color:#999}.footer{text-align:center;padding:30px;color:#929aaa;font-size:12px}.admin-body{background:#f4f6fa}.admin-layout{display:flex;min-height:100vh}.sidebar{width:250px;background:#202427;color:#d9dde2;padding:22px;position:fixed;inset:0 auto 0 0}.sidebar .logo{font-weight:700;color:#fff;margin-bottom:30px}.side-link{display:flex;gap:12px;padding:12px;border-radius:9px;margin:5px 0;font-size:13px}.side-link:hover,.side-link.active{background:#8e0917;color:#fff}.admin-main{margin-left:250px;flex:1;padding:30px}.admin-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.admin-top h1{margin:0;font-size:24px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:25px}.stat{background:#fff;padding:22px;border-radius:14px;border:1px solid #e7ebf0}.stat b{font-size:28px}.table-wrap{background:#fff;border-radius:14px;padding:20px;overflow:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th,.table td{padding:12px;border-bottom:1px solid #edf0f3;text-align:left}.btn{display:inline-block;border:0;border-radius:8px;padding:9px 14px;font:inherit;font-size:12px;cursor:pointer}.btn-primary{background:#a20d1d;color:#fff}.btn-warning{background:#ffc107}.btn-danger{background:#dc3545;color:#fff}.btn-light{background:#edf0f4}.form-card{background:#fff;border-radius:14px;padding:25px;max-width:850px}.form-group{margin-bottom:16px}.form-group label{display:block;font-size:13px;font-weight:600;margin-bottom:7px}.form-control{width:100%;border:1px solid #dce2e9;border-radius:8px;padding:11px;font:inherit;outline:none}.form-control:focus{border-color:#a20d1d}.alert{padding:12px 15px;border-radius:8px;margin-bottom:18px;background:#fff3cd;color:#765800;font-size:13px}.login-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#650009,#b51224)}.login-card{width:min(410px,92vw);background:#fff;border-radius:18px;padding:35px;box-shadow:0 20px 60px #0005}.login-card h1{text-align:center;margin:0 0 5px}.login-card p{text-align:center;color:#8993a7;font-size:12px;margin-bottom:25px}.upload-preview{max-width:70px;max-height:70px;border-radius:10px}.mobile-menu{display:none}@media(max-width:900px){.nav{display:none}.layout{grid-template-columns:1fr}.grid{grid-template-columns:repeat(2,1fr)}.sidebar{width:210px}.admin-main{margin-left:210px}}@media(max-width:600px){.topbar{padding:0 14px;height:68px}.brand{min-width:auto}.brand small{display:none}.brand strong{font-size:13px}.login-btn{padding:9px 12px}.hero h1{font-size:22px}.grid{grid-template-columns:1fr}.layout{margin-top:15px}.admin-layout{display:block}.sidebar{position:static;width:100%;min-height:auto}.admin-main{margin-left:0;padding:18px}.stats{grid-template-columns:1fr}.admin-top{gap:10px;align-items:flex-start}.services-head{padding:15px}.grid{padding:20px}.categories{min-height:auto}}

.service-link{display:block;height:100%;color:inherit;border-radius:14px;padding:4px;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.service-link:hover{text-decoration:none;color:inherit;background:#fff8f9;box-shadow:0 8px 24px rgba(140,0,13,.10);transform:translateY(-3px)}
.service-link:hover h3{color:#a20d1d}

.hierarchy-view{padding:28px 30px}.hierarchy-view[hidden]{display:none}
.tree-category{border:1px solid #e7ebf0;border-radius:12px;margin-bottom:16px;overflow:hidden;background:#fff}
.tree-category-title{padding:14px 16px;background:#f8fafc;color:#172033;font-weight:700;font-size:17px;border-bottom:1px solid #edf0f4}
.tree-category-title i{color:#ffc400;margin-right:8px}
.tree-items{padding:5px 0 8px}
.tree-service{display:flex;align-items:center;gap:13px;padding:14px 16px 14px 28px;position:relative;border-bottom:1px dashed #edf0f4;color:#172033}
.tree-service:last-child{border-bottom:0}
.tree-service:hover{background:#fff8f9;text-decoration:none;color:#a20d1d}
.tree-line{width:15px;height:22px;border-left:1px solid #cbd2da;border-bottom:1px solid #cbd2da;flex:0 0 15px;margin-top:-12px}
.tree-icon{width:36px;height:36px;border-radius:9px;display:grid;place-items:center;background:#fff1f3;color:#d92f46;flex:0 0 36px}
.tree-text{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.tree-text strong{font-size:17px}.tree-text small{font-size:14px;color:#8993a7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tree-arrow{font-size:14px;color:#9aa3af}

/* Category sidebar toggle */
.category-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.category-header .panel-title{margin:0}
.category-toggle{border:1px solid #e2e7ed;background:#fff;color:#657080;width:34px;height:34px;border-radius:9px;cursor:pointer}.category-toggle:hover{background:#a20d1d;color:#fff;border-color:#a20d1d}
.categories.is-hidden{display:none}.layout.category-hidden{grid-template-columns:1fr}

/* Main carousel */
.carousel-wrap{position:relative;width:100%;overflow:hidden;background:#650009}.carousel{position:relative;width:100%;height:min(31.25vw,520px);min-height:260px}.carousel-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .45s ease}.carousel-slide.is-active{opacity:1;visibility:visible;z-index:1}.carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}.carousel-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,0,4,.78) 0%,rgba(80,0,8,.45) 42%,rgba(80,0,8,.05) 78%);display:flex;align-items:center}.carousel-copy{max-width:720px;margin-left:8%;color:#fff;padding:20px}.carousel-copy h2{font-size:clamp(26px,3vw,48px);margin:0 0 12px;font-weight:800}.carousel-copy p{font-size:clamp(13px,1.3vw,18px);line-height:1.6;margin:0 0 20px;color:#ffe7e9;max-width:650px}.carousel-button{display:inline-flex;gap:9px;align-items:center;background:#ffca05;color:#202427;padding:11px 18px;border-radius:24px;font-weight:700;font-size:13px}.carousel-button:hover{background:#fff;color:#8d0010;text-decoration:none}.carousel-control{position:absolute;z-index:3;top:50%;transform:translateY(-50%);width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.86);color:#8d0010;cursor:pointer;box-shadow:0 5px 18px #0003}.carousel-control.prev{left:22px}.carousel-control.next{right:22px}.carousel-dots{position:absolute;z-index:4;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px}.carousel-dots button{width:10px;height:10px;border-radius:50%;border:0;background:rgba(255,255,255,.55);padding:0;cursor:pointer}.carousel-dots button.active{width:28px;border-radius:10px;background:#ffca05}.carousel-fallback{height:100%;display:grid;place-content:center;padding-left:8%;color:#fff;background:linear-gradient(110deg,#650009,#a20d1d)}.carousel-fallback h2{font-size:42px;margin:0}.carousel-fallback p{font-size:17px}

/* Admin branding and carousel page */
.brand-padmanaba{overflow:visible!important}.brand-full{font-size:14px;letter-spacing:.1px}.brand-short{display:none}
@media(max-width:1100px){.main-sidebar{width:235px}.content-wrapper,.main-footer,.main-header{margin-left:235px!important}.brand-full{font-size:12px}}
@media(max-width:767px){.carousel{height:56vw;min-height:250px}.carousel-copy{margin-left:3%;padding:16px}.carousel-copy h2{font-size:25px}.carousel-copy p{font-size:12px}.carousel-control{width:36px;height:36px}.carousel-control.prev{left:10px}.carousel-control.next{right:10px}.category-toggle{width:32px;height:32px}}

/* Padmanaba logo */
.brand-logo{width:38px;height:38px;object-fit:contain;display:block;flex:0 0 38px}
.site-title{display:flex;align-items:center;gap:10px}
.admin-brand-logo{width:32px;height:32px;object-fit:contain;display:inline-block;vertical-align:middle;margin-right:8px}
.brand-padmanaba{display:flex!important;align-items:center;gap:8px}
.brand-padmanaba .brand-full{display:inline-block;white-space:nowrap}
@media(max-width:1100px){.brand-padmanaba .brand-full{font-size:12px}.admin-brand-logo{width:28px;height:28px}}

/* Final Padmanaba logo sizing */
.topbar .brand-logo{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;object-fit:contain!important;display:block!important;flex:0 0 42px!important}
.topbar .brand strong{font-size:16px!important;white-space:nowrap}
.topbar .brand small{font-size:9px!important}
@media(max-width:700px){.topbar .brand{min-width:0}.topbar .brand-logo{width:36px!important;height:36px!important;max-width:36px!important;max-height:36px!important}.topbar .brand strong{font-size:13px!important}.topbar .brand small{display:none}}

/* Mode visibility: Kartu dan Hirarki tidak boleh tampil bersamaan */
#hierarchyView[hidden]{display:none!important}
#serviceGrid[hidden]{display:none!important}

/* Revisi layout publik: Layanan Digital kiri, Kategori kanan */
.layout .service-panel{grid-column:1;grid-row:1}
.layout .categories{grid-column:2;grid-row:1}
.layout.category-hidden{grid-template-columns:1fr}
.layout.category-hidden .service-panel{grid-column:1}
.layout.category-hidden .categories{display:none}
@media(max-width:900px){
  .layout .service-panel{grid-column:1;grid-row:1}
  .layout .categories{grid-column:1;grid-row:2}
}

.running-ticker{display:flex;min-height:46px;overflow:hidden;background:var(--primary-color,#8d0a18);color:#fff}.running-label{display:flex;align-items:center;gap:8px;padding:0 18px;background:var(--secondary-color,#a20d1d);font-size:11px;font-weight:800;white-space:nowrap}.ticker-viewport{overflow:hidden;flex:1;display:flex;align-items:center}.ticker-track{display:inline-flex;white-space:nowrap;animation:padzTicker 35s linear infinite}.ticker-track span{padding:0 35px;font-size:13px;font-weight:600}.ticker-track span:after{content:" •";color:var(--accent-color,#ffca05)}@keyframes padzTicker{from{transform:translateX(0)}to{transform:translateX(-50%)}}.carousel-button{background:var(--accent-color,#ffca05)}

/* Carousel text overlay is optional; images remain clean when overlay disabled. */
.carousel-fallback h2{font-size:clamp(26px,3vw,42px)}
.carousel-slide img{max-width:100%;object-position:center center}
.register-btn{transition:.15s ease}

.category-restore-toggle{position:fixed;right:12px;top:50%;transform:translateY(-50%);z-index:1000;border:1px solid #dfe5ec;background:#fff;color:#a20d1d;border-radius:0 10px 10px 0;box-shadow:0 5px 18px rgba(0,0,0,.12);padding:10px 9px;cursor:pointer;font:600 11px Roboto,sans-serif;display:flex;align-items:center;gap:6px;writing-mode:horizontal-tb}
.category-restore-toggle:hover{background:#a20d1d;color:#fff}
.category-restore-toggle[hidden]{display:none}
.ticker-track{animation-duration:35s}

.lang-switch{display:flex;align-items:center;gap:5px;font-size:11px;font-weight:700;white-space:nowrap;margin-left:6px}.lang-switch a{color:#fff;opacity:.85}.lang-switch a:hover{color:#ffca05;opacity:1}
.ticker-track{animation-name:padzTickerRightToLeft!important}
@keyframes padzTickerRightToLeft{from{transform:translateX(100%)}to{transform:translateX(-100%)}}

/* Mobile responsive fixes - Padmanaba Smart Service */
@media (max-width: 767px){
  .topbar{
    height:auto;
    min-height:80px;
    padding:10px 12px 42px;
    gap:8px;
    position:relative;
    flex-wrap:wrap;
  }
  .brand{
    min-width:0;
    max-width:calc(100% - 95px);
    flex:1 1 auto;
    gap:7px;
  }
  .brand-logo{
    width:38px!important;
    height:38px!important;
    flex:0 0 38px;
  }
  .brand strong{
    font-size:12px;
    white-space:nowrap;
  }
  .brand small{
    font-size:8px;
    white-space:nowrap;
  }
  .nav{
    display:none;
  }
  .login-btn{
    flex:0 0 auto;
    padding:10px 14px;
    font-size:12px;
    border-radius:22px;
  }
  .lang-switch{
    position:absolute;
    left:12px;
    bottom:10px;
    margin:0;
    font-size:11px;
    gap:6px;
  }

  /* Search must never overflow its mobile container */
  .hero{
    width:100%;
    min-width:0;
    padding:48px 14px 42px;
    overflow:hidden;
  }
  .hero-content{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .hero h1{
    font-size:24px;
    line-height:1.25;
  }
  .hero p{
    font-size:14px;
    line-height:1.5;
  }
  .search{
    width:100%;
    max-width:100%;
    min-width:0;
    height:52px;
    padding-left:18px;
    padding-right:4px;
    margin:0 auto;
    overflow:hidden;
  }
  .search input{
    min-width:0;
    width:0;
    font-size:14px;
  }
  .search button{
    flex:0 0 50px;
    width:50px;
    padding:0;
  }

  /* Service panel and hierarchy button stay inside viewport */
  .layout{
    display:block;
    width:100%;
    max-width:100%;
    margin:20px auto;
    padding:0 10px;
    min-width:0;
    overflow:visible;
  }
  .panel{
    width:100%;
    max-width:100%;
    min-width:0;
  }
  .services-head{
    width:100%;
    min-width:0;
    padding:16px 14px;
    gap:10px;
    align-items:center;
  }
  .services-head > div{
    min-width:0;
    flex:1 1 auto;
  }
  .services-head h2{
    font-size:17px;
    line-height:1.25;
  }
  .services-head p{
    font-size:11px;
    line-height:1.45;
  }
  .view-btn{
    flex:0 0 auto;
    white-space:nowrap;
    padding:8px 12px;
    font-size:12px;
  }
  .grid{
    width:100%;
    min-width:0;
    padding:18px 12px;
    grid-template-columns:1fr;
    gap:18px;
  }
  .card{
    min-width:0;
    width:100%;
  }
  .service-link{
    min-width:0;
  }
  .category-header{
    min-width:0;
  }
  .categories{
    width:100%;
    max-width:100%;
    min-width:0;
    margin-top:18px;
  }
  .hierarchy-view{
    width:100%;
    max-width:100%;
    min-width:0;
    overflow:hidden;
  }
  .tree-category,
  .tree-items,
  .tree-service{
    max-width:100%;
    min-width:0;
  }
  .tree-service{
    overflow:hidden;
  }
  .tree-text{
    min-width:0;
    overflow:hidden;
  }
  .tree-text strong,
  .tree-text small{
    overflow:hidden;
    text-overflow:ellipsis;
  }
}

/* Prevent any accidental horizontal page scrolling */
html,body{
  max-width:100%;
  overflow-x:hidden;
}

.search{
  min-width:0;
  width:100%;
  box-sizing:border-box;
}
.search input{
  min-width:0;
}
.search button{
  flex:0 0 auto;
}

.footer-lang{margin-top:8px;font-weight:600}.footer-lang a{padding:0 5px}.footer-lang a:hover{color:#a20d1d}.footer-lang span{color:#bbb}

.footer{padding:16px 20px 20px;text-align:center;color:#929aaa;font-size:12px}.footer-copy{line-height:1.3}.footer-lang{margin-top:2px;font-weight:600;line-height:1.2}.footer-lang a{padding:0 4px}.footer-lang a:hover{color:#a20d1d}.footer-lang span{color:#bbb}

/* Public theme colors are supplied by index.php from site_settings. */

/* Mobile navigation drawer */
.mobile-menu-btn,.mobile-menu-panel,.mobile-menu-backdrop{display:none}
@media(max-width:767px){
  .topbar{height:68px;padding:0 12px;gap:8px}
  .mobile-menu-btn{
    display:flex;width:38px;height:38px;flex:0 0 38px;border:0;background:transparent;
    align-items:center;justify-content:center;flex-direction:column;gap:5px;cursor:pointer;
    padding:6px;border-radius:8px
  }
  .mobile-menu-btn span{display:block;width:22px;height:2px;background:#fff;border-radius:2px}
  .mobile-menu-btn:focus-visible{outline:2px solid var(--pss-accent,#ffca05);outline-offset:2px}
  .brand{max-width:none;flex:1 1 auto;min-width:0}
  .brand strong{font-size:12px;white-space:nowrap}
  .brand small{font-size:8px;white-space:nowrap}
  .brand-logo{width:38px!important;height:38px!important;flex:0 0 38px}
  .login-btn{flex:0 0 auto;padding:9px 12px;font-size:12px}
  .mobile-menu-backdrop{
    position:fixed;inset:0;background:rgba(0,0,0,.48);z-index:90;
    opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s ease
  }
  .mobile-menu-panel{
    position:fixed;left:0;top:0;bottom:0;width:min(300px,82vw);z-index:100;
    display:block;background:#202427;color:#fff;transform:translateX(-105%);
    transition:transform .25s ease;box-shadow:8px 0 30px rgba(0,0,0,.25);overflow-y:auto
  }
  .mobile-menu-panel.is-open{transform:translateX(0)}
  .mobile-menu-backdrop.is-open{opacity:1;visibility:visible}
  .mobile-menu-head{
    height:68px;padding:0 18px;display:flex;align-items:center;justify-content:space-between;
    border-bottom:1px solid rgba(255,255,255,.12);background:var(--pss-primary,#8d0a18)
  }
  .mobile-menu-head strong{font-size:17px}
  .mobile-menu-head button{
    width:36px;height:36px;border:0;border-radius:8px;background:rgba(255,255,255,.12);
    color:#fff;font-size:18px;cursor:pointer
  }
  .mobile-nav{padding:14px 10px}
  .mobile-nav a{
    display:flex;align-items:center;gap:14px;padding:14px 12px;border-radius:9px;
    color:#fff;font-size:14px;font-weight:600
  }
  .mobile-nav a:hover,.mobile-nav a:active{background:var(--pss-primary,#a20d1d)}
  .mobile-nav a i{width:22px;text-align:center;color:var(--pss-accent,#ffca05)}
  body.mobile-menu-open{overflow:hidden}
}

@media(max-width:767px){.topbar .brand small{display:block!important;color:#ffbdc3!important;font-size:8px!important;line-height:1.2;white-space:nowrap!important}}

/* V14 - Header mobile: Login sejajar dengan brand */
@media (max-width: 767px){
  .topbar{
    height:68px!important;
    min-height:68px!important;
    padding:10px 10px!important;
    gap:6px!important;
    flex-wrap:nowrap!important;
    align-items:center!important;
  }
  .mobile-menu-btn{
    width:36px!important;
    height:36px!important;
    flex:0 0 36px!important;
  }
  .brand{
    min-width:0!important;
    max-width:none!important;
    flex:1 1 auto!important;
    gap:6px!important;
    overflow:hidden;
  }
  .brand-logo{
    width:34px!important;
    height:34px!important;
    flex:0 0 34px!important;
  }
  .brand span{
    min-width:0;
    overflow:hidden;
  }
  .brand strong{
    display:block;
    font-size:10px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden;
    text-overflow:clip;
  }
  .brand small{
    display:block!important;
    font-size:7px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden;
  }
  .login-btn{
    flex:0 0 auto!important;
    padding:8px 10px!important;
    font-size:10px!important;
    line-height:1.2!important;
    border-radius:20px!important;
    white-space:nowrap!important;
  }
  .lang-switch{display:none!important}
}
@media (max-width: 380px){
  .topbar{gap:4px!important;padding-left:7px!important;padding-right:7px!important}
  .mobile-menu-btn{width:34px!important;flex-basis:34px!important}
  .brand{gap:4px!important}
  .brand-logo{width:30px!important;height:30px!important;flex-basis:30px!important}
  .brand strong{font-size:11px!important}
  .brand small{font-size:6.5px!important}
  .login-btn{padding:7px 8px!important;font-size:9px!important}
}

/* V22 - Mobile carousel: tampilkan gambar utuh tanpa terpotong.
   Desktop tetap menggunakan layout carousel sebelumnya. */
@media (max-width: 767px){
  .carousel-wrap{
    width:100%;
    overflow:hidden;
    background:#fff;
  }
  .carousel{
    width:100%;
    height:auto!important;
    min-height:0!important;
    overflow:hidden;
    background:#fff;
  }
  .carousel-slide{
    width:100%;
    height:100%;
  }
  .carousel-slide img{
    width:100%;
    height:100%;
    object-fit:contain!important;
    object-position:center center;
    background:#fff;
  }
  .carousel-overlay{
    pointer-events:none;
  }
  .carousel-overlay .carousel-button{
    pointer-events:auto;
  }
}

/* V49: consistent, elegant button interactions */
.btn,.login-btn,.view-btn,.search button,.side-link,.nav a{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease,filter .16s ease}
.btn:hover,.login-btn:hover,.view-btn:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 5px 14px rgba(23,32,51,.14)}
.btn:active,.login-btn:active,.view-btn:active{transform:translateY(0);box-shadow:0 2px 7px rgba(23,32,51,.12)}
.btn:focus-visible,.login-btn:focus-visible,.view-btn:focus-visible,.photo-btn:focus-visible{outline:3px solid rgba(162,13,29,.22);outline-offset:2px}
.photo-btn{transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,color .16s ease,border-color .16s ease}
.photo-btn:hover{transform:translateY(-2px);background:#fff7f8;border-color:#a20d1d;color:#a20d1d;box-shadow:0 7px 18px rgba(162,13,29,.12)}
.photo-btn:active{transform:translateY(0);box-shadow:0 3px 9px rgba(162,13,29,.10)}
.side-link:hover,.nav a:hover{transform:translateX(2px)}
@media (prefers-reduced-motion:reduce){.btn,.login-btn,.view-btn,.search button,.side-link,.nav a,.photo-btn{transition:none}}

/* V63: public navigation and help/guide/FAQ readability */
.topbar .nav{font-size:16px;font-weight:700;gap:30px}
.topbar .nav a{font-size:16px}
.topbar .brand strong{font-size:17px!important}
.topbar .brand small{font-size:10px!important}
.login-btn{font-size:14px}
.services-head h2{font-size:21px}
.panel-title{font-size:21px}
.cat{font-size:16px;padding:10px 10px}
.card .category{font-size:13px}
.card h3{font-size:17px}
.card p{font-size:14px;line-height:1.65}
.badge{font-size:12px;padding:3px 8px}
.public-info{max-width:1280px;margin:24px auto;padding:0 14px;scroll-margin-top:95px}
.public-info-card{background:#fff;border:1px solid #e6ebf1;border-radius:18px;box-shadow:0 5px 20px #15233a08;padding:28px 32px}
.public-info-heading{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid #edf0f4}
.public-info-heading h2{font-size:24px;margin:0 0 4px;font-weight:800}
.public-info-heading p{font-size:14px;color:#7c8492;margin:0;line-height:1.5}
.public-info-icon{width:52px;height:52px;border-radius:14px;background:#fff0f2;color:#a20d1d;display:grid;place-items:center;font-size:23px;flex:0 0 auto}
.public-rich-content{padding-top:22px;color:#3c4655;font-size:15px;line-height:1.75}
.public-rich-content h3{font-size:22px;color:#172033;margin:0 0 12px}
.public-rich-content h4{font-size:18px;color:#172033;margin:24px 0 8px}
.public-rich-content p{margin:0 0 14px}
.public-rich-content li{margin-bottom:6px}
.public-rich-content strong{color:#172033}
.faq-list{padding-top:18px}
.faq-item{border:1px solid #e2e7ee;border-radius:11px;margin-bottom:10px;background:#fff;overflow:hidden}
.faq-item summary{list-style:none;cursor:pointer;padding:16px 18px;font-size:16px;font-weight:700;color:#172033;display:flex;align-items:center;justify-content:space-between;gap:15px}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary i{color:#a20d1d;transition:transform .2s ease}
.faq-item[open] summary i{transform:rotate(180deg)}
.faq-item>div{padding:0 18px 17px;color:#687384;font-size:15px;line-height:1.7}
@media(max-width:900px){.topbar .nav{gap:18px}.topbar .nav a{font-size:15px}.public-info-card{padding:24px}}
@media(max-width:600px){.topbar .nav a{font-size:14px}.public-info{padding:0 10px}.public-info-card{padding:20px 16px}.public-info-heading h2{font-size:21px}.public-info-heading p{font-size:13px}.public-rich-content{font-size:14px}.faq-item summary{font-size:14px}.faq-item>div{font-size:14px}}

/* V64: List typography matched to Thumbnail */
.tree-category-title{font-size:17px!important;line-height:1.35}.tree-service{padding-top:14px;padding-bottom:14px}.tree-text strong{font-size:17px!important;line-height:1.4}.tree-text small{font-size:14px!important;line-height:1.5}.tree-arrow{font-size:14px!important}
@media(max-width:600px){.tree-category-title{font-size:16px!important}.tree-text strong{font-size:16px!important}.tree-text small{font-size:13px!important}.tree-service{gap:11px;padding-left:22px;padding-right:14px}}

/* V66 final mobile refinements */
@media (max-width: 767px){
  .topbar .brand{flex:1 1 0!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;gap:5px!important}
  .topbar .brand span{min-width:0!important;max-width:100%!important;overflow:hidden!important}
  .topbar .brand strong{font-size:9px!important;line-height:1.15!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .topbar .brand small{font-size:6.5px!important;line-height:1.15!important;display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .topbar .brand-logo{width:32px!important;height:32px!important;flex:0 0 32px!important}
  .topbar .login-btn{flex:0 0 auto!important;white-space:nowrap!important;z-index:3!important;padding:8px 9px!important;font-size:10px!important}
  .mobile-nav .mobile-login-link{margin-top:12px!important;background:#ffca05!important;color:#202427!important;font-weight:800!important;justify-content:center!important;border-radius:10px!important;padding:12px 14px!important}
  .mobile-nav .mobile-login-link i{color:#202427!important}
}
@media (max-width:380px){
  .topbar{gap:3px!important;padding-left:6px!important;padding-right:6px!important}
  .topbar .brand-logo{width:29px!important;height:29px!important;flex-basis:29px!important}
  .topbar .brand strong{font-size:8px!important}
  .topbar .brand small{font-size:6px!important}
  .topbar .login-btn{padding:7px 8px!important;font-size:9px!important}
}
/* Masa Sistem: pada mobile menjadi kartu kuning yang tidak menimpa menu */
@media (max-width:767px){
  .main-sidebar .sidebar{padding-bottom:10px!important;display:flex!important;flex-direction:column!important}
  .main-sidebar .sidebar .system-expiry-widget{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;order:20!important;margin:14px 10px 10px!important;width:auto!important;background:#ffca05!important;border:1px solid #e0ad00!important;color:#202427!important;border-radius:10px!important;padding:10px 12px!important;z-index:1!important;box-shadow:0 2px 6px rgba(0,0,0,.12)!important}
  .main-sidebar .sidebar .system-expiry-widget .expiry-title{font-size:12px!important;color:#202427!important;font-weight:800!important}
  .main-sidebar .sidebar .system-expiry-widget .expiry-value{font-size:13px!important;color:#202427!important;font-weight:800!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3!important}
  .main-sidebar .sidebar nav{order:10!important}
}


/* V72 - Mobile public header: brand title +2px, tetap aman dari tombol Login */
@media (max-width: 767px){
  .topbar .brand{gap:5px!important;}
  .topbar .brand strong{
    font-size:10px!important;
    line-height:1.15!important;
    letter-spacing:-0.15px!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .topbar .brand small{
    font-size:6.5px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:visible!important;
    text-overflow:clip!important;
  }
  .topbar .login-btn{
    position:relative!important;
    top:2px!important;
    flex:0 0 auto!important;
  }
}
@media (max-width:380px){
  .topbar .brand strong{font-size:9.5px!important;letter-spacing:-0.2px!important;}
  .topbar .brand small{font-size:6px!important;}
}

.bi-2x{font-size:2em}
