/* =====================================================================
   Website SIMS SMA — desain mengikuti MatDash (MIT, © AdminMart, distributed by ThemeWagon)
   CSS murni tanpa framework: token warna, tipografi Manrope, kartu, tombol, grid.
   ===================================================================== */
:root {
  --primary: #635bff; --primary-600: #514ae0; --primary-light: color-mix(in srgb, #635bff 10%, #fff);
  --secondary: #14e9e2; --secondary-light: color-mix(in srgb, #14e9e2 14%, #fff);
  --success: #36c76c; --warning: #ffb900; --error: #ff6692; --info: #46caeb;
  --heading: #1f2a3d; --text: #2a3547; --muted: #7b8893; --border: #e0e6eb;
  --bg: #ffffff; --soft: #f4f7fb; --dark: #1f2a3d; --darker: #111c2d;
  --radius: 12px; --radius-sm: 7px; --radius-lg: 24px;
  --shadow: 0 1px 4px 0 rgba(133, 146, 173, .2);
  --shadow-lg: 0 12px 32px rgba(133, 146, 173, .28);
  --font: "Manrope", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { color: var(--heading); font-weight: 800; line-height: 1.22; margin: 0 0 .6rem; }
h1 { font-size: clamp(30px, 4.2vw, 50px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.01em; }
h3 { font-size: 19px; font-weight: 700; } h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 920px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .wrap { flex-wrap: wrap; } .gap-1 { gap: 8px; } .gap-2 { gap: 14px; } .items-center { align-items: center; } .between { justify-content: space-between; } .justify-center { justify-content: center; }
.text-success { color: var(--success); } .text-error { color: var(--error); }

/* ---------- grid ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-7-5 { grid-template-columns: 7fr 5fr; } .g-8-4 { grid-template-columns: 8fr 4fr; }
.span-2 { grid-column: span 2; } .full { grid-column: 1 / -1; }
@media (max-width: 1024px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-7-5, .g-8-4 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .g-2, .g-3, .g-4 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--primary); color: #fff; font: 700 15px var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, transform .15s, box-shadow .15s; box-shadow: rgba(0, 0, 0, .05) 0 9px 17.5px; }
.btn:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: var(--primary-light); color: var(--primary); box-shadow: none; }
.btn-light:hover { background: var(--primary); color: #fff; }
.btn-white { background: #fff; color: var(--heading); }
.btn-white:hover { background: var(--heading); color: #fff; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.link-arrow i { transition: transform .15s; } .link-arrow:hover i { transform: translateX(3px); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--text); font-weight: 600; font-size: 14px; }
.pill:hover, .pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 18px; background: var(--primary-light); color: var(--primary); }
.badge-success { background: color-mix(in srgb, var(--success) 14%, #fff); color: #22a254; }
.badge-warning { background: color-mix(in srgb, var(--warning) 18%, #fff); color: #b88400; }
.badge-error { background: color-mix(in srgb, var(--error) 14%, #fff); color: #e33e70; }
.badge-info { background: color-mix(in srgb, var(--info) 16%, #fff); color: #1d9fc0; }
.badge-muted { background: var(--soft); color: var(--muted); }

/* ---------- top bar & header ---------- */
.topbar { background: var(--soft); font-size: 13px; color: var(--muted); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar .info { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.topbar .info span, .topbar .info a { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.topbar .info i { color: var(--primary); }
.social { display: flex; gap: 6px; }
.social a { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.social a:hover { background: var(--primary-light); color: var(--primary); }
.header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .2s; }
.header.scrolled { box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; gap: 20px; height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.brand b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; max-width: 210px; }
.brand small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav > li { position: relative; }
.nav > li > a { display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 999px; color: var(--text); font-weight: 600; font-size: 15px; }
.nav > li > a:hover, .nav > li.active > a { background: var(--primary-light); color: var(--primary); }
.nav .caret { font-size: 10px; opacity: .7; }
.nav ul { position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav li:hover > ul, .nav li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav ul a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: 14px; }
.nav ul a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; }
.nav ul a:hover { background: var(--primary-light); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; }
.icon-btn:hover { background: var(--primary-light); color: var(--primary); }
.nav-toggle { display: none; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); flex-direction: column; align-items: stretch; gap: 2px; padding: 90px 16px 24px; background: #fff; box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .25s; overflow-y: auto; }
  body.nav-open .nav { transform: none; }
  .nav ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 14px; min-width: 0; }
  .nav-overlay { position: fixed; inset: 0; z-index: -1; background: rgb(17 28 45 / .4); opacity: 0; visibility: hidden; transition: .2s; }
  body.nav-open .nav-overlay { opacity: 1; visibility: visible; }
  .topbar .info span:nth-child(n+3) { display: none; }
}
@media (max-width: 560px) { .topbar { display: none; } .brand b { font-size: 15px; max-width: 170px; } }

/* ---------- hero ---------- */
.hero { padding: 20px 0 10px; }
.hero-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; padding: 56px 56px 0; border-radius: var(--radius-lg);
  background: radial-gradient(520px 340px at 100% 0%, color-mix(in srgb, var(--secondary) 22%, transparent), transparent), radial-gradient(620px 420px at 0% 100%, color-mix(in srgb, var(--primary) 16%, transparent), transparent), var(--soft); }
.hero-box .copy { padding-bottom: 56px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--primary); font-weight: 700; font-size: 13px; box-shadow: var(--shadow); margin-bottom: 18px; }
.hero h1 { margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { font-size: 17px; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero .note { margin: 16px 0 0; font-size: 14px; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.hero .art { position: relative; align-self: end; }
.hero .art img { width: 100%; max-width: 520px; margin: 0 auto; }
.float-stat { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.float-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--heading); line-height: 1.1; }
.float-stat div span { font-size: 12px; color: var(--muted); }
.float-stat.one { left: 0; top: 18%; } .float-stat.two { right: 0; bottom: 18%; }
@media (max-width: 900px) { .hero-box { grid-template-columns: 1fr; padding: 36px 24px 0; } .hero-box .copy { padding-bottom: 0; } .float-stat { display: none; } }

/* ---------- page header (breadcrumb ala MatDash) ---------- */
.page-header { padding: 20px 0 0; }
.page-header .box { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 150px; padding: 26px 36px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--secondary) 14%, #fff); }
.page-header h1 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--primary); }
.crumbs li + li::before { content: "•"; margin-right: 8px; }
.page-header img { width: 160px; flex: none; margin-bottom: -26px; align-self: flex-end; }
@media (max-width: 640px) { .page-header img { display: none; } .page-header .box { padding: 24px; min-height: 0; } }

