/*
 * SMANJA v15.4.0 — Yayasan Editorial Flow
 * Final homepage flow refinement:
 * banner shadow -> breaking-news marquee -> 4 shortcuts; schedule title inline on
 * the right; related-link logos paired with ads; facilities after map.
 */
body.smanja-v154{
  --sj154-navy:#073553;
  --sj154-blue:#0878ba;
  --sj154-gold:#e8b942;
  --sj154-ink:#173f5a;
  --sj154-muted:#6f8797;
  --sj154-line:#d9e6ee;
  --sj154-soft:#f5f9fb;
  --sj154-shadow:0 14px 34px rgba(7,43,76,.14),0 2px 8px rgba(7,43,76,.06);
}

/* ======================================================================
   1. BANNER — full visual width, but now reads as a premium shadowed card.
   ====================================================================== */
body.smanja-v154 .sj15-banner-only{
  width:100%!important;
  padding:10px 12px 0!important;
  overflow:visible!important;
  background:transparent!important;
  box-sizing:border-box!important;
}
body.smanja-v154 .sj15-banner-wrap{
  width:100%!important;
  max-width:none!important;
  margin:0 auto!important;
}
body.smanja-v154 .sj15-banner-slider{
  overflow:hidden!important;
  border:1px solid rgba(8,67,105,.11)!important;
  border-radius:13px!important;
  background:#082e4d!important;
  box-shadow:var(--sj154-shadow)!important;
}
body.smanja-v154 .sj15-banner-slider .sj92-slides{
  border-radius:inherit!important;
}
body.smanja-v154 .sj15-banner-controls{
  right:12px!important;
  bottom:10px!important;
  box-shadow:0 6px 18px rgba(4,28,46,.24)!important;
}

/* ======================================================================
   2–3. TOP FLOW — ticker is immediately below banner, shortcuts below ticker.
   ====================================================================== */
body.smanja-v154 .sj154-topflow{padding-top:8px!important}
body.smanja-v154 .sj154-ticker{
  margin-top:0!important;
  margin-bottom:7px!important;
  min-height:34px!important;
  border-radius:8px!important;
  box-shadow:0 5px 14px rgba(7,43,76,.045)!important;
}
body.smanja-v154 .sj154-shortcuts{
  margin-top:0!important;
  margin-bottom:0!important;
}
body.smanja-v154 .sj154-shortcuts>a{
  min-height:54px!important;
  padding:8px 12px!important;
  border-radius:9px!important;
}
body.smanja-v154 .sj154-shortcuts>a>i{width:31px!important;height:31px!important;font-size:11px!important}
body.smanja-v154 .sj154-shortcuts strong{font-size:9px!important}
body.smanja-v154 .sj154-shortcuts small{font-size:6.7px!important}
body.smanja-v154 .sj154-social-ribbon{margin-top:8px!important}

/* Old stand-alone four-pill trust strip is no longer used in the top flow. */
body.smanja-v154 .sj152-trust-strip{display:none!important}

/* ======================================================================
   4. Institutional qualities are integrated into the school profile instead
   of living as a separate framed strip.
   ====================================================================== */
