/* ===== Website Sekolah — tema publik ===== */
:root {
  --brand: #15803d;
  --accent: #d4a017;
  --brand-dark: color-mix(in srgb, var(--brand) 78%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --ink: #1f2a24;
  --muted: #64706a;
  --line: #e4eae6;
  --bg: #f7faf8;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 50, 35, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.65; }
h1, h2, h3, h4, .brand-name { font-family: 'Fraunces', Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn-brand:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline-brand { border: 1.5px solid var(--brand); color: var(--brand); font-weight: 600; }
.btn-outline-brand:hover { background: var(--brand); color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #2b2100; font-weight: 700; }
.btn-accent:hover { filter: brightness(.95); color: #2b2100; }

/* ----- Top bar & navbar ----- */
.topbar { background: var(--brand-dark); color: #e7f3ec; font-size: .82rem; padding: .4rem 0; }
.topbar a { color: #e7f3ec; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .4; margin: 0 .6rem; }
.navbar-main { background: #fff; box-shadow: 0 2px 14px rgba(0, 0, 0, .06); position: sticky; top: 0; z-index: 1030; padding: .5rem 0; }
.navbar-main .navbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.navbar-main .logo { width: 46px; height: 46px; object-fit: contain; }
.navbar-main .logo-ph { width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-size: 1.4rem; }
.brand-name { font-size: 1.1rem; line-height: 1.15; display: block; }
.brand-tag { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .72rem; color: var(--muted); font-weight: 500; display: block; }
.navbar-main .nav-link { font-weight: 600; font-size: .92rem; color: var(--ink); padding: .55rem .85rem !important; border-radius: 10px; }
.navbar-main .nav-link:hover, .navbar-main .nav-link.active { color: var(--brand); background: var(--brand-soft); }
.navbar-main .dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; }
.navbar-main .dropdown-item { border-radius: 8px; font-weight: 500; font-size: .9rem; }
.navbar-main .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }
.nav-spmb { background: var(--accent); color: #2b2100 !important; }
.nav-spmb:hover, .nav-spmb.active { background: var(--accent) !important; filter: brightness(.95); color: #2b2100 !important; }

/* ----- Slider ----- */
.hero-slider .carousel-item { height: clamp(280px, 46vw, 540px); background: #0d2a1a; }
.hero-slider .carousel-item > img { width: 100%; height: 100%; object-fit: cover; }
.hero-slider .carousel-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(5,25,15,.78) 100%); pointer-events: none; }
.hero-slider .carousel-caption { z-index: 2; text-align: left; left: 6%; right: 6%; bottom: 12%; max-width: 760px; }
.hero-slider .carousel-caption h2 { font-size: clamp(1.4rem, 3.6vw, 2.8rem); text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero-slider .carousel-caption p { font-size: clamp(.9rem, 1.6vw, 1.15rem); text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.hero-slider .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; border: 0; }
.hero-fallback { min-height: clamp(280px, 40vw, 460px); background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 45%), linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; display: flex; align-items: center; }
.hero-fallback h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }

/* ----- Section umum ----- */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; position: relative; padding-bottom: .6rem; }
.section-head h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 54px; height: 4px; border-radius: 4px; background: var(--accent); }
.section-head p { margin: .5rem 0 0; color: var(--muted); }

/* ----- Sambutan ----- */
.welcome-photo { position: relative; max-width: 340px; margin: 0 auto; }
.welcome-photo img, .welcome-photo .ph { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.welcome-photo::before { content: ''; position: absolute; inset: 14px -14px -14px 14px; border: 3px solid var(--accent); border-radius: 20px; z-index: -1; }
.welcome-quote { font-size: 1.02rem; }
.welcome-quote p { margin-bottom: .9rem; }
.welcome-sign strong { font-family: 'Fraunces', serif; font-size: 1.15rem; display: block; }
.welcome-sign span { color: var(--muted); font-size: .9rem; }

/* ----- Kartu berita/kegiatan ----- */
.card-news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card-news:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-news .thumb { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--brand-soft); }
.card-news .thumb img, .card-news .thumb .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-news:hover .thumb img { transform: scale(1.05); }
.chip { position: absolute; left: 12px; top: 12px; background: var(--accent); color: #2b2100; font-size: .72rem; font-weight: 700; padding: .2rem .65rem; border-radius: 20px; }
.card-news .body { padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-news .meta { color: var(--muted); font-size: .8rem; margin-bottom: .35rem; }
.card-news h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: .5rem; }
.card-news h3 a { color: var(--ink); }
.card-news h3 a:hover { color: var(--brand); }
.card-news p { color: var(--muted); font-size: .9rem; flex: 1; }
.card-news .foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--line); padding-top: .7rem; margin-top: .3rem; flex-wrap: wrap; }
.card-news .more { font-weight: 700; font-size: .85rem; }
.ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand) 18%, #fff)); color: color-mix(in srgb, var(--brand) 45%, #fff); font-size: 2.6rem; }

/* ----- Share ----- */
.share { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.share-label { font-weight: 600; font-size: .88rem; color: var(--muted); margin-right: .3rem; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff !important; border: 0; font-size: 1rem; cursor: pointer; transition: transform .15s, filter .15s; }
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.share-btn.fb { background: #1877f2; } .share-btn.wa { background: #25d366; } .share-btn.x { background: #111; }
.share-btn.tg { background: #229ed9; } .share-btn.copy { background: #6b7a72; }
.share-btn.copied { background: var(--brand) !important; }
.share-compact { gap: .25rem; }
.share-compact .share-btn { width: 28px; height: 28px; font-size: .8rem; }

/* ----- Agenda ----- */
.agenda-item { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; height: 100%; }
.agenda-date { flex: 0 0 66px; height: 74px; background: var(--brand); color: #fff; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.agenda-date b { font-size: 1.7rem; font-family: 'Fraunces', serif; }
.agenda-date small { font-size: .72rem; letter-spacing: .08em; color: var(--accent); font-weight: 700; }
.agenda-item h3 { font-size: 1.02rem; margin: 0 0 .3rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; }
.agenda-item .info { font-size: .84rem; color: var(--muted); }
.agenda-item .info i { color: var(--brand); width: 1.1rem; }

/* ----- Testimoni ----- */
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; height: 100%; position: relative; }
.testi::before { content: '\201C'; position: absolute; top: -4px; right: 18px; font-size: 5rem; font-family: Georgia, serif; color: color-mix(in srgb, var(--accent) 55%, #fff); line-height: 1; }
.testi p { font-style: italic; color: #3b4741; }
.testi .who { display: flex; align-items: center; gap: .8rem; margin-top: 1rem; }
.testi .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.testi .who strong { display: block; line-height: 1.2; }
.testi .who span { font-size: .8rem; color: var(--muted); }

/* ----- Banner halaman dalam ----- */
.page-banner { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 2.6rem 0 2.2rem; position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 28%, transparent); }
.page-banner h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .4rem; position: relative; z-index: 1; }
.page-banner .breadcrumb { margin: 0; position: relative; z-index: 1; --bs-breadcrumb-divider-color: #bfe3cd; }
.page-banner .breadcrumb a { color: #d9f1e3; }
.page-banner .breadcrumb-item.active { color: #fff; }

/* ----- Konten artikel ----- */
.article { font-size: 1.04rem; }
.article h2, .article h3 { margin: 1.6rem 0 .7rem; }
.article img { border-radius: 12px; }
.article blockquote { border-left: 4px solid var(--accent); padding: .4rem 1rem; background: var(--bg); border-radius: 0 10px 10px 0; color: #3b4741; }
.article-cover { width: 100%; border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; margin-bottom: 1.4rem; }
.share-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .9rem 0; margin: 1.6rem 0; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.side-card h4 { font-size: 1.05rem; margin-bottom: .8rem; }
.side-list a { display: flex; gap: .7rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.35; }
.side-list a:last-child { border-bottom: 0; }
.side-list small { display: block; color: var(--muted); font-weight: 400; }
.filter-pills .btn { border-radius: 30px; font-size: .85rem; font-weight: 600; }

/* ----- Profil & SPMB ----- */
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; height: 100%; }
.vm-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.num-list { list-style: none; padding: 0; counter-reset: n; margin: 0; }
.num-list li { counter-increment: n; position: relative; padding: .55rem 0 .55rem 2.6rem; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: .5rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: .82rem; display: grid; place-items: center; }
.timeline { border-left: 3px solid var(--accent); padding-left: 1.4rem; margin-left: .4rem; }
.timeline .t-item { position: relative; padding-bottom: 1.2rem; }
.timeline .t-item::before { content: ''; position: absolute; left: -1.95rem; top: .35rem; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand); }
.timeline b { display: block; color: var(--brand); }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; gap: 1rem; margin-bottom: 1rem; }
.contact-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* ----- Footer ----- */
.site-footer { background: #0f2a1b; color: #c9dbd0; padding-top: 3rem; }
.site-footer h5 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer a { color: #c9dbd0; }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer .social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-grid; place-items: center; margin-right: .4rem; color: #fff; }
.site-footer .social a:hover { background: var(--accent); color: #2b2100; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding: 1rem 0; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.pagination .page-link { color: var(--brand); border-radius: 8px; margin: 0 2px; }
.pagination .active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; border: 2px dashed var(--line); border-radius: var(--radius); }

@media (max-width: 991px) {
  .navbar-main .navbar-collapse { padding: .8rem 0; }
  .section { padding: 3rem 0; }
}

/* ----- SPMB: kartu jalur ----- */
.jalur-card { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.jalur-card.jalur-buka { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 4px 16px rgba(20, 50, 35, .08); }
.jalur-card.jalur-tutup { opacity: .7; }
#daftar { scroll-margin-top: 90px; }
#formSpmb .btn-check:checked + .btn-outline-brand { background: var(--brand); color: #fff; }
