/* Shared public site styles: landing page, article and archive pages. */
:root {
  --navy:    #1a237e;
  --navy2:   #283593;
  --accent:  #3949ab;
  --accent2: #5c6bc0;
  --light:   #eef0fb;
  --ink:     #1c2333;
  --ink2:    #5b6472;
  --border:  #e4e7f0;
  --bg:      #fbfbfe;
  --green:   #2e7d32;
}
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.icon { width: 1em; height: 1em; }

/* ── Header ─────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251, 251, 254, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.brand-badge {
  width: 34px; height: 34px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26,35,126,.28);
  border: 1px solid var(--border);
}
.brand-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
nav.site-nav { display: flex; align-items: center; gap: 26px; }
nav.site-nav a.link { font-size: 14px; font-weight: 500; color: var(--ink2); }
nav.site-nav a.link:hover { color: var(--ink); }
.nav-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  align-items: center; justify-content: center; color: var(--ink);
}
.nav-toggle .icon { width: 19px; height: 19px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle.open .icon-menu { display: none; }
.nav-toggle.open .icon-close { display: block; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: #fff; box-shadow: 0 8px 20px rgba(57,73,171,.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(57,73,171,.4); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent2); }
.btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 88px;
  background-image: url('src/img/hero-bg.jpg');
  background-size: cover; background-position: center right; background-repeat: no-repeat;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(251,251,254,.97) 0%, rgba(251,251,254,.9) 32%, rgba(251,251,254,.55) 52%, rgba(251,251,254,.15) 72%, rgba(251,251,254,0) 100%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 44px); line-height: 1.16; letter-spacing: -.5px;
  font-weight: 800; color: var(--ink); margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead {
  font-size: 16.5px; color: var(--ink2); max-width: 480px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 14px; box-shadow: 0 30px 70px -25px rgba(26,35,126,.35);
  transform: rotate(1.2deg);
}
.hero-card img { border-radius: 12px; }
.hero-chip {
  position: absolute; background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px -10px rgba(20,20,40,.25);
  font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.hero-chip .icon { width: 16px; height: 16px; flex-shrink: 0; }
.hero-chip.c1 { top: -18px; left: -22px; }
.hero-chip.c1 .icon { color: var(--navy); }
.hero-chip.c2 { bottom: -18px; right: -18px; color: var(--green); }
.hero-chip.c2 .icon { color: var(--green); }

/* ── Sections ───────────────────────────────────────────── */
section { padding: 80px 0; }
.section-head { max-width: 620px; margin: 0 auto 32px; text-align: center; }
.section-head.left { margin: 0 0 32px; text-align: left; max-width: none; }
.section-head .kicker { font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; }
.section-head p { color: var(--ink2); font-size: 15.5px; }
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section-more { font-size: 13.5px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.section-more:hover { color: var(--navy); }

.about-body { max-width: 720px; margin: 0 auto; text-align: center; color: var(--ink2); font-size: 15.5px; }
.about-body p + p { margin-top: 14px; }

.band { background: var(--light); }

/* Pengumuman */
.announce-card {
  display: flex; gap: 26px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; max-width: 780px; margin: 0 auto;
}
.announce-media {
  width: 200px; flex-shrink: 0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 12px 26px -14px rgba(20,20,40,.35);
}
.announce-body h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.announce-date {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--accent); font-weight: 600; margin-bottom: 10px;
}
.announce-date .icon { width: 14px; height: 14px; }
.announce-body p { font-size: 14px; color: var(--ink2); margin-bottom: 12px; }
.announce-body .section-more { font-size: 13px; }

/* Kabar Uville / Galeri cards */
.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.media-card { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.media-thumb {
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--light), #f4f5fb); color: var(--accent2);
}
.media-thumb .icon { width: 26px; height: 26px; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-body { padding: 14px 16px; }
.ig-embed-wrap { display: flex; justify-content: center; }
.media-body h3 { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.media-body span { font-size: 12px; color: var(--ink2); }

/* Agenda */
.agenda-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.agenda-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
}
.agenda-date {
  width: 56px; height: 56px; border-radius: 12px; flex-shrink: 0;
  background: var(--light); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.agenda-date strong { font-size: 18px; font-weight: 800; line-height: 1.1; }
.agenda-date span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; }
.agenda-item h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.agenda-item p { font-size: 12.5px; color: var(--ink2); }
.agenda-time { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }

/* Capaian */
.achieve-list { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.achieve-item { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink); }
.achieve-item .icon { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

/* Fasilitas */
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facility-card {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
}
.facility-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: var(--light); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.facility-icon .icon { width: 18px; height: 18px; }
.facility-card span { font-size: 14px; font-weight: 600; }

/* Instagram banner */
.ig-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  border-radius: 24px; padding: 40px 44px; color: #fff;
}
.ig-banner-left { display: flex; align-items: center; gap: 16px; }
.ig-avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.6);
}
.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-banner-left h3 { font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.ig-banner-left p { font-size: 13.5px; opacity: .85; }
.ig-banner .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.ig-banner .btn-primary:hover { background: #f1f2fb; }

/* Kontak */
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  max-width: 820px; margin: 0 auto;
}
.contact-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(26,35,126,.25); border-color: #d3d8ec; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 14px;
  background: var(--light); display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 21px; height: 21px; color: var(--navy); }