body.smanja-v154 .sj154-school-profile>div:first-child{min-width:0}
body.smanja-v154 .sj154-profile-points{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:0;
  margin-top:17px;
  padding-top:13px;
  border-top:1px solid rgba(19,76,112,.12);
}
body.smanja-v154 .sj154-profile-points>a{
  display:flex;
  align-items:center;
  min-width:0;
  gap:8px;
  padding:5px 10px;
  color:var(--sj154-ink)!important;
  text-decoration:none!important;
  border-right:1px solid rgba(19,76,112,.10);
}
body.smanja-v154 .sj154-profile-points>a:first-child{padding-left:0}
body.smanja-v154 .sj154-profile-points>a:last-child{border-right:0}
body.smanja-v154 .sj154-profile-points i{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  min-width:27px;
  border-radius:8px;
  color:#fff;
  font-size:10px;
  background:linear-gradient(145deg,#0b6fa9,#0a466c);
  box-shadow:0 5px 12px rgba(7,79,124,.13);
}
body.smanja-v154 .sj154-profile-points span{min-width:0}
body.smanja-v154 .sj154-profile-points strong,
body.smanja-v154 .sj154-profile-points small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.smanja-v154 .sj154-profile-points strong{font-size:8px;line-height:1.25}
body.smanja-v154 .sj154-profile-points small{margin-top:2px;color:#7d919f;font-size:6.2px;line-height:1.3}

/* ======================================================================
   5. SCHEDULE — title is an inline card on the RIGHT of the time blocks.
   ====================================================================== */
body.smanja-v154 .sj154-schedule{
  display:block!important;
  overflow:hidden!important;
  border-radius:10px!important;
}
body.smanja-v154 .sj154-schedule-scroll{overflow-x:auto!important}
body.smanja-v154 .sj154-schedule-row{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(110px,1fr)) minmax(142px,.82fr)!important;
  min-width:720px!important;
  height:auto!important;
}
body.smanja-v154 .sj154-schedule-row>article{
  min-width:0!important;
  min-height:68px!important;
  padding:11px 12px!important;
  border-right:1px solid #e1eaf0!important;
}
body.smanja-v154 .sj154-schedule-row>.sj154-time-card span{font-size:8px!important}
body.smanja-v154 .sj154-schedule-row>.sj154-time-card strong{font-size:17px!important;line-height:1.1!important}
body.smanja-v154 .sj154-schedule-row>.sj154-schedule-label{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border-right:0!important;
  color:#fff!important;
  background:linear-gradient(145deg,#113b5c,#0a2f4d)!important;
}
body.smanja-v154 .sj154-schedule-label i{
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  min-width:29px;
  border-radius:8px;
  color:#f0c85d!important;
  font-size:12px!important;
  background:rgba(255,255,255,.08);
}
body.smanja-v154 .sj154-schedule-label span{display:block!important;color:#fff!important}
body.smanja-v154 .sj154-schedule-label strong{display:block;color:#fff!important;font-size:10px!important;line-height:1.2!important}
body.smanja-v154 .sj154-schedule-label small{display:block;margin-top:3px;color:#c7d8e2!important;font-size:6.5px!important;line-height:1.25!important}

/* Keep the school board compact and proportional after the schedule change. */
body.smanja-v154 .sj151-schoolboard{margin-top:11px!important}
body.smanja-v154 .sj151-board-news{margin-top:9px!important}
body.smanja-v154 .sj151-today{margin-top:9px!important}
body.smanja-v154 .sj151-principal-card p{-webkit-line-clamp:10!important}

/* ======================================================================
   7. RELATED NETWORK + ADVERTISING
   Logo-first related links on the left, real CMS ads on the right.
   ====================================================================== */
body.smanja-v154 .sj154-network-ads{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(265px,.75fr);
  gap:14px;
  align-items:stretch;
  margin-top:28px!important;
}
body.smanja-v154 .sj154-related-panel,
body.smanja-v154 .sj154-ad-panel{
  min-width:0;
  border:1px solid var(--sj154-line);
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 24px rgba(7,43,76,.05);
}
body.smanja-v154 .sj154-related-panel{padding:16px}
body.smanja-v154 .sj154-mini-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
body.smanja-v154 .sj154-mini-head h2{margin:2px 0 0!important;color:var(--sj154-ink)!important;font-size:16px!important;line-height:1.25!important}
body.smanja-v154 .sj154-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.smanja-v154 .sj154-related-card{
  display:grid;
  grid-template-columns:72px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  min-height:70px;
  padding:7px 9px;
  border:1px solid #e3ebf0;
  border-radius:9px;
  color:var(--sj154-ink)!important;
  background:#fbfdfe;
  text-decoration:none!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
body.smanja-v154 .sj154-related-card:hover,
body.smanja-v154 .sj154-related-card:focus-visible{transform:translateY(-2px);border-color:#bdd9e9;box-shadow:0 8px 18px rgba(7,57,88,.08);outline:0}
body.smanja-v154 .sj154-related-logo{
  display:grid;
  place-items:center;
  width:72px;
  height:51px;
  overflow:hidden;
  border-radius:7px;
  background:#fff;
}
body.smanja-v154 .sj154-related-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:3px}
body.smanja-v154 .sj154-related-logo i{color:#0b78b6;font-size:18px}
body.smanja-v154 .sj154-related-card strong{display:block;font-size:9px;line-height:1.3}
body.smanja-v154 .sj154-related-card small{display:block;margin-top:3px;color:#7b909e;font-size:6.5px}
body.smanja-v154 .sj154-related-card>b{color:#0b78b6;font-size:10px}
body.smanja-v154 .sj154-related-empty{grid-column:1/-1;display:flex;align-items:center;gap:8px;min-height:70px;padding:12px;color:#758b99;font-size:8px;background:#f8fbfc;border-radius:8px}

body.smanja-v154 .sj154-ad-panel{padding:12px;background:linear-gradient(180deg,#f9fcfd,#fff)}
body.smanja-v154 .sj154-ad-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:1px 2px 9px}
body.smanja-v154 .sj154-ad-head small{color:#7e929f;font-size:6.5px;text-align:right}
body.smanja-v154 .sj154-ad-stack{display:grid;gap:8px}
body.smanja-v154 .sj154-ad-card{
  position:relative;
  display:block;
  overflow:hidden;
  min-height:85px;
  border:1px solid #e0e9ef;
  border-radius:9px;
  background:#eaf1f5;
  text-decoration:none!important;
}
body.smanja-v154 .sj154-ad-card img{display:block;width:100%;height:100px;object-fit:cover;transition:transform .35s ease}
body.smanja-v154 .sj154-ad-card:hover img{transform:scale(1.025)}
body.smanja-v154 .sj154-ad-card>span{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px;color:#274c64;font-size:7px;font-weight:700;background:#fff}
body.smanja-v154 .sj154-ad-card>span b{color:#0b78b6}
body.smanja-v154 .sj154-ad-empty{display:flex;min-height:115px;align-items:center;justify-content:center;flex-direction:column;gap:4px;text-align:center;color:#78909d;border:1px dashed #cadbe5;border-radius:9px;background:#f8fbfc}
body.smanja-v154 .sj154-ad-empty i{font-size:20px;color:#9bb4c3}
body.smanja-v154 .sj154-ad-empty strong{font-size:9px;color:#365a70}
body.smanja-v154 .sj154-ad-empty small{max-width:180px;font-size:6.5px;line-height:1.5}

/* ======================================================================
   8. FACILITIES — after the map, image-led and responsive.
   ====================================================================== */
body.smanja-v154 .sj154-map{margin-bottom:0!important}
body.smanja-v154 .sj154-facilities{margin-top:26px!important}
body.smanja-v154 .sj154-facilities .sj9-section-head p{max-width:650px;margin:4px 0 0;color:#78909e;font-size:8px;line-height:1.55}
body.smanja-v154 .sj154-facility-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.smanja-v154 .sj154-facility-card{
  display:block;
  overflow:hidden;
  min-width:0;
  border:1px solid #dae7ee;
  border-radius:11px;
  color:var(--sj154-ink)!important;
  background:#fff;
  box-shadow:0 7px 20px rgba(7,43,76,.045);
  text-decoration:none!important;
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
body.smanja-v154 .sj154-facility-card:hover,
body.smanja-v154 .sj154-facility-card:focus-visible{transform:translateY(-3px);border-color:#bdd8e8;box-shadow:0 13px 28px rgba(7,43,76,.09);outline:0}
body.smanja-v154 .sj154-facility-image{position:relative;display:block;height:138px;overflow:hidden;background:#e6eef3}
body.smanja-v154 .sj154-facility-image:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(180deg,transparent,rgba(5,41,65,.55));pointer-events:none}
body.smanja-v154 .sj154-facility-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
body.smanja-v154 .sj154-facility-card:hover .sj154-facility-image img{transform:scale(1.035)}
body.smanja-v154 .sj154-facility-image em{position:absolute;left:9px;bottom:8px;z-index:2;display:grid;place-items:center;width:27px;height:27px;border-radius:8px;color:#fff;background:rgba(8,72,111,.88);font-style:normal}
body.smanja-v154 .sj154-facility-copy{display:block;padding:10px 11px 11px}
body.smanja-v154 .sj154-facility-copy small{display:block;color:#0b76b2;font-size:6.2px;font-weight:800;letter-spacing:.12em}
body.smanja-v154 .sj154-facility-copy strong{display:block;margin-top:3px;font-size:11px;line-height:1.35}
body.smanja-v154 .sj154-facility-copy p{margin:4px 0 0!important;color:#758a98!important;font-size:7px!important;line-height:1.5!important}
body.smanja-v154 .sj154-facility-placeholder{grid-column:1/-1;min-height:115px;display:grid;place-items:center;text-align:center;background:linear-gradient(135deg,#f7fbfd,#edf5f8)}
body.smanja-v154 .sj154-facility-placeholder span{display:flex;flex-direction:column;align-items:center;gap:4px}
body.smanja-v154 .sj154-facility-placeholder i{font-size:22px;color:#0c7bb8}
body.smanja-v154 .sj154-facility-placeholder strong{font-size:11px}
body.smanja-v154 .sj154-facility-placeholder small{font-size:7px;color:#758b99}

/* ======================================================================
   Responsive tuning — keep all existing sections; only tighten geometry.
   ====================================================================== */
@media(max-width:1199.98px){
  body.smanja-v154 .sj15-banner-only{padding-left:10px!important;padding-right:10px!important}
  body.smanja-v154 .sj154-network-ads{grid-template-columns:minmax(0,1.35fr) minmax(250px,.78fr)}
  body.smanja-v154 .sj154-related-logo{width:62px;height:48px}
  body.smanja-v154 .sj154-related-card{grid-template-columns:62px minmax(0,1fr) auto}
}
@media(max-width:991.98px){
  body.smanja-v154 .sj154-profile-points{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:7px}
  body.smanja-v154 .sj154-profile-points>a:nth-child(2){border-right:0}
  body.smanja-v154 .sj154-network-ads{grid-template-columns:1fr}
  body.smanja-v154 .sj154-ad-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.smanja-v154 .sj154-facility-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767.98px){
  body.smanja-v154 .sj15-banner-only{padding:7px 7px 0!important}
  body.smanja-v154 .sj15-banner-slider{border-radius:10px!important;box-shadow:0 10px 23px rgba(7,43,76,.13)!important}
  body.smanja-v154 .sj154-topflow{padding-top:6px!important}
  body.smanja-v154 .sj154-ticker{margin-bottom:6px!important}
  body.smanja-v154 .sj154-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
  body.smanja-v154 .sj154-shortcuts>a{min-height:49px!important;padding:7px 9px!important}
  body.smanja-v154 .sj154-schedule-row{min-width:650px!important;grid-template-columns:repeat(5,minmax(100px,1fr)) minmax(125px,.8fr)!important}
  body.smanja-v154 .sj154-schedule-row>article{min-height:62px!important;padding:9px 10px!important}
  body.smanja-v154 .sj154-related-grid{grid-template-columns:1fr}
  body.smanja-v154 .sj154-mini-head{align-items:flex-start}
  body.smanja-v154 .sj154-facility-image{height:125px}
}
@media(max-width:520px){
  body.smanja-v154 .sj154-profile-points{grid-template-columns:1fr 1fr;gap:4px}
  body.smanja-v154 .sj154-profile-points>a{padding:5px 7px}
  body.smanja-v154 .sj154-profile-points i{width:24px;height:24px;min-width:24px;font-size:9px}
  body.smanja-v154 .sj154-profile-points strong{font-size:7.2px}
  body.smanja-v154 .sj154-profile-points small{font-size:5.8px}
  body.smanja-v154 .sj154-ad-stack{grid-template-columns:1fr}
  body.smanja-v154 .sj154-facility-grid{grid-template-columns:1fr}
  body.smanja-v154 .sj154-facility-image{height:160px}
}

@media(prefers-reduced-motion:reduce){
  body.smanja-v154 .sj154-related-card,
  body.smanja-v154 .sj154-ad-card img,
  body.smanja-v154 .sj154-facility-card,
  body.smanja-v154 .sj154-facility-image img{transition:none!important}
  body.smanja-v154 .sj154-related-card:hover,
  body.smanja-v154 .sj154-related-card:focus-visible,
  body.smanja-v154 .sj154-facility-card:hover,
  body.smanja-v154 .sj154-facility-card:focus-visible{transform:none!important}
  body.smanja-v154 .sj154-ad-card:hover img,
  body.smanja-v154 .sj154-facility-card:hover .sj154-facility-image img{transform:none!important}
}
