/* ==========================================================================
   Template Website Sekolah — Versi Bootstrap 5 (terang & kalem)
   Palet: biru keabuan + hijau sage + pasir, di atas latar hangat
   Ganti warna cukup di :root
   ========================================================================== */

:root {
  --sk-primary: #5a7d9a;        /* biru keabuan */
  --sk-primary-dark: #46667f;
  --sk-primary-soft: #e8eff5;
  --sk-primary-rgb: 90, 125, 154;
  --sk-primary-dark-rgb: 70, 102, 127;
  --sk-primary-line: #c9d7e2;      /* garis/hover bernuansa warna utama */
  --sk-sage: #8fae9a;           /* hijau sage */
  --sk-sage-soft: #eaf1ec;
  --sk-sand: #c8a96e;           /* pasir / emas lembut */
  --sk-sand-soft: #f6efe1;
  --sk-rose: #c98b74;           /* terakota lembut untuk label */
  --sk-bg: #fbfaf7;
  --sk-bg-alt: #f4f1ea;
  --sk-bg-rgb: 251, 250, 247;      /* = --sk-bg, untuk lapisan transparan hero */
  --sk-footer-bg: #eef1ee;
  --sk-footer-line: #dde3dd;
  --sk-map-bg: #e5ebe6;
  --sk-topbar-bg: var(--sk-primary-soft);
  --sk-topbar-fg: var(--sk-muted);
  --sk-topbar-hover: var(--sk-primary);
  --sk-topbar-icon: var(--sk-primary);
  --sk-text: #3d4a57;
  --sk-muted: #6f7b87;
  --sk-line: #e7e2d8;
  --sk-radius: .75rem;
  --sk-shadow: 0 6px 24px rgba(61, 74, 87, .07);
  --sk-shadow-lg: 0 14px 40px rgba(61, 74, 87, .10);

  --sk-font-head: "Lora", "Merriweather", Georgia, "Times New Roman", serif;
  --sk-font-body: "Nunito", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Override variabel Bootstrap */
  --bs-body-bg: var(--sk-bg);
  --bs-body-color: var(--sk-text);
  --bs-body-font-family: var(--sk-font-body);
  --bs-link-color: var(--sk-primary);
  --bs-link-color-rgb: var(--sk-primary-rgb);
  --bs-link-hover-color: var(--sk-primary-dark);
  --bs-link-hover-color-rgb: var(--sk-primary-dark-rgb);
  --bs-border-color: var(--sk-line);
  --bs-primary: var(--sk-primary);
  --bs-primary-rgb: var(--sk-primary-rgb);
  --bs-secondary-color: var(--sk-muted);
}

