:root{
  --tk-blue:#155BB5;
  --tk-blue-dark:#0F4791;
  --tk-red:#C82F3C;
  --tk-yellow:#F3C623;
  --tk-gray:#D1D5D8;
  --tk-dark:#424242;
  --tk-ink:#1f2937;
  --tk-muted:#6b7280;
  --tk-soft:#f7f8fb;
  --tk-line:#e6e8ee;
  --shadow-sm:0 4px 14px rgba(21,91,181,.08);
  --shadow-md:0 10px 30px rgba(21,91,181,.10);
  --radius:16px;
}
*{box-sizing:border-box}
html,body{scroll-behavior:smooth;overflow-x:clip}
body{
  font-family:'Nunito', 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color:var(--tk-ink);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}

/* ---- Public Container Spacing & Consistency (Best Practice UI) ---- */
/* Default Bootstrap adalah 12px (calc(var(--bs-gutter-x) * .5)) yang terlalu mepet samping.
   Diperbarui menjadi 20px (standar 8-point grid) agar tampilan seluruh halaman publik
   konsisten, rapi, tajam tanpa sub-pixel blur, dan nyaman di semua perangkat. */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  padding-right: 20px;
  padding-left: 20px;
}

/* Pertahankan padding default untuk panel admin jika ada container yang digunakan */
.admin-body .container,
.admin-body .container-fluid,
.admin-body .container-sm,
.admin-body .container-md,
.admin-body .container-lg,
.admin-body .container-xl,
.admin-body .container-xxl {
  padding-right: calc(var(--bs-gutter-x) * .5);
  padding-left: calc(var(--bs-gutter-x) * .5);
}
h1,h2,h3,h4,h5,.display-1,.display-2,.display-3,.display-4,.display-5,.display-6{
  font-family:'Fraunces','Poppins',serif;
  font-weight:800;
  letter-spacing:-.01em;
  overflow-wrap:break-word;
  word-break:break-word;
}
.text-blue{color:var(--tk-blue)!important}
.text-red{color:var(--tk-red)!important}
.text-yellow{color:var(--tk-yellow)!important}
.bg-blue{background:var(--tk-blue)!important;color:#fff}
.bg-red{background:var(--tk-red)!important;color:#fff}
.bg-soft{background:var(--tk-soft)!important}
.bg-yellow{background:var(--tk-yellow)!important}
.section{padding:64px 0}
.section-tight{padding:40px 0}
.section-title{font-size:clamp(1.5rem,2.4vw,2rem);margin-bottom:.25rem}
.section-eyebrow{display:inline-flex;align-items:center;gap:.5rem;background:#eef4ff;color:var(--tk-blue);
  padding:.35rem .8rem;border-radius:999px;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em}

/* ---- Navbar ---- */
.navbar-tk{background:#fff;box-shadow:0 1px 0 var(--tk-line);padding:.75rem 0;position:sticky;top:0;z-index:1030}
.navbar-tk .navbar-brand{display:flex;align-items:center;gap:.6rem;font-weight:800;line-height:1.1;font-family:'Fraunces',serif}
.navbar-tk .navbar-brand .logo{width:44px;height:44px;border-radius:12px;background:linear-gradient(135deg,var(--tk-blue),var(--tk-red));display:grid;place-items:center;color:#fff;font-weight:900}
.navbar-tk .brand-name{color:var(--tk-blue);font-size:1rem}
.navbar-tk .brand-sub{color:var(--tk-red);font-size:1rem}
.navbar-tk .nav-link{color:var(--tk-ink);font-weight:600;font-size:.95rem;position:relative;padding:.5rem .85rem;transition:color .15s ease}
.navbar-tk .nav-link.active,.navbar-tk .nav-link:hover{color:var(--tk-blue)}
.navbar-tk .nav-link.active::after{content:"";position:absolute;left:.85rem;right:.85rem;bottom:.15rem;height:3px;background:var(--tk-red);border-radius:3px}

/* Dropdown Menu */
.navbar-tk .dropdown-menu-tk{
  border:1px solid var(--tk-line);
  border-radius:14px;
  box-shadow:0 12px 30px rgba(21,91,181,.12), 0 2px 6px rgba(0,0,0,.04);
  padding:.45rem;
  min-width:190px;
  margin-top:.4rem;
  background:#fff;
}
.navbar-tk .dropdown-menu-tk .dropdown-item{
  border-radius:10px;
  padding:.55rem .85rem;
  font-weight:600;
  font-size:.92rem;
  color:var(--tk-ink);
  display:flex;
  align-items:center;
  transition:background .15s ease, color .15s ease;
}
.navbar-tk .dropdown-menu-tk .dropdown-item:hover{
  background:#f0f5ff;
  color:var(--tk-blue);
}
.navbar-tk .dropdown-menu-tk .dropdown-item.active,
.navbar-tk .dropdown-menu-tk .dropdown-item:active{
  background:#e6f0ff;
  color:var(--tk-blue);
  font-weight:700;
}
.navbar-tk .dropdown-menu-tk .dropdown-item i{
  width:20px;
  text-align:center;
}

/* Chevron rotation on dropdown open */
.navbar-tk .nav-link.dropdown-toggle::after{display:none} /* hide Bootstrap default caret */
.navbar-tk .nav-chevron{
  font-size:.65rem;
  transition:transform .22s cubic-bezier(.4,0,.2,1);
  opacity:.65;
  vertical-align:middle;
}
.navbar-tk .nav-item.dropdown.show > .nav-link .nav-chevron,
.navbar-tk .nav-link[aria-expanded="true"] .nav-chevron{
  transform:rotate(180deg);
  opacity:1;
}

/* Mobile: show "▾ submenu" hint label on dropdown toggle */
@media (max-width: 1199.98px){
  .navbar-tk .nav-item.dropdown > .nav-link{
    display:flex;
    align-items:center;
    justify-content:space-between;
  }
  .navbar-tk .nav-chevron{
    font-size:.7rem;
    opacity:.5;
    margin-left:auto;
    padding-left:.5rem;
  }
  .navbar-tk .nav-link[aria-expanded="true"] .nav-chevron{
    opacity:1;
    color:var(--tk-blue);
  }
}
/* Smooth desktop dropdown */
@media (min-width: 1200px){
  .navbar-tk .nav-item.dropdown:hover > .dropdown-menu-tk{
    display:block;
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
  .navbar-tk .dropdown-menu-tk{
    display:block;
    opacity:0;
    visibility:hidden;
    transform:translateY(6px);
    transition:opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .navbar-tk .dropdown-menu-tk.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
  }
}

/* Mobile dropdown — smooth slide/fade animation */
@media (max-width: 1199.98px){
  /* Override Bootstrap collapse: smooth height + fade */
  .navbar-tk .dropdown-menu-tk{
    box-shadow:none;
    background:#f0f5ff;
    border:none;
    border-left:3px solid var(--tk-blue);
    border-radius:0 10px 10px 0;
    margin:.1rem 0 .35rem 1rem;
    padding:.3rem .25rem;
    /* Smooth slide-in animation */
    display:block !important;
    overflow:hidden;
    max-height:0;
    opacity:0;
    transition:max-height .28s cubic-bezier(.4,0,.2,1), opacity .22s ease, padding .22s ease;
    padding-top:0;
    padding-bottom:0;
  }
  .navbar-tk .dropdown-menu-tk.show{
    max-height:220px;
    opacity:1;
    padding:.3rem .25rem;
  }
  .navbar-tk .dropdown-menu-tk .dropdown-item{
    padding:.55rem .85rem;
    border-radius:8px;
    font-size:.92rem;
  }
}

/* Action Buttons */
.btn-wa{background:#25D366;color:#fff!important;border-radius:999px;padding:.48rem 1rem;font-weight:700;font-size:.88rem;white-space:nowrap;border:none;transition:transform .15s ease, background .2s ease}
.btn-wa:hover{background:#1fbb59;color:#fff!important;transform:translateY(-1px)}
.btn-wa.active{background:#25D366;box-shadow:0 0 0 3px rgba(37,211,102,.4);border-color:#25D366}

.btn-tk-ppdb{
  background:linear-gradient(135deg, var(--tk-blue), var(--tk-blue-dark));
  color:#fff!important;
  border-radius:999px;
  padding:.48rem 1.15rem;
  font-weight:700;
  font-size:.88rem;
  border:2px solid transparent;
  box-shadow:0 4px 12px rgba(21,91,181,.22);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  gap:.5rem;
}
.btn-tk-ppdb:hover{
  background:linear-gradient(135deg, var(--tk-blue-dark), #093369);
  color:#fff!important;
  transform:translateY(-1px);
  box-shadow:0 6px 16px rgba(21,91,181,.32);
}
.btn-tk-ppdb.active{
  box-shadow:0 0 0 3px rgba(200,47,60,.4), 0 4px 12px rgba(21,91,181,.25);
  border-color:var(--tk-red);
}

@media (max-width: 1199.98px){
  .navbar-tk .navbar-collapse{
    padding-top:1rem;
    padding-bottom:1rem;
    border-top:1px solid var(--tk-line);
    margin-top:.75rem;
  }
  .navbar-tk .nav-link{
    padding:.6rem .5rem;
  }
  .navbar-tk .nav-link.active::after{
    left:.5rem;
    right:auto;
    width:28px;
  }
  .navbar-tk .nav-actions{
    margin-top:1rem;
    padding-top:.85rem;
    border-top:1px dashed var(--tk-line);
    display:flex;
    flex-direction:column;
    align-items:stretch !important;
    gap:.55rem !important;
    width:100%;
  }
  .navbar-tk .nav-actions .btn{
    width:100%;
    justify-content:center;
    padding:.55rem 1rem;
    font-size:.9rem;
    min-height:42px;
  }
}

/* ---- Buttons ---- */
.btn-tk-primary{background:var(--tk-blue);color:#fff;border-radius:999px;padding:.65rem 1.4rem;font-weight:700;border:none;box-shadow:var(--shadow-sm);transition:transform .15s ease, background .2s ease}
.btn-tk-primary:hover{background:var(--tk-blue-dark);color:#fff;transform:translateY(-1px)}
.btn-tk-outline{background:#fff;color:var(--tk-blue);border:2px solid var(--tk-blue);border-radius:999px;padding:.55rem 1.3rem;font-weight:700;text-decoration: none;}
.btn-tk-outline2{background:#fff;color:var(--tk-blue);border:2px solid var(--tk-blue);border-radius:999px;padding:.55rem 1.3rem;font-weight:700;text-decoration: none;}
.btn-tk-outline:hover{background:var(--tk-blue);color:#fff}
.btn-tk-outline2:hover{border:2px solid #fff !important;background:var(--tk-blue) !important;color:#fff !important}
.btn-tk-red{background:var(--tk-red);color:#fff;border-radius:999px;padding:.6rem 1.3rem;font-weight:700;border:none}
.btn-tk-red:hover{background:#a3242f;color:#fff}
.btn-tk-red-yt{background:var(--tk-red);color:#fff;border-radius:999px;padding:.6rem 1.3rem;font-weight:700;border:none}
.btn-tk-red-yt:hover{background:#a3242f;color:#fff}
.btn-tk-yellow{background:var(--tk-yellow);color:#1f2937;border-radius:999px;padding:.6rem 1.3rem;font-weight:800;border:none}
.btn-tk-yellow:hover{border:2px solid #fff}

/* ---- Hero (Mockup Design) ---- */
.hero-mockup {
  position: relative;
  background-color: #1565c0;
  background-image:
    linear-gradient(90deg,
      #135ea8 0%,
      rgba(19, 94, 168, 0.96) 12%,
      rgba(19, 94, 168, 0.82) 28%,
      rgba(19, 94, 168, 0.35) 38%,
      rgba(19, 94, 168, 0) 84%),
    url('../img/hero_gedung.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  padding: 85px 0 145px;
  overflow: hidden;
  color: #ffffff;
}

.hero-kicker {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: .4rem;
  letter-spacing: .01em;
}

.hero-title {
  font-family: 'Fraunces', 'Nunito', system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}

.hero-title-white {
  display: block;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.hero-title-red {
  display: block;
  color: #ea384c;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-desc {
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.6;
  max-width: 490px;
  margin-bottom: 1.65rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.hero-btn-group {
  margin-bottom: 2rem;
}

.btn-hero-primary {
  background: #155bb5;
  color: #ffffff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: all .2s ease;
  text-decoration: none;
}
.btn-hero-primary:hover {
  background: #0d448b;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn-hero-wa {
  background: #ffffff;
  color: #155bb5 !important;
  border: none;
  border-radius: 999px;
  padding: .7rem 1.6rem;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: all .2s ease;
  text-decoration: none;
}
.btn-hero-wa i {
  color: #155bb5;
  font-size: 1.1em;
}
.btn-hero-wa:hover {
  background: #f8fafc;
  color: #0d448b !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Feature Chips */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  max-width: 620px;
}

.hero-chip {
  background: #ffffff;
  border-radius: 16px;
  padding: .5rem .95rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.6);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hero-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.chip-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: .95rem;
  flex-shrink: 0;
}
.bg-chip-red {
  background: #dc2626;
  color: #ffffff;
}
.bg-chip-yellow {
  background: #facc15;
  color: #1f2937;
}
.bg-chip-blue {
  background: #1d4ed8;
  color: #ffffff;
}
.bg-chip-slate {
  background: #cbd5e1;
  color: #334155;
}

.chip-meta strong {
  display: block;
  font-size: .88rem;
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
}
.chip-meta small {
  display: block;
  font-size: .73rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.1;
  margin-top: 1px;
}

/* Bottom Swoosh */
.hero-bottom-swoosh {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.hero-bottom-swoosh svg {
  display: block;
  width: 100%;
  height: 80px;
}

@media (min-width: 992px) {
  .hero-bottom-swoosh svg {
    height: 110px;
  }
}

/* Responsive for Mobile & Tablet */
@media (max-width: 991px) {
  .hero-mockup {
    background-image:
      linear-gradient(180deg,
        rgba(13, 74, 150, 0.96) 0%,
        rgba(13, 74, 150, 0.90) 60%,
        rgba(13, 74, 150, 0.65) 100%),
      url('../img/hero_gedung.jpg');
    background-position: center center;
    padding: 50px 0 100px;
  }
  .hero-title {
    font-size: clamp(2rem, 5.5vw, 2.75rem);
  }
}

@media (max-width: 575.98px) {
  .hero-mockup {
    padding: 30px 0 75px;
  }
  .hero-kicker {
    font-size: .88rem;
    margin-bottom: .35rem;
  }
  .hero-title {
    font-size: clamp(1.5rem, 6.5vw, 2.05rem) !important;
    line-height: 1.18;
    margin-bottom: .65rem;
  }
  .hero-desc {
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: 1.15rem;
  }
  .hero-btn-group {
    flex-direction: column;
    gap: .55rem;
    margin-bottom: 1.25rem;
  }
  .btn-hero-primary, .btn-hero-wa {
    width: 100%;
    justify-content: center;
    padding: .6rem 1.1rem;
    font-size: .9rem;
    min-height: 44px;
  }
  #instagram-link {
    width: 50% !important;
  }
  .hero-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .hero-chip {
    padding: .35rem .55rem;
    gap: .45rem;
    border-radius: 10px;
  }
  .chip-icon {
    width: 26px;
    height: 26px;
    font-size: .72rem;
    border-radius: 7px;
  }
  .chip-meta strong {
    font-size: .75rem;
    line-height: 1.2;
  }
  .chip-meta small {
    font-size: .64rem;
    line-height: 1.2;
  }
  .hero-bottom-swoosh svg {
    height: 50px;
  }
}
@media (max-width: 380px) {
  .hero-chips {
    grid-template-columns: 1fr;
  }
  .hero-chip {
    padding: .4rem .65rem;
  }
}

/* ---- Cards ---- */
.card-tk{border:1px solid var(--tk-line);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow-sm);transition:transform .2s ease, box-shadow .2s ease;overflow:hidden;height:100%}
.card-tk:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.card-tk .img{aspect-ratio:4/3;overflow:hidden;background:#f0f2f7}
.card-tk .img img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.card-tk:hover .img img{transform:scale(1.04)}
.card-tk .body{padding:1rem 1.15rem}
.card-tk h5{margin:0;font-size:1rem;font-weight:700;color:#111827}

/* ---- Program & Layanan ---- */
.program-category-section{margin-bottom:3.5rem}
.program-category-header{display:flex;align-items:center;gap:1rem;margin-bottom:1.5rem;padding-bottom:.85rem;border-bottom:2px solid var(--tk-soft)}
.category-icon-pill{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-size:1.2rem;flex-shrink:0;color:#fff}
.category-icon-pill.pill-blue{background:var(--tk-blue)}
.category-icon-pill.pill-red{background:var(--tk-red)}
.category-icon-pill.pill-yellow{background:var(--tk-yellow);color:#1f2937}
.category-icon-pill.pill-green{background:#16a34a}

.program-card{border:1px solid var(--tk-line);border-radius:18px;background:#fff;box-shadow:var(--shadow-sm);transition:transform .25s ease, box-shadow .25s ease;overflow:hidden;display:flex;flex-direction:column;height:100%}
.program-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.program-card .img{aspect-ratio:16/10;overflow:hidden;background:#f0f2f7;position:relative}
.program-card .img img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.program-card:hover .img img{transform:scale(1.05)}
.program-card-icon{position:absolute;bottom:12px;right:14px;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:1rem;box-shadow:0 4px 12px rgba(0,0,0,.25);border:2px solid #fff;z-index:2}
.program-card-icon.ic-blue{background:var(--tk-blue);color:#fff}
.program-card-icon.ic-red{background:var(--tk-red);color:#fff}
.program-card-icon.ic-yellow{background:var(--tk-yellow);color:#1f2937}
.program-card-icon.ic-green{background:#16a34a;color:#fff}

.program-card-title{font-family:'Fraunces',serif;font-weight:800;font-size:1.15rem;color:#111827;line-height:1.3}
.program-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .65rem;border-radius:999px;font-size:.75rem;font-weight:700}
.badge-soft-blue{background:#eef4ff;color:var(--tk-blue);border:1px solid #d4e2fc}
.badge-soft-red{background:#fff5f6;color:var(--tk-red);border:1px solid #ffdbdf}
.badge-soft-yellow{background:#fef9e7;color:#92400e;border:1px solid #fde68a}
.badge-soft-green{background:#f0fdf4;color:#15803d;border:1px solid #bbf7d0}

.program-featured-card{border:1px solid var(--tk-line);border-left:5px solid var(--tk-blue);border-radius:20px;background:#fff;box-shadow:var(--shadow-sm);transition:transform .25s ease, box-shadow .25s ease;overflow:hidden}
.program-featured-card.featured-blue{border-left-color:var(--tk-blue)}
.program-featured-card.featured-red{border-left-color:var(--tk-red)}
.program-featured-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.program-featured-card .featured-img{position:relative;background:#f0f2f7;overflow:hidden;width:100%}
.program-featured-card .featured-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
.program-featured-card:hover .featured-img img{transform:scale(1.04)}

@media (min-width: 768px) {
  .program-featured-card > .row {
    align-items: stretch;
  }
  .program-featured-card .col-md-5 {
    display: flex;
  }
  .program-featured-card .featured-img {
    height: 100%;
    min-height: 260px;
  }
  .program-featured-card .featured-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 767.98px) {
  .program-featured-card {
    border-radius: 18px;
    border-left-width: 4px;
  }
  .program-featured-card .featured-img {
    aspect-ratio: 16/10;
    width: 100%;
    height: auto;
    min-height: 0 !important;
  }
  .program-featured-card .program-card-icon {
    position: absolute;
    bottom: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    font-size: .88rem;
    border-radius: 9px;
  }
}

.program-check-list{display:flex;flex-wrap:wrap;gap:.6rem 1.25rem;font-size:.82rem;color:#4b5563;font-weight:600}
.program-check-list span{display:inline-flex;align-items:center;gap:.4rem}
.program-check-list i{color:#16a34a}

/* ---- Announcement list ---- */
.ann-list{background:#fff;border:1px solid var(--tk-line);border-radius:var(--radius);padding:.5rem;box-shadow:var(--shadow-sm)}
.ann-item{display:flex;gap:1rem;align-items:center;padding:.85rem .75rem;border-radius:12px;transition:background .15s ease}
.ann-item:hover{background:#f6f9ff}
.ann-date{flex:0 0 56px;text-align:center;background:#fff5f6;border:1px solid #ffdbdf;color:var(--tk-red);border-radius:12px;padding:.35rem .25rem;font-weight:800;line-height:1}
.ann-date .d{font-size:1.2rem}
.ann-date .m{font-size:.7rem;color:var(--tk-red);text-transform:uppercase;letter-spacing:.05em}
.ann-title{font-weight:700;color:#111827;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;overflow-wrap:anywhere}
.ann-sub{color:var(--tk-muted);font-size:.85rem}
.badge-new{background:var(--tk-red);color:#fff;border-radius:999px;font-size:.72rem;font-weight:700;padding:.25rem .55rem}

/* ---- Video section ---- */
.video-wrapper-bordered{background:#fff;border:2px solid var(--tk-line);border-radius:24px;padding:1.25rem;box-shadow:var(--shadow-sm);transition:transform .2s ease, box-shadow .2s ease}
.video-wrapper-bordered:hover{box-shadow:var(--shadow-md)}
.video-card{border-radius:18px;overflow:hidden;position:relative;box-shadow:var(--shadow-sm);background:#000;aspect-ratio:16/9;border:2px solid var(--tk-line)}
.video-card iframe,.video-card img{width:100%;height:100%;border:0}
.video-thumb-play{position:absolute;inset:0;display:grid;place-items:center;color:#fff;background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.35))}
.video-thumb-play .btn-play{width:76px;height:76px;border-radius:50%;background:var(--tk-red);display:grid;place-items:center;color:#fff;font-size:1.4rem;box-shadow:0 10px 30px rgba(200,47,60,.5)}
@media (max-width: 576px){
  .video-wrapper-bordered{padding:.75rem;border-radius:18px}
  .video-thumb-play .btn-play{width:56px;height:56px;font-size:1.1rem}
}

/* ---- Instagram section ---- */
.ig-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:.75rem}
.ig-grid .ig{aspect-ratio:1/1;overflow:hidden;border-radius:14px;background:#f2f4f7;position:relative}
.ig-grid .ig img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.ig-grid .ig:hover img{transform:scale(1.05)}
@media (max-width: 992px){ .ig-grid{grid-template-columns:repeat(3,1fr)} .ig-grid .ig:nth-child(n+7){display:none} }
@media (max-width: 576px){ .ig-grid{grid-template-columns:repeat(2,1fr)} .ig-grid .ig:nth-child(n+5){display:none} }

/* ---- CTA ---- */
.cta-band{background:linear-gradient(135deg,var(--tk-blue),var(--tk-blue-dark));color:#fff;border-radius:24px;padding:2.25rem;box-shadow:var(--shadow-md);position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;right:-40px;top:-40px;width:200px;height:200px;border-radius:50%;background:var(--tk-yellow);opacity:.2}
.cta-band::after{content:"";position:absolute;left:-30px;bottom:-30px;width:140px;height:140px;border-radius:50%;background:var(--tk-red);opacity:.2}

/* ---- Footer ---- */
footer.tk-footer{background:#111827;color:#e5e7eb;padding:48px 0 20px}
footer.tk-footer h6{color:#fff;font-weight:800;margin-bottom:.9rem}
footer.tk-footer a{color:#cbd5e1;text-decoration:none;display:block;padding:.15rem 0}
footer.tk-footer a:hover{color:var(--tk-yellow)}
.social-btn{width:42px;height:42px;border-radius:12px;display:inline-grid;place-items:center;color:#fff;text-decoration:none;transition:transform .15s ease}
.social-btn:hover{transform:translateY(-2px);color:#fff}
.social-ig{background:linear-gradient(135deg,#f9ce34,#ee2a7b,#6228d7)}
.social-yt{background:#FF0000}
.social-fb{background:#1877F2}
.footer-copy{background:var(--tk-blue);color:#fff;text-align:center;padding:1rem 0;margin-top:2rem}

/* ---- PPDB accordion ---- */
.accordion-tk .accordion-item{border:1px solid var(--tk-line);border-radius:14px!important;margin-bottom:.75rem;overflow:hidden}
.accordion-tk .accordion-button{font-weight:700;color:#111827;background:#fff}
.accordion-tk .accordion-button:not(.collapsed){background:#eef4ff;color:var(--tk-blue);box-shadow:none}
.accordion-tk .status-badge{display:inline-block;margin-left:.6rem;font-size:.7rem;font-weight:700;padding:.15rem .6rem;border-radius:999px}
.st-open{background:#e6f8ec;color:#0f8a3a}
.st-closed{background:#fbe6e9;color:#a3242f}
.accordion-tk .accordion-item.border-abk{border-left:4px solid var(--tk-yellow)!important}

/* ---- Admin ---- */
.admin-body{background:var(--tk-soft);min-height:100vh}
.admin-shell{display:flex;min-height:100vh}
.admin-sidebar{background:#fff;border-right:1px solid var(--tk-line);padding:1.2rem 1rem;position:fixed;top:0;left:0;bottom:0;width:260px;height:100vh;overflow-y:auto;z-index:100}
.admin-sidebar .brand{display:flex;align-items:center;gap:.55rem;margin-bottom:1.2rem}
.admin-sidebar .brand .logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--tk-blue),var(--tk-red));display:grid;place-items:center;color:#fff;font-weight:800}
.admin-sidebar .brand .name{font-family:'Fraunces',serif;font-weight:800;color:var(--tk-blue);line-height:1}
.admin-sidebar .brand .name span{color:var(--tk-red)}
.admin-sidebar .group{color:var(--tk-muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;margin:1rem 0 .35rem}
.admin-sidebar .link{display:flex;align-items:center;gap:.65rem;padding:.55rem .7rem;border-radius:10px;color:#374151;text-decoration:none;font-weight:600;font-size:.92rem}
.admin-sidebar .link i{width:20px;text-align:center;color:var(--tk-blue)}
.admin-sidebar .link:hover{background:#f3f6ff;color:var(--tk-blue)}
.admin-sidebar .link.active{background:var(--tk-blue);color:#fff}
.admin-sidebar .link.active i{color:#fff}
.admin-main{flex:1;margin-left:260px;padding:1.5rem;min-width:0;width:calc(100% - 260px)}
.admin-topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}
.admin-topbar h1{font-size:1.5rem;margin:0}
.stat-card{border:1px solid var(--tk-line);border-radius:16px;padding:1.2rem;background:#fff;box-shadow:var(--shadow-sm);display:flex;align-items:center;gap:1rem}
.stat-card .ic{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;color:#fff;font-size:1.2rem}
.stat-card .num{font-size:1.8rem;font-weight:800;font-family:'Fraunces',serif}
.stat-card .lb{color:var(--tk-muted);font-size:.85rem}

/* mobile admin */
.admin-toggle{display:none;background:var(--tk-blue);color:#fff;border:0;border-radius:10px;padding:.5rem .8rem}
.admin-backdrop{display:none;position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:1040}
@media (max-width: 991px){
  .admin-shell{display:block}
  .admin-sidebar{position:fixed;left:-280px;top:0;bottom:0;width:260px;height:100vh;z-index:1050;transition:left .25s ease;box-shadow:var(--shadow-md)}
  .admin-sidebar.open{left:0}
  .admin-main{margin-left:0;padding:1.5rem;width:100%}
  .admin-toggle{display:inline-flex}
  .admin-backdrop.show{display:block}
}

/* ---- Forms ---- */
.form-control:focus,.form-select:focus{border-color:var(--tk-blue);box-shadow:0 0 0 .18rem rgba(21,91,181,.15)}

/* ---- Slider ---- */
.fasilitas-scroll{display:flex;gap:1rem;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:.5rem}
.fasilitas-scroll::-webkit-scrollbar{height:8px}
.fasilitas-scroll::-webkit-scrollbar-thumb{background:var(--tk-blue);border-radius:8px}
.fasilitas-scroll .card-tk{scroll-snap-align:start;min-width:220px;max-width:260px}

/* Utilities */
.pretty-shadow{box-shadow:var(--shadow-md)}
.br-lg{border-radius:20px}
.divider{height:1px;background:var(--tk-line);margin:1.5rem 0}
.pill{display:inline-block;background:#fff;border:1px solid var(--tk-line);padding:.3rem .8rem;border-radius:999px;font-size:.8rem;font-weight:600;color:var(--tk-ink)}
.list-check li{list-style:none;padding-left:1.75rem;position:relative;margin:.35rem 0}
.list-check li::before{content:"\f00c";font-family:"Font Awesome 6 Free";font-weight:900;color:var(--tk-blue);position:absolute;left:0;top:.15rem}

/* ==== TOASTS ==== */
.tk-toast-container{position:fixed;top:1rem;right:1rem;z-index:1080;display:flex;flex-direction:column;gap:.5rem;max-width:min(420px, calc(100vw - 2rem))}
.tk-toast{background:#fff;border:1px solid var(--tk-line);border-left:5px solid var(--tk-blue);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.12);padding:.85rem 1rem;display:flex;align-items:flex-start;gap:.75rem;min-width:280px;opacity:0;transform:translateX(20px);transition:opacity .25s ease, transform .25s ease}
.tk-toast.show{opacity:1;transform:translateX(0)}
.tk-toast .ic{width:32px;height:32px;border-radius:8px;display:grid;place-items:center;color:#fff;flex-shrink:0}
.tk-toast.success{border-left-color:#16a34a}
.tk-toast.success .ic{background:#16a34a}
.tk-toast.danger{border-left-color:var(--tk-red)}
.tk-toast.danger .ic{background:var(--tk-red)}
.tk-toast.warning{border-left-color:#d97706}
.tk-toast.warning .ic{background:#d97706}
.tk-toast.info{border-left-color:var(--tk-blue)}
.tk-toast.info .ic{background:var(--tk-blue)}
.tk-toast .msg{flex:1;font-size:.92rem;line-height:1.35;color:#1f2937}
.tk-toast .msg small{display:block;color:var(--tk-muted);font-size:.72rem;margin-top:.15rem;text-transform:uppercase;letter-spacing:.05em;font-weight:700}
.tk-toast .cls{background:transparent;border:0;color:#9ca3af;font-size:1rem;cursor:pointer}

/* ==== Admin card grid ==== */
.admin-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(280px, 1fr));gap:1.15rem}
.item-card{background:#fff;border:1px solid var(--tk-line);border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm);transition:transform .15s ease, box-shadow .2s ease;display:flex;flex-direction:column}
.item-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-md)}
.item-card .thumb{aspect-ratio:4/3;background:#f0f2f7;overflow:hidden;position:relative}
.item-card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.item-card:hover .thumb img{transform:scale(1.04)}
.item-card .thumb-fallback{width:100%;height:100%;display:grid;place-items:center;color:#9ca3af;font-size:2.2rem;background:linear-gradient(135deg,#eef4ff,#fff5f6)}
.item-card .body{padding:1rem 1.15rem;flex:1;display:flex;flex-direction:column;gap:.5rem}
.item-card .title{font-family:'Fraunces',serif;font-weight:800;font-size:1.02rem;color:#111827;margin:0;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;overflow-wrap:anywhere}
.item-card .meta{color:var(--tk-muted);font-size:.8rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.item-card .desc{color:#4b5563;font-size:.88rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;overflow-wrap:anywhere}
.item-card .actions{margin-top:auto;padding-top:.5rem;display:flex;gap:.4rem;flex-wrap:wrap;border-top:1px dashed var(--tk-line)}
.item-card .actions .btn{flex:1;min-width:0;padding:.45rem .55rem;font-size:.82rem;font-weight:700;border-radius:10px;white-space:nowrap}
.item-card .actions form{flex:1;min-width:0;display:flex;margin:0}
.item-card .actions form .btn{width:100%}
.item-card .status-pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.72rem;font-weight:700;padding:.25rem .6rem;border-radius:999px}
.item-card .status-pill.on{background:#e6f8ec;color:#0f8a3a}
.item-card .status-pill.off{background:#f4f6f8;color:#6b7280}
.item-card .status-pill.open{background:#e6f8ec;color:#0f8a3a}
.item-card .status-pill.closed{background:#fbe6e9;color:#a3242f}
.item-card .date-chip{display:inline-flex;align-items:center;gap:.35rem;background:#eef4ff;color:var(--tk-blue);font-weight:700;font-size:.75rem;padding:.25rem .55rem;border-radius:8px}

/* Empty state */
.empty-state{padding:3rem 1rem;text-align:center;color:var(--tk-muted);height: auto}
.empty-state .ic{width:64px;height:64px;border-radius:20px;background:#eef4ff;color:var(--tk-blue);display:grid;place-items:center;margin:0 auto .75rem;font-size:1.6rem}
.empty-state h5{color:#111827;margin-bottom:.25rem}

/* Modal polish */
.modal-content{border:0;border-radius:18px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.18)}
.modal-header{background:linear-gradient(135deg,#eef4ff,#fff);border-bottom:1px solid var(--tk-line);padding:1rem 1.25rem;flex-shrink:0}
.modal-title{font-family:'Fraunces',serif;font-weight:800;color:var(--tk-blue);font-size:1.1rem}
.modal-title .sub{display:block;font-family:'Nunito',sans-serif;color:var(--tk-muted);font-size:.78rem;font-weight:600;margin-top:.15rem}
.modal-body{padding:1.25rem}
.modal-footer{border-top:1px solid var(--tk-line);padding:.9rem 1.25rem;gap:.5rem;flex-shrink:0}
.modal-danger .modal-header{background:linear-gradient(135deg,#fbe6e9,#fff)}
.modal-danger .modal-title{color:var(--tk-red)}
.modal-warning .modal-header{background:linear-gradient(135deg,#fff8e6,#fff)}
.modal-warning .modal-title{color:#b45309}

/* Admin Modal & Sticky Sidebar Fixes */
body.admin-body.modal-open{padding-right:0!important;overflow:hidden}
body.admin-body.modal-open .admin-sidebar{pointer-events:none}

/* Modal Stacking & Layering:
   1. Blur 1 (Backdrop utama): z-index 1050
   2. Pop-up CRUD (Modal utama): z-index 1060
   3. Blur 2 (Backdrop bertumpuk untuk konfirmasi): z-index 1080
   4. Pop-up Konfirmasi (Modal konfirmasi): z-index 1090
*/
.modal-backdrop {
  z-index: 1050 !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity .15s linear, backdrop-filter .15s linear;
}
.modal {
  z-index: 1060 !important;
}

/* Stacked Backdrop 2: Backdrop untuk konfirmasi di atas modal CRUD */
.modal-backdrop ~ .modal-backdrop,
.modal-backdrop.modal-backdrop-stacked {
  z-index: 1080 !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Stacked Modal 2: Pop up Konfirmasi di atas Backdrop 2 */
#tkConfirmModal,
.modal.modal-stacked {
  z-index: 1090 !important;
}

/* Fix scrollable modal with nested or direct forms */
.modal-dialog-scrollable{max-height:calc(100vh - 3.5rem)}
.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem);display:flex;flex-direction:column;overflow:hidden}
.modal-dialog-scrollable .modal-body{overflow-y:auto;min-height:0;flex:1 1 auto;-webkit-overflow-scrolling:touch}
.modal-dialog-scrollable .modal-content > form{display:flex;flex-direction:column;height:100%;max-height:100%;min-height:0;flex:1 1 auto;overflow:hidden}
.modal-dialog-scrollable .modal-content > form > .modal-body{overflow-y:auto;min-height:0;flex:1 1 auto;-webkit-overflow-scrolling:touch}

/* Quill rich text editor inside modals */
.ql-toolbar.ql-snow{position:sticky;top:0;z-index:5;background:#f8fafc;border-top-left-radius:8px;border-top-right-radius:8px}
.ql-toolbar.ql-snow .ql-formats{display:inline-flex !important;align-items:center !important;vertical-align:middle}
.ql-toolbar.ql-snow .ql-picker.ql-align{display:inline-flex !important;align-items:center !important;height:24px !important;line-height:24px !important;top:0 !important}
.ql-toolbar.ql-snow .ql-picker.ql-align .ql-picker-label{display:flex !important;align-items:center !important;justify-content:center !important;height:24px !important;padding:0 4px !important;border:none !important}
.ql-toolbar.ql-snow .ql-picker.ql-align .ql-picker-label svg{vertical-align:middle}
#quillEditorContainer{min-height:260px;max-height:420px;background:#fff;border-bottom-left-radius:8px;border-bottom-right-radius:8px;display:flex;flex-direction:column}
#quillEditorContainer .ql-editor{flex:1 1 auto;overflow-y:auto;min-height:240px;font-size:.95rem;line-height:1.6}
#quillEditorContainer .ql-editor p{margin-bottom:0.95rem}
#quillEditorContainer .ql-editor p:last-child{margin-bottom:0}

/* Section header for admin */
.admin-section-head{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;justify-content:space-between;margin-bottom:1rem}
.admin-section-head .search-wrap{position:relative;flex:1;min-width:220px;max-width:360px}
.admin-section-head .search-wrap i{position:absolute;left:.85rem;top:50%;transform:translateY(-50%);color:var(--tk-muted)}
.admin-section-head .search-wrap input{padding-left:2.3rem;border-radius:12px}
.admin-section-head .count-pill{background:#eef4ff;color:var(--tk-blue);font-weight:700;font-size:.78rem;padding:.35rem .75rem;border-radius:999px}

/* Activity feed */
.activity-list{display:flex;flex-direction:column;gap:.15rem}
.activity-item{display:flex;gap:.75rem;padding:.65rem .1rem;border-bottom:1px dashed var(--tk-line)}
.activity-item:last-child{border-bottom:none}
.activity-item .ic{width:34px;height:34px;border-radius:10px;color:#fff;display:grid;place-items:center;flex-shrink:0;font-size:.85rem}
.activity-item .txt{flex:1;font-size:.9rem;color:#374151;line-height:1.35}
.activity-item .txt small{display:block;color:var(--tk-muted);font-size:.72rem;margin-top:.1rem}

/* Fix table & container overflow */
.table-responsive{overflow-x:auto !important;display:block;width:100%;max-width:100%;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.card-tk .table{margin-bottom:0}
img{max-width:100%;height:auto}

/* ---- Admin Table List (Berita & List View) ---- */
.admin-table-card{background:#fff;border:1px solid var(--tk-line);border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden;width:100%;max-width:100%;min-width:0}
.custom-admin-table{margin-bottom:0;vertical-align:middle;width:100%;min-width:760px}
.custom-admin-table thead th{background-color:#f8fafc;color:#334155;font-size:.82rem;font-weight:700;padding:.95rem 1.2rem;border-bottom:1px solid #e2e8f0;white-space:nowrap}
.custom-admin-table thead th.sortable{cursor:pointer;user-select:none;transition:background .15s ease,color .15s ease}
.custom-admin-table thead th.sortable:hover{background-color:#eef4ff;color:var(--tk-blue)}
.custom-admin-table thead th.sortable i.sort-ic, .custom-admin-table thead th.sortable i.sort-icon{font-size:.72rem;opacity:.45;margin-left:.35rem;transition:opacity .15s ease}
.custom-admin-table thead th.sortable:hover i.sort-ic, .custom-admin-table thead th.sortable:hover i.sort-icon, .custom-admin-table thead th.sort-active i.sort-ic, .custom-admin-table thead th.sort-active i.sort-icon{opacity:1;color:var(--tk-blue)}
.custom-admin-table tbody td{padding:.95rem 1.2rem;border-bottom:1px solid #f1f5f9;color:#1e293b;font-size:.9rem}
.custom-admin-table tbody tr:last-child td{border-bottom:none}
.custom-admin-table tbody tr{transition:background-color .15s ease}
.custom-admin-table tbody tr:hover td{background-color:#f8faff}

/* Category Badges (Matching Mockup) */
.badge-kat{display:inline-flex;align-items:center;padding:.32rem .75rem;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap}
.badge-kat.kegiatan{background-color:#fee2e2;color:#dc2626}
.badge-kat.pengumuman{background-color:#dbeafe;color:#2563eb}

/* Status Badges */
.badge-status{display:inline-flex;align-items:center;padding:.32rem .75rem;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap}
.badge-status.on{background-color:#dcfce7;color:#16a34a}
.badge-status.off{background-color:#f1f5f9;color:#64748b}

/* Table Action Buttons (Matching Mockup outline buttons) */
.table-actions{display:inline-flex;align-items:center;gap:.35rem}
.table-actions .btn-action{width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;font-size:.82rem;transition:all .15s ease}
.table-actions .btn-action:hover{transform:translateY(-1px)}

/* Filter & Sort Wrap */
.filter-wrap select, .sort-wrap select{background-color:#fff;border-color:var(--tk-line);border-radius:10px;font-size:.84rem;font-weight:600;padding:.35rem 2rem .35rem .75rem}
.filter-wrap select:focus, .sort-wrap select:focus{border-color:var(--tk-blue);box-shadow:0 0 0 3px rgba(21,91,181,.15)}

/* Pagination Bar */
.admin-pagination-bar{background:#fff;border:1px solid var(--tk-line);border-radius:14px;padding:.7rem 1.2rem;box-shadow:var(--shadow-sm)}
.admin-pagination-bar .pagination .page-link{color:var(--tk-blue);border-radius:8px;margin:0 2px;padding:.32rem .7rem;font-weight:600;font-size:.84rem;border-color:#e2e8f0;background:#fff}
.admin-pagination-bar .pagination .page-item.active .page-link{background-color:var(--tk-blue);border-color:var(--tk-blue);color:#fff}
.admin-pagination-bar .pagination .page-item.disabled .page-link{color:#94a3b8;background-color:#f8fafc;border-color:#e2e8f0}

@media (max-width: 576px){
  .admin-main{padding:1rem}
  .item-card .actions .btn{flex:1 1 40%}
  .tk-toast-container{top:.5rem;right:.5rem;left:.5rem;max-width:none}
}

/* ================= PERBAIKAN TAMPILAN ================= */

/* --- Jarak ikon & teks agar tidak berdempetan --- */
.date-chip{gap:.5rem}
.date-chip i{font-size:.8em;opacity:.9}
.item-card .status-pill,.status-pill{gap:.45rem}
.item-card .meta{gap:.65rem}
.item-card .meta i{margin-right:.4rem}
.activity-item .txt small{display:flex;align-items:center;gap:.45rem;margin-top:.25rem}
.activity-item .txt small i{margin-right:0}
.pill{display:inline-flex;align-items:center;gap:.45rem}
.section-eyebrow{gap:.55rem}
.modal-title i{margin-right:.6rem!important}
.set-lbl-ic{margin-right:.5rem;color:var(--tk-blue)}
.list-check li{padding-left:2rem}
.btn i + span,.btn i{margin-right:.15rem}
.item-card .actions .btn i{margin-right:0}
.detail-list{list-style:none;padding:0;margin:0}
.detail-list li{display:flex;gap:.85rem;align-items:flex-start;padding:.55rem 0;border-bottom:1px dashed var(--tk-line)}
.detail-list li:last-child{border-bottom:none}
.detail-list li .ic{width:30px;flex:0 0 30px;text-align:center;color:var(--tk-blue)}

/* --- Dashboard: kartu tidak lagi ikut tinggi kolom lain --- */
.dash-row{align-items:flex-start}
.dash-card{height:auto}
.dash-ann-title{max-width:100%}
.activity-scroll{max-height:360px;overflow-y:auto;padding-right:.35rem}
.activity-scroll::-webkit-scrollbar{width:6px}
.activity-scroll::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:8px}
.activity-scroll::-webkit-scrollbar-thumb:hover{background:var(--tk-blue)}
.topbar-logout{display:inline-flex;align-items:center;gap:.5rem;padding:.35rem .9rem;font-size:.85rem}
.admin-sidebar .link-logout{color:var(--tk-red)}
.admin-sidebar .link-logout i{color:var(--tk-red)}
.admin-sidebar .link-logout:hover{background:#fbe6e9;color:var(--tk-red)}

/* --- Halaman pengaturan --- */
.settings-wrap{max-width:1180px}
.settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:1.15rem;align-items:start}
.set-card{height:auto}
.set-card:hover{transform:none;box-shadow:var(--shadow-sm)}
.set-head{display:flex;align-items:center;gap:.85rem;margin-bottom:1.1rem;padding-bottom:.85rem;border-bottom:1px dashed var(--tk-line)}
.set-head h5{font-size:1.02rem}
.set-ic{width:42px;height:42px;flex:0 0 42px;border-radius:12px;display:grid;place-items:center;color:#fff;font-size:1rem}
.set-ic.bg-yellow{color:#1f2937}
.settings-form .form-label{font-weight:700;font-size:.86rem;color:#374151;margin-bottom:.35rem;display:flex;align-items:center}
.settings-form .form-control{border-radius:12px;padding:.6rem .85rem;resize: none;}
.set-map-preview .map-frame,.set-map-preview .map-fallback{min-height:190px}
.settings-savebar{position:sticky;bottom:0;margin-top:1.15rem;display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;justify-content:space-between;
  background:rgba(255,255,255,.95);backdrop-filter:blur(6px);border:1px solid var(--tk-line);border-radius:16px;padding:.85rem 1.1rem;box-shadow:var(--shadow-md);z-index:5}
@media (max-width: 1366px) {.settings-grid {display: grid !important;grid-template-columns: 1fr !important;width: 100% !important;gap: 1rem;}.settings-grid > .set-card {grid-column: 1 / -1 !important;width: 100% !important;min-width: 0;box-sizing: border-box;}}
@media (max-width:575.98px){.settings-savebar{flex-direction:column;align-items:stretch}.settings-savebar .btn{width:100%}}

/* --- Peta: widget + fallback --- */
.map-frame{position:relative;width:100%;aspect-ratio:16/9;min-height:260px;border-radius:20px;overflow:hidden;box-shadow:var(--shadow-md);background:#eef1f6}
.map-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.map-fallback{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 1.25rem;min-height:260px;
  border:2px dashed var(--tk-line);border-radius:20px;background:linear-gradient(135deg,#eef4ff,#fff5f6)}
.map-fallback .mf-ic{width:64px;height:64px;border-radius:20px;background:#fff;color:var(--tk-blue);display:grid;place-items:center;font-size:1.6rem;box-shadow:var(--shadow-sm);margin-bottom:.85rem}

/* --- Footer lebih rapi: ikon sosial terpisah --- */
.footer-brand{display:flex;align-items:center;gap:.7rem;margin-bottom:.85rem}
.footer-brand .logo{width:44px;height:44px;flex:0 0 44px;border-radius:12px;background:linear-gradient(135deg,var(--tk-blue),var(--tk-red));display:grid;place-items:center;color:#fff;font-weight:800}
.footer-brand-name{font-family:'Fraunces',serif;font-weight:800;color:#fff;line-height:1.15;font-size:1.02rem}
.footer-desc{color:#cbd5e1;font-size:.92rem;line-height:1.6;margin:0}
.footer-contact{list-style:none;padding:0;margin:0}
.footer-contact li{display:flex;align-items:flex-start;gap:.85rem;margin-bottom:.75rem;color:#cbd5e1;font-size:.9rem;line-height:1.5}
.footer-contact .fc-ic{width:32px;height:32px;flex:0 0 32px;border-radius:10px;background:rgba(255,255,255,.08);color:var(--tk-yellow);display:grid;place-items:center;font-size:.85rem}
.footer-contact .fc-tx{padding-top:.3rem}
.footer-social{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;justify-content:space-between;
  margin-top:2rem;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.12)}
.footer-social-label{color:#fff;font-weight:800;font-family:'Fraunces',serif}
.footer-social-icons{display:flex;gap:.65rem;flex-wrap:wrap}
.social-wa{background:#25D366}
footer.tk-footer .footer-social-icons a{display:inline-grid;padding:0}
@media (max-width:575.98px){
  .footer-social{flex-direction:column;align-items:flex-start;gap:.75rem}
  .footer-contact li{font-size:.88rem}
}

/* --- Animasi reveal kartu (visi & misi, dll) --- */
[data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .55s ease, transform .55s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease}
[data-reveal].is-visible{opacity:1;transform:none}
.vm-card{transition:transform .25s ease, box-shadow .25s ease, opacity .55s ease}
.vm-card.is-visible:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{opacity:1;transform:none;transition:none}
}

/* ---- Language Switcher ---- */
.btn-lang-switch{display:inline-flex;align-items:center;gap:.4rem;background:#eef4ff;color:var(--tk-blue);border:2px solid var(--tk-blue);border-radius:999px;padding:.35rem .8rem;font-weight:700;font-size:.82rem;text-decoration:none;transition:all .2s ease;white-space:nowrap}
.btn-lang-switch:hover{background:var(--tk-blue);color:#fff}
.btn-lang-switch .lang-flag{font-family:'Noto Color Emoji', sans-serif;font-size:1.1rem;line-height:1}
.btn-lang-switch .lang-code{letter-spacing:.05em}

/* ---- i18n Untranslated Banner ---- */
.i18n-banner{background:linear-gradient(135deg,#1e40af,#3b82f6);color:#fff;padding:.65rem 0;font-size:.85rem;font-weight:600}
.i18n-banner .btn-close{filter:brightness(0) invert(1);opacity:.7}
.i18n-banner .btn-close:hover{opacity:1}

/* ---- Original Language Badge ---- */
.lang-badge-original{display:inline-flex;align-items:center;gap:.25rem;background:#fff3cd;color:#856404;font-size:.65rem;font-weight:700;padding:.1rem .4rem;border-radius:4px;margin-left:.35rem;vertical-align:middle}

/* ---- Hide SociableKIT Branding ---- */
.sk_branding,
div.sk_branding,
.sk-instagram-feed .sk_branding,
#igWidgetContainer .sk_branding,
a.tutorial_link,
a.--custom-branding,
div[class*="sk_branding"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  line-height: 0 !important;
  font-size: 0 !important;
}

/* ---- Defensive Text Truncation & Overflow Handling ---- */
.dash-ann-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.act-desc,
.activity-item .txt .act-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.text-truncate-1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  max-width: 100%;
}
.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.word-break-safe {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

/* ================================================================
   SISTEM INFORMASI & BERITA
   ================================================================ */

/* ---- Filter Pills ---- */
.btn-filter-pill {
  display: inline-flex;
  align-items: center;
  padding: .5rem 1.25rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--tk-line);
  color: var(--tk-ink);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,.03);
}
.btn-filter-pill:hover {
  background: #f8faff;
  border-color: var(--tk-blue);
  color: var(--tk-blue);
  transform: translateY(-1px);
}
.btn-filter-pill.active {
  background: var(--tk-blue);
  border-color: var(--tk-blue);
  color: #fff !important;
  box-shadow: var(--shadow-sm);
}
.btn-filter-pill.active i {
  color: #fff !important;
}

/* ---- Card Grid ---- */
.informasi-card {
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease;
}
.informasi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.informasi-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f1f5f9;
  display: block;
}
.informasi-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.informasi-card:hover .informasi-thumb-img {
  transform: scale(1.04);
}

/* Fallback graphic placeholder bertema TK */
.informasi-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.informasi-thumb-fallback.fallback-pengumuman {
  background: linear-gradient(135deg, #0f4c97, #2563eb);
}
.informasi-thumb-fallback.fallback-kegiatan {
  background: linear-gradient(135deg, #b91c1c, #f59e0b);
}
.informasi-thumb-fallback .fallback-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .3s ease;
}
.informasi-card:hover .informasi-thumb-fallback .fallback-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Badges Container & Item */
.informasi-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
}
.informasi-badges .informasi-badge {
  position: static;
}
.informasi-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,.18);
  z-index: 2;
  display: inline-flex;
  align-items: center;
}
.informasi-badge.static-badge {
  position: static;
  box-shadow: none;
}
.badge-pengumuman {
  background: linear-gradient(135deg, var(--tk-blue), var(--tk-blue-dark));
}
.badge-kegiatan {
  background: linear-gradient(135deg, var(--tk-red), #e11d48);
}
.badge-baru {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.informasi-card-body {
  background: #fff;
}
.informasi-date {
  font-size: .84rem;
  font-weight: 600;
}
.informasi-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.informasi-card-title a {
  color: var(--tk-ink);
  transition: color .15s ease;
}
.informasi-card:hover .informasi-card-title a {
  color: var(--tk-blue);
}
.informasi-card-excerpt {
  font-size: .92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.informasi-read-more {
  font-size: .92rem;
  transition: gap .2s ease;
}
.informasi-card:hover .informasi-read-more {
  gap: .5rem !important;
}

/* ---- Halaman Detail Artikel ---- */
.breadcrumb-strip {
  background: #f8faff;
  border-bottom: 1px solid var(--tk-line);
}
.breadcrumb-strip .breadcrumb {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
}
.breadcrumb-strip .breadcrumb-item {
  flex-shrink: 0;
}
.breadcrumb-strip .breadcrumb-item.active {
  flex: 1 1 auto;
  min-width: 0;
}
.breadcrumb-strip .breadcrumb-item.active::before {
  float: none;
  display: inline-block;
  vertical-align: middle;
}
.breadcrumb-item a:hover {
  color: var(--tk-blue) !important;
}

.article-page {
  padding-top: 2rem;
  overflow-x: clip;
}
.article-header {
  min-width: 0;
  max-width: 100%;
}
.article-title {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  line-height: 1.25;
  color: var(--tk-ink);
  overflow-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  max-width: 100%;
}
.article-cover-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 480px;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  background: #f3f4f6;
}
.article-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tipografi Konten Quill */
.article-body,
.ql-editor-content {
  font-size: 1.08rem;
  line-height: 1.85;
  color: #2c3e50;
  word-break: break-word;
}
.article-body p,
.ql-editor-content p {
  margin-bottom: 1.35rem;
}
.article-body h1, .article-body h2, .article-body h3, .article-body h4,
.ql-editor-content h1, .ql-editor-content h2, .ql-editor-content h3, .ql-editor-content h4 {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  color: var(--tk-blue-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.article-body ul, .article-body ol,
.ql-editor-content ul, .ql-editor-content ol {
  margin-bottom: 1.4rem;
  padding-left: 1.8rem;
}
.article-body li,
.ql-editor-content li {
  margin-bottom: .45rem;
}
.article-body blockquote,
.ql-editor-content blockquote {
  border-left: 4px solid var(--tk-blue);
  padding: .85rem 1.4rem;
  margin: 1.5rem 0;
  background: #f0f5ff;
  border-radius: 0 14px 14px 0;
  color: #1e3a8a;
  font-style: italic;
}
.article-body img,
.ql-editor-content img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
  margin: 1.75rem auto;
  display: block;
  box-shadow: var(--shadow-sm);
}
.article-body a,
.ql-editor-content a {
  color: var(--tk-blue);
  text-decoration: underline;
  font-weight: 600;
}

/* ---- Quill Rich Text Formats (Public & Content) ---- */
.article-body .ql-align-center,
.ql-editor-content .ql-align-center,
.ql-align-center {
  text-align: center !important;
}

.article-body .ql-align-right,
.ql-editor-content .ql-align-right,
.ql-align-right {
  text-align: right !important;
}

.article-body .ql-align-justify,
.ql-editor-content .ql-align-justify,
.ql-align-justify {
  text-align: justify !important;
  text-justify: inter-word;
}

.article-body .ql-align-left,
.ql-editor-content .ql-align-left,
.ql-align-left {
  text-align: left !important;
}

/* Quill Indentation Classes */
.article-body .ql-indent-1, .ql-editor-content .ql-indent-1, .ql-indent-1 { padding-left: 2.5rem !important; }
.article-body .ql-indent-2, .ql-editor-content .ql-indent-2, .ql-indent-2 { padding-left: 5rem !important; }
.article-body .ql-indent-3, .ql-editor-content .ql-indent-3, .ql-indent-3 { padding-left: 7.5rem !important; }
.article-body .ql-indent-4, .ql-editor-content .ql-indent-4, .ql-indent-4 { padding-left: 10rem !important; }
.article-body .ql-indent-5, .ql-editor-content .ql-indent-5, .ql-indent-5 { padding-left: 12.5rem !important; }
.article-body .ql-indent-6, .ql-editor-content .ql-indent-6, .ql-indent-6 { padding-left: 15rem !important; }
.article-body .ql-indent-7, .ql-editor-content .ql-indent-7, .ql-indent-7 { padding-left: 17.5rem !important; }
.article-body .ql-indent-8, .ql-editor-content .ql-indent-8, .ql-indent-8 { padding-left: 20rem !important; }

/* Image Alignment inside Aligned Paragraphs */
.article-body .ql-align-center img,
.ql-editor-content .ql-align-center img {
  margin-left: auto !important;
  margin-right: auto !important;
}
.article-body .ql-align-right img,
.ql-editor-content .ql-align-right img {
  margin-left: auto !important;
  margin-right: 0 !important;
}
.article-body .ql-align-left img,
.ql-editor-content .ql-align-left img {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* ---- Admin Dropzone Upload ---- */
.dropzone-box {
  position: relative;
  border: 2px dashed var(--tk-line);
  border-radius: 14px;
  background: #fbfcfe;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  overflow: hidden;
}
.dropzone-box:hover {
  border-color: var(--tk-blue);
  background: #f0f6ff;
}
.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.dropzone-box.is-dragover {
  border-color: var(--tk-blue) !important;
  border-style: solid !important;
  background: #e8f2ff !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
}
.dropzone-prompt {
  pointer-events: none;
  transition: transform .15s ease;
}
.dropzone-box.is-dragover .dropzone-prompt {
  transform: scale(1.04);
}
.dropzone-preview {
  position: relative;
  z-index: 3;
}
.dropzone-preview button {
  position: relative;
  z-index: 4;
}

/* Quill Editor Admin Customizations */
.ql-toolbar.ql-snow {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-color: var(--tk-line) !important;
  background: #f8fafc;
}
.ql-container.ql-snow {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  border-color: var(--tk-line) !important;
  font-family: inherit !important;
  font-size: .98rem;
  transition: all .2s ease;
}
#quillEditorContainer.is-quill-dragover {
  border-color: var(--tk-blue) !important;
  background-color: #f0f6ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}
.ql-editor {
  min-height: 240px;
  line-height: 1.7;
}

/* Translation Status Badges in Admin List */
.badge-en {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.badge-en.ready {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-en.missing {
  background-color: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  cursor: pointer;
  transition: all .15s ease;
}
.badge-en.missing:hover {
  background-color: #fde68a;
  color: #92400e;
  transform: translateY(-1px);
}
.badge-en.loading {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ========== LOGIN v2 (GIRIPURWA STYLE) ========== */
.login-body {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  min-height: 100vh;
  font-family: 'Nunito', 'Inter', system-ui, sans-serif;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-wrap {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.login-card {
  background: #fff;
  border-radius: 22px;
  padding: 2.5rem 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 60px rgba(15, 30, 50, .28);
  animation: slideUpLogin .5s ease;
}

@keyframes slideUpLogin {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo {
  width: 84px;
  height: 84px;
  margin: 0 auto .85rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565c0, #0d47a1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(21, 101, 192, .38);
  transition: transform .3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

.login-card h1 {
  font-size: 1.55rem;
  color: #0d47a1;
  margin: 0 0 .3rem;
  font-weight: 800;
  letter-spacing: -.01em;
  font-family: 'Fraunces', serif;
}

.login-card .sub {
  color: #64748b;
  margin: 0;
  font-size: .92rem;
  line-height: 1.4;
}

/* Alert */
.a-alert {
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
}

.a-alert.danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.a-alert.danger i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Input with icon */
.input-icon {
  position: relative;
}

.input-icon > i:first-child {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
  transition: color .2s;
}

.input-icon .form-control {
  padding-left: 2.65rem;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: .95rem;
  transition: all .2s ease;
}

.input-icon .form-control:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3.5px rgba(21, 101, 192, .15);
}

.input-icon:focus-within > i:first-child {
  color: #1565c0;
}

.input-icon .pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #94a3b8;
  padding: .35rem .55rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
}

.input-icon .pw-toggle:hover {
  color: #1565c0;
  background: #f1f5f9;
}

.input-icon:has(.pw-toggle) .form-control {
  padding-right: 2.8rem;
}

/* Submit button */
.btn-admin {
  border-radius: 12px;
  padding: .7rem 1.25rem;
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: #1565c0;
  color: #fff;
  border-color: #1565c0;
  height: 48px;
  box-shadow: 0 4px 14px rgba(21, 101, 192, .3);
}

.btn-admin:hover {
  background: #0d47a1;
  border-color: #0d47a1;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 71, 161, .38);
}

.btn-admin:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.btn-admin .btn-loading {
  display: none;
}

.btn-admin.is-loading .btn-label {
  display: none;
}

.btn-admin.is-loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

/* Back button to website */
.login-nav-back {
  text-align: center;
  margin-top: 1.15rem;
}

.btn-back-website {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #64748b;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  padding: .5rem 1rem;
  border-radius: 999px;
  transition: all .2s ease;
  background: transparent;
}

.btn-back-website:hover {
  color: #1565c0;
  background: #f1f5f9;
  transform: translateX(-2px);
}

.login-footer {
  text-align: center;
  color: #94a3b8;
  font-size: .78rem;
  margin: 1.5rem 0 0;
}

/* ================================================================
   RESPONSIVE & MOBILE UX/UI BEST PRACTICE
   ================================================================ */

/* ---- Global Spacing & Typography on Tablets & Mobile ---- */
@media (max-width: 767.98px) {
  .section {
    padding: 38px 0;
  }
  .section-tight {
    padding: 24px 0;
  }
  .section-title {
    font-size: clamp(1.22rem, 4.8vw, 1.6rem);
    line-height: 1.25;
  }
  .section-eyebrow {
    font-size: .74rem;
    padding: .3rem .7rem;
    gap: .4rem;
  }
  .cta-band {
    padding: 1.6rem 1.35rem;
    border-radius: 18px;
  }
}

@media (max-width: 575.98px) {
  .section {
    padding: 28px 0;
  }
  .section-tight {
    padding: 18px 0;
  }
  h1, .h1 { font-size: 1.5rem; line-height: 1.25; }
  h2, .h2 { font-size: 1.3rem; line-height: 1.28; }
  h3, .h3 { font-size: 1.18rem; line-height: 1.3; }
  h4, .h4 { font-size: 1.05rem; line-height: 1.35; }
  h5, .h5 { font-size: .98rem; }
  .btn-tk-primary, .btn-tk-red, .btn-tk-yellow, .btn-tk-outline {
    padding: .5rem 1.15rem;
    font-size: .88rem;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .btn-tk-red-yt{display: none !important}
}

/* ---- Navbar & Brand (< 480px) ---- */
@media (max-width: 480px) {
  .navbar-tk {
    padding: .45rem 0;
  }
  .navbar-tk .navbar-brand {
    gap: .45rem;
  }
  .navbar-tk .navbar-brand .logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: .95rem;
  }
  .navbar-tk .brand-name {
    font-size: .86rem;
    line-height: 1.15;
  }
  .navbar-tk .brand-sub {
    font-size: .86rem;
    line-height: 1.15;
  }
  .navbar-toggler {
    padding: .3rem .5rem;
    font-size: .88rem;
    border-radius: 8px;
  }
  .navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(21,91,181,.25);
  }
}

/* ---- Halaman Berita Publik (informasi.php) ---- */
@media (max-width: 575.98px) {
  .btn-filter-pill {
    padding: .38rem .8rem;
    font-size: .82rem;
    min-height: 38px;
    gap: .3rem;
  }
  .informasi-card {
    border-radius: 16px;
  }
  .informasi-badges {
    top: 8px;
    left: 8px;
    gap: 4px;
  }
  .informasi-badge {
    top: 8px;
    left: 8px;
    padding: .25rem .6rem;
    font-size: .68rem;
  }
  .informasi-card-body {
    padding: .9rem !important;
  }
  .informasi-date {
    font-size: .78rem;
    margin-bottom: .4rem !important;
  }
  .informasi-card-title {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: .35rem !important;
  }
  .informasi-card-excerpt {
    font-size: .84rem;
    line-height: 1.5;
    margin-bottom: .75rem !important;
  }
  .informasi-read-more {
    font-size: .84rem;
    min-height: 36px;
  }
}

/* ---- Halaman Detail Berita (informasi-detail.php) ---- */
.article-title {
  font-size: clamp(1.3rem, 5.2vw, 2.1rem);
  line-height: 1.25;
}
@media (max-width: 575.98px) {
  .article-page {
    padding-top: .75rem;
  }
  .breadcrumb-strip .breadcrumb {
    padding: .55rem 0;
    font-size: .8rem;
  }
  .article-header {
    margin-bottom: 1rem !important;
  }
  .article-title {
    font-size: clamp(1.22rem, 5.2vw, 1.6rem);
    line-height: 1.28;
    margin-bottom: .75rem !important;
  }
  .article-cover-wrap {
    border-radius: 14px;
    margin-bottom: 1.25rem !important;
  }
  .article-body,
  .ql-editor-content {
    font-size: .98rem;
    line-height: 1.68;
  }
  .article-body p,
  .ql-editor-content p {
    margin-bottom: 1.05rem;
  }
  .article-body h1, .article-body h2, .article-body h3, .article-body h4,
  .ql-editor-content h1, .ql-editor-content h2, .ql-editor-content h3, .ql-editor-content h4 {
    font-size: 1.15rem;
    margin-top: 1.35rem;
    margin-bottom: .55rem;
  }
  .article-body blockquote,
  .ql-editor-content blockquote {
    padding: .65rem 1rem;
    margin: 1.1rem 0;
    font-size: .92rem;
    border-left-width: 3.5px;
  }
  .article-body ul, .article-body ol,
  .ql-editor-content ul, .ql-editor-content ol {
    margin-bottom: 1.1rem;
    padding-left: 1.35rem;
  }
  .article-share-bar {
    flex-direction: column;
    align-items: stretch !important;
    gap: .65rem;
  }
  .article-share-bar .btn {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
}

/* ---- Program & Layanan (program.php) ---- */
@media (max-width: 575.98px) {
  .program-category-section {
    margin-bottom: 2.25rem;
  }
  .program-category-header {
    gap: .65rem;
    margin-bottom: 1rem;
    padding-bottom: .65rem;
  }
  .category-icon-pill {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 11px;
  }
  .program-category-header h3 {
    font-size: 1.05rem;
    margin-bottom: .15rem !important;
  }
  .program-card-icon {
    width: 30px;
    height: 30px;
    font-size: .82rem;
    border-radius: 8px;
    bottom: 8px;
    right: 10px;
  }
  .program-card-title {
    font-size: 1.05rem;
    line-height: 1.3;
  }
  .program-featured-card {
    border-radius: 16px;
    border-left-width: 4px;
  }
  .program-featured-card .featured-img {
    aspect-ratio: 16/10;
    width: 100%;
    height: auto;
    min-height: 0 !important;
  }
  .program-featured-card .program-card-icon {
    width: 32px;
    height: 32px;
    font-size: .82rem;
    border-radius: 8px;
    bottom: 10px;
    right: 12px;
  }
  .program-featured-card .program-card-title {
    font-size: 1.15rem;
  }
  .program-check-list {
    flex-direction: column;
    gap: .45rem;
    font-size: .82rem;
  }
}

/* ---- PPDB Accordion & Detail (ppdb.php) ---- */
@media (max-width: 575.98px) {
  .accordion-tk .accordion-button {
    padding: .85rem 1rem;
    font-size: .88rem;
    flex-wrap: wrap;
    gap: .35rem;
  }
  .accordion-tk .status-badge {
    margin-left: 0;
    font-size: .68rem;
    padding: .15rem .5rem;
  }
  .accordion-tk .accordion-body {
    padding: 1rem;
  }
  .accordion-tk .accordion-body .btn-tk-primary,
  .accordion-tk .accordion-body .btn-tk-outline {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
}

/* ---- Card-TK & Fasilitas ---- */
@media (max-width: 575.98px) {
  .card-tk {
    border-radius: 14px;
  }
  .card-tk .body {
    padding: .85rem 1rem;
  }
  .fasilitas-scroll .card-tk {
    min-width: 190px;
    max-width: 220px;
  }
}

/* ---- Footer Responsif ---- */
@media (max-width: 575.98px) {
  footer.tk-footer {
    padding: 32px 0 16px;
    /* margin-top: 36px; */
  }
  .footer-brand .logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: .95rem;
  }
  .footer-brand-name {
    font-size: .95rem;
  }
  .footer-desc {
    font-size: .85rem;
    line-height: 1.5;
  }
  .social-btn {
    width: 38px;
    height: 38px;
    font-size: .95rem;
    border-radius: 10px;
  }
  .footer-copy {
    padding: .75rem 0;
    margin-top: 1.5rem;
    font-size: .78rem;
  }
}

/* ---- Panel Admin Responsif ---- */
@media (max-width: 767.98px) {
  .admin-main {
    padding: 1rem .85rem;
  }
  .admin-topbar {
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.15rem;
  }
  .admin-topbar h1 {
    font-size: 1.25rem;
  }
  .stat-card {
    padding: .85rem 1rem;
    gap: .75rem;
    border-radius: 13px;
  }
  .stat-card .ic {
    width: 42px;
    height: 42px;
    font-size: 1rem;
    border-radius: 11px;
  }
  .stat-card .num {
    font-size: 1.45rem;
  }
  .stat-card .lb {
    font-size: .8rem;
  }
  .admin-section-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: .65rem;
  }
  .admin-section-head > div:first-child {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: .5rem !important;
  }
  .admin-section-head .search-wrap {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }
  .admin-section-head .filter-wrap,
  .admin-section-head .sort-wrap {
    width: 100% !important;
  }
  .admin-section-head .filter-wrap select,
  .admin-section-head .sort-wrap select {
    width: 100% !important;
  }
  .admin-section-head .btn-tk-primary {
    width: 100%;
    justify-content: center;
  }
  .admin-grid {
    grid-template-columns: 1fr;
    gap: .85rem;
  }
  .item-card .body {
    padding: .85rem 1rem;
  }
  .item-card .actions {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
  }
  .item-card .actions .btn,
  .item-card .actions form {
    flex: 1 1 calc(50% - .35rem);
  }
  .item-card .actions form .btn {
    width: 100%;
  }
  .admin-pagination-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: .65rem 1rem;
    gap: .5rem;
  }
  .admin-pagination-bar .pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
  /* Table responsive styling in admin */
  .admin-table-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
    border-radius: 14px;
  }
  .admin-table-card .table-responsive {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
  }
  .custom-admin-table {
    min-width: 760px !important;
    width: 100% !important;
  }
  .table-responsive::-webkit-scrollbar {
    height: 6px !important;
  }
  .table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
  }
  .table-responsive::-webkit-scrollbar-thumb {
    background: #94a3b8 !important;
    border-radius: 4px !important;
  }
  .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--tk-blue) !important;
  }
  .custom-admin-table thead th {
    padding: .7rem .85rem;
    font-size: .78rem;
  }
  .custom-admin-table tbody td {
    padding: .75rem .85rem;
    font-size: .85rem;
  }
  /* Modal Mobile Ergonomics */
  .modal-dialog {
    margin: .5rem;
  }
  .modal-header {
    padding: .85rem 1rem;
  }
  .modal-title {
    font-size: 1.05rem;
  }
  .modal-body {
    padding: .95rem 1rem;
  }
  .modal-footer {
    padding: .75rem 1rem;
    flex-wrap: wrap;
  }
  .modal-footer .btn {
    flex: 1 1 calc(50% - .35rem);
    justify-content: center;
    min-height: 40px;
  }
  #quillEditorContainer {
    min-height: 200px;
    max-height: 300px;
  }
  #quillEditorContainer .ql-editor {
    min-height: 180px;
    font-size: .9rem;
  }
}

/* ---- Login Mobile (< 480px) ---- */
@media (max-width: 480px) {
  .login-wrap {
    padding: 1rem .75rem;
  }
  .login-card {
    padding: 1.75rem 1.25rem;
    border-radius: 18px;
  }
  .login-logo {
    width: 68px;
    height: 68px;
    font-size: 1.75rem;
  }
  .login-card h1 {
    font-size: 1.35rem;
  }
  .login-card .sub {
    font-size: .85rem;
  }
  .input-icon .form-control,
  .btn-admin {
    height: 44px;
    font-size: .9rem;
  }
}

/* ---- Scroll Reveal Refinement ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s cubic-bezier(.2,.7,.3,1), transform .5s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========================================================
   FACILITY LIGHTBOX (MODAL POP-UP)
   ======================================================== */
body.facility-lightbox-open {
  overflow: hidden !important;
}

/* Facility Card & Trigger Enhancements */
.card-facility .img {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.facility-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s ease, backdrop-filter .25s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 2;
  pointer-events: none;
}

.facility-zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--tk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: scale(0.7);
  transition: transform .25s cubic-bezier(.2, .8, .3, 1), background-color .2s ease, color .2s ease;
}

.card-facility:hover .facility-zoom-overlay,
.facility-lightbox-trigger:focus .facility-zoom-overlay,
.facility-lightbox-trigger:focus-visible .facility-zoom-overlay {
  opacity: 1;
}

.card-facility:hover .facility-zoom-btn,
.facility-lightbox-trigger:focus .facility-zoom-btn,
.facility-lightbox-trigger:focus-visible .facility-zoom-btn {
  transform: scale(1);
}

.facility-lightbox-trigger:focus-visible {
  outline: 3px solid var(--tk-blue);
  outline-offset: -3px;
}

/* Lightbox Modal Root */
.facility-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  outline: none;
}

.facility-lightbox.show {
  opacity: 1;
  visibility: visible;
}

/* Dark Frosted Backdrop */
.facility-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

/* Lightbox Container */
.facility-lightbox-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  pointer-events: none;
}

/* Header */
.facility-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .85rem;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: auto;
}

.facility-lightbox-info {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 0;
}

.facility-lightbox-counter {
  display: inline-flex;
  align-items: center;
  padding: .3rem .85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .5px;
  flex-shrink: 0;
}

.facility-lightbox-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'Fraunces', serif;
}

/* Close Button ("X") */
.facility-lightbox-close {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.facility-lightbox-close:hover,
.facility-lightbox-close:focus {
  background: #e53935;
  border-color: #e53935;
  color: #fff;
  transform: rotate(90deg) scale(1.08);
}

/* Main Stage */
.facility-lightbox-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: .75rem 0;
  pointer-events: auto;
}

/* Navigation Buttons (Prev & Next) */
.facility-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all .2s cubic-bezier(.2, .8, .3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.facility-lightbox-nav.prev {
  left: 0;
}

.facility-lightbox-nav.next {
  right: 0;
}

.facility-lightbox-nav:hover,
.facility-lightbox-nav:focus {
  background: #fff;
  border-color: #fff;
  color: var(--tk-blue);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Figure & Image */
.facility-lightbox-figure-wrap {
  position: relative;
  max-width: calc(100% - 130px);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
}

.facility-lightbox-spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.facility-lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transition: opacity .25s ease, transform .25s ease;
  user-select: none;
}

/* Description Footer */
.facility-lightbox-footer {
  padding-top: .75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  pointer-events: auto;
}

.facility-lightbox-desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: .95rem;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 auto;
}

/* Responsive / Mobile styles */
@media (max-width: 768px) {
  .facility-lightbox-container {
    padding: .85rem .75rem;
  }
  .facility-lightbox-title {
    font-size: 1.05rem;
  }
  .facility-lightbox-close {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .facility-lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
    background: rgba(10, 16, 32, 0.65);
    border-color: rgba(255, 255, 255, 0.35);
  }
  .facility-lightbox-nav.prev {
    left: 4px;
  }
  .facility-lightbox-nav.next {
    right: 4px;
  }
  .facility-lightbox-figure-wrap {
    max-width: 100%;
  }
  .facility-lightbox-img {
    max-height: calc(100vh - 170px);
    border-radius: 12px;
  }
  .facility-lightbox-desc {
    font-size: .85rem;
  }
}

/* ---- Public Facility Filter Bar (Live Search & Sort) ---- */
.facility-filter-card {
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: 18px;
  padding: .85rem 1.25rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .04);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.facility-search-wrap {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.facility-search-wrap .search-ic {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .95rem;
  pointer-events: none;
}

/* Hilangkan tombol cancel/clear bawaan browser (Chrome, Edge, Safari) pada input search */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.facility-search-wrap input {
  padding-left: 2.75rem;
  padding-right: 2.5rem;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: .92rem;
  height: 44px;
  background: #f8fafc;
  transition: all .2s ease;
}

.facility-search-wrap input:focus {
  background: #fff;
  border-color: var(--tk-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.facility-search-wrap .clear-btn {
  position: absolute;
  right: .65rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  transition: all .15s ease;
}

.facility-search-wrap .clear-btn:hover {
  background: #e2e8f0;
  color: var(--tk-ink);
}

.facility-sort-wrap {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.facility-sort-wrap label {
  font-size: .88rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0;
  white-space: nowrap;
}

.facility-sort-wrap select {
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--tk-ink);
  background-color: #f8fafc;
  padding: .375rem 2.25rem .375rem .95rem;
  cursor: pointer;
  min-width: 175px;
  transition: all .2s ease;
}

.facility-sort-wrap select:focus {
  background-color: #fff;
  border-color: var(--tk-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.facility-count-badge {
  font-size: .84rem;
  color: #64748b;
  font-weight: 500;
}

@media (max-width: 575.98px) {
  .facility-filter-card {
    padding: .85rem;
  }
  .facility-search-wrap {
    min-width: 100%;
  }
  .facility-sort-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .facility-sort-wrap select {
    flex: 1;
  }
}

/* ==========================================================================
   Halaman Tentang Kami & Profil Kemendikdasmen (Mobile-First Responsive)
   ========================================================================== */

/* Hero Trust Badges */
.about-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.about-pill-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.about-pill-yellow {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.about-pill-green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.about-pill-slate {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

/* Hero Media Image Wrap */
.about-hero-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.about-hero-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.about-hero-badge-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Visi & Misi Cards */
.vm-card {
  border: 1px solid var(--tk-line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vm-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* School Info / Kemendikdasmen Cards */
.school-info-card {
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.school-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.school-info-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}

.school-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.15rem;
}

.sic-blue {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.sic-amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fef3c7;
}

.sic-green {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #d1fae5;
}

.sic-red {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.sic-cyan {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #ccfbf1;
}

.sic-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ede9fe;
}

.school-info-meta {
  flex-grow: 1;
  min-width: 0;
}

.school-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.15rem;
}

.school-info-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--tk-ink);
  margin-bottom: 0;
  line-height: 1.3;
}

.school-info-desc {
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Official Verification Box */
.official-verify-box {
  background: linear-gradient(135deg, #f0f7ff 0%, #e6f0fc 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.official-verify-box::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(21, 91, 181, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.verify-badge-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #155bb5;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(21, 91, 181, 0.25);
}

.btn-verify-kemdikbud {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fff;
  color: #155bb5;
  border: 1.5px solid #155bb5;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(21, 91, 181, 0.08);
  text-wrap: auto;
}

.btn-verify-kemdikbud:hover {
  background: #155bb5;
  color: #fff;
  border-color: #155bb5;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 91, 181, 0.2);
}

/* Contact Info Item on About Page */
.about-contact-card {
  background: #fff;
  border: 1px solid var(--tk-line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
}

.about-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.about-contact-item:last-child {
  margin-bottom: 0;
}

.about-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: var(--tk-blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.about-contact-item a {
  color: var(--tk-ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.about-contact-item a:hover {
  color: var(--tk-blue);
  text-decoration: underline;
}

/* Responsive Breakpoints (Mobile First) */
@media (min-width: 768px) {
  /* .about-trust-badges {display: flex} */
  .school-info-card {
    padding: 1.35rem 1.35rem;
  }
  .official-verify-box {
    padding: 1.5rem 1.75rem;
  }
  .about-contact-card {
    padding: 1.75rem;
  }
}