/* ---------- sections ---------- */
.section { padding: 80px 0; }
.section.soft { background: var(--soft); }
.section.tight { padding: 48px 0; }
.section-title { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-title.left { margin-left: 0; text-align: left; }
.section-title .eyebrow { display: inline-block; margin-bottom: 10px; color: var(--primary); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.section-title p { color: var(--muted); font-size: 16px; margin: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.section-head .section-title { margin: 0; }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.card.flat { box-shadow: none; border: 1px solid var(--border); }
.card.hover { transition: box-shadow .2s, transform .2s; }
.card.hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card-title { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 18px; }
.chip { width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; flex: none; background: var(--primary-light); color: var(--primary); }
.chip.c2 { background: color-mix(in srgb, var(--secondary) 18%, #fff); color: #0eaaa5; }
.chip.c3 { background: color-mix(in srgb, var(--warning) 18%, #fff); color: #d39a00; }
.chip.c4 { background: color-mix(in srgb, var(--error) 14%, #fff); color: #e33e70; }
.chip.sm { width: 40px; height: 40px; font-size: 16px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 24px; }
.stat-card b { display: block; font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--heading); }
.stat-card > div > span { color: var(--muted); font-size: 14px; }
.stats-band { margin-top: -6px; }
.feature p { color: var(--muted); margin-bottom: 0; }
.feature .chip { margin-bottom: 18px; }

/* about */
.about-img { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft); }
.about-img img { width: 100%; aspect-ratio: 5/4; object-fit: cover; }
.about-img .tag { position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow-lg); }
.about-img .tag b { display: block; color: var(--primary); font-size: 18px; }
.vm { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.vm:first-of-type { border-top: 0; }
.vm h4 { margin-bottom: 4px; }
.vm p { margin: 0; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0 0 20px; }
.check-list li { position: relative; padding: 6px 0 6px 32px; }
.check-list li::before { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); }

/* news */
.post { display: flex; flex-direction: column; overflow: hidden; padding: 0; height: 100%; }
.post .thumb { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--soft); }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post:hover .thumb img { transform: scale(1.06); }
.post .thumb .badge { position: absolute; left: 16px; bottom: 16px; background: #fff; }
.post .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post .meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.post h3 { font-size: 18px; line-height: 1.4; margin-bottom: 14px; }
.post h3 a { color: var(--heading); } .post h3 a:hover { color: var(--primary); }
.post .link-arrow { margin-top: auto; }

/* events */
.event { display: flex; gap: 18px; align-items: flex-start; height: 100%; }
.event .date { flex: none; width: 66px; padding: 10px 0; border-radius: var(--radius); background: var(--primary); color: #fff; text-align: center; line-height: 1.1; }
.event .date b { display: block; font-size: 24px; font-weight: 800; }
.event .date span { font-size: 12px; font-weight: 600; text-transform: uppercase; opacity: .9; }
.event h3 { font-size: 17px; margin-bottom: 6px; }
.event .meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.event .meta i { width: 16px; color: var(--primary); }
.event p { margin: 0; color: var(--muted); font-size: 14px; }

/* team */
.person { text-align: center; }
.person img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; background: var(--soft); box-shadow: 0 0 0 6px var(--primary-light); }
.person h3 { font-size: 17px; margin-bottom: 2px; }
.person .role { color: var(--muted); font-size: 14px; }
.person .tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* testimonial */
.quote { position: relative; height: 100%; display: flex; flex-direction: column; }
.quote .stars { color: var(--warning); font-size: 13px; margin-bottom: 12px; letter-spacing: 2px; }
.quote p { flex: 1; font-size: 15px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.quote .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote .who b { display: block; color: var(--heading); }
.quote .who span { font-size: 13px; color: var(--muted); }
.quote::after { content: "\201D"; position: absolute; right: 24px; top: 4px; font: 800 80px/1 Georgia, serif; color: var(--primary-light); }

/* video */
.video-thumb { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 16/10; background: linear-gradient(135deg, var(--primary), #49c6e5); }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .3s; }
.video-thumb:hover img { transform: scale(1.04); }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 26px; box-shadow: 0 0 0 14px rgb(255 255 255 / .3); }

/* CTA */
.cta-box { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 20px; padding: 44px 48px; border-radius: var(--radius-lg); background: linear-gradient(115deg, #635bff 0%, #7a73ff 55%, #49c6e5 130%); color: #fff; }
.cta-box h2, .cta-box h3 { color: #fff; }
.cta-box p { color: rgb(255 255 255 / .85); }
.cta-box img { max-height: 210px; margin: -10px auto -44px; }
.cta-box.alt { background: var(--dark); }
@media (max-width: 800px) { .cta-box { grid-template-columns: 1fr; padding: 32px 26px; } .cta-box img { display: none; } }

/* gallery */
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; background: var(--soft); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgb(17 28 45 / .75)); }
.gallery-item .play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 30px; background: rgb(17 28 45 / .9); }
.lightbox img { max-height: 88vh; border-radius: var(--radius); }
.lightbox button { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 20px; cursor: pointer; }

/* faq */
.faq details { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 14px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; color: var(--heading); font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; transition: transform .2s; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 24px 22px; color: var(--muted); }

/* content html */
.content-html { font-size: 16px; line-height: 1.8; }
.content-html img { border-radius: var(--radius); margin: 16px 0; height: auto; }
.content-html h2, .content-html h3 { margin-top: 28px; }
.content-html table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.content-html td, .content-html th { border: 1px solid var(--border); padding: 8px 12px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }
.side-post { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.side-post:last-child { border-bottom: 0; }
.side-post img { width: 86px; height: 66px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.side-post a { color: var(--heading); font-weight: 700; line-height: 1.4; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }

/* forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.form-cek { grid-template-columns: 1.3fr 1fr auto; align-items: end; }
@media (max-width: 640px) { .form-grid, .form-cek { grid-template-columns: 1fr; } }
.field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: 14px; color: var(--heading); }
.field .req { color: var(--error); }
.field .hint { margin-top: 5px; font-size: 13px; color: var(--muted); }
.field .err { margin-top: 5px; font-size: 13px; color: var(--error); }
.input, .select, .textarea { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text); font: 15px var(--font); transition: border-color .15s; }
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; }
.input[type=file] { padding: 9px 12px; height: auto; }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--primary); }
.is-invalid { border-color: var(--error) !important; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.form-section { margin-bottom: 24px; }
.form-section .card-title .chip { margin: 0; }

/* alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 500; background: var(--primary-light); color: var(--primary-600); }
.alert-success { background: color-mix(in srgb, var(--success) 13%, #fff); color: #1f8a49; }
.alert-danger, .alert-error { background: color-mix(in srgb, var(--error) 12%, #fff); color: #d0325f; }
.alert-warning { background: color-mix(in srgb, var(--warning) 16%, #fff); color: #946b00; }
.alert-info { background: color-mix(in srgb, var(--info) 14%, #fff); color: #157e99; }
.alert h3 { color: inherit; }

/* PPDB */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 62px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--border); }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--heading); font-size: 16px; }
.steps span { color: var(--muted); }
.wave { padding: 16px 0; border-bottom: 1px solid var(--border); }
.wave:last-child { border-bottom: 0; padding-bottom: 0; }
.big-number { font-size: 28px; font-weight: 800; letter-spacing: 1px; color: var(--primary); background: var(--primary-light); border-radius: var(--radius); padding: 16px; text-align: center; }
.icon-hero { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; background: var(--primary-light); color: var(--primary); }
.icon-hero.ok { background: color-mix(in srgb, var(--success) 14%, #fff); color: var(--success); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table td { padding: 12px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.pagination { display: flex; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 36px 0 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 50%; color: var(--text); font-weight: 700; }
.pagination a:hover { background: var(--primary-light); color: var(--primary); }
.pagination .active a { background: var(--primary); color: #fff; }
.pagination .disabled span { opacity: .35; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty i { display: block; font-size: 40px; margin-bottom: 12px; color: var(--border); }
.map-frame { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radius-lg); }

/* ---------- footer ---------- */
.footer { background: var(--darker); color: #aab5c3; padding: 70px 0 0; margin-top: 0; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer a { color: #aab5c3; } .footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer .brand small { color: #7b8893; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer .contact li { display: flex; gap: 12px; }
.footer .contact i { color: var(--secondary); margin-top: 5px; width: 16px; }
.footer .social a { background: rgb(255 255 255 / .06); color: #fff; width: 36px; height: 36px; }
.footer .social a:hover { background: var(--primary); }
.footer-bottom { margin-top: 50px; padding: 22px 0; border-top: 1px solid rgb(255 255 255 / .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 56px 0; } .card { padding: 22px; } }

/* ---------- misc ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; opacity: 0; visibility: hidden; transition: .2s; }
.to-top.show { opacity: 1; visibility: visible; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