body { line-height: 1.75; }
h1, h2, h3, h4, h5, .font-head { font-family: var(--sk-font-head); color: #34404c; font-weight: 600; }
.text-muted { color: var(--sk-muted) !important; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -.125em; }

/* ---------- Tombol ---------- */
.btn { border-radius: 50rem; font-weight: 600; padding: .65rem 1.5rem; }
.btn-sm { padding: .4rem 1rem; }
.btn-primary {
  --bs-btn-bg: var(--sk-primary); --bs-btn-border-color: var(--sk-primary);
  --bs-btn-hover-bg: var(--sk-primary-dark); --bs-btn-hover-border-color: var(--sk-primary-dark);
  --bs-btn-active-bg: var(--sk-primary-dark); --bs-btn-active-border-color: var(--sk-primary-dark);
  --bs-btn-focus-shadow-rgb: var(--sk-primary-rgb);
}
.btn-outline-primary {
  --bs-btn-color: var(--sk-primary); --bs-btn-border-color: var(--sk-primary-line);
  --bs-btn-hover-bg: var(--sk-primary); --bs-btn-hover-border-color: var(--sk-primary);
  --bs-btn-active-bg: var(--sk-primary-dark); --bs-btn-active-border-color: var(--sk-primary-dark);
}
.btn-sand {
  --bs-btn-bg: var(--sk-sand); --bs-btn-border-color: var(--sk-sand); --bs-btn-color: #fff;
  --bs-btn-hover-bg: #b8995e; --bs-btn-hover-border-color: #b8995e; --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #a98b52; --bs-btn-active-color: #fff;
}
.btn-light-soft {
  --bs-btn-bg: #fff; --bs-btn-border-color: var(--sk-line); --bs-btn-color: var(--sk-text);
  --bs-btn-hover-bg: var(--sk-primary-soft); --bs-btn-hover-border-color: var(--sk-primary-line); --bs-btn-hover-color: var(--sk-primary-dark);
}

/* ---------- Top bar ---------- */
.topbar { background: var(--sk-topbar-bg); color: var(--sk-topbar-fg); font-size: .84rem; }
.topbar a { color: var(--sk-topbar-fg); text-decoration: none; }
.topbar a:hover { color: var(--sk-topbar-hover); }
.topbar .icon { color: var(--sk-topbar-icon); }

/* ---------- Navbar ---------- */
.site-navbar { background: #fff; border-bottom: 1px solid var(--sk-line); transition: box-shadow .3s; }
.site-navbar.scrolled { box-shadow: var(--sk-shadow); }
.navbar-brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--sk-font-head); font-weight: 600; font-size: 1.22rem; color: #34404c; line-height: 1.15; }
.brand-sub { font-size: .72rem; color: var(--sk-muted); letter-spacing: .08em; text-transform: uppercase; }
.site-navbar .nav-link { font-weight: 600; font-size: .93rem; color: var(--sk-text); padding: .5rem .8rem !important; border-radius: 50rem; }
.site-navbar .nav-link:hover, .site-navbar .nav-link:focus { color: var(--sk-primary); background: var(--sk-primary-soft); }
.site-navbar .nav-link.active { color: var(--sk-primary); background: var(--sk-primary-soft); }
.site-navbar .dropdown-menu { border: 1px solid var(--sk-line); border-radius: var(--sk-radius); box-shadow: var(--sk-shadow-lg); padding: .5rem; }
.site-navbar .dropdown-item { border-radius: .5rem; font-size: .92rem; padding: .5rem .9rem; color: var(--sk-text); }
.site-navbar .dropdown-item:hover { background: var(--sk-primary-soft); color: var(--sk-primary-dark); }
@media (min-width: 992px) {
  .site-navbar .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}
.offcanvas { background: var(--sk-bg); }

/* ---------- Info terkini (ticker) ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--sk-line); font-size: .9rem; }
.ticker-label { background: var(--sk-sand-soft); color: #8a6d37; font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ticker-track { overflow: hidden; }
.ticker-move { display: inline-flex; gap: 3rem; white-space: nowrap; padding-left: 100%; animation: ticker 38s linear infinite; }
.ticker-move a { color: var(--sk-text); text-decoration: none; }
.ticker-move a::before { content: "•"; color: var(--sk-sand); margin-right: .6rem; }
.ticker-track:hover .ticker-move { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Hero (carousel) ---------- */
.hero .carousel-item { height: 600px; background-size: cover; background-position: center right; }
.hero .carousel-item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--sk-bg-rgb),.97) 0%, rgba(var(--sk-bg-rgb),.88) 38%, rgba(var(--sk-bg-rgb),.15) 75%); }
.hero .hero-content { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.hero .eyebrow { display: inline-block; background: var(--sk-sage-soft); color: #5d7f69; font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .9rem; border-radius: 50rem; margin-bottom: 1.1rem; }
.hero h1, .hero h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.2; margin-bottom: 1rem; }
.hero h1 em, .hero h2 em { color: var(--sk-primary); font-style: italic; }
.hero p.lead { color: var(--sk-muted); max-width: 520px; font-size: 1.12rem; }
.hero .carousel-indicators { margin-bottom: 5.5rem; justify-content: flex-start; margin-left: max(1rem, calc((100vw - 1296px) / 2 + .75rem)); }
.hero .carousel-indicators [data-bs-target] { width: 28px; height: 5px; border-radius: 3px; background-color: var(--sk-primary); opacity: .3; border: 0; }
.hero .carousel-indicators .active { opacity: .9; width: 44px; }
.hero .carousel-control-prev, .hero .carousel-control-next { width: 56px; opacity: 1; }
.hero .ctrl { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--sk-primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--sk-shadow); }
.hero .ctrl:hover { background: #fff; }

/* ---------- Akses cepat ---------- */
.quick-links { margin-top: -70px; position: relative; z-index: 5; }
.quick-card { background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); padding: 1.5rem; height: 100%; display: flex; gap: 1rem; align-items: flex-start; text-decoration: none; color: inherit; box-shadow: var(--sk-shadow); transition: transform .25s, box-shadow .25s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--sk-shadow-lg); color: inherit; }
.quick-card h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.quick-card p { font-size: .87rem; color: var(--sk-muted); margin: 0; line-height: 1.55; }
.icon-bubble { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-bubble .icon { width: 24px; height: 24px; }
.bubble-blue { background: var(--sk-primary-soft); color: var(--sk-primary); }
.bubble-sage { background: var(--sk-sage-soft); color: #5d7f69; }
.bubble-sand { background: var(--sk-sand-soft); color: #9c7c41; }
.bubble-rose { background: #f6e7e1; color: #a86650; }

/* ---------- Section ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--sk-bg-alt); }
.section-head { max-width: 660px; margin: 0 auto 3rem; text-align: center; }
.section-head.text-start { margin-left: 0; }
.kicker { display: inline-block; color: var(--sk-sand); font-weight: 700; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.35rem); }
.section-head p { color: var(--sk-muted); }
.divider-soft { width: 60px; height: 3px; border-radius: 3px; background: var(--sk-sand); opacity: .7; margin: .9rem auto 1rem; }
.section-head.text-start .divider-soft { margin-left: 0; }

/* ---------- Sambutan ---------- */
.principal-photo { position: relative; padding: 0 0 22px 22px; }
.principal-photo::before { content: ""; position: absolute; left: 0; bottom: 0; width: 78%; height: 80%; border-radius: var(--sk-radius); background: var(--sk-sage-soft); }
.principal-photo img { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--sk-radius); box-shadow: var(--sk-shadow-lg); }
.principal-badge { position: absolute; right: -10px; bottom: 44px; background: #fff; border-radius: var(--sk-radius); box-shadow: var(--sk-shadow-lg); padding: .9rem 1.2rem; border-left: 4px solid var(--sk-sand); }
.principal-badge strong { display: block; font-family: var(--sk-font-head); color: #34404c; }
.principal-badge small { color: var(--sk-muted); }
.quote-soft { background: var(--sk-primary-soft); border-radius: var(--sk-radius); padding: 1.2rem 1.4rem; font-family: var(--sk-font-head); font-style: italic; font-size: 1.15rem; color: var(--sk-primary-dark); position: relative; }
.signature { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 1.7rem; color: var(--sk-primary); line-height: 1; }

/* ---------- Statistik ---------- */
.stats { background: #fff; border-top: 1px solid var(--sk-line); border-bottom: 1px solid var(--sk-line); padding: 56px 0; }
.stat { text-align: center; }
.stat .icon-bubble { margin-bottom: .8rem; }
.stat-number { font-family: var(--sk-font-head); font-size: 2.4rem; font-weight: 600; color: #34404c; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--sk-muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .4rem; }

/* ---------- Kartu umum ---------- */
.card-soft { background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); box-shadow: none; transition: transform .25s, box-shadow .25s; height: 100%; }
.card-soft:hover { transform: translateY(-4px); box-shadow: var(--sk-shadow-lg); }
.card-soft .card-body { padding: 1.8rem; }
.card-soft h3 { font-size: 1.18rem; }
.card-soft p { color: var(--sk-muted); font-size: .94rem; }
.link-more { font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.link-more .icon { transition: transform .2s; }
.link-more:hover .icon { transform: translateX(4px); }

/* ---------- Berita ---------- */
.news-card { overflow: hidden; }
.news-card .news-thumb { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.news-card .news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-date { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.95); border-radius: .6rem; text-align: center; padding: .35rem .7rem; line-height: 1.1; box-shadow: var(--sk-shadow); }
.news-date b { display: block; font-family: var(--sk-font-head); font-size: 1.3rem; color: #34404c; }
.news-date small { font-size: .7rem; text-transform: uppercase; color: var(--sk-muted); font-weight: 700; }
.badge-soft { font-weight: 700; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: .35rem .7rem; border-radius: 50rem; }
.badge-blue { background: var(--sk-primary-soft); color: var(--sk-primary-dark); }
.badge-sage { background: var(--sk-sage-soft); color: #5d7f69; }
.badge-sand { background: var(--sk-sand-soft); color: #8a6d37; }
.badge-rose { background: #f6e7e1; color: #a0604a; }
.news-card h3 a { color: #34404c; text-decoration: none; }
.news-card h3 a:hover { color: var(--sk-primary); }
.meta { font-size: .82rem; color: var(--sk-muted); }

/* ---------- Agenda & pengumuman ---------- */
.panel-soft { background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); height: 100%; }
.panel-soft .panel-head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--sk-line); display: flex; justify-content: space-between; align-items: center; }
.panel-soft .panel-head h3 { font-size: 1.15rem; margin: 0; display: flex; align-items: center; gap: .6rem; }
.panel-soft .list-group-item { border-color: var(--sk-line); padding: 1rem 1.5rem; background: transparent; }
.agenda-date { width: 60px; flex-shrink: 0; text-align: center; border-radius: .6rem; overflow: hidden; border: 1px solid var(--sk-line); }
.agenda-date b { display: block; font-family: var(--sk-font-head); font-size: 1.35rem; color: #34404c; padding: .25rem 0 .05rem; }
.agenda-date small { display: block; background: var(--sk-sage-soft); color: #5d7f69; font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .1rem 0; }
.list-group-item h4 { font-family: var(--sk-font-body); font-size: .98rem; font-weight: 700; margin: 0 0 .2rem; }
.list-group-item h4 a { color: var(--sk-text); text-decoration: none; }
.list-group-item h4 a:hover { color: var(--sk-primary); }

/* ---------- Prestasi ---------- */
.achieve-card { text-align: center; }
.medal { width: 68px; height: 68px; margin: 0 auto 1rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fbf3dc, #e6cf9b 65%, #d2b475); color: #7a5f2c; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px var(--sk-sand-soft); }
.medal .icon { width: 30px; height: 30px; }
.level { display: inline-block; margin-top: .6rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8a6d37; font-weight: 700; }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--sk-radius); cursor: pointer; border: 0; padding: 0; background: none; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item span { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); color: var(--sk-text); font-size: .82rem; font-weight: 600; padding: .3rem .75rem; border-radius: 50rem; opacity: 0; transform: translateY(6px); transition: all .3s; }
.gallery-item:hover span, .gallery-item:focus span { opacity: 1; transform: none; }
#galleryModal .modal-content { background: transparent; border: 0; }
#galleryModal img { border-radius: var(--sk-radius); }

/* ---------- Testimoni ---------- */
.testi-card .card-body { position: relative; }
.testi-card .card-body::before { content: "\201C"; position: absolute; top: .2rem; right: 1.2rem; font-family: var(--sk-font-head); font-size: 5rem; line-height: 1; color: var(--sk-sand-soft); }
.testi-card p { font-style: italic; position: relative; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--sk-sand-soft); }

/* ---------- CTA SPMB ---------- */
.cta-box { background: linear-gradient(120deg, var(--sk-primary-soft), var(--sk-sage-soft)); border-radius: 1.25rem; padding: 3rem; position: relative; overflow: hidden; }
.cta-box::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.5); }
.cta-box h2 em { color: var(--sk-primary); }
.cta-box > * { position: relative; z-index: 1; }

/* ---------- Mitra ---------- */
.partner { font-family: var(--sk-font-head); font-weight: 600; color: #a9a397; display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
.partner:hover { color: var(--sk-primary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--sk-footer-bg); color: var(--sk-muted); font-size: .93rem; }
.site-footer h4 { font-size: 1.08rem; margin-bottom: 1.1rem; }
.site-footer a { color: var(--sk-muted); text-decoration: none; }
.site-footer a:hover { color: var(--sk-primary); }
.footer-links li { margin-bottom: .5rem; }
.social a { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 1px solid var(--sk-line); display: inline-flex; align-items: center; justify-content: center; color: var(--sk-primary); }
.social a:hover { background: var(--sk-primary); color: #fff; border-color: var(--sk-primary); }
.footer-map { height: 150px; border-radius: var(--sk-radius); background: var(--sk-map-bg) url("../img/map.svg") center/cover; display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.footer-map span { background: rgba(255,255,255,.9); padding: .3rem .8rem; border-radius: 50rem; }
.footer-bottom { border-top: 1px solid var(--sk-footer-line); font-size: .85rem; }

.back-to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sk-primary); color: #fff; box-shadow: var(--sk-shadow-lg); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s; z-index: 1030; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--sk-primary-dark); }

/* ==========================================================================
   Halaman dalam
   ========================================================================== */
.page-banner { position: relative; padding: 80px 0 70px; background: var(--sk-primary-soft) url("../img/hero-2.svg") center right/cover; text-align: center; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(var(--sk-bg-rgb),.82); }
.page-banner > .container { position: relative; }
.page-banner h1 { font-size: clamp(2rem, 4vw, 2.7rem); }
.breadcrumb { justify-content: center; margin: 0; --bs-breadcrumb-divider-color: var(--sk-sand); }
.breadcrumb a { text-decoration: none; }
.breadcrumb-item.active { color: var(--sk-muted); }

.side-widget { background: #fff; border: 1px solid var(--sk-line); border-radius: var(--sk-radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.side-widget h4 { font-size: 1.08rem; padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 1px solid var(--sk-line); }
.side-widget .list-group-item { border-color: var(--sk-line); padding: .65rem 0; background: transparent; display: flex; justify-content: space-between; color: var(--sk-text); font-size: .93rem; }
.side-widget .list-group-item:hover, .side-widget .list-group-item.active { color: var(--sk-primary); background: transparent; }
.side-widget .list-group-item.active { border-color: var(--sk-line); font-weight: 700; }
.recent-post img { width: 74px; height: 58px; object-fit: cover; border-radius: .5rem; }
.recent-post a { font-weight: 600; font-size: .9rem; color: var(--sk-text); text-decoration: none; line-height: 1.4; }
.recent-post a:hover { color: var(--sk-primary); }
.tag-cloud a { font-size: .8rem; padding: .3rem .8rem; border: 1px solid var(--sk-line); border-radius: 50rem; color: var(--sk-muted); text-decoration: none; display: inline-block; margin: 0 .3rem .4rem 0; }
.tag-cloud a:hover { background: var(--sk-primary-soft); border-color: var(--sk-primary-line); color: var(--sk-primary-dark); }

.pagination { --bs-pagination-color: var(--sk-text); --bs-pagination-border-color: var(--sk-line); --bs-pagination-hover-bg: var(--sk-primary-soft); --bs-pagination-hover-color: var(--sk-primary-dark); --bs-pagination-active-bg: var(--sk-primary); --bs-pagination-active-border-color: var(--sk-primary); --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(var(--sk-primary-rgb),.2); gap: .35rem; }
.pagination .page-link { border-radius: .5rem !important; min-width: 40px; text-align: center; }

.form-control, .form-select { border-color: var(--sk-line); border-radius: .6rem; padding: .7rem 1rem; background-color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--sk-primary-line); box-shadow: 0 0 0 .2rem rgba(var(--sk-primary-rgb),.15); }
.form-label { font-weight: 600; font-size: .9rem; }

.vm-card { border-top: 4px solid var(--sk-sand) !important; }
.vm-card .vm-quote { font-family: var(--sk-font-head); font-style: italic; font-size: 1.22rem; color: var(--sk-primary-dark); line-height: 1.6; }
.timeline { border-left: 2px solid var(--sk-sand-soft); padding-left: 1.8rem; }
.timeline-item { position: relative; padding-bottom: 1.4rem; }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.8rem - 8px); top: .4rem; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sk-sand); }
.timeline-item b { font-family: var(--sk-font-head); color: #9c7c41; }
.staff-card img { width: 100%; aspect-ratio: 1/1.1; object-fit: cover; }
.staff-card .card-body { text-align: center; padding: 1rem; }
.staff-card strong { display: block; font-family: var(--sk-font-head); color: #34404c; }
.facility { display: flex; gap: .7rem; align-items: center; background: #fff; border: 1px solid var(--sk-line); border-radius: .7rem; padding: .9rem 1rem; font-weight: 600; font-size: .93rem; }
.facility .icon { color: var(--sk-sage); width: 22px; height: 22px; }
.map-box { height: 360px; border-radius: var(--sk-radius); background: var(--sk-map-bg) url("../img/map.svg") center/cover; display: flex; align-items: center; justify-content: center; }
.map-box span { background: #fff; padding: .6rem 1.1rem; border-radius: 50rem; box-shadow: var(--sk-shadow); font-size: .9rem; }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 991.98px) {
  .hero .carousel-item { height: 560px; background-position: 70% center; }
  .hero .carousel-item::before { background: linear-gradient(180deg, rgba(var(--sk-bg-rgb),.94) 0%, rgba(var(--sk-bg-rgb),.86) 60%, rgba(var(--sk-bg-rgb),.6) 100%); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-navbar .nav-link { padding: .7rem 1rem !important; }
}
@media (max-width: 575.98px) {
  .hero .carousel-item { height: 580px; }
  .hero .carousel-indicators { margin-bottom: 4.5rem; }
  .quick-links { margin-top: -50px; }
  .quick-links .quick-card { flex-direction: column; gap: .7rem; padding: 1.1rem; }
  .quick-links .quick-card h3 { font-size: .98rem; }
  .section { padding: 64px 0; }
  .gallery-grid { grid-auto-rows: 140px; }
  .cta-box { padding: 2rem 1.5rem; }
  .principal-badge { right: 0; }
  .brand-name { font-size: 1.05rem; }
  .navbar-brand img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-move { padding-left: 0; }
}

/* ---------- Berita versi daftar (gambar di kiri) ---------- */
.news-card:has(> .row) { height: auto; }
.news-card .row > [class*="col-"] > .news-thumb { aspect-ratio: 16 / 10; height: auto !important; }
@media (min-width: 768px) {
  .news-card .row > [class*="col-"] > .news-thumb { aspect-ratio: auto; height: 100% !important; min-height: 230px; }
  .news-card .row > [class*="col-"] > .news-thumb img { position: absolute; inset: 0; }
}
