/* Shared frontend master stylesheet extracted from the existing Home design. */
:root{--navy:#123451;--navy2:#102c4c;--gold:#d8ad5e;--ink:#173b5b;--muted:#718096}
*{box-sizing:border-box}body{margin:0;background:#f1f5f9;color:#1e293b;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
.topline{background:var(--navy2);color:#d9e5f1;font-size:13px;padding:9px 5%;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.topline-right{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.current-time-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff50;background:#ffffff12;color:#fff;border-radius:999px;padding:7px 12px;box-shadow:0 3px 10px #001b3022;white-space:nowrap}
.current-time-btn strong{font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.current-time-btn small{font-size:10px;color:#f3d58d;font-weight:800}
.clock-dot{font-size:8px;color:#f2c75f;animation:clockpulse 1.5s infinite}
.current-date-label{font-size:12px;font-weight:650;color:#f4f7fb;white-space:nowrap}
@keyframes clockpulse{50%{opacity:.35}}
.brandbar{background:#fff;padding:17px 5%;display:flex;align-items:center;gap:13px}
.crest{width:48px;height:48px;border-radius:13px;background:linear-gradient(145deg,#123c65,#246b9e);color:#fff;display:grid;place-items:center;font-size:25px;box-shadow:0 5px 15px #123c6530}
.brandname{font-size:21px;font-weight:850;letter-spacing:.2px;color:#153653}.brandtag{font-size:12px;color:#718096;margin-top:3px}
/* Navbar dikunci ke viewport setelah mencapai bagian atas saat scroll */
.navwrap{
  position:relative;
  z-index:1000;
  width:100%;
  background:var(--navy);
  box-shadow:0 5px 18px #102c4c20;
}
.navwrap.is-fixed{
  position:fixed !important;
  top:0 !important;
  left:0;
  right:0;
  width:100%;
  z-index:10000;
}
.navwrap-placeholder{width:100%;height:0;display:block}
.navinner{padding:0 4%;display:flex;align-items:center;justify-content:space-between;min-height:60px}
.navlinks{display:flex;align-items:stretch;gap:2px;height:60px}
button{font:inherit;cursor:pointer}.navbtn{border:0;background:transparent;color:#eaf1f8;font-size:15px;font-weight:650;padding:0 13px;display:flex;align-items:center;gap:7px;transition:.2s;white-space:nowrap}
.navbtn:hover,.navbtn.active{background:#ffffff15;color:#f5d58a}.navbtn .arr{font-size:10px;transition:.25s}.navbtn.active .arr{transform:rotate(180deg)}.navbtn.home{color:#f4d38b}
.searchbtn{border:1px solid #ffffff40;color:white;background:#ffffff10;border-radius:9px;padding:11px 14px;font-size:14px}
.mega{display:none;position:absolute;top:100%;left:0;width:100%;background:white;box-shadow:0 20px 35px #0c29422b;border-top:3px solid var(--gold);padding:25px 5% 28px;animation:navdrop .22s ease;z-index:60}
.mega.show{display:block}@keyframes navdrop{from{opacity:0;transform:translateY(-9px)}to{opacity:1;transform:translateY(0)}}
.megagrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}
.megacol h4{font-size:13px;text-transform:uppercase;letter-spacing:1px;color:#9b7535;margin:0 0 13px;padding-bottom:10px;border-bottom:1px solid #e9edf2}
.mitem{position:relative;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;border-radius:8px;font-size:14px;font-weight:600;color:#30465b;cursor:pointer;transition:.2s}
.mitem:hover{background:#edf4fa;color:#164b78}.mitem .left{display:flex;align-items:center;gap:9px}
.mitem .mi{width:30px;height:30px;display:grid;place-items:center;border-radius:7px;background:#eff4f9;color:#235579;font-size:17px}

/* Premium 3D icon treatment: glossy surfaces, depth and soft ambient shadows */
.icon-svg{width:23px;height:23px;display:block;flex:0 0 23px;overflow:visible;filter:drop-shadow(0 2px 1px #102c4c35) drop-shadow(0 4px 3px #102c4c20);transform:translateY(-1px);transition:filter .22s,transform .22s}
.icon-svg path,.icon-svg rect,.icon-svg circle,.icon-svg polygon{paint-order:stroke fill;}
.mitem .mi{position:relative;isolation:isolate;overflow:hidden;width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:linear-gradient(145deg,#ffffff 0%,#f1f6ff 48%,#dce8f6 100%);border:1px solid #d7e3f1;box-shadow:inset 0 2px 2px #ffffff, inset 0 -3px 5px #a8bad02b,0 3px 0 #c4d2e2,0 6px 12px #173b5b20;transition:transform .22s,box-shadow .22s}
.mitem .mi:before{content:"";position:absolute;z-index:-1;left:4px;right:4px;top:2px;height:45%;border-radius:9px;background:linear-gradient(180deg,#ffffffb8,#ffffff00);pointer-events:none}
.mitem .mi:after{content:"";position:absolute;z-index:-1;width:20px;height:20px;right:-8px;bottom:-9px;border-radius:50%;background:#ffffff85;filter:blur(5px);pointer-events:none}
.mitem:hover .mi{transform:translateY(-3px) rotateX(8deg) scale(1.06);box-shadow:inset 0 2px 2px #fff,0 4px 0 #b9cadd,0 10px 18px #173b5b2e}
.mitem:hover .icon-svg{transform:translateY(-2px) scale(1.06);filter:drop-shadow(0 3px 1px #102c4c45) drop-shadow(0 6px 4px #102c4c25)}
.crest{display:grid;place-items:center;border:1px solid #ffffff55;box-shadow:inset 0 2px 3px #ffffff55,inset 0 -5px 8px #071b3540,0 7px 15px #123c6545}.crest svg{width:34px;height:34px;filter:drop-shadow(0 3px 1px #071b3580) drop-shadow(0 5px 3px #001b3555)}
.mobrow .mob-icon{position:relative;display:inline-grid;place-items:center;width:35px;height:35px;margin-right:10px;vertical-align:middle;border-radius:10px;background:linear-gradient(145deg,#ffffff27,#ffffff0a);border:1px solid #ffffff2b;box-shadow:inset 0 1px 2px #ffffff35,0 3px 7px #061c303d}
.mobrow .mob-icon .icon-svg{width:21px;height:21px;filter:drop-shadow(0 2px 2px #0008)}

.subwrap{position:relative}.sub{display:none;position:absolute;left:calc(100% + 5px);top:-7px;width:220px;background:#fff;padding:8px;border:1px solid #e6ebf0;border-radius:10px;box-shadow:0 12px 25px #102c4c20;z-index:5}
.subwrap:hover>.sub,.subwrap:focus-within>.sub,.subwrap.open>.sub{display:block}.sub .mitem{font-size:11px}
.feature{background:linear-gradient(140deg,#123653,#1d537a);color:#fff;border-radius:13px;padding:19px;min-height:150px;display:flex;flex-direction:column;justify-content:space-between}
.feature small{color:#d7c08d;font-size:12px;letter-spacing:1px}.feature strong{font-size:18px;line-height:1.4}.feature span{font-size:13px;color:#d6e2ec}
.mobiletoggle{display:none;background:#ffffff12;border:1px solid #ffffff35;color:white;border-radius:8px;padding:9px 12px}
.mobmenu{display:none;background:var(--navy);padding:8px 4% 16px}.mobmenu.show{display:block}
.mobrow{color:white;border-bottom:1px solid #ffffff18;padding:14px 10px;font-size:16px}
.mobrow button{background:none;border:0;color:inherit;width:100%;min-height:44px;display:flex;justify-content:space-between;align-items:center;text-align:left;font-size:16px;font-weight:600}
.mobchildren{display:none;padding:7px 0 0 15px;color:#c6d5e4}.mobchildren.show{display:block}.mobchildren .mobrow{font-size:14px;padding:10px 5px}
.hero{margin:24px 4%;border-radius:16px;min-height:245px;padding:30px;display:flex;align-items:center;position:relative;overflow:hidden;background:linear-gradient(110deg,#102f4f 0%,#164f79 68%,#236b91 100%);color:white}
.hero:after{content:"";position:absolute;width:270px;height:270px;border:1px solid #ffffff20;border-radius:50%;right:4%;top:-100px;box-shadow:0 0 0 30px #ffffff08,0 0 0 60px #ffffff06}
.hero-content{position:relative;z-index:1;max-width:520px}.eyebrow{font-size:12px;letter-spacing:2px;color:#f2d28e;font-weight:700}
.hero h2{font-size:clamp(23px,4vw,36px);line-height:1.18;margin:13px 0;font-weight:850}
.hero p{font-size:15px;color:#d7e4ef;line-height:1.8;max-width:430px}.hero a{display:inline-block;background:#e8c77e;color:#173653;text-decoration:none;font-size:13px;font-weight:800;padding:11px 17px;border-radius:8px;margin-top:12px}

/* Responsive hero slideshow */
.hero-slider{position:relative;margin:24px 4%;height:clamp(390px,43vw,570px);min-height:390px;border-radius:20px;overflow:hidden;background:#102f4f;isolation:isolate;box-shadow:0 18px 45px #102c4c22}
.slides,.slide{position:absolute;inset:0}
.slide{display:flex;align-items:center;padding:clamp(28px,6vw,76px);background-image:var(--slide-bg);background-size:cover;background-position:center;opacity:0;visibility:hidden;transform:scale(1.035);transition:opacity .85s ease,transform 5.5s ease,visibility .85s;z-index:0}
.slide.active{opacity:1;visibility:visible;transform:scale(1);z-index:1}
.slide-content{position:relative;z-index:2;max-width:650px;color:#fff}
.slide .eyebrow{font-size:12px;letter-spacing:2.2px;color:#f5d58a;font-weight:800}
.slide h2{font-size:clamp(34px,5.2vw,62px);line-height:1.08;letter-spacing:-1.4px;margin:18px 0 15px;font-weight:850;text-shadow:0 3px 20px #071b2b55}
.slide p{font-size:clamp(15px,1.35vw,18px);line-height:1.8;color:#e4edf5;max-width:540px;margin:0}
.slide-cta{display:inline-flex;align-items:center;gap:18px;margin-top:27px;padding:14px 20px;border-radius:9px;background:#e8c77e;color:#173653;text-decoration:none;font-size:13px;font-weight:850;letter-spacing:.35px;box-shadow:0 8px 22px #071b2b30;transition:transform .2s,background .2s}
.slide-cta:hover{background:#f4d995;transform:translateY(-2px)}
.slide-number{position:absolute;right:34px;top:32px;color:#fff;font-size:20px;font-weight:800;letter-spacing:1px;z-index:3}
.slide-number i{font-style:normal;font-size:12px;color:#d5e0e9;font-weight:600}
.slider-arrow{position:absolute;z-index:5;top:50%;transform:translateY(-50%);width:46px;height:46px;border:1px solid #ffffff65;border-radius:50%;background:#0b29475c;color:white;font-size:29px;line-height:1;display:grid;place-items:center;backdrop-filter:blur(8px);transition:.2s}
.slider-arrow:hover{background:#e8c77e;color:#173653;border-color:#e8c77e}
.slider-arrow.prev{left:18px}.slider-arrow.next{right:18px}
.slider-bottom{position:absolute;z-index:6;left:clamp(28px,6vw,76px);right:clamp(28px,6vw,76px);bottom:25px;display:flex;align-items:center;gap:15px}
.slider-dots{display:flex;gap:8px;align-items:center}
.dot{width:9px;height:9px;border:0;border-radius:20px;padding:0;background:#ffffff80;transition:width .25s,background .25s}
.dot.active{width:30px;background:#e8c77e}
.slider-progress{height:3px;flex:1;background:#ffffff45;border-radius:9px;overflow:hidden}
.slider-progress span{display:block;height:100%;width:0;background:#e8c77e}
.slider-progress span.run{animation:slideProgress 5.5s linear forwards}
@keyframes slideProgress{from{width:0}to{width:100%}}
.slider-pause{border:1px solid #ffffff65;background:#0b29475c;color:#fff;border-radius:50%;width:31px;height:31px;font-size:13px;display:grid;place-items:center}
@media(prefers-reduced-motion:reduce){.slide,.slide-cta{transition:none}.slider-progress span.run{animation:none;width:100%}}

.section{margin:0 4% 25px;background:#fff;padding:20px;border-radius:12px}.section h3{font-size:19px;color:#173b5b;margin:0 0 8px}.section p{font-size:14px;color:#64748b;line-height:1.7;margin:0}
.hint{font-size:10px;color:#8292a3;padding:0 5% 14px;text-align:center}
@media(max-width:1024px){
  .navinner{padding:0 3%}
  .navbtn{padding:0 9px;font-size:14px}
  .megagrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
  .mega{padding:22px 4%}
}
@media(max-width:650px){
  body{font-size:16px}
  .topline{justify-content:center;text-align:center;font-size:12px;padding:9px 12px;line-height:1.6}
  .brandbar{padding:14px 16px;gap:11px}
  .crest{width:45px;height:45px;font-size:23px;flex:0 0 45px}
  .brandname{font-size:17px;line-height:1.3}
  .brandtag{font-size:10px;line-height:1.5}
  .navinner{min-height:60px;padding:0 16px}
  .navlinks,.searchbtn{display:none}
  .mobiletoggle{display:block;font-size:15px;font-weight:700;padding:12px 15px;min-height:44px}
  .mega{display:none!important}
  .mobmenu{padding:8px 14px 18px;max-height:calc(100vh - 120px);overflow-y:auto}
  .mobrow{padding:10px 5px;font-size:16px}
  .mobrow button{min-height:48px;font-size:16px;padding:5px 7px;line-height:1.4}
  .mobchildren{padding:5px 0 5px 12px}
  .mobchildren .mobrow{padding:7px 4px;font-size:15px}
  .mobchildren .mobrow button{font-size:15px;min-height:44px;font-weight:500}
  .hero-slider{height:clamp(470px,118vw,570px);min-height:470px;margin:16px 12px;border-radius:15px}
  .slide{align-items:flex-end;padding:35px 22px 86px;background-position:center}
  .slide .eyebrow{font-size:10px;letter-spacing:1.5px;line-height:1.6}
  .slide h2{font-size:clamp(29px,8vw,39px);line-height:1.12;letter-spacing:-.7px;margin:13px 0}
  .slide p{font-size:14px;line-height:1.7;max-width:100%}
  .slide-cta{font-size:11px;padding:13px 15px;margin-top:19px;gap:10px}
  .slide-number{top:19px;right:18px;font-size:16px}
  .slider-arrow{width:36px;height:36px;font-size:23px;top:43%}
  .slider-arrow.prev{left:10px}.slider-arrow.next{right:10px}
  .slider-bottom{left:22px;right:22px;bottom:18px;gap:10px}
  .slider-dots{gap:6px}.dot{width:7px;height:7px}.dot.active{width:23px}
  .slider-pause{width:29px;height:29px;flex:0 0 29px}
  .section{margin:0 12px 20px;padding:18px}
  .section h3{font-size:19px}
  .section p{font-size:14px;line-height:1.7}
  .hint{font-size:11px;padding:0 12px 16px}
}
@media(max-width:380px){
  .brandname{font-size:15px}
  .brandtag{font-size:9px}
  .hero-slider{height:490px;min-height:490px}
  .slide{padding-left:18px;padding-right:18px}
  .slide h2{font-size:27px}
  .slide p{font-size:13px}
  .slider-bottom{left:18px;right:18px}
  .mobiletoggle{font-size:14px;padding:10px 12px}
}

/* Berita terbaru + sambutan kepala madrasah */
.home-content{width:auto;max-width:none;margin:0 4%;padding:12px 0 70px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.7fr);gap:28px;align-items:start}
.content-panel{background:#fff;border:1px solid #e8edf3;border-radius:18px;padding:26px;box-shadow:0 12px 35px #173b5b0b}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:22px}
.section-kicker{display:block;color:#b1843d;font-size:10px;font-weight:850;letter-spacing:1.8px;text-transform:uppercase;margin-bottom:7px}
.section-heading h2{font-size:clamp(21px,2.3vw,27px);line-height:1.2;color:#173b5b;margin:0;font-weight:850}
.section-heading p{margin:7px 0 0;color:#718096;font-size:13px}
.see-all{white-space:nowrap;text-decoration:none;color:#a8792e;font-size:12px;font-weight:800;border-bottom:1px solid #d8ad5e;padding-bottom:4px}
.news-list{display:grid;grid-template-columns:1fr 1fr;gap:17px}
.news-card{overflow:hidden;border:1px solid #e9eef4;border-radius:13px;background:#fff;transition:transform .25s,box-shadow .25s}
.news-card:hover{transform:translateY(-4px);box-shadow:0 14px 28px #173b5b15}
.news-thumb{height:155px;position:relative;overflow:hidden;background:#e8eef5}
.news-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.news-card:hover .news-thumb img{transform:scale(1.06)}
.news-category{position:absolute;left:13px;bottom:12px;padding:6px 10px;border-radius:6px;background:#e8c77e;color:#173653;font-size:10px;font-weight:850;letter-spacing:.5px}
.news-body{padding:15px 16px 17px}
.news-meta{display:flex;align-items:center;gap:8px;color:#8492a3;font-size:12px;margin-bottom:10px}
.news-meta .bullet{width:4px;height:4px;border-radius:50%;background:#d8ad5e}
.news-body h3{font-size:17px;line-height:1.45;color:#173b5b;margin:0 0 9px;font-weight:800}
.news-body p{font-size:14px;line-height:1.75;color:#718096;margin:0 0 13px}
.read-more{font-size:11px;color:#a8792e;text-decoration:none;font-weight:850;letter-spacing:.4px}
.welcome-panel{position:relative;overflow:hidden;background:linear-gradient(145deg,#123653,#1b5279);color:#fff;border:0}
.welcome-panel:before{content:"";position:absolute;width:240px;height:240px;border:1px solid #ffffff19;border-radius:50%;right:-115px;top:-105px;box-shadow:0 0 0 25px #ffffff08,0 0 0 50px #ffffff06}
.welcome-panel .section-kicker{color:#f0cf88}
.welcome-panel .section-heading h2{color:#fff}
.principal-photo{width:100%;height:225px;object-fit:cover;object-position:center 28%;border-radius:12px;border:3px solid #ffffff40;box-shadow:0 12px 28px #071d3150;display:block;position:relative}
.principal-caption{margin:14px 0 18px;text-align:center}
.principal-caption strong{display:block;color:#fff;font-size:16px}
.principal-caption span{display:block;color:#c6d9e8;font-size:11px;margin-top:5px}
.quote-mark{font-family:Georgia,serif;color:#e8c77e;font-size:44px;line-height:.7;margin:4px 0 7px}
.principal-message{font-size:13px;line-height:1.9;color:#e1ebf3;margin:0;position:relative}
.principal-sign{margin-top:18px;padding-top:15px;border-top:1px solid #ffffff25;display:flex;align-items:center;justify-content:space-between;gap:10px}
.principal-sign strong{font-size:12px;color:#f3d58f}
.principal-sign a{font-size:11px;color:#fff;text-decoration:none;border:1px solid #ffffff55;border-radius:7px;padding:8px 11px}
@media(max-width:900px){.home-content{grid-template-columns:1fr;gap:20px}.welcome-panel{display:grid;grid-template-columns:minmax(180px,.75fr) 1.25fr;column-gap:20px}.welcome-panel .section-heading{grid-column:1/-1}.principal-photo{height:100%;min-height:235px;max-height:290px}.principal-caption{grid-column:1}.principal-message-wrap{grid-column:2;grid-row:2}.principal-caption{align-self:start}}
@media(max-width:600px){.home-content{margin-left:4%;margin-right:4%;padding:5px 0 45px;gap:17px}.content-panel{padding:18px 15px;border-radius:14px}.section-heading{align-items:flex-start;margin-bottom:16px}.section-heading h2{font-size:21px}.section-heading p{font-size:12px}.see-all{font-size:10px;margin-top:5px}.news-list{grid-template-columns:1fr;gap:13px}.news-card{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:125px}.news-thumb{height:100%;min-height:125px}.news-category{left:7px;bottom:7px;font-size:8px;padding:4px 6px}.news-body{padding:11px 10px}.news-meta{font-size:9px;gap:5px;margin-bottom:6px}.news-body h3{font-size:13px;line-height:1.4;margin-bottom:5px}.news-body p{font-size:11px;line-height:1.55;margin-bottom:7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.read-more{font-size:9px}.welcome-panel{display:block}.principal-photo{height:220px;min-height:0;max-height:none;width:min(100%,260px);margin:0 auto}.principal-caption{margin:12px 0 14px}.principal-message{font-size:12px}.principal-sign{margin-top:14px}}


/* Statistik pembaca di atas, label bagikan di baris kedua, ikon sosial satu baris */
.news-engagement{display:flex;align-items:flex-start;flex-direction:column;gap:5px;margin:2px 0 12px}
.news-views{display:inline-flex;align-items:center;gap:6px;color:#748397;font-size:11px;font-weight:650}
.news-views svg{width:15px;height:15px;stroke:#8292a5;fill:none;stroke-width:1.8}
.news-share{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;width:100%;min-width:0}
.news-share-label{flex:0 0 100%;font-size:10px;color:#8a96a6;font-weight:700;margin:0 0 1px}
.news-share{display:flex;flex-wrap:wrap}
.news-share-label{width:100%}
.news-share .share-btn{flex-shrink:0}
.news-share{row-gap:2px}
.share-btn{width:22px;height:22px;flex:0 0 22px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:6px;color:#fff;text-decoration:none;cursor:pointer;transition:transform .2s,filter .2s;padding:0}
.share-btn:hover{transform:translateY(-2px);filter:brightness(1.08)}
.share-btn svg{width:12px;height:12px;display:block;fill:currentColor}
.share-fb{background:#4267a9}.share-x{background:#171717}.share-wa{background:#20c86b}.share-tg{background:#299bd6}.share-ig{background:linear-gradient(135deg,#7654c8,#d9468b 55%,#f3a33b)}.share-tt{background:#202329}.share-copy{background:#687789}
@media(max-width:600px){.news-engagement{gap:5px;margin-bottom:8px}.news-views{font-size:10px}.news-share{gap:3px;flex-wrap:wrap}.share-btn{width:21px;height:21px;flex-basis:21px}.share-btn svg{width:11px;height:11px}.news-share-label{font-size:9px}}


/* Tata letak berita: tiga kolom desktop, foto landscape 9:6 */
.news-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.news-card{display:flex;flex-direction:column;min-width:0}
.news-thumb{
  width:100%;
  height:auto;
  aspect-ratio:9 / 6;
  flex:0 0 auto;
}
.news-thumb img{width:100%;height:100%;object-fit:cover;object-position:center}
.news-body{display:flex;flex-direction:column;flex:1;padding:16px}
.news-body h3{font-size:16px;line-height:1.45}
.news-body p{font-size:13px;line-height:1.7}
.news-engagement{margin-top:auto;padding-top:3px}
@media(max-width:1050px){
  .news-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
}
@media(max-width:600px){
  .news-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .news-card{display:flex;min-height:0}
  .news-thumb{height:auto;min-height:0;aspect-ratio:6 / 9}
  .news-body{padding:10px}
  .news-body h3{font-size:12px;line-height:1.4}
  .news-body p{font-size:10px;line-height:1.5}
  .news-meta{font-size:9px;flex-wrap:wrap}
  .news-engagement{align-items:flex-start;flex-direction:column;gap:6px}
  .news-share{gap:4px}
}


/* Slideshow Guru dan Karyawan */
.staff-section{margin:0 4% 70px;padding:26px 26px 24px;background:#fff;border:1px solid #e5ebf2;border-radius:18px;box-shadow:0 12px 35px #173b5b0b;overflow:hidden}
.staff-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:20px}
.staff-head .section-heading{margin:0}
.staff-controls{display:flex;gap:8px;flex-shrink:0}
.staff-arrow{width:36px;height:36px;border-radius:50%;border:1px solid #dce5ee;background:#fff;color:#173b5b;font-size:21px;line-height:1;cursor:pointer;transition:.2s}
.staff-arrow:hover{background:#173b5b;color:#fff;border-color:#173b5b;transform:translateY(-2px)}
.staff-track-wrap{overflow:hidden}
.staff-track{display:flex;gap:15px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;padding:2px 2px 12px;scrollbar-width:thin;scrollbar-color:#d6e0ea transparent}
.staff-track::-webkit-scrollbar{height:6px}
.staff-track::-webkit-scrollbar-thumb{background:#d6e0ea;border-radius:10px}
.staff-card{flex:0 0 calc((100% - 75px)/6);min-width:135px;scroll-snap-align:start;text-align:center;padding:14px 11px 13px;border:1px solid #e8edf3;border-radius:13px;background:linear-gradient(180deg,#fff,#f9fbfd);transition:transform .22s,box-shadow .22s,border-color .22s}
.staff-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #173b5b13;border-color:#d5b36c}
.staff-avatar{width:86px;height:86px;border-radius:50%;object-fit:cover;display:block;margin:0 auto 11px;border:3px solid #fff;box-shadow:0 0 0 1px #e1e8ef,0 6px 15px #173b5b20;background:#eaf0f5}
.staff-name{font-size:13px;line-height:1.35;color:#173b5b;font-weight:850;margin:0 0 5px}
.staff-role{font-size:10px;line-height:1.45;color:#8190a1;margin:0}
.staff-tag{display:inline-block;margin-top:9px;padding:4px 8px;border-radius:20px;background:#f5eddb;color:#946c2d;font-size:9px;font-weight:800;letter-spacing:.3px}
.staff-dots{display:flex;justify-content:center;gap:6px;margin-top:12px}
.staff-dot{width:6px;height:6px;border-radius:50%;background:#d7e0e9}
.staff-dot.active{width:19px;border-radius:10px;background:#d8ad5e}
@media(max-width:1100px){.staff-card{flex-basis:calc((100% - 45px)/4)}}
@media(max-width:700px){.staff-section{margin:0 4% 45px;padding:19px 14px}.staff-head{align-items:center}.staff-card{flex-basis:calc((100% - 30px)/3);min-width:112px;padding:12px 8px}.staff-avatar{width:70px;height:70px}.staff-name{font-size:11px}.staff-role{font-size:9px}.staff-arrow{width:32px;height:32px}}
@media(max-width:420px){.staff-card{flex-basis:calc((100% - 15px)/2);min-width:120px}}


/* Footer identitas desain website */
.site-footer{margin-top:30px;background:linear-gradient(120deg,#0d2943 0%,#123c5d 55%,#174b70 100%);position:relative;overflow:hidden;color:#dce8f2}
.site-footer:before,.site-footer:after{content:"";position:absolute;width:240px;height:240px;border:1px solid #ffffff12;border-radius:50%;top:-175px}
.site-footer:before{left:8%;box-shadow:0 0 0 24px #ffffff06,0 0 0 48px #ffffff04}
.site-footer:after{right:8%;box-shadow:0 0 0 24px #ffffff06,0 0 0 48px #ffffff04}
.footer-inner{min-height:92px;max-width:1320px;margin:0 auto;padding:22px 4%;display:flex;align-items:center;justify-content:center;gap:22px;position:relative;z-index:1}
.footer-inner p{margin:0;text-align:center;font-size:10px;line-height:1.7;font-weight:800;letter-spacing:2px;color:#e7c77e}
.footer-inner p i{font-style:normal;color:#91a9bc;padding:0 5px}
.footer-line{height:1px;width:min(13vw,150px);background:linear-gradient(90deg,transparent,#d9b66d99)}
.footer-line:last-child{transform:rotate(180deg)}
@media(max-width:600px){.site-footer{margin-top:18px}.footer-inner{min-height:78px;gap:10px;padding:18px 4%}.footer-inner p{font-size:8px;letter-spacing:1px}.footer-line{width:22px;flex:0 0 22px}}


/* Struktur halaman: footer selalu berada di bagian paling bawah */
html{min-height:100%;height:100%}
body{min-height:100vh;display:flex;flex-direction:column}
main{flex:1 0 auto;width:100%}
.site-footer{flex-shrink:0;margin-top:30px}


/* Slideshow prestasi siswa - kartu mini */
.achievement-section{margin:0 4% 30px;padding:24px 26px 20px;background:#fff;border:1px solid #e5ebf2;border-radius:18px;box-shadow:0 12px 35px #173b5b0b;overflow:hidden}
.achievement-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:17px}
.achievement-head h2{margin:4px 0 5px;color:#173b5b;font-size:24px;font-weight:850}
.achievement-head p{margin:0;color:#718096;font-size:13px}
.achievement-controls{display:flex;gap:8px;flex-shrink:0}
.achievement-arrow{width:35px;height:35px;border-radius:50%;border:1px solid #dce5ee;background:#fff;color:#173b5b;font-size:21px;cursor:pointer;transition:.2s}
.achievement-arrow:hover{background:#173b5b;color:#fff;border-color:#173b5b;transform:translateY(-2px)}
.achievement-track{display:flex;gap:13px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;padding:2px 2px 11px;scrollbar-width:thin;scrollbar-color:#d6e0ea transparent}
.achievement-track::-webkit-scrollbar{height:6px}
.achievement-track::-webkit-scrollbar-thumb{background:#d6e0ea;border-radius:10px}
.achievement-card{flex:0 0 190px;min-width:170px;scroll-snap-align:start;border:1px solid #e7edf3;border-radius:13px;overflow:hidden;background:#fff;transition:transform .22s,box-shadow .22s,border-color .22s}
.achievement-card:hover{transform:translateY(-4px);box-shadow:0 12px 24px #173b5b13;border-color:#d8b66e}
.achievement-photo{width:100%;height:112px;display:block;object-fit:cover;background:#eaf0f5}
.achievement-info{padding:11px 12px 12px}
.achievement-category{display:inline-block;padding:4px 7px;border-radius:20px;background:#f6edd9;color:#9b702c;font-size:9px;font-weight:850;letter-spacing:.35px;margin-bottom:7px}
.achievement-title{font-size:12px;line-height:1.45;font-weight:850;color:#173b5b;margin:0 0 6px}
.achievement-detail{font-size:10px;line-height:1.5;color:#8290a0;margin:0}
.achievement-year{display:flex;align-items:center;gap:5px;font-size:9px;font-weight:750;color:#b18135;margin-top:8px}
.achievement-year svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:1.8}
@media(max-width:700px){.achievement-section{margin:0 4% 22px;padding:19px 14px 16px}.achievement-head h2{font-size:20px}.achievement-head p{font-size:11px}.achievement-card{flex-basis:165px;min-width:155px}.achievement-photo{height:100px}.achievement-arrow{width:32px;height:32px}}


/* Dua kartu showcase: album foto dan video madrasah */
.media-showcase{margin:0 4% 30px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.media-card{min-width:0;background:#fff;border:1px solid #e5ebf2;border-radius:18px;overflow:hidden;box-shadow:0 12px 35px #173b5b0b}
.media-card-head{padding:20px 21px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.media-card-kicker{font-size:9px;font-weight:850;letter-spacing:1.5px;color:#b18135;text-transform:uppercase;margin:0 0 5px}
.media-card-title{font-size:20px;line-height:1.2;font-weight:850;color:#173b5b;margin:0}
.media-card-subtitle{font-size:11px;color:#8290a0;margin:6px 0 0}
.media-arrows{display:flex;gap:6px;flex-shrink:0}
.media-arrow{width:31px;height:31px;border-radius:50%;border:1px solid #dce5ee;background:#fff;color:#173b5b;font-size:18px;cursor:pointer}
.media-arrow:hover{background:#173b5b;color:#fff}
.media-slider{position:relative;overflow:hidden;margin:0 14px 14px;border-radius:12px;background:#eaf0f5}
.media-slides{display:flex;transition:transform .45s ease}
.media-slide{flex:0 0 100%;min-width:100%;position:relative}
.media-image{width:100%;height:190px;display:block;object-fit:cover;background:#e7edf3}
.media-slide-caption{position:absolute;left:0;right:0;bottom:0;padding:28px 15px 13px;color:#fff;background:linear-gradient(transparent,#071c31d9)}
.media-slide-caption strong{display:block;font-size:13px;line-height:1.35;font-weight:850}
.media-slide-caption span{display:block;font-size:10px;opacity:.88;margin-top:4px}
.media-card-foot{display:flex;align-items:center;justify-content:space-between;padding:0 17px 15px;gap:12px}
.media-dots{display:flex;gap:6px;align-items:center}
.media-dot{width:6px;height:6px;border:0;border-radius:10px;background:#d7e0e9;padding:0;cursor:pointer}
.media-dot.active{width:19px;background:#d8ad5e}
.media-link{font-size:10px;font-weight:850;color:#a97628;text-decoration:none;letter-spacing:.35px}
.media-link:hover{text-decoration:underline}
.video-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#ffffffed;color:#173b5b;box-shadow:0 5px 20px #071c3140;font-size:18px;padding-left:3px}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}.media-showcase{grid-template-columns:1fr;gap:15px;margin-bottom:22px}.media-card-head{padding:17px 16px 12px}.media-card-title{font-size:18px}.media-image{height:180px}.media-slider{margin:0 11px 12px}}


/* Setiap card menampilkan dua konten sekaligus, bukan bergantian satu per satu */
.media-slider{overflow:visible;background:transparent;margin:0 14px 14px}
.media-slides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;transform:none!important;transition:none}
.media-slide{min-width:0;width:auto;flex:initial;overflow:hidden;border-radius:10px;background:#eaf0f5;aspect-ratio:16 / 10}
.media-image{height:100%;min-height:110px;object-fit:cover}
.media-slide-caption{padding:24px 10px 10px}
.media-slide-caption strong{font-size:11px}
.media-slide-caption span{font-size:9px}
.media-card-foot{padding-top:0}
.media-card .media-arrows,.media-card .media-dots{display:none}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}
  .media-slider{margin:0 11px 12px}
  .media-slides{gap:8px}
  .media-slide{aspect-ratio:4 / 3}
  .media-image{min-height:95px}
  .media-slide-caption{padding:22px 8px 8px}
  .media-slide-caption strong{font-size:10px}
  .media-slide-caption span{font-size:8px}
}
@media(max-width:390px){
  .media-slides{grid-template-columns:1fr}
  .media-slide{aspect-ratio:16 / 9}
}


/* Kalender pendidikan di bawah sambutan kepala madrasah */
.education-calendar{margin-top:22px;padding:16px 15px 14px;background:#fff;border:1px solid #e4ebf2;border-radius:14px;color:#173b5b;box-shadow:0 8px 22px #071c310b}
.calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}
.calendar-head h3{font-size:16px;font-weight:850;color:#173b5b;margin:3px 0 0}
.calendar-head .section-kicker{font-size:8px}
.calendar-nav{display:flex;gap:5px}
.calendar-nav button{width:27px;height:27px;border:1px solid #e0e7ef;border-radius:50%;background:#fff;color:#244b6a;font-size:17px;line-height:1;cursor:pointer}
.calendar-nav button:hover{background:#173b5b;color:#fff}
.calendar-month{text-align:center;font-size:12px;font-weight:850;color:#a9792e;margin:0 0 9px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.calendar-weekdays span{font-size:9px;font-weight:800;color:#8b98a7;padding:5px 0}
.calendar-days button,.calendar-days span{min-width:0;height:29px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:#42566b;font-size:10px}
.calendar-days button{cursor:pointer}
.calendar-days button:hover{background:#edf3f8}
.calendar-days button.today{background:#d9b66e;color:#173b5b;font-weight:900;box-shadow:0 3px 8px #d9b66e55}
.calendar-days button.selected{outline:2px solid #173b5b;outline-offset:1px}
.calendar-legend{display:flex;align-items:center;justify-content:flex-end;gap:6px;color:#8996a4;font-size:9px;margin-top:7px}
.calendar-legend span{width:8px;height:8px;border-radius:3px;background:#d9b66e}
.agenda-notes{border-top:1px solid #edf1f5;margin-top:13px;padding-top:12px}
.agenda-notes h4{font-size:11px;font-weight:850;color:#173b5b;margin:0 0 9px}
.agenda-notes h4 span{color:#bd8e3e;margin-right:4px}
.agenda-notes ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.agenda-notes li{border-left:3px solid #d9b66e;padding:2px 0 2px 9px;display:grid;gap:3px}
.agenda-notes li b{font-size:10px;color:#435b70;display:flex;align-items:center;justify-content:space-between;gap:5px;flex-wrap:wrap}
.agenda-notes li small{font-size:9px;line-height:1.45;color:#8a97a5}
.agenda-date{font-size:9px;font-weight:850;white-space:nowrap;padding:3px 6px;border-radius:6px;background:#fff2d5;color:#93651c}
.agenda-assessment{border-color:#5798d2!important}.agenda-assessment .agenda-date{background:#e4f1ff;color:#28679f}
.agenda-holiday{border-color:#49a88b!important}.agenda-holiday .agenda-date{background:#e2f6ef;color:#23795f}
.calendar-days button.agenda-semester-day{background:#fff0c9;color:#95651a;font-weight:900;box-shadow:inset 0 0 0 1px #e6bf69}
.calendar-days button.agenda-assessment-day{background:#e3f0ff;color:#28679f;font-weight:900;box-shadow:inset 0 0 0 1px #9bc4ec}
.calendar-days button.agenda-holiday-day{background:#e0f5ed;color:#23795f;font-weight:900;box-shadow:inset 0 0 0 1px #91d1b8}
.calendar-legend{flex-wrap:wrap}
.calendar-legend .legend-chip{width:7px;height:7px;border-radius:2px;display:inline-block;margin-left:6px}
.calendar-legend .legend-semester{background:#d9b66e}.calendar-legend .legend-assessment{background:#5798d2}.calendar-legend .legend-holiday{background:#49a88b}
.agenda-disclaimer{font-size:8px;line-height:1.45;color:#9aa4af;margin:10px 0 0;font-style:italic}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}.education-calendar{margin-top:17px;padding:14px 12px}.calendar-days button,.calendar-days span{height:27px}}


/* Sambutan kepala dan kalender sebagai dua card terpisah */
.right-sidebar{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-self:start;gap:16px;min-width:0}
.welcome-panel{align-self:stretch;width:100%}
.calendar-row{width:100%;margin:0;display:block}
.calendar-row .education-calendar{width:100%;max-width:none;margin:0;align-self:stretch}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}
  .right-sidebar{grid-column:1;grid-row:auto;gap:14px}
  .calendar-row{width:100%;margin:0}
  .calendar-row .education-calendar{width:100%;max-width:none}
}


.article-comments{margin-top:30px;padding-top:22px;border-top:1px solid #e9eef3}
.article-comments h3{font-size:20px;color:#173b5b;margin:0 0 5px}
.comments-subtitle{font-size:12px;color:#8a98a7;margin-bottom:17px}
.comment-compose{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}
.comment-avatar{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#0d5775,#1a8a9d);color:#fff;font-weight:850;font-size:13px}
.comment-compose-fields{flex:1;min-width:0}
.comment-compose input,.comment-compose textarea{width:100%;border:1px solid #e0e7ee;border-radius:13px;background:#f5f7fa;padding:11px 13px;font:inherit;font-size:13px;color:#31485d;outline:none}
.comment-compose input{margin-bottom:8px}
.comment-compose textarea{min-height:72px;resize:vertical}
.comment-compose input:focus,.comment-compose textarea:focus{border-color:#7aa9c4;background:#fff;box-shadow:0 0 0 3px #e8f2f8}
.comment-submit{border:0;border-radius:9px;background:#17618a;color:#fff;font-size:12px;font-weight:800;padding:9px 15px;margin-top:8px;cursor:pointer}
.comment-submit:disabled{opacity:.45;cursor:not-allowed}
.comment-list{display:grid;gap:15px}
.comment-item{display:flex;gap:10px;align-items:flex-start}
.comment-main{min-width:0;flex:1}
.comment-bubble{display:inline-block;max-width:100%;background:#f0f2f5;border-radius:15px;padding:10px 13px}
.comment-author{font-size:12px;font-weight:850;color:#263e53;margin-bottom:3px}
.comment-text{font-size:13px;line-height:1.55;color:#44586b;overflow-wrap:anywhere}
.comment-actions{display:flex;gap:13px;align-items:center;padding:5px 10px;font-size:11px;color:#8794a1}
.comment-action{border:0;background:none;padding:0;color:#64798b;font-weight:750;cursor:pointer;font-size:11px}
.comment-action:hover{color:#17618a}
.comment-time{font-size:10px;color:#a0aab4}
.comment-reply{margin:5px 0 0 9px;padding-left:12px;border-left:2px solid #e2e9ef}
.comment-replies{margin:7px 0 0 8px;padding-left:12px;border-left:2px solid #e2e9ef}.reply-compose{display:grid;gap:7px;margin:7px 0 8px 0;max-width:560px}.reply-compose[hidden]{display:none!important}.reply-compose input,.reply-compose textarea{width:100%;border:1px solid #dce5ef;border-radius:10px;padding:9px 11px;font:inherit;font-size:12px;background:#fff}.comment-action.liked{color:#e11d48}.comment-empty{font-size:12px;color:#8a98a7;padding:14px;text-align:center;background:#f7f9fb;border-radius:12px}
@media(max-width:600px){.article-comments{margin-top:24px}.comment-compose{gap:8px}.comment-avatar{width:34px;height:34px;flex-basis:34px}}


/* Running text kutipan inspiratif tepat di bawah banner utama */
.quote-ticker{margin:-7px 4% 28px;min-height:54px;display:flex;align-items:center;gap:0;overflow:hidden;border:1px solid #e8d8ad;border-radius:12px;background:linear-gradient(100deg,#fffdf7,#fff8e8);box-shadow:0 8px 22px rgba(26,54,78,.06);color:#173b56}
.quote-ticker-label{position:relative;z-index:2;align-self:stretch;display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:0 17px;background:#0a3b59;color:#f4d486;font-size:11px;font-weight:850;letter-spacing:1.1px;text-transform:uppercase}
.quote-ticker-label svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}
.quote-ticker-window{overflow:hidden;flex:1;min-width:0}
.quote-ticker-track{display:flex;align-items:center;width:max-content;white-space:nowrap;animation:quoteMarquee 38s linear infinite}
.quote-ticker:hover .quote-ticker-track{animation-play-state:paused}
.quote-ticker-item{display:inline-flex;align-items:center;gap:13px;padding:0 28px;font-size:13px;font-weight:650;color:#36546b}
.quote-ticker-item strong{color:#a77b32;font-size:17px}
.quote-ticker-separator{color:#c89b4d;font-size:17px}
@keyframes quoteMarquee{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media(max-width:600px){.quote-ticker{margin: -8px 4% 22px;min-height:49px;border-radius:10px}.quote-ticker-label{padding:0 11px;font-size:9px;letter-spacing:.6px;gap:5px}.quote-ticker-label svg{width:15px;height:15px}.quote-ticker-item{font-size:11px;padding:0 18px;gap:8px}}
@media(prefers-reduced-motion:reduce){.quote-ticker-track{animation:none;white-space:normal;width:auto;flex-wrap:wrap;padding:9px 0}.quote-ticker-item:nth-child(n+4){display:none}}


/* Perbaikan navigasi: seluruh area teks/tombol menjadi target sentuh */
.navbtn{touch-action:manipulation;-webkit-tap-highlight-color:transparent;cursor:pointer}
.navbtn .arr{pointer-events:none}
.navbtn:focus-visible,.mobrow>button:focus-visible{outline:3px solid #e8c77e;outline-offset:2px}
.mobrow{padding:0;cursor:pointer;touch-action:manipulation}
.mobrow>button{width:100%;min-height:58px;padding:14px 12px;gap:14px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.mobrow>button>span:first-child{display:flex;align-items:center;gap:13px;flex:1;pointer-events:none}
.mobrow>button>span:last-child{min-width:26px;min-height:26px;display:grid;place-items:center;border-radius:7px;background:#ffffff12;font-size:21px;pointer-events:none}
.mobchildren{display:none;padding:4px 0 9px 15px}
.mobchildren.show{display:block;animation:mobSubIn .18s ease-out}
.mobchildren .mobrow{border-bottom:0;border-left:1px solid #ffffff35;margin-left:13px}
.mobchildren .mobrow>button{min-height:44px;padding:9px 12px;font-size:14px;font-weight:500}
@keyframes mobSubIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:800px){
 .navlinks{display:none}
 .mobiletoggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;cursor:pointer;touch-action:manipulation}
 .navinner{justify-content:flex-end}
 .mobmenu.show{display:block}
 .mobmenu{max-height:calc(100dvh - 130px);overflow-y:auto;overscroll-behavior:contain}
 .mega{display:none!important}
}


/* Posisi tombol menu di sisi kiri pada smartphone */
@media(max-width:800px){
  .navinner{justify-content:flex-start!important}
  .mobiletoggle{margin-right:auto!important;margin-left:0!important}
}




/* Headline slider uses the latest five published news items */
.news-headline-slider .slide h2{max-width:760px}
.news-headline-slider .slide p{max-width:650px}
.news-headline-slider .slide-number{letter-spacing:1px}
@media(max-width:650px){
 .news-headline-slider .slide h2{font-size:clamp(25px,7.4vw,37px);overflow-wrap:anywhere}
 .news-headline-slider .slide p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
}


/* Penanda warna untuk dua agenda tambahan */
.agenda-national{border-color:#d97757!important}
.agenda-national .agenda-date{background:#fff0e9;color:#b64e2c}
.agenda-meeting{border-color:#8b79c7!important}
.agenda-meeting .agenda-date{background:#f0edff;color:#6651a8}
.calendar-days button.agenda-national-day{background:#ffede5;color:#b64e2c;font-weight:900;box-shadow:inset 0 0 0 1px #edb39e}
.calendar-days button.agenda-meeting-day{background:#f0edff;color:#6651a8;font-weight:900;box-shadow:inset 0 0 0 1px #c3b8ed}


/* Memperbesar keterbacaan daftar catatan agenda kalender */
.agenda-notes{margin-top:15px;padding-top:14px}
.agenda-notes h4{font-size:14px!important;line-height:1.4;margin-bottom:12px}
.agenda-notes ul{gap:11px}
.agenda-notes li{padding:4px 0 4px 11px;gap:5px;border-left-width:3px}
.agenda-notes li b{font-size:13px!important;line-height:1.45;gap:8px}
.agenda-notes li small{font-size:11px!important;line-height:1.55}
.agenda-date{font-size:11px!important;padding:4px 8px;border-radius:7px}
.agenda-disclaimer{font-size:9px;line-height:1.5}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}
  .agenda-notes h4{font-size:15px!important}
  .agenda-notes li b{font-size:13px!important}
  .agenda-notes li small{font-size:11px!important}
  .agenda-date{font-size:11px!important}
}


/* Jam realtime dan pencarian navbar */
.topline-right{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.current-time-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #ffffff50;background:#ffffff12;color:#fff;border-radius:999px;padding:7px 12px;box-shadow:0 3px 10px #001b3022}
.current-time-btn strong{font-size:14px;font-variant-numeric:tabular-nums;letter-spacing:.5px}
.current-time-btn small{font-size:10px;color:#f3d58d;font-weight:800}
.clock-dot{font-size:8px;color:#f2c75f;animation:clockpulse 1.5s infinite}
@keyframes clockpulse{50%{opacity:.35}}
.search-panel{position:absolute;top:100%;right:4%;width:min(520px,92vw);background:#fff;border:1px solid #e5ebf2;border-radius:0 0 16px 16px;box-shadow:0 18px 40px #102c4c30;padding:14px;z-index:80}
.search-panel[hidden]{display:none}
.search-panel-inner{display:flex;align-items:center;gap:9px;border:1px solid #d9e3ed;border-radius:10px;padding:9px 11px}
.search-symbol{font-size:23px;color:#8b9aab}
.search-panel-inner input{width:100%;min-width:0;border:0;outline:0;font:inherit;font-size:14px;color:#173b5b;background:transparent}
.search-panel-inner button{border:0;background:#edf3f8;color:#52677c;border-radius:7px;width:30px;height:30px}
.search-results{max-height:310px;overflow:auto;padding-top:8px}
.search-results>p{font-size:12px;color:#8391a0;margin:10px 4px}
.search-result{display:block;text-decoration:none;color:#173b5b;padding:10px;border-radius:9px;border-bottom:1px solid #edf1f5}
.search-result:hover{background:#f1f6fb}
.search-result strong{display:block;font-size:13px;line-height:1.4}
.search-result small{display:block;font-size:10px;color:#8391a0;margin-top:4px}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}
 .topline{align-items:flex-start}
 .topline-right{width:100%;justify-content:flex-start;gap:10px}
 .current-time-btn{padding:6px 10px}
 .search-panel{left:3%;right:3%;width:auto}
}


.news-card.search-highlight{outline:3px solid #e6bf69;outline-offset:3px;transition:outline .2s}

/* Footer card tiga kolom terinspirasi referensi */
.site-footer{margin-top:30px;padding:0 4% 22px;background:transparent;position:relative;overflow:visible;color:#eaf2fb}
.site-footer:before,.site-footer:after{display:none}
.footer-card{max-width:1320px;margin:0 auto;padding:20px 16px 0;border:1px solid #ffffff32;border-radius:17px;background:linear-gradient(115deg,#1b3c70 0%,#244c80 55%,#1d4679 100%);box-shadow:0 12px 32px #102b4c1c;position:relative;overflow:hidden}
.footer-card:before{content:"";position:absolute;width:250px;height:250px;border:1px solid #ffffff0c;border-radius:50%;right:-100px;top:-170px;box-shadow:0 0 0 25px #ffffff06,0 0 0 50px #ffffff04;pointer-events:none}
.footer-columns{display:grid;grid-template-columns:1.25fr 1fr .8fr;gap:34px;padding:0 0 18px;position:relative;z-index:1}
.footer-brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:16px;letter-spacing:-.3px}
.footer-crest{width:34px;height:34px;display:grid;place-items:center;background:#fff;border-radius:9px;box-shadow:0 3px 10px #061a3444;flex-shrink:0}
.footer-crest svg{width:27px;height:27px}
.footer-description{font-size:13px;line-height:1.8;color:#e1eaf5;margin:10px 0 0;max-width:370px}
.footer-columns h3{font-size:14px;color:#fff;margin:1px 0 11px;font-weight:850}
.footer-contact{display:flex;flex-direction:column;gap:9px}
.footer-contact a{display:flex;align-items:flex-start;gap:10px;color:#d8e5f4;text-decoration:none;font-size:12px;line-height:1.5}
.footer-contact a:hover{color:#f4d17b}
.footer-contact-icon{color:#f2c45d;font-size:16px;line-height:1;min-width:13px;text-align:center}
.footer-social-links{display:flex;gap:8px;flex-wrap:wrap}
.footer-social-links a{width:36px;height:36px;border:1px solid #ffffff40;border-radius:11px;background:#ffffff14;display:grid;place-items:center;color:#fff;transition:.2s}
.footer-social-links a:hover{background:#f0c76b;color:#17395f;transform:translateY(-3px)}
.footer-social-links svg{width:17px;height:17px;fill:currentColor}
.footer-social-links a:nth-child(2) svg{fill:none}
.footer-bottom{border-top:1px solid #ffffff2b;min-height:42px;padding:11px 0;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#c4d3e5;font-size:10px;position:relative;z-index:1}
.footer-bottom i{font-style:normal;color:#f2ca70;padding:0 3px}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}.site-footer{padding:0 3% 16px}.footer-card{padding:18px 15px 0}.footer-columns{grid-template-columns:1fr 1fr;gap:22px 18px}.footer-about{grid-column:1/-1}.footer-description{max-width:100%}}
@media(max-width:480px){.footer-columns{grid-template-columns:1fr;gap:18px}.footer-about{grid-column:auto}.footer-brand{font-size:14px}.footer-description{font-size:12px}.footer-columns h3{margin-bottom:8px}.footer-bottom{align-items:flex-start;flex-direction:column;gap:6px;font-size:9px}}


/* Card informasi tambahan mengikuti lebar area konten; footer lama tetap dipertahankan */
.footer-contact-card{display:block;width:92%;max-width:1320px;margin:28px auto 0;padding:0;color:#eaf2fb}
.footer-contact-card .footer-card{width:100%;max-width:none;margin:0;padding:20px 22px 0;border-radius:17px}
.site-footer{margin-top:0}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}.footer-contact-card{width:94%;margin-top:22px}.footer-contact-card .footer-card{padding:17px 15px 0}}


/* Final alignment: card spans the same 92% content width as the sections above */
.footer-contact-card{
  display:block;
  width:92%;
  max-width:none;
  box-sizing:border-box;
  margin:28px auto 0;
  padding:0;
  color:#eef5ff;
}
.footer-contact-card .footer-card{
  width:100%;
  max-width:none;
  box-sizing:border-box;
  margin:0;
  padding:22px 22px 0;
  border:1px solid rgba(255,255,255,.24);
  border-radius:18px;
  background:linear-gradient(115deg,#173d70 0%,#214f86 52%,#173f73 100%);
  box-shadow:0 14px 34px rgba(14,43,78,.18);
}
.footer-contact-card .footer-card:before{
  border-color:rgba(255,255,255,.10);
  box-shadow:0 0 0 25px rgba(255,255,255,.045),0 0 0 50px rgba(255,255,255,.025);
}
.footer-contact-card .footer-brand,
.footer-contact-card .footer-columns h3{color:#fff}
.footer-contact-card .footer-description,
.footer-contact-card .footer-contact a{color:#e2edfa}
.footer-contact-card .footer-contact-icon{color:#ffd16b}
.footer-contact-card .footer-social-links a{
  color:#fff;
  border-color:rgba(255,255,255,.34);
  background:rgba(255,255,255,.13);
}
.footer-contact-card .footer-bottom{
  border-top-color:rgba(255,255,255,.25);
  color:#d4e2f3;
}
.site-footer{margin-top:0}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}
  .footer-contact-card{width:92%;margin-top:22px}
  .footer-contact-card .footer-card{padding:18px 15px 0}
}


/* Scroll reveal: kartu muncul bertahap dengan efek split-shape */
.scroll-reveal{
  opacity:0;
  transform:translate3d(0,34px,0) scale(.975);
  clip-path:inset(0 0 12% 0 round 16px);
  transition:opacity .75s cubic-bezier(.2,.7,.2,1),
             transform .8s cubic-bezier(.2,.7,.2,1),
             clip-path .85s cubic-bezier(.2,.7,.2,1);
  transition-delay:var(--reveal-delay,0ms);
  will-change:opacity,transform,clip-path;
}
.scroll-reveal.is-visible{
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  clip-path:inset(0 0 0 0 round 13px);
}
/* Aksen bidang diagonal yang menyapu kartu saat masuk viewport */
.scroll-reveal{position:relative;isolation:isolate}
.scroll-reveal::after{
  content:"";
  position:absolute;
  z-index:5;
  inset:0;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(118deg,transparent 0 43%,rgba(255,255,255,.30) 49%,rgba(244,202,112,.16) 52%,transparent 60% 100%);
  transform:translateX(-115%);
}
.scroll-reveal.is-visible::after{
  opacity:1;
  animation:reveal-sweep .95s .08s ease-out both;
}
@keyframes reveal-sweep{
  0%{transform:translateX(-115%);opacity:0}
  18%{opacity:1}
  100%{transform:translateX(115%);opacity:0}
}
.scroll-reveal:nth-child(3n+2){--reveal-delay:90ms}
.scroll-reveal:nth-child(3n){--reveal-delay:170ms}
@media(prefers-reduced-motion:reduce){
 .scroll-reveal,.scroll-reveal.is-visible{opacity:1;transform:none;clip-path:none;transition:none}
 .scroll-reveal::after{display:none}
}

.news-thumb-placeholder,.principal-photo-placeholder,.achievement-photo{background:linear-gradient(135deg,#e7edf4,#cbd8e5);display:block}
.comment-replies-flat{margin:10px 0 0 28px;padding-left:16px;border-left:2px solid #e2eaf2}.comment-replies-flat .comment-thread{margin:10px 0 0!important}.comment-reply-flat .comment-item{margin-top:0}@media(max-width:600px){.comment-replies-flat{margin-left:12px;padding-left:10px}}

/* Halaman statis memakai master frontend yang sama dengan beranda. */
.static-page{width:92%;max-width:1320px;margin:28px auto 36px;min-width:0}
.static-page article{width:100%;box-sizing:border-box;padding:clamp(24px,3.2vw,42px);background:#fff;border:1px solid #e3eaf2;border-radius:18px;box-shadow:0 12px 35px rgba(23,59,91,.07);color:#52677e;line-height:1.85;overflow-wrap:anywhere}
.static-page article h1{margin:0 0 18px;color:#173b5b;font-size:clamp(25px,2.2vw,34px);line-height:1.25;font-weight:850}
.static-page article>p{margin:0 0 20px;color:#718096}
.static-page article img{max-width:100%;height:auto;border-radius:10px}
.static-page article table{max-width:100%;border-collapse:collapse}
.static-page article iframe{max-width:100%}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}.static-page{width:94%;margin:20px auto 28px}.static-page article{padding:22px 18px;border-radius:14px}}


/* Footer identity synchronized with Website Settings */
.footer-brand{font-size:19px!important;gap:12px}
.footer-brand strong{font-size:inherit;line-height:1.3}
.footer-crest{width:48px;height:48px;overflow:hidden}
.footer-crest img{display:block;width:100%;height:100%;padding:4px;object-fit:contain;box-sizing:border-box}
.footer-crest svg{width:34px;height:34px}
.footer-description{font-size:14px!important;line-height:1.75;margin-top:12px}
.footer-school-numbers{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:9px;color:#f4f7fb;font-size:13px;line-height:1.6}
.footer-school-numbers b{color:#f7d36e;font-weight:800}
.footer-columns h3{font-size:16px!important}
.footer-contact a{font-size:14px!important;line-height:1.6}
.footer-contact-icon{font-size:17px}
.footer-bottom{font-size:11px}
@media(max-width:480px){
 .footer-brand{font-size:16px!important}
 .footer-crest{width:42px;height:42px}
 .footer-description{font-size:13px!important}
 .footer-school-numbers{font-size:12px;gap:5px 14px}
 .footer-columns h3{font-size:15px!important}
 .footer-contact a{font-size:13px!important}
}

/* ================================================================
   SHARED HOME HEADER / NAVBAR / FOOTER
   Rules below are shared by Home and every frontend static page.
   Keep these overrides here (not only inside Home's inline style).
   ================================================================ */
.brandbar>img{display:block;width:58px!important;height:58px!important;object-fit:contain;flex:0 0 58px;filter:drop-shadow(0 3px 2px #123c6530)}
.brandbar .brandname{font-size:21px;font-weight:850;letter-spacing:.2px;color:#153653;line-height:1.25}
.brandbar .brandtag{font-size:12px;color:#718096;margin-top:3px;line-height:1.4}
.navwrap .navbtn,.navwrap .navbtn:link,.navwrap .navbtn:visited,.navwrap .navbtn:hover,.navwrap .navbtn:focus{text-decoration:none!important}
.navwrap .navbtn.home{display:flex;align-items:center;gap:8px;text-transform:uppercase;letter-spacing:.45px;font-weight:850}
.navwrap .navbtn span{text-decoration:none!important}
.nav-home-icon{width:25px!important;height:25px!important;display:block;flex:0 0 25px;filter:drop-shadow(0 2px 2px #0007);transition:transform .2s,filter .2s}
.navbtn.home:hover .nav-home-icon{transform:translateY(-2px) scale(1.06);filter:drop-shadow(0 4px 3px #0008) brightness(1.08)}
.navwrap .navbtn:not(.home){text-decoration:none!important}
.footer-contact-card{display:block;width:92%;max-width:none;box-sizing:border-box;margin:28px auto 0;padding:0;color:#eef5ff}
.footer-contact-card .footer-card{width:100%;max-width:none;box-sizing:border-box;margin:0;padding:22px 22px 0;border:1px solid rgba(255,255,255,.24);border-radius:18px;background:linear-gradient(115deg,#173d70 0%,#214f86 52%,#173f73 100%);box-shadow:0 14px 34px rgba(14,43,78,.18)}
.footer-contact-card .footer-card:before{border-color:rgba(255,255,255,.10);box-shadow:0 0 0 25px rgba(255,255,255,.045),0 0 0 50px rgba(255,255,255,.025)}
.footer-contact-card .footer-brand,.footer-contact-card .footer-columns h3{color:#fff}
.footer-contact-card .footer-description,.footer-contact-card .footer-contact a{color:#e2edfa}
.footer-contact-card .footer-contact-icon{color:#ffd16b}
.footer-contact-card .footer-bottom{border-top-color:rgba(255,255,255,.25);color:#d4e2f3}
.footer-brand{font-size:19px!important;gap:12px}
.footer-brand strong{font-size:inherit;line-height:1.3}
.footer-crest{width:48px;height:48px;overflow:hidden}
.footer-crest img{display:block;width:100%;height:100%;padding:4px;object-fit:contain;box-sizing:border-box}
.footer-crest svg{width:34px;height:34px}
.footer-description{font-size:14px!important;line-height:1.75;margin-top:12px}
.footer-school-numbers{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:9px;color:#f4f7fb;font-size:13px;line-height:1.6}
.footer-school-numbers b{color:#f7d36e;font-weight:800}
.footer-columns h3{font-size:16px!important}
.footer-contact a{display:flex;align-items:center;gap:12px;font-size:14px!important;line-height:1.6}
.footer-contact-icon{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;font-size:0!important;border-radius:8px;filter:drop-shadow(0 2px 2px #061a3555)}
.footer-contact-icon svg{width:23px;height:23px;display:block;overflow:visible;filter:drop-shadow(0 2px 1px #061a3540)}
.footer-contact-icon-map{background:linear-gradient(145deg,#fff3bd40,#f6a52a25);box-shadow:inset 0 1px 2px #ffffff80,0 2px 5px #061a3535}
.footer-contact-icon-phone{background:linear-gradient(145deg,#c8ffe240,#079c6825);box-shadow:inset 0 1px 2px #ffffff80,0 2px 5px #061a3535}
.footer-contact-icon-mail{background:linear-gradient(145deg,#d4edff40,#1766d225);box-shadow:inset 0 1px 2px #ffffff80,0 2px 5px #061a3535}
.footer-social-links a{position:relative;overflow:hidden;border:1px solid #ffffff80!important;box-shadow:0 4px 0 #071b35a8,0 7px 12px #06172d55,inset 0 1px 2px #ffffff90!important;transition:transform .18s,filter .18s,box-shadow .18s!important}
.footer-social-links a svg{position:relative;z-index:1;fill:#fff!important;filter:drop-shadow(0 1px 1px #0006)}
.footer-social-links a:hover{transform:translateY(-3px);filter:brightness(1.13);box-shadow:0 6px 0 #071b35a8,0 10px 16px #06172d66,inset 0 1px 2px #ffffffa8!important}
.footer-social-links .social-x{background:linear-gradient(145deg,#49515c,#090d13)!important}
.footer-social-links .social-instagram{background:linear-gradient(135deg,#7444c8 0%,#e83e78 52%,#ff9a39 100%)!important}
.footer-social-links .social-facebook{background:linear-gradient(145deg,#4b91f1,#1453b5)!important}
.footer-social-links .social-youtube{background:linear-gradient(145deg,#ff5555,#bd101d)!important}
.footer-social-links .social-tiktok{background:linear-gradient(145deg,#263b48,#05090d)!important}
.footer-bottom{font-size:11px}
@media(max-width:760px){
 .current-date-label{font-size:11px}
 .topline-right{gap:9px}.footer-contact-card{width:92%;margin-top:22px}.footer-contact-card .footer-card{padding:18px 15px 0}}
@media(max-width:480px){.footer-brand{font-size:16px!important}.footer-crest{width:42px;height:42px}.footer-description{font-size:13px!important}.footer-school-numbers{font-size:12px;gap:5px 14px}.footer-columns h3{font-size:15px!important}.footer-contact a{font-size:13px!important}}

/* Halaman frontend non-Home mengikuti pola scroll Home: header tetap di atas,
   area yang bergulir dimulai setelah Navbar dan mencakup Footer. */
body.frontend-shared-layout{width:100%;height:100vh;height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
body.frontend-shared-layout>.topline,
body.frontend-shared-layout>.brandbar,
body.frontend-shared-layout>.navwrap{flex:0 0 auto}
body.frontend-shared-layout>.frontend-scroll-area{flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
body.frontend-shared-layout .frontend-scroll-area>main{width:100%;min-height:0}

/* FIX: Hilangkan underline pada seluruh tautan submenu desktop dan mobile. */
.navwrap .mega .mitem,
.navwrap .mega .mitem:link,
.navwrap .mega .mitem:visited,
.navwrap .mega .mitem:hover,
.navwrap .mega .mitem:focus,
.navwrap .mega .mitem:active,
.navwrap .mega .mitem .left,
.navwrap .mega .mitem .left * ,
.navwrap .mobmenu a,
.navwrap .mobmenu a:link,
.navwrap .mobmenu a:visited,
.navwrap .mobmenu a:hover,
.navwrap .mobmenu a:focus,
.navwrap .mobmenu a:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
}


/* Popup detail prestasi dan guru pada halaman Home */
.staff-open,.achievement-photo-open{display:block;width:100%;padding:0;border:0;background:transparent;cursor:pointer;color:inherit;font:inherit}
.staff-open{margin:0 auto 11px;width:max-content;max-width:100%;border-radius:50%}
.staff-open:focus-visible,.achievement-photo-open:focus-visible{outline:3px solid #d8ad5e;outline-offset:4px;border-radius:14px}
.staff-open .staff-avatar{margin:0 auto}
.achievement-photo-open{position:relative;overflow:hidden;border-radius:13px 13px 0 0;text-align:center}
.achievement-photo-open .achievement-photo{display:block;width:100%;cursor:pointer;transition:transform .35s ease}
.achievement-photo-open:hover .achievement-photo{transform:scale(1.045)}
.achievement-photo-placeholder{display:grid!important;place-items:center;background:linear-gradient(135deg,#fff4d8,#e8f1fa);font-size:54px}
.home-detail-modal[hidden]{display:none!important}
.home-detail-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:22px}
.home-detail-backdrop{position:absolute;inset:0;background:rgba(5,23,42,.72);backdrop-filter:blur(5px)}
.home-detail-dialog{position:relative;z-index:1;width:min(640px,100%);max-height:min(82vh,780px);overflow:auto;background:#fff;border:1px solid #e3eaf2;border-radius:22px;padding:30px;box-shadow:0 25px 90px rgba(0,0,0,.3);animation:homeDetailIn .22s ease-out}
@keyframes homeDetailIn{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
.home-detail-close{position:absolute;right:16px;top:13px;width:38px;height:38px;border:1px solid #dbe4ee;border-radius:50%;background:#f7f9fc;color:#173b5b;font-size:25px;line-height:1;cursor:pointer}
.home-detail-kicker{font-size:10px;font-weight:900;letter-spacing:1.8px;color:#b08031;margin:0 45px 8px 0}
.home-detail-dialog h2{font-size:clamp(20px,3vw,28px);line-height:1.25;color:#173b5b;margin:0 42px 20px 0}
.home-detail-content{display:grid;gap:12px;color:#52677e;font-size:14px;line-height:1.7}
.home-detail-row{display:grid;grid-template-columns:145px minmax(0,1fr);gap:12px;padding:10px 0;border-bottom:1px solid #edf1f5}
.home-detail-row strong{color:#173b5b;font-size:12px}
.home-detail-description{white-space:pre-line;background:#f6f9fc;border-radius:12px;padding:15px;color:#425a72}
.home-detail-link{display:inline-flex;align-items:center;gap:8px;width:max-content;padding:10px 15px;border-radius:10px;background:#0d4773;color:#fff!important;text-decoration:none;font-weight:800}
body.home-detail-open{overflow:hidden}
@media(max-width:600px){.home-detail-modal{padding:12px}.home-detail-dialog{padding:24px 18px;border-radius:17px;max-height:88vh}.home-detail-row{grid-template-columns:1fr;gap:2px}}


/* Penyesuaian popup detail: foto di sisi kanan, penghargaan tegas, dan kartu guru dapat diklik */
.home-detail-dialog{min-height:360px}
.home-detail-photo-wrap{position:absolute;right:30px;top:150px;width:218px;height:276px;border:2px solid #5b9be0;border-radius:30px;overflow:hidden;background:#f7f9fc;display:grid;place-items:center}
.home-detail-photo-wrap[hidden]{display:none!important}
.home-detail-photo-wrap img{display:block;width:100%;height:100%;object-fit:cover}
.home-detail-content{padding-right:245px}
.home-detail-description{grid-column:1/-1;margin-right:-245px}
.home-detail-value-emphasis{font-weight:900!important;color:#173b5b!important}
.staff-card[data-teacher-detail]{cursor:pointer}
.staff-card[data-teacher-detail]:focus-visible{outline:3px solid #d8ad5e;outline-offset:4px;border-radius:16px}
.staff-card[data-teacher-detail] .staff-open{cursor:pointer}
@media(max-width:700px){
 .home-detail-dialog{min-height:0}
 .home-detail-photo-wrap{position:relative;top:auto;right:auto;width:min(218px,100%);height:220px;margin:0 auto 16px}
 .home-detail-content{padding-right:0}
 .home-detail-description{margin-right:0}
}


/* Popup detail: posisi foto disejajarkan dengan bagian atas informasi dan bingkai premium */
.home-detail-dialog{
  position:relative;
  overflow:hidden;
  isolation:isolate;
}
.home-detail-content{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(190px,218px);
  column-gap:26px;
  align-items:start;
  padding-right:0;
}
.home-detail-photo-wrap{
  position:absolute;
  top:132px;
  right:30px;
  width:218px;
  height:276px;
  padding:6px;
  border:1px solid rgba(215,173,91,.9);
  border-radius:26px;
  background:linear-gradient(145deg,#fff8e7 0%,#d9e9f8 45%,#8eb9e8 100%);
  box-shadow:0 14px 30px rgba(14,48,78,.18),inset 0 1px 0 rgba(255,255,255,.95);
  overflow:hidden;
  z-index:2;
}
.home-detail-photo-wrap::before{
  content:"";
  position:absolute;
  inset:3px;
  border:1px solid rgba(255,255,255,.92);
  border-radius:21px;
  pointer-events:none;
  z-index:1;
}
.home-detail-photo-wrap img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center top;
  border-radius:19px;
  background:#edf4fb;
}
.home-detail-content .home-detail-row{
  grid-column:1;
  padding:12px 0;
}
.home-detail-description{
  grid-column:1/-1;
  margin:0;
  margin-top:8px;
  margin-right:0;
  position:relative;
  z-index:0;
  overflow-wrap:anywhere;
}
.home-detail-link{grid-column:1/-1;justify-self:start}
@media(max-width:700px){
 .home-detail-content{display:flex;flex-direction:column;gap:0}
 .home-detail-photo-wrap{
   position:relative;
   top:auto;right:auto;
   width:min(210px,70%);
   height:240px;
   margin:4px auto 18px;
   order:-1;
 }
 .home-detail-content .home-detail-row{width:100%}
 .home-detail-description{width:100%;margin-top:12px}
}


/* Final tuning: naikkan foto dan beri ruang aman sebelum catatan/deskripsi */
.home-detail-photo-wrap{
  top:116px;
  width:214px;
  height:252px;
  padding:7px;
  border:1px solid #d7ad5b;
  border-radius:28px;
  background:linear-gradient(135deg,#fffaf0 0%,#e7f1fb 48%,#8db8e7 100%);
  box-shadow:0 12px 26px rgba(16,49,78,.20),0 3px 8px rgba(16,49,78,.10),inset 0 1px 0 #fff;
}
.home-detail-photo-wrap::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:28px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.72);
  pointer-events:none;
}
.home-detail-photo-wrap img{
  border-radius:20px;
  object-position:center 18%;
}
.home-detail-description{
  margin-top:72px;
}
@media(max-width:700px){
  .home-detail-photo-wrap{
    top:auto;
    width:min(210px,70%);
    height:230px;
    margin:4px auto 18px;
  }
  .home-detail-description{margin-top:16px}
}


/* Navigasi data pada popup guru dan prestasi */
.home-detail-navigation{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:100%;
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid #e8eef5;
  grid-column:1/-1;
}
.home-detail-navigation[hidden]{display:none!important}
.home-detail-nav-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:42px;
  padding:0 17px;
  border:1px solid #d8e4f1;
  border-radius:13px;
  background:linear-gradient(145deg,#fff,#f1f6fc);
  color:#173b5b;
  font:700 12px/1.2 inherit;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(23,59,91,.08),inset 0 1px 0 #fff;
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;
}
.home-detail-nav-btn span[aria-hidden="true"]{
  display:inline-grid;
  place-items:center;
  width:23px;
  height:23px;
  border-radius:8px;
  background:#e7f0fa;
  color:#1b5b91;
  font-size:22px;
  line-height:1;
}
.home-detail-nav-btn:hover{
  transform:translateY(-2px);
  border-color:#d7ad5b;
  background:linear-gradient(145deg,#fffaf0,#eef5fc);
  box-shadow:0 8px 18px rgba(23,59,91,.13);
}
.home-detail-nav-btn:focus-visible{
  outline:3px solid rgba(58,139,219,.28);
  outline-offset:2px;
}
.home-detail-nav-btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.home-detail-nav-count{
  color:#73869b;
  font-size:11px;
  font-weight:800;
  letter-spacing:.6px;
  white-space:nowrap;
}
@media(max-width:700px){
  .home-detail-navigation{gap:8px;margin-top:18px;padding-top:13px}
  .home-detail-nav-btn{min-height:39px;padding:0 11px;gap:6px;font-size:11px}
  .home-detail-nav-count{font-size:10px}
}
@media(max-width:380px){
  .home-detail-nav-btn{padding:0 8px}
  .home-detail-nav-btn span:not([aria-hidden="true"]){font-size:10px}
}

.berita-date{display:block;color:#8795a5;font-size:11px;margin:0 0 5px}


/* ==========================================================
   RESPONSIVE HEADER + NAVBAR SHARED BY HOME AND STATIC PAGES
   ========================================================== */
.topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px 18px;
  min-width:0;
}
.topline-contact{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;min-width:0}
.topline-right{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.topline-datetime{display:inline-flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.current-date-btn{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:36px;padding:7px 13px;border:1px solid #ffffff50;
  border-radius:999px;background:#ffffff12;color:#f4f7fb;
  box-shadow:0 3px 10px #001b3022;white-space:nowrap;
  font-size:12px;font-weight:650;line-height:1.2
}
.current-date-btn::first-letter{color:#f2c75f}
.topline-motto{white-space:nowrap;text-align:center}
.navwrap .mobmenu a,
.navwrap .mobmenu a:link,
.navwrap .mobmenu a:visited,
.navwrap .mobmenu a:active{
  display:flex;align-items:center;min-height:44px;width:100%;
  color:#f1f6fc!important;text-decoration:none!important;
  text-decoration-line:none!important;font-weight:650;line-height:1.45;
  -webkit-tap-highlight-color:transparent
}
.navwrap .mobmenu a:hover,
.navwrap .mobmenu a:focus-visible{color:#f5d58a!important;background:#ffffff12;outline:none}
.navwrap .mobrow>a{padding:12px 10px}
.navwrap .mobchildren>a{padding:10px 12px 10px 16px;border-left:1px solid #ffffff35;font-size:14px;font-weight:550;color:#dbe8f5!important}
.navwrap .mobrow>button{color:#f1f6fc!important}
.navwrap .mobrow>button:hover,
.navwrap .mobrow>button:focus-visible{color:#f5d58a!important;background:#ffffff12;outline:none}
.navwrap .mobmenu{background:var(--navy)!important}
.navwrap .mobiletoggle{color:#fff!important}
.navwrap .mobmenu a:visited{color:#f1f6fc!important}
.frontend-scroll-area{min-width:0}
.frontend-scroll-area>main{min-width:0;max-width:100%;overflow-x:clip}
.static-page,.static-page article{min-width:0;max-width:100%}
.static-page article *{max-width:100%}
.static-page article img,.static-page article video,.static-page article iframe{max-width:100%}
.static-page article img,.static-page article video{height:auto}
.static-page article iframe{width:100%;border:0}
.static-page article table{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.static-page article pre,.static-page article code{white-space:pre-wrap;overflow-wrap:anywhere}
.static-page article p,.static-page article li,.static-page article h1,.static-page article h2,.static-page article h3{overflow-wrap:anywhere}
@media(max-width:800px){
  .topline{
    flex-direction:column;align-items:center;justify-content:center;
    gap:7px;padding:10px 12px;text-align:center
  }
  .topline-contact{width:100%;justify-content:center;text-align:center;font-size:12px;line-height:1.5}
  .topline-right{width:100%;flex-direction:column;align-items:center;justify-content:center;gap:6px}
  .topline-datetime{width:100%;justify-content:center;gap:8px}
  .current-time-btn,.current-date-btn{min-height:34px;padding:6px 11px}
  .current-date-btn{font-size:11px}
  .topline-motto{display:block;width:100%;white-space:normal;text-align:center;font-size:11px;line-height:1.4}
  .brandbar{width:100%;padding:13px 16px;gap:10px}
  .brandbar>img{width:52px!important;height:52px!important;flex:0 0 52px}
  .brandbar .brandname{font-size:clamp(15px,4.2vw,19px);line-height:1.25;overflow-wrap:anywhere}
  .brandbar .brandtag{font-size:10px;line-height:1.4}
  .navwrap{width:100%;max-width:100%;overflow:visible}
  .navinner{width:100%;min-height:56px;padding:7px 12px;justify-content:flex-start!important}
  .mobiletoggle{display:inline-flex;align-items:center;justify-content:center;margin:0!important;min-height:44px;padding:10px 15px}
  .navwrap .mobmenu{padding:7px 14px 16px;max-height:calc(100dvh - 210px);overflow-y:auto;overscroll-behavior:contain}
  .navwrap .mobrow{padding:0 4px;border-bottom:1px solid #ffffff20;color:#f1f6fc}
  .navwrap .mobrow>a{padding:13px 8px;min-height:52px}
  .navwrap .mobrow>button{min-height:52px;padding:12px 8px;font-size:15px}
  .navwrap .mobchildren{padding:3px 0 8px 10px}
  .navwrap .mobchildren>a{min-height:42px;padding:9px 12px;font-size:14px}
  .navwrap .mobchildren a+a{border-top:1px solid #ffffff12}
  .static-page{width:calc(100% - 24px);margin:14px auto 22px}
  .static-page article{padding:20px 16px;border-radius:14px;line-height:1.7}
  .static-page article h1{font-size:clamp(22px,6vw,29px)}
  .static-page article table{font-size:13px}
  .site-footer{padding-left:12px;padding-right:12px}
  .footer-contact-card{width:100%;margin-top:18px}
}
@media(max-width:420px){
  .topline{padding:9px 8px;gap:6px}
  .topline-contact{font-size:11px;gap:5px}
  .topline-datetime{gap:6px}
  .current-time-btn{gap:5px;padding:6px 9px}
  .current-time-btn strong{font-size:12px}
  .current-time-btn small{font-size:9px}
  .current-date-btn{font-size:10px;padding:6px 9px}
  .topline-motto{font-size:10px}
  .brandbar{padding:12px}
  .brandbar>img{width:46px!important;height:46px!important;flex-basis:46px}
  .brandbar .brandname{font-size:15px}
  .navwrap .mobmenu{padding-left:10px;padding-right:10px}
  .static-page{width:calc(100% - 18px)}
  .static-page article{padding:17px 13px}
}

.current-date-btn .date-weekday{color:#f2c75f;font-weight:900}


/* Sinkronisasi navbar saat berpindah breakpoint mobile <-> desktop.
   State menu mobile tidak boleh memengaruhi layout desktop. */
@media (min-width: 801px) {
  .navwrap .mobiletoggle,
  .navwrap .mobmenu {
    display: none !important;
  }
  .navwrap .navlinks {
    display: flex !important;
  }
}
@media (max-width: 800px) {
  .navwrap .navlinks,
  .navwrap .searchbtn {
    display: none !important;
  }
  .navwrap .mobiletoggle {
    display: inline-flex !important;
  }
  .navwrap .mobmenu:not(.show) {
    display: none !important;
  }
  .navwrap .mobmenu.show {
    display: block !important;
  }
}


/* Bingkai luar popup detail Guru, Siswa, dan Prestasi */
#homeDetailModal .home-detail-dialog{
  border:2px solid #d8ad5e !important;
  border-radius:24px !important;
  box-shadow:
    0 0 0 4px #173b5b,
    0 0 0 6px #d8ad5e,
    0 24px 80px rgba(0,0,0,.32) !important;
  background-clip:padding-box;
}
@media(max-width:600px){
  #homeDetailModal .home-detail-dialog{
    border-radius:19px !important;
    box-shadow:
      0 0 0 3px #173b5b,
      0 0 0 5px #d8ad5e,
      0 18px 55px rgba(0,0,0,.30) !important;
  }
}


/* =========================================================
   LIVE CHAT MADRASAH - floating widget untuk seluruh halaman
   ========================================================= */
.chat-launch{
  position:fixed !important;
  right:24px !important;
  bottom:22px !important;
  z-index:120000 !important;
  width:58px !important;
  height:58px !important;
  display:grid !important;
  place-items:center !important;
  border:2px solid #ffffff !important;
  border-radius:50% !important;
  background:linear-gradient(145deg,#1d6da0,#123451) !important;
  color:#ffffff !important;
  font-size:27px !important;
  line-height:1 !important;
  box-shadow:0 8px 24px rgba(10,35,60,.32),0 0 0 4px rgba(216,173,94,.75) !important;
  cursor:pointer !important;
  transition:transform .2s ease,box-shadow .2s ease !important;
}
.chat-launch:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 12px 28px rgba(10,35,60,.38),0 0 0 5px rgba(216,173,94,.85) !important}
.chat-window{
  position:fixed !important;
  right:24px !important;
  bottom:94px !important;
  z-index:119999 !important;
  display:none !important;
  flex-direction:column !important;
  width:min(390px,calc(100vw - 32px)) !important;
  height:min(570px,calc(100dvh - 125px)) !important;
  min-height:330px !important;
  max-height:calc(100vh - 125px) !important;
  overflow:hidden !important;
  border:1px solid #d7e2ee !important;
  border-radius:18px !important;
  background:#ffffff !important;
  color:#173b5b !important;
  box-shadow:0 22px 65px rgba(8,28,48,.30),0 0 0 3px rgba(18,52,81,.12) !important;
  font:14px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif !important;
}
.chat-window.open{display:flex !important}
.chat-head{
  flex:0 0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:16px 17px !important;
  background:linear-gradient(120deg,#102c4c,#1d507d) !important;
  color:#ffffff !important;
  border-bottom:3px solid #d8ad5e !important;
}
.chat-head b{display:block !important;font-size:15px !important;font-weight:800 !important;color:#fff !important}
.chat-head small{display:block !important;margin-top:3px !important;color:#dce9f5 !important;font-size:11px !important}
.chat-close{
  flex:0 0 34px !important;
  width:34px !important;height:34px !important;
  display:grid !important;place-items:center !important;
  padding:0 !important;border:1px solid #ffffff55 !important;border-radius:50% !important;
  background:#ffffff16 !important;color:#fff !important;font-size:22px !important;line-height:1 !important;
  cursor:pointer !important;
}
.chat-start,.chat-form{
  display:flex !important;flex-direction:column !important;gap:9px !important;
  padding:17px !important;background:#fff !important;
}
.chat-start{flex:1 1 auto !important;overflow:auto !important;justify-content:center !important}
.chat-start p{margin:0 0 5px !important;color:#647991 !important;font-size:12px !important;line-height:1.6 !important}
.chat-start label{display:block !important;margin:3px 0 -5px !important;color:#244866 !important;font-size:11px !important;font-weight:750 !important}
.chat-start input,.chat-form input{
  box-sizing:border-box !important;width:100% !important;min-width:0 !important;
  padding:11px 12px !important;border:1px solid #d5e0eb !important;border-radius:10px !important;
  background:#f8fafc !important;color:#173b5b !important;font:13px Inter,system-ui,sans-serif !important;
  outline:none !important;
}
.chat-start input:focus,.chat-form input:focus{border-color:#2d6f9d !important;box-shadow:0 0 0 3px #2d6f9d20 !important}
.chat-start button,.chat-form button{
  display:inline-flex !important;align-items:center !important;justify-content:center !important;
  min-height:42px !important;padding:10px 16px !important;border:0 !important;border-radius:10px !important;
  background:linear-gradient(135deg,#1c638f,#123451) !important;color:#fff !important;
  font-size:13px !important;font-weight:800 !important;cursor:pointer !important;
}
.chat-start button{margin-top:5px !important}
.chat-start button:disabled,.chat-form button:disabled{opacity:.6 !important;cursor:wait !important}
.chat-body{
  flex:1 1 auto !important;min-height:0 !important;overflow:auto !important;
  display:flex !important;flex-direction:column !important;gap:10px !important;
  padding:15px !important;background:#f1f5f9 !important;
}
.chat-msg{
  align-self:flex-start !important;max-width:88% !important;
  padding:10px 12px !important;border:1px solid #dce6ef !important;border-radius:13px 13px 13px 4px !important;
  background:#fff !important;color:#294760 !important;font-size:12px !important;line-height:1.55 !important;
  overflow-wrap:anywhere !important;box-shadow:0 2px 6px #173b5b0b !important;
}
.chat-msg.admin{
  align-self:flex-end !important;border-color:#c9dfed !important;border-radius:13px 13px 4px 13px !important;
  background:#e5f2fb !important;
}
.chat-time{display:block !important;margin-top:5px !important;color:#8798a9 !important;font-size:9px !important}
.chat-form{
  flex:0 0 auto !important;flex-direction:row !important;align-items:center !important;gap:8px !important;
  padding:12px !important;border-top:1px solid #e3eaf1 !important;
}
.chat-form input{flex:1 1 auto !important}
.chat-form button{flex:0 0 auto !important;min-height:40px !important;padding:9px 14px !important}
@media(max-width:520px){
  .chat-launch{right:16px !important;bottom:16px !important;width:54px !important;height:54px !important}
  .chat-window{right:10px !important;bottom:80px !important;width:calc(100vw - 20px) !important;height:min(560px,calc(100dvh - 100px)) !important;min-height:300px !important;border-radius:16px !important}
  .chat-head{padding:13px 14px !important}
}


/* Penyempurnaan ikon navigasi mobile: ikon menu dan ikon induk harus selalu terlihat. */
.navwrap .mobiletoggle{gap:10px;min-width:116px;font-weight:750;letter-spacing:.1px;-webkit-appearance:none;appearance:none}
.navwrap .mobile-menu-icon{display:block;width:22px;height:22px;flex:0 0 22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.navwrap .mobrow>.moblabel{display:flex;align-items:center;gap:10px;min-width:0;color:#f1f6fc}
.navwrap .mobrow .mob-icon{display:inline-grid;place-items:center;width:35px;height:35px;flex:0 0 35px;margin:0;border-radius:10px;background:linear-gradient(145deg,#ffffff27,#ffffff0a);border:1px solid #ffffff35;box-shadow:inset 0 1px 2px #ffffff35,0 3px 7px #061c303d}
.navwrap .mobrow .mob-icon .menu-icon,.navwrap .mobrow .mob-icon .nav-home-icon,.navwrap .mobrow .mob-icon .icon-svg{display:block;width:21px;height:21px;max-width:21px;max-height:21px;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}
.navwrap .mobrow .mob-label-text{display:inline-block;min-width:0;overflow-wrap:anywhere}
.navwrap .mobrow>a>.menu-icon{display:block;width:25px;height:25px;flex:0 0 25px;object-fit:contain;filter:none}
@media(max-width:800px){.navwrap .mobiletoggle{display:inline-flex!important}.navwrap .mobrow>.moblabel{grid-column:1;min-height:52px;padding:8px}.navwrap .mobrow>.moblabel .mob-icon{margin-right:0}.navwrap .mobrow>a{gap:10px}.navwrap .mobiletoggle:focus-visible{outline:3px solid #d8ad5e;outline-offset:2px}}