.contact-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.contact-card p { font-size: 13.5px; color: var(--ink2); word-break: break-word; }

footer.site { border-top: 1px solid var(--border); padding: 32px 0; }
footer.site .wrap {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
footer.site .foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13.5px; }
footer.site .foot-right { display: flex; align-items: center; gap: 18px; }
footer.site .foot-social {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink2);
}
footer.site .foot-social:hover { color: var(--accent); }
footer.site .foot-social svg { width: 17px; height: 17px; }
footer.site p.copy { font-size: 12.5px; color: var(--ink2); }

@media (max-width: 860px) {
  nav.site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 24px 18px;
    box-shadow: 0 16px 30px -20px rgba(20,20,40,.3);
  }
  nav.site-nav.open { display: flex; }
  nav.site-nav a.link { padding: 8px 0; width: 100%; }
  .nav-toggle { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-card { transform: none; }
  .hero::before {
    background: linear-gradient(180deg, rgba(251,251,254,.2) 0%, rgba(251,251,254,.8) 42%, rgba(251,251,254,.97) 60%, rgba(251,251,254,.99) 100%);
  }
  .media-grid { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ig-banner { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .hero-actions .btn { flex: 1 1 auto; }
  .facility-grid { grid-template-columns: 1fr; }
  .agenda-time { margin-left: 68px; }
}

[hidden] { display: none !important; }

/* ── Article cards (landing, archive, related) ───────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(26,35,126,.25); border-color: #d3d8ec; }
.post-thumb {
  aspect-ratio: 16 / 10; background: var(--light); color: var(--accent2);
  display: flex; align-items: center; justify-content: center;
}
.post-thumb .icon { width: 28px; height: 28px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.post-date { font-size: 11.5px; font-weight: 700; color: var(--accent); letter-spacing: .5px; text-transform: uppercase; }
.post-body h3 { font-size: 16.5px; font-weight: 800; line-height: 1.35; }
.post-body p {
  font-size: 13.5px; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-more { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ── Article detail page ─────────────────────────────────── */
a.brand { color: var(--ink); }
.wrap.narrow { max-width: 780px; }
.article-page { padding: 44px 0 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--ink2); margin-bottom: 28px; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.article-head .kicker { font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
.article-head h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 800; letter-spacing: -.6px; line-height: 1.15; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--ink2); }
.article-meta .icon { width: 15px; height: 15px; color: var(--accent); }
.article-lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.article-cover { max-width: 1000px; margin: 36px auto 0; padding: 0 24px; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: 20px; box-shadow: 0 24px 60px -30px rgba(26,35,126,.35); }
.article-body { margin-top: 36px; font-size: 17px; line-height: 1.8; color: var(--ink); overflow-wrap: anywhere; }
.article-body p + p, .article-body p + ul, .article-body ul + p { margin-top: 18px; }
.article-body h2 { font-size: 22px; font-weight: 800; letter-spacing: -.2px; margin: 36px 0 12px; }
.article-body ul { list-style: disc; padding-left: 22px; }
.article-body li + li { margin-top: 6px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); }
.related { padding: 64px 0; }
.preview-banner { background: #fff4c2; color: #5b4500; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 600; }

/* ── Archive and message pages ───────────────────────────── */
.archive { padding: 56px 0 80px; min-height: 50vh; }
.empty-state { text-align: center; color: var(--ink2); padding: 32px 0; }
.empty-state h1 { font-size: 28px; color: var(--ink); margin-bottom: 10px; }
.empty-state .btn { margin-top: 18px; }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; font-size: 14px; color: var(--ink2); }

@media (max-width: 960px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-page { padding-top: 28px; }
  .article-cover { padding: 0; }
  .article-cover img { border-radius: 0; }
  .article-body { font-size: 16.5px; }
  .article-actions .btn { flex: 1 1 100%; text-align: center; }
}
