/* portal.css — desain Portal Layanan SMKN 2 Buduran (varian C)
   Dipakai semua halaman: homepage + halaman dalam (inner pages) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Inter", system-ui, sans-serif; color: #0f172a; background: #f8fafc; line-height: 1.55; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* TOP BAR */
.topbar { background: #1e3a8a; color: #ffffff; font-size: 12.5px; }
.topbar .wrap { display: flex; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }

/* NAV */
nav { background: #fff; border-bottom: 1px solid #e2e8f0; position: sticky; top: 0; z-index: 50; }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.logo .emblem { width: 42px; height: 42px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.logo .emblem img { width: 100%; height: 100%; object-fit: cover; }
.logo .nm { font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.logo .nm small { display: block; color: #64748b; font-weight: 500; font-size: 11px; }
.menu { display: flex; gap: 22px; list-style: none; }
.menu a { color: #334155; text-decoration: none; font-size: 14px; font-weight: 500; position: relative; padding-bottom: 2px; transition: color .2s ease; }
.menu a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2.5px; border-radius: 3px; background: #1d4ed8; transition: width .25s ease; }
.menu a:hover { color: #1e3a8a; }
.menu a:hover::after, .menu a.active::after { width: 100%; }
/* Link topbar: putih, hover kuning */
.topbar a { color: #ffffff; text-decoration: none; transition: color .2s ease; }
.topbar a i { margin-right: 5px; }
.topbar a:hover { color: #fbbf24; text-decoration: underline; }

/* PAGE HERO (halaman dalam) */
.page-hero { background: #1e3a8a; color: #fff; }
.page-hero .wrap { padding: 44px 24px 40px; }
.page-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.3px; }
.page-hero h1 i { margin-right: 10px; color: #fbbf24; }
.page-hero p { color: #bfdbfe; margin-top: 8px; font-size: 14.5px; max-width: 640px; }
.breadcrumb { font-size: 12.5px; color: #93c5fd; margin-bottom: 14px; }
.breadcrumb a { color: #93c5fd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* LAYOUT 2 KOLOM */
.main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; padding: 36px 0; align-items: start; }
.main-single { grid-template-columns: 1fr; }
.card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 24px; margin-bottom: 24px; }
.card h3 { font-size: 17px; font-weight: 800; display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card h3 a { font-size: 13px; color: #1d4ed8; text-decoration: none; font-weight: 600; }

/* BERITA GRID + LIST */
.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 14px 30px rgba(15,23,42,.1); transform: translateY(-3px); }
.news-card .ph { height: 170px; overflow: hidden; }
.news-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.news-card .bd { padding: 18px; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.b-prestasi { background: #fef3c7; color: #92400e; }
.b-info { background: #dbeafe; color: #1e40af; }
.b-pengumuman { background: #dcfce7; color: #166534; }
.news-card h4 { font-size: 15px; font-weight: 700; line-height: 1.4; }
.news-card .date { font-size: 12.5px; color: #94a3b8; margin-top: 8px; }

.berita-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.berita-item:last-child { border-bottom: none; }
.berita-item .ph { width: 92px; height: 68px; border-radius: 10px; flex-shrink: 0; overflow: hidden; }
.berita-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.berita-item .bd { flex: 1; }
.berita-item h4 { font-size: 13.5px; font-weight: 600; line-height: 1.4; }
.berita-item .date { font-size: 12px; color: #94a3b8; margin-top: 4px; }

/* ARTIKEL DETAIL */
.article { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
.article .hero-img { height: 300px; overflow: hidden; }
.article .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.article .bd { padding: 28px; }
.article h1 { font-size: 26px; font-weight: 800; line-height: 1.3; letter-spacing: -.3px; }
.article .meta { color: #94a3b8; font-size: 13px; margin: 10px 0 22px; }
.article .isi p { margin-bottom: 16px; font-size: 15px; color: #334155; }
.article .isi img { width: 100%; border-radius: 10px; margin: 8px 0 16px; }

/* SIDEBAR WIDGET */
.widget { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.widget h4 { font-size: 14.5px; font-weight: 800; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #1e3a8a; display: inline-block; }
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: #334155; text-decoration: none; }
.widget li a:hover { color: #1d4ed8; }
.tag { display: inline-block; background: #eef2ff; color: #1e3a8a; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin: 0 6px 8px 0; }

/* PAGINATION */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 26px 0 8px; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: grid; place-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; font-size: 13.5px; color: #334155; text-decoration: none; }
.pagination .cur { background: #1e3a8a; border-color: #1e3a8a; color: #fff; font-weight: 700; }
.pagination a:hover { border-color: #1d4ed8; color: #1d4ed8; }

/* JURUSAN DETAIL */
.jur-head { display: flex; gap: 22px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 26px; margin-bottom: 24px; }
.jur-head .ic { width: 74px; height: 74px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 24px; flex-shrink: 0; }
.jur-head h1 { font-size: 24px; font-weight: 800; }
.jur-head p { color: #64748b; font-size: 14px; margin-top: 4px; }
.kompetensi li { padding: 9px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; list-style: none; }
.kompetensi li::before { content: "✓ "; color: #1d4ed8; font-weight: 700; }
/* Grid kompetensi keahlian (list) */
.kk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 768px) { .kk-grid { grid-template-columns: 1fr; } }

/* GALERI */
.galeri-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.galeri-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.galeri-item:hover img { transform: scale(1.06); }
.galeri-item .cap { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(15,23,42,.85)); color: #fff; font-size: 12.5px; font-weight: 600; padding: 26px 12px 10px; }

/* FORM */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select { width: 100%; border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 11px 14px; font-size: 14px; font-family: inherit; outline: none; }
.form-row input:focus, .form-row textarea:focus { border-color: #1d4ed8; }
.btn { display: inline-block; background: #1e3a8a; color: #fff; font-weight: 700; font-size: 14px; padding: 12px 26px; border-radius: 10px; text-decoration: none; border: none; cursor: pointer; }
.btn:hover { background: #1e40af; }
.btn-warn { background: #f59e0b; color: #1e3a8a; }
.btn-warn:hover { background: #fbbf24; }
.info-kontak { display: grid; gap: 14px; }
.info-kontak .row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #334155; }
.info-kontak .row .ic { width: 38px; height: 38px; border-radius: 10px; background: #eef2ff; display: grid; place-items: center; flex-shrink: 0; font-size: 17px; }

/* FOOTER */
footer { background: #0f172a; color: #94a3b8; padding: 44px 0 28px; }
footer p { color: #ffffff; }
/* ===== LINK FOOTER — elegan & interaktif ===== */
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: #cbd5e1; font-size: 13.5px; text-decoration: none; display: inline-block; position: relative; transition: color .2s ease, transform .2s ease; }
footer ul li a::before { content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px; border-radius: 2px; background: #fbbf24; transition: width .25s ease; }
footer ul li a:hover { color: #ffffff; transform: translateX(4px); }
footer ul li a:hover::before { width: 100%; }
footer a[href^="tel:"], footer a[href^="mailto:"] { font-weight: 600; }
/* ===== LINK TEKS UMUM (breadcrumb, isi artikel, kontak) ===== */
.breadcrumb a { color: #64748b; text-decoration: none; font-weight: 500; transition: color .2s ease; }
.breadcrumb a:hover { color: #1d4ed8; text-decoration: underline; }
.artikel p a, .artikel li a, .kontak-lay a { color: #1d4ed8; text-decoration: none; border-bottom: 1px solid #bfdbfe; transition: color .2s ease, border-color .2s ease; }
.artikel p a:hover, .artikel li a:hover, .kontak-lay a:hover { color: #1e3a8a; border-color: #1e3a8a; }
/* Galeri foto dalam posting (detail) */
.galeri-posting { margin-top: 26px; border-top: 1px solid #e2e8f0; padding-top: 18px; }
.galeri-posting h4 { font-size: 15px; margin-bottom: 12px; color: #1e293b; }
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gp-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
.gp-grid img { width: 100%; height: 110px; object-fit: cover; display: block; transition: transform .25s ease; }
.gp-grid a:hover img { transform: scale(1.05); }
.gp-lb { position: fixed; inset: 0; background: rgba(2, 6, 23, .92); display: none; align-items: center; justify-content: center; z-index: 999; }
.gp-lb.open { display: flex; }
.gp-lb img { max-width: 92vw; max-height: 85vh; border-radius: 10px; }
.gp-lb-close { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }
/* Navigasi lightbox galeri */
.gm-lb { position: fixed; inset: 0; background: rgba(2, 6, 23, .92); display: none; align-items: center; justify-content: center; z-index: 999; }
.gm-lb.open { display: flex; }
.gm-lb img { max-width: 88vw; max-height: 78vh; border-radius: 10px; }
.gm-lb-cap { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; max-width: 80vw; text-align: center; }
.gm-lb-count { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); color: #cbd5e1; font-size: 13px; background: rgba(255, 255, 255, .1); padding: 3px 12px; border-radius: 999px; }
.gm-lb-close { position: absolute; top: 14px; right: 20px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; }
.gm-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); border: none; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 20px; cursor: pointer; transition: background .2s ease; }
.gm-lb-nav:hover { background: rgba(255, 255, 255, .28); }
.gm-lb-prev { left: 18px; }
.gm-lb-next { right: 18px; }
@media (max-width: 520px) { .gm-lb-nav { width: 38px; height: 38px; font-size: 16px; } .gm-lb-prev { left: 8px; } .gm-lb-next { right: 8px; } }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
footer h5 { color: #fff; font-size: 14px; margin-bottom: 12px; }
footer ul { list-style: none; }
footer li { font-size: 13px; margin-bottom: 7px; }
.copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; font-size: 12.5px; }

/* ===== KOMPONEN HOMEPAGE (search hero, layanan, jurusan strip, agenda) ===== */
.search-hero { background: #1e3a8a; color: #fff; }
.sh-in { padding: 60px 0 56px; text-align: center; }
.sh-in h1 { font-size: 32px; font-weight: 800; letter-spacing: -.3px; }
.sh-in p { color: #bfdbfe; margin: 10px 0 26px; font-size: 15.5px; }
.searchbox { max-width: 620px; margin: 0 auto; display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.searchbox input { flex: 1; border: none; outline: none; padding: 16px 20px; font-size: 15px; font-family: inherit; }
.searchbox button { background: #f59e0b; border: none; color: #1e3a8a; font-weight: 700; padding: 0 26px; font-size: 14px; cursor: pointer; }
.quick-links { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.quick-links a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #e0e7ff; text-decoration: none; font-size: 13px; padding: 8px 16px; border-radius: 999px; }
.quick-links a:hover { background: rgba(255,255,255,.2); }
.layanan { background: #fff; border-bottom: 1px solid #e2e8f0; }
.lay-in { display: grid; grid-template-columns: repeat(6,1fr); gap: 12px; padding: 26px 0; }
.lay { text-align: center; padding: 16px 6px; border-radius: 12px; text-decoration: none; color: #1e293b; transition: background .15s; }
.lay:hover { background: #f1f5f9; }
.lay .ic { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.lay span { font-size: 12px; font-weight: 600; }
.agenda-item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid #f1f5f9; align-items: flex-start; }
.agenda-item:last-child { border-bottom: none; }
.agenda-item .tgl { width: 48px; text-align: center; background: #eef2ff; border-radius: 10px; padding: 7px 0; flex-shrink: 0; }
.agenda-item .tgl b { display: block; font-size: 17px; color: #1e3a8a; }
.agenda-item .tgl span { font-size: 10px; text-transform: uppercase; color: #64748b; font-weight: 600; }
.agenda-item h4 { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.agenda-item .meta { font-size: 12px; color: #94a3b8; margin-top: 3px; }
.jur-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ekskul-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.ekskul-item { display: flex; gap: 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; align-items: flex-start; transition: transform .2s ease, box-shadow .2s ease; }
.ekskul-item:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(2, 6, 23, .1); }
.ekskul-item .ic { width: 46px; height: 46px; border-radius: 12px; background: #eef2ff; color: #1e3a8a; display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.ekskul-item h4 { font-size: 15px; margin-bottom: 5px; color: #1e293b; }
.ekskul-item p { font-size: 13px; color: #64748b; line-height: 1.5; margin: 0; }
@media (max-width: 900px) { .ekskul-grid { grid-template-columns: 1fr; } }
/* Pager publik (posting) */
.pub-pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pp-btn { min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; color: #1e293b; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.pp-btn:hover { border-color: #1d4ed8; color: #1d4ed8; }
.pp-btn.active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.jur { border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px; display: flex; gap: 12px; align-items: center; transition: border-color .15s, box-shadow .15s; }
/* Galeri kegiatan kompetensi keahlian (detail) */
.jur-gal { margin-top: 20px; }
.jur-gal h4 { font-size: 15px; margin-bottom: 12px; color: #1e293b; }
.jg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.jg-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
.jg-grid img { width: 100%; height: 115px; object-fit: cover; display: block; transition: transform .25s ease; }
.jg-grid a:hover img { transform: scale(1.05); }
.jur:hover { border-color: #1d4ed8; box-shadow: 0 8px 20px rgba(29,78,216,.08); }
.jur .ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; flex-shrink: 0; }
.jur h4 { font-size: 13.5px; font-weight: 700; }
.jur p { font-size: 11.5px; color: #64748b; }
@media (max-width: 768px) {
  .jur-strip { grid-template-columns: 1fr 1fr; }
  .lay-in { grid-template-columns: repeat(3,1fr); }
  .galeri-grid { grid-template-columns: repeat(2,1fr); }
  .main { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE MOBILE (HP) ===== */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  /* NAVBAR: logo + hamburger satu baris, menu jadi panel bawah */
  .nav-in { height: auto; flex-wrap: wrap; padding: 12px 24px; gap: 8px; }
  .logo .emblem { width: 36px; height: 36px; font-size: 12px; }
  .logo .nm { font-size: 13px; }
  .logo .nm small { display: none; }
  .nav-toggle { display: block; margin-left: auto; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 9px;
                padding: 8px 13px; font-size: 19px; line-height: 1; cursor: pointer; color: #1e3a8a; }
  .menu { display: none; flex-direction: column; width: 100%; gap: 0;
          background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 6px 14px; }
  .menu.open { display: flex; }
  .menu li { border-top: 1px solid #f1f5f9; }
  .menu li:first-child { border-top: none; }
  .menu a { display: block; padding: 12px 0; font-size: 15px; }
  /* TOPBAR */
  .topbar .wrap { flex-wrap: wrap; gap: 4px 16px; }
  /* HERO */
  .sh-in { padding: 38px 0 34px; }
  .sh-in h1 { font-size: 23px; }
  .sh-in p { font-size: 14px; }
  .searchbox { flex-direction: column; border-radius: 12px; }
  .searchbox button { padding: 13px; width: 100%; }
  /* LAYANAN */
  .lay-in { gap: 6px; }
  .lay .ic { width: 40px; height: 40px; font-size: 18px; }
  .lay span { font-size: 11px; }
  /* PAGE HERO */
  .page-hero .wrap { padding: 28px 24px; }
  .page-hero h1 { font-size: 21px; }
  /* KARTU */
  .card { padding: 18px; }
  /* JURUSAN DETAIL */
  .jur-head { flex-direction: column; align-items: flex-start; }
  .article .bd { padding: 20px; }
  .article h1 { font-size: 21px; }
  /* GALERI */
  .galeri-grid { gap: 10px; }
  /* FOOTER */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .lay-in { grid-template-columns: repeat(2, 1fr); }
  .jur-strip { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .news-card .ph { height: 140px; }
  .galeri-item .cap { font-size: 11px; padding-top: 18px; }
}

/* Anti-overflow: anak grid tidak boleh memaksa lebar (foto/gambar) */
.news-grid > *, .jur-strip > *, .lay-in > *, .galeri-grid > *, .main > * { min-width: 0; }

/* ===== NEWS MASONRY (postingan, gambar dominan) ===== */
.news-masonry { position: relative; }
.nm-item { display: block; width: calc((100% - 36px) / 3); margin-bottom: 18px; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(2, 6, 23, .06); transition: transform .2s ease, box-shadow .2s ease; }
.nm-item:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(2, 6, 23, .14); }
.nm-ph { width: 100%; }
.nm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* variasi tinggi ala masonry (pola selang-seling) */
.nm-item:nth-child(3n+1) .nm-ph { aspect-ratio: 16 / 10; }
.nm-item:nth-child(3n+2) .nm-ph { aspect-ratio: 4 / 5; }
.nm-item:nth-child(3n)   .nm-ph { aspect-ratio: 1 / 1; }
@media (max-width: 900px) {
  .nm-item:nth-child(3n+1) .nm-ph, .nm-item:nth-child(3n+2) .nm-ph, .nm-item:nth-child(3n) .nm-ph { aspect-ratio: 4 / 3; }
}
.nm-bd { padding: 10px 12px 13px; }
.nm-bd h4 { font-size: 14px; margin: 7px 0 5px; line-height: 1.35; color: #1e293b; }
.nm-bd .date { font-size: 11.5px; color: #94a3b8; }
@media (max-width: 900px) { .news-masonry .nm-item { width: calc((100% - 12px) / 2); margin-bottom: 12px; } }
@media (max-width: 520px) { .news-masonry .nm-item { width: 100%; } }
/* ===== GALERI MASONRY (ala Pinterest) ===== */
.galeri-masonry { position: relative; }
.gm-item { display: block; width: calc((100% - 36px) / 3); margin-bottom: 18px; border-radius: 12px; overflow: hidden; position: relative; box-shadow: 0 2px 10px rgba(2, 6, 23, .08); }
.gm-item img { width: 100%; display: block; }
.gm-item .cap { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(2, 6, 23, .78)); color: #fff; font-size: 13px; font-weight: 600; padding: 28px 12px 10px; opacity: 0; transition: opacity .3s; }
.gm-item:hover .cap { opacity: 1; }
.gm-lb { position: fixed; inset: 0; background: rgba(2, 6, 23, .92); display: none; align-items: center; justify-content: center; flex-direction: column; gap: 10px; z-index: 999; }
.gm-lb.open { display: flex; }
.gm-lb img { max-width: 92vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 8px 40px rgba(0, 0, 0, .5); }
.gm-lb-cap { color: #fff; font-size: 14px; font-weight: 600; }
.gm-lb-close { position: absolute; top: 16px; right: 22px; background: none; border: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
@media (max-width: 900px) { .galeri-masonry .gm-item { width: calc((100% - 12px) / 2); margin-bottom: 12px; } }
@media (max-width: 520px) { .galeri-masonry .gm-item { width: calc((100% - 10px) / 2); margin-bottom: 10px; } }
.hero-tagline { text-align: center; font-size: clamp(16px, 2.4vw, 22px); font-weight: 700; color: #1e293b; margin-bottom: 18px; }
.hero-slider { position: relative; width: 100%; aspect-ratio: 21 / 9; max-height: 430px; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 23, 42, .18); background: #e2e8f0; }
.hs-track, .hs-slide { position: absolute; inset: 0; }
.hs-slide { opacity: 0; transition: opacity .7s ease; }
.hs-slide.active { opacity: 1; }
.hs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hs-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px; background: linear-gradient(transparent, rgba(2, 6, 23, .78)); color: #fff; font-size: 14.5px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hs-badge { background: #fbbf24; color: #1e3a8a; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; letter-spacing: .3px; }
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .88); border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; line-height: 1; color: #1e3a8a; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); z-index: 5; }
.hs-arrow:hover { background: #fff; }
.hs-prev { left: 14px; }
.hs-next { right: 14px; }
.hs-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; gap: 7px; justify-content: center; z-index: 5; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: all .25s; }
.hs-dot.active { background: #fff; transform: scale(1.3); }
@media (max-width: 768px) {
  .hero-slider { aspect-ratio: 4 / 3; max-height: 340px; border-radius: 12px; }
  .hs-arrow { width: 32px; height: 32px; font-size: 17px; }
  .hs-caption { font-size: 13px; padding: 30px 14px 26px; }
  .hs-dots { bottom: 8px; }
}
