:root{
  --green-950:#063b33;
  --green-900:#075447;
  --green-800:#086a59;
  --green-700:#0d806c;
  --green-100:#e8f7f2;
  --gold:#eabf28;
  --gold-soft:#fff7d1;
  --ink:#102a43;
  --ink-2:#29435c;
  --muted:#64748b;
  --bg:#f6f8f7;
  --white:#fff;
  --line:#e5ece9;
  --shadow-sm:0 8px 24px rgba(16,42,67,.07);
  --shadow:0 18px 50px rgba(16,42,67,.10);
  --shadow-lg:0 28px 80px rgba(16,42,67,.14);
  --radius:20px;
  --container:min(1220px, calc(100% - 48px));
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.7;-webkit-font-smoothing:antialiased}
body:has(.man4-hero){background:#f7f9f8}
a{color:inherit}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
.container{width:var(--container)!important;max-width:1220px!important;margin-inline:auto}

/* HEADER */
.site-header{position:sticky;top:0;z-index:5000;background:rgba(6,59,51,.96);backdrop-filter:blur(14px);box-shadow:0 8px 28px rgba(3,37,32,.18)}
.site-header .navbar{min-height:96px;padding:10px 0}
.site-header .container-fluid{width:var(--container);max-width:1220px;margin:auto;padding-left:0!important;padding-right:0!important}
.logo-area{gap:14px;text-decoration:none!important}
.logo{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}
.logo-text h2{margin:0;color:#fff;font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.15}
.logo-text p{margin:5px 0 0;color:#d7f3eb;font-size:13px;line-height:1.3;font-weight:500}
.site-header .navbar-nav{gap:4px!important}
.site-header .nav-link{display:flex;align-items:center;gap:6px;color:#cbe6df!important;border-radius:14px;padding:11px 13px!important;font-weight:700;font-size:15px;transition:.22s ease}
.site-header .nav-link i{font-size:15px;opacity:.9}
.site-header .nav-link:hover,.site-header .nav-link.active{background:rgba(255,255,255,.12);color:#fff!important;transform:translateY(-1px)}
.site-header .nav-link.active{box-shadow:inset 0 -2px 0 var(--gold)}
.site-header .navbar-toggler{border:1px solid rgba(255,255,255,.25);border-radius:12px;padding:8px 11px}
.site-header .navbar-toggler:focus{box-shadow:0 0 0 3px rgba(234,191,40,.2)}

/* HERO */
.man4-hero{position:relative;width:100%;height:400x;min-height:400px;max-height:400px;overflow:hidden;background:#073e36}
.man4-hero-slider{position:absolute;inset:0;height:100%}
.man4-hero-slide{position:absolute;inset:0;width:100%;height:100%;background-position:center center;background-size:cover;background-repeat:no-repeat;opacity:0;transform:scale(1.015);transition:opacity 1s ease,transform 6s ease;z-index:0}
.man4-hero-slide.active{opacity:1;transform:scale(1);z-index:1}
.man4-hero-slide::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(3,31,27,.05) 0%,rgba(3,31,27,.12) 42%,rgba(3,31,27,.70) 100%)}
.man4-hero-content{position:absolute;z-index:3;left:50%;bottom:22px;width:min(92%,1050px);transform:translateX(-50%);text-align:center;color:#fff}
.man4-hero-content h1{margin:0 0 3px!important;font-size:20px!important;line-height:1.2!important;font-weight:800!important;letter-spacing:.01em!important;color:#fff!important;text-shadow:0 2px 7px rgba(0,0,0,.8)!important}
.man4-hero-content p{margin:0!important;font-size:15px!important;line-height:1.35!important;font-weight:500!important;color:#fff!important;text-shadow:0 2px 6px rgba(0,0,0,.85)!important}
.man4-hero-empty{height:300px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green-950),var(--green-800));color:#fff;text-align:center;padding:30px}
.man4-hero-empty h1{margin:0 0 8px;font-size:30px;font-weight:800}.man4-hero-empty p{margin:0;color:#d8eee9}
.man4-slider-prev,.man4-slider-next{position:absolute;z-index:10;top:50%;transform:translateY(-50%);width:40px;height:40px;border:1px solid rgba(255,255,255,.35);border-radius:50%;display:grid;place-items:center;background:rgba(3,31,27,.28);color:#fff;backdrop-filter:blur(8px);transition:.2s ease}
.man4-slider-prev{left:20px}.man4-slider-next{right:20px}.man4-slider-prev:hover,.man4-slider-next:hover{background:rgba(255,255,255,.16);transform:translateY(-50%) scale(1.05)}
.man4-slider-dots{position:absolute;z-index:10;left:50%;bottom:9px;transform:translateX(-50%);display:flex;gap:6px}
.man4-slider-dot{width:7px;height:7px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.5);transition:.2s ease}.man4-slider-dot.active{width:22px;border-radius:10px;background:var(--gold)}

/* TICKER */
.news-ticker{display:flex;min-height:56px;background:linear-gradient(90deg,var(--green-900),var(--green-800));color:#fff;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 8px 24px rgba(16,42,67,.06)}
.news-ticker-label{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:0 28px;background:var(--gold);color:#16352e;font-weight:900;font-size:15px;letter-spacing:.01em}
.news-ticker-label i{font-size:16px}.news-ticker-window{flex:1;min-width:0;overflow:hidden}.news-ticker-track{display:flex;width:max-content;white-space:nowrap;animation:ticker 32s linear infinite}.news-ticker-track:hover{animation-play-state:paused}.ticker-news{display:inline-flex;align-items:center;gap:8px;padding:15px 32px;text-decoration:none!important;color:#fff;font-size:15px;font-weight:600}.ticker-news span{color:#ffd94f;font-weight:800}.ticker-news i{opacity:.85}
@keyframes ticker{from{transform:translateX(100vw)}to{transform:translateX(-100%)}}

/* COMMON SECTIONS */
.section-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--green-700);font-size:13px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.section-kicker::before{content:"";width:26px;height:3px;border-radius:3px;background:var(--gold)}
.home-welcome,.home-news,.home-about{padding:82px 0}
.home-welcome{background:linear-gradient(180deg,#fff 0%,#f7faf9 100%)}
.home-welcome-inner{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:28px;background:#fff;box-shadow:var(--shadow);padding:58px clamp(28px,6vw,88px)}
.home-welcome-inner::after{content:"";position:absolute;right:-80px;top:-90px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(13,128,108,.13),transparent 68%)}
.home-welcome-text{position:relative;z-index:1;max-width:860px}
.home-welcome h2{margin:14px 0 18px;font-size:clamp(32px,4vw,52px);line-height:1.12;letter-spacing:-.035em;color:var(--ink);font-weight:850}
.home-welcome p{max-width:760px;margin:0 0 25px;color:var(--ink-2);font-size:17px}
.home-link{display:inline-flex;align-items:center;gap:9px;color:var(--green-700)!important;font-weight:800;text-decoration:none!important;border-bottom:1px solid transparent;transition:.2s ease}.home-link:hover{gap:13px;border-color:var(--gold)}

.home-news{background:#f4f7f6}
.home-news .row{align-items:start}.home-news-title{position:sticky;top:120px}.home-news-title h2{margin:14px 0 18px;font-size:clamp(30px,3vw,44px);line-height:1.1;letter-spacing:-.03em}.home-news-title>a{display:inline-flex;gap:8px;color:var(--green-700);font-weight:800;text-decoration:none}
.home-news-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.home-news-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-sm);transition:.25s ease}.home-news-card:first-child{grid-column:span 2;display:grid;grid-template-columns:46% 54%}.home-news-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.home-news-image{display:block;overflow:hidden;background:#eaf1ef}.home-news-image img{width:100%;height:240px;object-fit:cover;transition:.5s ease}.home-news-card:first-child .home-news-image img{height:100%;min-height:300px}.home-news-card:hover .home-news-image img{transform:scale(1.04)}
.home-news-body{padding:24px}.home-news-date{display:inline-flex;padding:6px 11px;border-radius:999px;background:var(--green-100);color:var(--green-900);font-size:12px;font-weight:800}.home-news-body h3{margin:14px 0 10px;font-size:22px;line-height:1.25}.home-news-body h3 a{text-decoration:none}.home-news-body h3 a:hover{color:var(--green-700)}.home-news-body p{margin:0 0 17px;color:var(--muted);font-size:14px}.home-news-more{display:inline-flex;align-items:center;gap:7px;color:var(--green-700);font-size:14px;font-weight:800;text-decoration:none}.home-news-more:hover{gap:11px}

.home-about{background:#fff}.home-about-inner{position:relative;padding:64px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.home-about-inner::after{content:"MAN 4";position:absolute;right:0;bottom:-35px;font-size:120px;line-height:1;font-weight:900;color:rgba(13,128,108,.035);pointer-events:none}.home-about h2{margin:14px 0 16px;font-size:42px;letter-spacing:-.03em}.home-about p{max-width:900px;margin:0 0 24px;color:var(--ink-2);font-size:17px}

/* GENERIC PAGE HEADER */
.page-header{min-height:250px;padding:55px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:#fff;background:linear-gradient(135deg,rgba(6,59,51,.94),rgba(8,106,89,.84)),url('../assets/banner.jpg') center/cover;position:relative;overflow:hidden}
.page-header::after{content:"";position:absolute;right:-100px;bottom:-140px;width:330px;height:330px;border-radius:50%;border:1px solid rgba(255,255,255,.15)}
.page-header h1{position:relative;z-index:1;margin:0 0 8px;font-size:clamp(32px,5vw,52px);line-height:1.1;font-weight:850;letter-spacing:-.035em}.page-header p{position:relative;z-index:1;margin:0;color:#d9f0eb;font-size:16px}

/* CONTENT / PROFILE / PROGRAM */
.content{width:var(--container);margin:50px auto;padding:42px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-sm)}
.content h2,.content h3{color:var(--ink);letter-spacing:-.02em}.content p,.content li{color:var(--ink-2)}.content a{color:var(--green-700)}
.profile-top{display:grid;grid-template-columns:280px 1fr;gap:34px;align-items:start}.profile-top img{width:100%;border-radius:20px;box-shadow:var(--shadow)}
.visi-misi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:30px}.visi{padding:25px;border:1px solid #cfe9e1;border-radius:18px;background:linear-gradient(180deg,#f3fbf8,#fff)}
.stats{width:var(--container);margin:0 auto 60px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.stat-box{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--green-950),var(--green-700));color:#fff;text-align:center;padding:28px;border-radius:20px;box-shadow:var(--shadow)}.stat-box::after{content:"";position:absolute;right:-25px;bottom:-35px;width:100px;height:100px;border-radius:50%;background:rgba(255,255,255,.06)}.stat-box h3{position:relative;z-index:1;margin:0;font-size:40px;color:#fff}.stat-box p{position:relative;z-index:1;margin:7px 0 0;color:#cdebe4;font-weight:700}

/* GALLERY */
.gallery-container{width:var(--container);margin:50px auto 70px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.gallery-item{position:relative;overflow:hidden;aspect-ratio:4/3;border-radius:20px;background:#123;box-shadow:var(--shadow-sm);cursor:pointer}.gallery-item img{width:100%;height:100%;object-fit:cover;transition:.5s ease}.gallery-item:hover img{transform:scale(1.07);filter:brightness(.7)}.overlay{position:absolute;inset:auto 0 0;padding:70px 18px 18px;color:#fff;font-weight:800;background:linear-gradient(transparent,rgba(2,6,23,.88));transform:translateY(2px)}
.gallery-lightbox{position:fixed!important;inset:0!important;z-index:9999!important;background:rgba(2,14,12,.92)!important;backdrop-filter:blur(8px)}.lightbox-content{max-width:90vw;max-height:85vh;border-radius:14px}.lightbox-caption{color:#fff}.lightbox-close,.lightbox-prev,.lightbox-next{color:#fff!important}

/* NEWS LIST */
.news-container{width:var(--container);margin:50px auto 70px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.news-card{overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-sm);transition:.25s ease}.news-card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}.news-card img{width:100%;height:260px;object-fit:cover}.news-content{padding:25px}.news-date{display:inline-flex;background:var(--green-100);color:var(--green-900);padding:6px 12px;border-radius:999px;font-size:12px;font-weight:800}.news-content h3{font-size:23px;line-height:1.3;margin:14px 0 10px}.news-content h3 a{text-decoration:none}.news-content p{color:var(--muted)}.news-content a{color:var(--green-700);font-weight:800;text-decoration:none}

/* NEWS DETAIL */
.news-detail{max-width:1000px;margin:50px auto 80px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:35px;box-shadow:var(--shadow)}.news-detail-image{overflow:hidden;border-radius:18px;margin-bottom:30px}.news-detail-image img{width:100%;max-height:600px;object-fit:cover}.news-detail-content{font-size:17px;line-height:1.9;color:var(--ink-2)}.news-detail-content h2,.news-detail-content h3{color:var(--green-800)}.news-detail-content img{border-radius:15px}.news-detail-content blockquote{margin:30px 0;padding:20px 24px;border-left:4px solid var(--gold);background:#fffaf0;border-radius:10px;color:#526275}.news-detail-back{margin-top:35px;padding-top:25px;border-top:1px solid var(--line)}.news-detail-back .btn,.news-empty .btn{display:inline-flex;align-items:center;gap:8px;padding:11px 18px;background:var(--green-700);border:0;color:#fff;text-decoration:none;border-radius:11px;font-weight:800}.news-detail-back .btn:hover,.news-empty .btn:hover{background:var(--green-900)}.news-empty{max-width:800px;margin:60px auto;padding:55px 30px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow-sm)}

/* CONTACT */
.contact-container{width:var(--container);margin:50px auto 70px;display:grid;grid-template-columns:360px 1fr;gap:24px}.contact-info{display:flex;flex-direction:column;gap:14px}.contact-card{background:#fff;padding:21px 23px;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-sm)}.contact-card h3{margin:0 0 7px;color:var(--green-800);font-size:17px}.contact-card p{margin:0;color:var(--ink-2)}.contact-map{min-height:500px;height:500px;background:#fff;padding:8px;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow-sm)}.contact-map iframe{display:block;width:100%;height:100%;min-height:0;border:0;border-radius:16px}

/* FOOTER */
.footer{margin-top:0;background:linear-gradient(135deg,#071b29,#062f2a);color:#cbded9;border-top:4px solid var(--gold)}.footer-container{width:var(--container);margin:auto;padding:55px 0 38px;display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:45px}.footer-col h3{margin:0 0 18px;color:#fff;font-size:18px}.footer-col a{display:block;margin:9px 0;color:#cbded9;text-decoration:none;transition:.2s}.footer-col a:hover{color:#fff;transform:translateX(3px)}.btn-facebook{display:inline-flex!important;width:max-content;padding:9px 13px!important;background:rgba(255,255,255,.06);border-radius:10px;margin-right:5px!important}.footer-bottom{text-align:center;border-top:1px solid rgba(255,255,255,.08);padding:17px 20px;color:#9fb7b1;font-size:13px}.footer-bottom p{margin:0}
.wa-float{position:fixed;right:24px;bottom:24px;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#20c86a;color:#fff!important;text-decoration:none;font-size:25px;box-shadow:0 14px 35px rgba(32,200,106,.35);z-index:4900;transition:.2s}.wa-float:hover{transform:translateY(-3px) scale(1.04)}

/* MOBILE */
@media(max-width:991.98px){
  .site-header .container-fluid{width:calc(100% - 30px)}
  .site-header .navbar{min-height:82px}
  .logo{width:56px;height:56px}.logo-text h2{font-size:19px}.logo-text p{font-size:12px}
  .site-header .navbar-collapse{margin-top:10px;padding:10px;border-radius:16px;background:rgba(4,45,39,.98);box-shadow:0 15px 35px rgba(0,0,0,.18)}
  .site-header .nav-link{padding:10px 12px!important}
  .home-news-list{grid-template-columns:1fr}.home-news-card:first-child{grid-column:auto;display:block}.home-news-card:first-child .home-news-image img{height:260px;min-height:0}
  .home-news-title{position:static}
  .gallery-container{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-top{grid-template-columns:1fr}.contact-container{grid-template-columns:1fr}.footer-container{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:767.98px){
  :root{--container:calc(100% - 30px)}
  .site-header .container-fluid{width:calc(100% - 20px)}
  .logo-text p{display:none}.logo{width:52px;height:52px}.logo-text h2{font-size:18px}
  .man4-hero,.man4-hero-empty{height:300px;min-height:300px;max-height:300px}.man4-hero-content{bottom:20px}.man4-slider-prev,.man4-slider-next{width:34px;height:34px}.man4-slider-prev{left:10px}.man4-slider-next{right:10px}
  .news-ticker-label{padding:0 14px;font-size:12px}.ticker-news{padding:15px 22px;font-size:13px}
  .home-welcome,.home-news,.home-about{padding:55px 0}.home-welcome-inner{padding:38px 25px;border-radius:22px}.home-welcome h2{font-size:32px}.home-welcome p,.home-about p{font-size:15px}
  .home-news-list{gap:16px}.home-news-body{padding:20px}.home-news-body h3{font-size:19px}
  .content{padding:25px;margin:35px auto;border-radius:18px}.visi-misi{grid-template-columns:1fr}.gallery-container{grid-template-columns:1fr 1fr;gap:12px}.gallery-item{border-radius:14px}.news-container{grid-template-columns:1fr;gap:18px}.news-card img{height:220px}.news-detail{margin:30px 15px 55px;padding:20px;border-radius:18px}.contact-container{margin:35px auto 55px}.contact-map{min-height:400px;height:400px}.contact-map iframe{min-height:0}.footer-container{grid-template-columns:1fr;gap:28px;padding:40px 0 25px}.wa-float{right:16px;bottom:16px;width:54px;height:54px}
}

/* =========================================================
   VIDEO, PENGUMUMAN & DOWNLOAD
========================================================= */
.media-grid,.download-section,.announcement-section{padding-top:55px;padding-bottom:75px}.video-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.video-card,.download-card,.announcement-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;overflow:hidden;box-shadow:0 14px 40px rgba(15,23,42,.07)}.video-frame{aspect-ratio:16/9;background:#071f1b}.video-frame iframe{width:100%;height:100%;border:0;display:block}.video-body{padding:22px}.video-body h3{margin:0 0 8px;color:#0b3b34;font-size:21px}.video-body p{margin:0;color:#64748b;line-height:1.6}.empty-media{padding:45px;text-align:center;background:#f8fafc;border-radius:18px;color:#64748b}.download-grid{display:grid;gap:16px}.download-card{display:flex;align-items:center;gap:18px;padding:20px 22px;border-radius:18px}.download-icon{font-size:34px;flex:0 0 auto}.download-info{flex:1}.download-type{display:inline-block;font-size:11px;font-weight:800;letter-spacing:.08em;color:#0f766e;background:#ccfbf1;border-radius:999px;padding:5px 9px}.download-info h3{margin:8px 0 5px;color:#0f172a;font-size:19px}.download-info p{margin:0;color:#64748b}.download-btn{display:inline-flex;align-items:center;gap:8px;background:#0f766e;color:#fff!important;text-decoration:none!important;border-radius:12px;padding:11px 15px;font-weight:800;white-space:nowrap}.download-btn:hover{background:#115e59}.announcement-list{display:grid;gap:18px}.announcement-card{display:flex;gap:22px;padding:24px}.announcement-date{flex:0 0 85px;height:85px;border-radius:18px;background:linear-gradient(135deg,#0f766e,#064e3b);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center}.announcement-date strong{font-size:30px;line-height:1}.announcement-date span{font-size:12px;margin-top:5px}.announcement-body{flex:1}.announcement-body h3{margin:0 0 8px;color:#0f172a;font-size:22px}.announcement-body p{color:#64748b;line-height:1.7}.announcement-content{color:#334155;line-height:1.7;margin-bottom:15px}.announcement-content p{margin:0 0 10px}.announcement-body .download-btn{margin-top:6px}@media(max-width:1000px){.video-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.video-grid{grid-template-columns:1fr}.download-card{align-items:flex-start;flex-wrap:wrap}.download-btn{width:100%;justify-content:center}.announcement-card{gap:14px;padding:18px}.announcement-date{flex-basis:68px;height:68px}.announcement-date strong{font-size:24px}.announcement-body h3{font-size:18px}}

/* =========================================================
   CMS DYNAMIC MENU / SUBMENU
========================================================= */
.site-header .dropdown-menu {
    border: 0;
    border-radius: 14px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 14px 35px rgba(0,0,0,.14);
}
.site-header .dropdown-item {
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 500;
}
.site-header .dropdown-item:hover,
.site-header .dropdown-item.active {
    background: rgba(0,107,91,.10);
    color: #006b5b;
}
@media (min-width: 992px) {
    .site-header .dropdown:hover > .dropdown-menu { display:block; }
}

/* =========================================================
   HERO PORTAL BERITA - MAN 4 BOGOR
   Tampilan terinspirasi portal berita modern
========================================================= */
.portal-hero{
  position:relative;
  padding:28px 0 34px;
  background:
    radial-gradient(circle at 10% 10%,rgba(13,128,108,.10),transparent 32%),
    linear-gradient(180deg,#eef5f3 0%,#f7f9f8 100%);
}
.portal-hero-shell{
  display:grid;
  grid-template-columns:minmax(330px,36%) minmax(0,64%);
  min-height:520px;
  background:#fff;
  border:1px solid rgba(6,59,51,.10);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 24px 65px rgba(16,42,67,.13);
}
.portal-news-sidebar{min-width:0;background:#fff;border-right:1px solid #e7ecea;display:flex;flex-direction:column}
.portal-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e3e8e6;background:#fff}
.portal-tab{position:relative;border:0;background:#fff;padding:17px 10px 15px;color:#27343b;font-size:16px;font-weight:700;cursor:pointer;transition:.2s ease}
.portal-tab i{margin-right:5px;font-size:15px}
.portal-tab::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:transparent}
.portal-tab:hover{background:#f7faf9;color:var(--green-800)}
.portal-tab.active{color:#18322d}
.portal-tab.active::after{background:#1d4ed8}
.portal-news-list{padding:10px 0;overflow:auto;scrollbar-width:thin}
.portal-news-item{width:100%;display:flex;gap:14px;align-items:center;text-align:left;border:0;border-bottom:1px solid #edf1f0;background:#fff;padding:13px 14px 13px 12px;cursor:pointer;transition:.2s ease}
.portal-news-item:hover{background:#f7faf9}
.portal-news-item.active{background:#f5f8f7;box-shadow:inset 4px 0 0 var(--green-700)}
.portal-news-thumb{width:112px;height:94px;flex:0 0 112px;border-radius:3px;overflow:hidden;background:#e8efed}
.portal-news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.portal-news-item:hover .portal-news-thumb img{transform:scale(1.05)}
.portal-thumb-placeholder{width:100%;height:100%;display:grid;place-items:center;color:#8aa39d;font-size:28px}
.portal-news-copy{min-width:0;display:flex;flex-direction:column;gap:5px}
.portal-category{align-self:flex-start;background:#1769df;color:#fff;border-radius:4px;padding:4px 8px;font-size:10px;font-weight:900;line-height:1.1;letter-spacing:.03em}
.portal-news-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#252b2e;font-size:17px;line-height:1.25;font-weight:800}
.portal-news-copy small{color:#74817e;font-size:11px;font-weight:600}
.portal-empty{min-height:390px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;color:#71817c;padding:25px}
.portal-empty i{font-size:38px;color:#0d806c;margin-bottom:5px}
.portal-empty strong{font-size:18px;color:#263c36}
.portal-empty span{font-size:13px}
.portal-feature{position:relative;min-width:0;min-height:520px;background:#071f1b}
.portal-feature-link{position:absolute;inset:0;color:#fff;text-decoration:none!important;overflow:hidden}
.portal-feature-image{position:absolute;inset:0;background-position:center;background-size:cover;background-repeat:no-repeat;transform:scale(1.015);transition:opacity .35s ease,transform 7s ease}
.portal-feature-link:hover .portal-feature-image{transform:scale(1.045)}
.portal-feature-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,24,22,.02) 15%,rgba(4,24,22,.08) 40%,rgba(2,18,16,.86) 100%)}
.portal-feature-content{position:absolute;left:56px;right:48px;bottom:42px;z-index:2}
.portal-feature-category{display:inline-flex;align-items:center;gap:8px;background:#1769df;color:#fff;border-radius:4px;padding:6px 10px;font-size:11px;font-weight:900;letter-spacing:.04em;margin-bottom:10px}
.portal-feature-title{max-width:900px;margin:0 0 12px;color:#fff;font-size:clamp(30px,3.2vw,52px);font-weight:900;line-height:1.08;letter-spacing:-.025em;text-shadow:0 3px 10px rgba(0,0,0,.45);transition:opacity .16s ease}
.portal-feature-summary{max-width:850px;margin:0 0 14px;color:rgba(255,255,255,.93);font-size:15px;line-height:1.5;text-shadow:0 2px 7px rgba(0,0,0,.5);transition:opacity .16s ease}
.portal-feature-meta{display:flex;flex-wrap:wrap;gap:18px;color:#fff;font-size:13px;font-weight:650;text-shadow:0 2px 6px rgba(0,0,0,.45)}
.portal-feature-meta span{display:inline-flex;align-items:center;gap:7px}
.portal-feature-meta i{font-size:14px}
.portal-feature-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;background:linear-gradient(135deg,#063b33,#0d806c);padding:30px}
.portal-feature-empty i{font-size:50px;margin-bottom:10px;color:#eabf28}
.portal-feature-empty h1{margin:0;font-size:38px;font-weight:900}
.portal-feature-empty p{margin:6px 0 0;color:#d7f3eb}
.portal-section{position:relative}

@media (max-width:1100px){
  .portal-hero-shell{grid-template-columns:39% 61%;min-height:490px}
  .portal-feature{min-height:490px}
  .portal-news-thumb{width:92px;height:78px;flex-basis:92px}
  .portal-news-copy strong{font-size:15px}
  .portal-feature-content{left:38px;right:30px;bottom:32px}
  .portal-feature-title{font-size:clamp(28px,3.4vw,44px)}
}
@media (max-width:991.98px){
  .portal-hero{padding:18px 0 24px}
  .portal-hero-shell{grid-template-columns:1fr;min-height:0}
  .portal-feature{order:1;min-height:430px}
  .portal-news-sidebar{order:2;border-right:0;border-top:1px solid #e7ecea}
  .portal-news-list{display:grid;grid-template-columns:1fr 1fr}
  .portal-news-item{border-right:1px solid #edf1f0}
}
@media (max-width:650px){
  .portal-hero{padding:10px 0 18px}
  .portal-hero-shell{border-radius:16px}
  .portal-tabs{grid-template-columns:repeat(3,1fr)}
  .portal-tab{font-size:13px;padding:13px 5px}
  .portal-tab i{display:block;margin:0 0 3px}
  .portal-feature{min-height:340px}
  .portal-feature-content{left:20px;right:18px;bottom:23px}
  .portal-feature-category{font-size:9px;padding:5px 8px;margin-bottom:7px}
  .portal-feature-title{font-size:27px;line-height:1.08;margin-bottom:8px}
  .portal-feature-summary{font-size:12px;line-height:1.4;margin-bottom:9px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .portal-feature-meta{gap:10px;font-size:10px}
  .portal-news-list{display:block}
  .portal-news-item{padding:10px}
  .portal-news-thumb{width:84px;height:70px;flex-basis:84px}
  .portal-news-copy strong{font-size:14px}
  .portal-category{font-size:8px;padding:3px 6px}
}

/* =========================================================
   HERO PORTAL FINAL — KIRI BERITA + KANAN BANNER CMS
========================================================= */
.portal-hero{padding:0;background:#f4f7f6}
.portal-hero .container-fluid{width:100%}
.portal-hero-shell{display:grid;grid-template-columns:36% 64%;min-height:520px;background:#fff;border:0;border-radius:0;overflow:hidden;box-shadow:0 12px 35px rgba(8,38,34,.10)}
.portal-news-sidebar{min-width:0;background:#fff;border-right:1px solid #e4e9e7;display:flex;flex-direction:column}
.portal-tabs{display:grid;grid-template-columns:repeat(3,1fr);border-bottom:1px solid #e3e8e6;background:#fff}
.portal-tab{position:relative;border:0;background:#fff;padding:17px 10px 15px;color:#2b3135;font-size:16px;font-weight:700;cursor:pointer}
.portal-tab i{margin-right:5px}
.portal-tab::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:3px;background:transparent}
.portal-tab:first-child{color:#222}
.portal-tab:first-child::after{background:#1769df}
.portal-news-list{padding:10px 0;overflow:hidden}
.portal-news-item{width:100%;display:flex;gap:14px;align-items:center;text-align:left;border:0;border-bottom:1px solid #edf1f0;background:#fff;padding:13px 14px 13px 12px;cursor:pointer;transition:.2s ease;text-decoration:none;color:inherit}
.portal-news-item:hover{background:#f7faf9;color:inherit}
.portal-news-item.active{background:#f5f8f7;box-shadow:inset 4px 0 0 #0d806c}
.portal-news-thumb{width:132px;height:104px;flex:0 0 132px;border-radius:2px;overflow:hidden;background:#e8efed}
.portal-news-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.portal-news-item:hover .portal-news-thumb img{transform:scale(1.05)}
.portal-news-copy{min-width:0;display:flex;flex-direction:column;gap:7px}
.portal-category{align-self:flex-start;background:#1769df;color:#fff;border-radius:4px;padding:4px 8px;font-size:10px;font-weight:900;line-height:1.1;letter-spacing:.03em}
.portal-news-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#25292b;font-size:18px;line-height:1.25;font-weight:800}

.portal-banner{position:relative;min-width:0;min-height:520px;background:#062c26;overflow:hidden}
.portal-banner-slides,.portal-banner-slide{position:absolute;inset:0}
.portal-banner-slide{opacity:0;visibility:hidden;transition:opacity .65s ease,visibility .65s ease;display:flex;align-items:center;justify-content:center;background:#062c26}
.portal-banner-slide.active{opacity:1;visibility:visible}
.portal-banner-slide img{width:100%;height:100%;display:block;object-fit:contain;object-position:center center;background:#062c26}
.portal-banner-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,20,18,.04) 20%,rgba(0,20,18,.10) 48%,rgba(0,18,16,.78) 100%)}
.portal-banner-content{position:absolute;left:56px;right:56px;bottom:42px;color:#fff;text-align:left;z-index:3}
.portal-banner-content h1{margin:0 0 7px;color:#fff;font-size:clamp(22px,2.5vw,38px);font-weight:900;line-height:1.08;text-shadow:0 3px 10px rgba(0,0,0,.5)}
.portal-banner-content p{margin:0;color:#fff;font-size:16px;line-height:1.4;text-shadow:0 2px 7px rgba(0,0,0,.55);max-width:850px}
.portal-banner-dots{position:absolute;right:28px;bottom:25px;z-index:5;display:flex;gap:7px}
.portal-banner-dot{width:9px;height:9px;padding:0;border:1px solid rgba(255,255,255,.8);border-radius:50%;background:rgba(255,255,255,.35);cursor:pointer}
.portal-banner-dot.active{background:#fff;transform:scale(1.15)}
.portal-banner-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;background:linear-gradient(135deg,#063b33,#0d806c);padding:30px}
.portal-banner-empty i{font-size:50px;margin-bottom:10px;color:#eabf28}
.portal-banner-empty h1{margin:0;font-size:38px;font-weight:900}
.portal-banner-empty p{margin:6px 0 0;color:#d7f3eb}

@media(max-width:1100px){
 .portal-hero-shell{grid-template-columns:40% 60%;min-height:480px}
 .portal-banner{min-height:480px}
 .portal-news-thumb{width:100px;height:82px;flex-basis:100px}
 .portal-news-copy strong{font-size:15px}
 .portal-banner-content{left:38px;right:35px;bottom:35px}
 .portal-banner-content h1{font-size:30px}
 .portal-banner-content p{font-size:14px}
}
@media(max-width:767.98px){
 .portal-hero-shell{grid-template-columns:1fr;min-height:0}
 .portal-banner{order:1;min-height:360px}
 .portal-news-sidebar{order:2;border-right:0;border-top:1px solid #e7ecea}
 .portal-news-list{display:grid;grid-template-columns:1fr 1fr}
 .portal-news-item{border-right:1px solid #edf1f0}
 .portal-banner-content{left:20px;right:20px;bottom:28px}
 .portal-banner-content h1{font-size:25px}
 .portal-banner-content p{font-size:12px}
}
@media(max-width:560px){
 .portal-news-list{display:block}
 .portal-banner{min-height:300px}
 .portal-news-thumb{width:84px;height:70px;flex-basis:84px}
 .portal-news-copy strong{font-size:14px}
}


/* =====================================================
   FIX HERO MAN 4 BOGOR
   Tinggi hero = 400px
   ===================================================== */

.home-hero,
.man4-hero {
    position: relative !important;
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
    overflow: hidden !important;
}

/* Slider */
.home-hero-slides,
.man4-hero-slider {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 400px !important;
}

/* Gambar slider */
.home-hero-slide,
.man4-hero-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 400px !important;
    background-size: cover !important;
    background-position: center center !important;
}

/* Kontainer teks */
.home-hero-content,
.man4-hero-content {
    position: absolute !important;
    z-index: 5 !important;
    left: 50% !important;
    bottom: 25px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 1100px !important;
    text-align: center !important;
}

/* Judul */
.home-hero-content h1,
.man4-hero-content h1 {
    margin: 0 0 5px !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
}

/* Subjudul */
.home-hero-content p,
.man4-hero-content p {
    margin: 0 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
}

/* Mobile */
@media (max-width: 768px) {

    .home-hero,
    .man4-hero {
        height: 300px !important;
        min-height: 300px !important;
        max-height: 300px !important;
    }

    .home-hero-slides,
    .man4-hero-slider,
    .home-hero-slide,
    .man4-hero-slide {
        height: 300px !important;
    }

    .home-hero-content,
    .man4-hero-content {
        bottom: 18px !important;
    }

    .home-hero-content h1,
    .man4-hero-content h1 {
        font-size: 18px !important;
    }

    .home-hero-content p,
    .man4-hero-content p {
        font-size: 12px !important;
    }
}

/* =========================================================
   HALAMAN PENGUMUMAN
   ========================================================= */

.announcement-header{
    position:relative;
    padding:80px 20px 70px;
    background:
        linear-gradient(
            135deg,
            #075c4e 0%,
            #087f6e 55%,
            #0b6658 100%
        );
    color:#fff;
    overflow:hidden;
}

.announcement-header::after{
    content:"";
    position:absolute;
    width:420px;
    height:420px;
    right:-150px;
    top:-180px;
    border-radius:50%;
    background:rgba(255,255,255,.06);
}

.announcement-header-inner{
    position:relative;
    z-index:2;
    width:min(1180px,92%);
    margin:auto;
}

.announcement-kicker{
    display:inline-block;
    margin-bottom:14px;
    font-size:13px;
    font-weight:800;
    letter-spacing:2px;
    color:#d9f99d;
}

.announcement-header h1{
    margin:0 0 12px;
    font-size:46px;
    line-height:1.1;
    font-weight:800;
}

.announcement-header p{
    margin:0;
    font-size:18px;
    color:rgba(255,255,255,.85);
}


/* =========================================================
   LIST PENGUMUMAN
   ========================================================= */

.announcement-section{
    padding:65px 20px 90px;
    background:#f6f8f9;
}

.announcement-container{
    width:min(1100px,92%);
    margin:auto;
    display:flex;
    flex-direction:column;
    gap:20px;
}

.announcement-card{
    display:flex;
    align-items:flex-start;
    gap:22px;
    background:#fff;
    border:1px solid #e5eaec;
    border-radius:18px;
    padding:26px;
    box-shadow:0 8px 30px rgba(0,0,0,.05);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.announcement-card:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 38px rgba(0,0,0,.09);
}

.announcement-card-icon{
    flex:0 0 58px;
    width:58px;
    height:58px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:16px;
    background:#e7f8f3;
    font-size:27px;
}

.announcement-card-content{
    flex:1;
    min-width:0;
}

.announcement-date{
    margin-bottom:7px;
    color:#07816f;
    font-size:13px;
    font-weight:700;
}

.announcement-card h2{
    margin:0 0 10px;
    color:#102d4f;
    font-size:23px;
    line-height:1.3;
}

.announcement-summary{
    margin:0 0 18px;
    color:#5d6875;
    font-size:15px;
    line-height:1.7;
}

.announcement-file{
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
}

.announcement-file-type{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:7px 12px;
    border-radius:999px;
    background:#e4f8eb;
    color:#16804c;
    font-size:12px;
    font-weight:800;
}

.announcement-download{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:9px 17px;
    border-radius:9px;
    background:#087f6e;
    color:#fff !important;
    text-decoration:none !important;
    font-size:13px;
    font-weight:700;
    transition:.2s ease;
}

.announcement-download:hover{
    background:#055d51;
    transform:translateY(-1px);
}


/* =========================================================
   TIDAK ADA PENGUMUMAN
   ========================================================= */

.announcement-empty{
    text-align:center;
    background:#fff;
    border:1px solid #e5eaec;
    border-radius:20px;
    padding:70px 25px;
}

.announcement-empty-icon{
    font-size:50px;
    margin-bottom:15px;
}

.announcement-empty h2{
    margin:0 0 10px;
    color:#102d4f;
}

.announcement-empty p{
    margin:0;
    color:#687582;
}


/* =========================================================
   TICKER PENGUMUMAN
   ========================================================= */

.news-ticker-label{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:250px;
    padding:0 25px;
    background:#fbc800;
    color:#102d4f !important;
    text-decoration:none !important;
    font-weight:800;
    font-size:17px;
    white-space:nowrap;
}

.news-ticker-label:hover{
    background:#ffd83d;
}

.ticker-news{
    color:#fff !important;
    text-decoration:none !important;
}

.ticker-news:hover{
    text-decoration:underline !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:768px){

    .announcement-header{
        padding:55px 20px;
    }

    .announcement-header h1{
        font-size:34px;
    }

    .announcement-header p{
        font-size:15px;
    }

    .announcement-section{
        padding:40px 15px 60px;
    }

    .announcement-container{
        width:100%;
    }

    .announcement-card{
        padding:20px;
        gap:15px;
    }

    .announcement-card-icon{
        flex-basis:48px;
        width:48px;
        height:48px;
        font-size:22px;
    }

    .announcement-card h2{
        font-size:19px;
    }

    .announcement-summary{
        font-size:14px;
    }

    .news-ticker-label{
        min-width:150px;
        padding:0 12px;
        font-size:13px;
    }

}

/* =========================================================
   HERO FULL-WIDTH — hanya mengubah layout hero
   ========================================================= */
.portal-hero{
  padding:0;
  background:#f4f7f6;
}
.portal-hero .container-fluid{
  width:100%;
  padding-left:0 !important;
  padding-right:0 !important;
}
.portal-hero-shell{
  display:block;
  width:100%;
  min-height:0;
  background:#fff;
  border:0;
  border-radius:0;
  overflow:hidden;
  box-shadow:none;
}
.portal-banner{
  position:relative;
  width:100%;
  height:auto;
  min-height:0;
  aspect-ratio:2039 / 872;
  background:#062c26;
  overflow:hidden;
}
.portal-banner-slides,.portal-banner-slide{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}
.portal-banner-slide img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
  background:#062c26;
}
.portal-banner-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,20,18,.08) 20%,rgba(0,20,18,.18) 48%,rgba(0,18,16,.78) 100%);
}
.portal-banner-content{
  left:6%;
  right:6%;
  bottom:8%;
  text-align:center;
}
.portal-banner-content h1{
  font-size:clamp(28px,4vw,60px);
  line-height:1.08;
}
.portal-banner-content p{
  max-width:1200px;
  margin-left:auto;
  margin-right:auto;
  font-size:clamp(14px,1.35vw,22px);
}
@media(max-width:767.98px){
  .portal-banner{
    min-height:0;
    aspect-ratio:2039 / 872;
  }
  .portal-banner-content{left:20px;right:20px;bottom:30px;}
  .portal-banner-content h1{font-size:27px;}
  .portal-banner-content p{font-size:13px;}
}


/* =========================================================
   IDENTITAS MADRASAH — gaya tabel profil resmi
   ========================================================= */
.identity-header{background:linear-gradient(135deg,#047d70,#075e57);color:#fff;border-radius:0 0 24px 24px;padding:52px 24px;margin-bottom:30px;box-shadow:0 12px 30px rgba(15,118,110,.16)}
.identity-header h1{margin:.35rem 0 .45rem;font-size:clamp(2rem,4vw,3rem);font-weight:800}
.identity-header p{margin:0;opacity:.92;font-size:1.05rem}
.identity-kicker{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.82rem;background:rgba(255,255,255,.14);padding:.5rem .8rem;border-radius:999px}
.identity-card-wrap{padding-top:0}
.identity-card{background:#fff;border-radius:22px;box-shadow:0 16px 45px rgba(15,23,42,.10);overflow:hidden;border:1px solid #e5e7eb}
.identity-card-title{display:flex;align-items:center;gap:16px;padding:24px 26px;background:#f0fdf4;border-bottom:1px solid #dcfce7}
.identity-icon{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;background:#047d70;color:#fff;font-size:1.45rem;flex:none}
.identity-card-title h2{margin:0;font-size:1.35rem;font-weight:800;color:#064e3b}
.identity-card-title p{margin:.2rem 0 0;color:#64748b}
.identity-table-wrap{overflow-x:auto}
.identity-table{width:100%;border-collapse:collapse;margin:0}
.identity-table th,.identity-table td{padding:15px 20px;border-bottom:1px solid #eef2f7;vertical-align:top;line-height:1.55}
.identity-table th{width:34%;background:#f8fafc;color:#334155;font-weight:750;text-align:left}
.identity-table td{color:#0f172a;background:#fff}
.identity-table tr:last-child th,.identity-table tr:last-child td{border-bottom:0}
.identity-table tr:hover th,.identity-table tr:hover td{background:#f8fffc}
.identity-badge{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:28px;padding:0 10px;border-radius:999px;background:#dcfce7;color:#166534;font-weight:800}
.identity-note{margin-top:24px;display:flex;gap:14px;align-items:flex-start;background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:20px 22px}
.identity-note-icon{font-size:1.35rem;color:#047d70;line-height:1}
.identity-note h3{margin:0 0 5px;font-size:1rem;font-weight:800}
.identity-note p{margin:0;color:#64748b;line-height:1.6}
@media(max-width:767.98px){
 .identity-header{padding:36px 18px;border-radius:0 0 18px 18px}
 .identity-card-title{padding:18px}
 .identity-table th,.identity-table td{padding:12px 14px;font-size:.93rem}
 .identity-table th{width:42%}
 .identity-note{padding:16px}
}


/* Halaman Visi dan Misi */
.visi-misi-page-wrap{max-width:1100px;margin:0 auto;padding-top:10px;padding-bottom:50px}
.visi-misi-card{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:34px;box-shadow:0 18px 50px rgba(15,23,42,.08);margin-bottom:24px}
.visi-misi-heading{display:flex;gap:18px;align-items:center;margin-bottom:22px}
.vm-icon{width:58px;height:58px;border-radius:16px;background:#ecfdf5;color:#047857;display:flex;align-items:center;justify-content:center;font-size:25px}
.visi-misi-heading span:not(.vm-icon){font-size:12px;font-weight:800;letter-spacing:.12em;color:#059669}
.visi-misi-heading h2{margin:3px 0 0;color:#0f172a;font-size:30px;font-weight:800}
.vm-content{font-size:17px;line-height:1.9;color:#334155}
.vm-content h2,.vm-content h3{color:#047857;margin-top:24px}
.vm-content p{margin-bottom:16px}
.vm-content ol,.vm-content ul{padding-left:25px}
@media(max-width:767px){.visi-misi-card{padding:22px}.visi-misi-heading h2{font-size:25px}.vm-content{font-size:16px}}


/* =========================================================
   BERITA / PRESTASI HORIZONTAL LIST SETELAH TICKER
   ========================================================= */
.home-feature-list{
  padding:34px 0 18px;
  background:#f7f9f8;
}
.home-feature-list-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.home-feature-list-head h2{
  margin:4px 0 3px;
  color:#102a43;
  font-size:28px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:-.02em;
}
.home-feature-list-head p{
  margin:0;
  color:#6b7b83;
  font-size:14px;
}
.home-feature-list-all{
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  color:#087763;
  font-size:14px;
  font-weight:800;
  text-decoration:none!important;
}
.home-feature-list-all:hover{color:#064f42}
.home-feature-list-items{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.home-feature-card{
  display:flex;
  align-items:stretch;
  width:100%;
  min-height:142px;
  overflow:hidden;
  background:#fff;
  border:1px solid #e3e9e7;
  border-radius:8px;
  box-shadow:0 3px 12px rgba(16,42,67,.06);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.home-feature-card:hover{
  transform:translateY(-2px);
  border-color:#d6e2df;
  box-shadow:0 8px 22px rgba(16,42,67,.10);
}
.home-feature-thumb{
  width:195px;
  min-width:195px;
  height:142px;
  overflow:hidden;
  background:#e9efed;
  text-decoration:none!important;
}
.home-feature-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.home-feature-card:hover .home-feature-thumb img{transform:scale(1.035)}
.home-feature-thumb-empty{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  color:#7b9690;
  font-size:32px;
}
.home-feature-content{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px 24px;
}
.home-feature-content h3{
  margin:0 0 16px;
  max-width:850px;
  font-size:24px;
  line-height:1.28;
  font-weight:500;
  letter-spacing:-.015em;
}
.home-feature-content h3 a{
  color:#111827;
  text-decoration:none!important;
}
.home-feature-content h3 a:hover{color:#087763}
.home-feature-date{
  display:flex;
  align-items:center;
  gap:8px;
  color:#7a7f86;
  font-size:14px;
  font-weight:500;
}
.home-feature-date i{font-size:16px;color:#6c7279}
.home-feature-empty{
  min-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  background:#fff;
  border:1px solid #e3e9e7;
  border-radius:8px;
  color:#6b7b83;
}
.home-feature-empty i{font-size:24px;color:#087763}

@media(max-width:767.98px){
  .home-feature-list{padding:24px 0 12px}
  .home-feature-list-head{align-items:flex-start;flex-direction:column;margin-bottom:14px}
  .home-feature-list-head h2{font-size:22px}
  .home-feature-list-head p{font-size:13px}
  .home-feature-card{min-height:108px}
  .home-feature-thumb{width:128px;min-width:128px;height:108px}
  .home-feature-content{padding:13px 14px}
  .home-feature-content h3{font-size:17px;line-height:1.25;margin-bottom:10px}
  .home-feature-date{font-size:12px}
  .home-feature-date i{font-size:14px}
}

/* =========================================================
   BERITA & PRESTASI | GALERI FOTO & VIDEO
   ========================================================= */
.home-media-section{
  padding:34px 0 22px;
  background:#f7f9f8;
}
.home-media-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(330px,.85fr);
  gap:26px;
  align-items:start;
}
.home-media-news{
  min-width:0;
}
.home-media-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.home-media-head h2{
  margin:4px 0 3px;
  color:#102a43;
  font-size:28px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:-.02em;
}
.home-media-head p{
  margin:0;
  color:#6b7b83;
  font-size:14px;
}
.home-media-all{
  display:inline-flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  color:#087763;
  font-size:14px;
  font-weight:800;
  text-decoration:none!important;
}
.home-media-all:hover{color:#064f42}
.home-media-news-list{
  display:flex;
  flex-direction:column;
  gap:13px;
}
.home-media-side{
  display:flex;
  flex-direction:column;
  gap:18px;
  min-width:0;
}
.home-media-card{
  background:#fff;
  border:1px solid #e2e9e6;
  border-radius:14px;
  padding:17px;
  box-shadow:0 5px 18px rgba(16,42,67,.055);
}
.home-media-card-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
  margin-bottom:13px;
}
.home-media-card-head .section-kicker{
  display:block;
  margin-bottom:2px;
}
.home-media-card-head h3{
  margin:2px 0 0;
  color:#102a43;
  font-size:20px;
  line-height:1.2;
  font-weight:850;
}
.home-media-card-head h3 i{color:#087763;margin-right:5px}
.home-media-card-head>a{
  color:#087763;
  font-size:12px;
  font-weight:800;
  text-decoration:none!important;
  white-space:nowrap;
}
.home-media-card-head>a:hover{text-decoration:underline!important}
.home-gallery-grid,
.home-video-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:11px;
}
.home-gallery-item{
  position:relative;
  height:145px;
  overflow:hidden;
  border-radius:10px;
  background:#e9efed;
  text-decoration:none!important;
}
.home-gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.home-gallery-item:hover img{transform:scale(1.05)}
.home-gallery-item::after{
  content:"";
  position:absolute;
  inset:45% 0 0;
  background:linear-gradient(180deg,transparent,rgba(0,0,0,.72));
}
.home-gallery-item span{
  position:absolute;
  z-index:2;
  left:10px;
  right:10px;
  bottom:8px;
  color:#fff;
  font-size:12px;
  line-height:1.25;
  font-weight:750;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.home-video-item{
  min-width:0;
  color:inherit;
  text-decoration:none!important;
}
.home-video-thumb{
  position:relative;
  height:125px;
  overflow:hidden;
  border-radius:10px;
  background:#0b2924;
}
.home-video-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .35s ease;
}
.home-video-item:hover .home-video-thumb img{transform:scale(1.05)}
.home-video-play{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#fff;
  font-size:38px;
  text-shadow:0 3px 12px rgba(0,0,0,.55);
  background:rgba(0,0,0,.08);
}
.home-video-play i{background:rgba(8,119,99,.9);border-radius:50%;line-height:1;padding:2px}
.home-video-item strong{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin-top:8px;
  color:#1f2937;
  font-size:13px;
  line-height:1.3;
  font-weight:800;
}
.home-video-placeholder{
  width:100%;height:100%;display:grid;place-items:center;color:#fff;font-size:42px;
  background:linear-gradient(135deg,#063b33,#0d806c);
}
.home-media-empty{
  min-height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#71817c;
  font-size:13px;
  border:1px dashed #d8e2df;
  border-radius:10px;
  background:#fafcfb;
}
.home-media-empty i{font-size:23px;color:#087763}

@media(max-width:991.98px){
  .home-media-grid{grid-template-columns:1fr;}
  .home-media-side{display:grid;grid-template-columns:1fr 1fr;align-items:start}
}
@media(max-width:650px){
  .home-media-section{padding:24px 0 15px}
  .home-media-head{align-items:flex-start;flex-direction:column;gap:10px}
  .home-media-head h2{font-size:22px}
  .home-media-side{display:flex}
  .home-gallery-item{height:135px}
  .home-video-thumb{height:120px}
}

/* =========================================================
   FLOATING WHATSAPP KIRI + KEMBALI KE ATAS KANAN
   ========================================================= */
.wa-float{
    position:fixed !important;
    left:24px !important;
    right:auto !important;
    bottom:24px !important;
    width:58px !important;
    height:58px !important;
    border-radius:50% !important;
    display:grid !important;
    place-items:center !important;
    background:#25D366 !important;
    color:#fff !important;
    text-decoration:none !important;
    font-size:29px !important;
    box-shadow:0 12px 30px rgba(37,211,102,.32) !important;
    z-index:4900 !important;
    transition:transform .2s ease, box-shadow .2s ease !important;
}
.wa-float:hover{
    transform:translateY(-3px) scale(1.04);
    box-shadow:0 16px 35px rgba(37,211,102,.4) !important;
}
.wa-float-label{display:none;}

.back-to-top{
    position:fixed;
    right:24px;
    bottom:24px;
    width:58px;
    height:58px;
    border:0;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:#0d806c;
    color:#fff;
    font-size:25px;
    cursor:pointer;
    box-shadow:0 12px 30px rgba(13,128,108,.28);
    z-index:4900;
    opacity:0;
    visibility:hidden;
    transform:translateY(12px);
    transition:opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.back-to-top.show{
    opacity:1;
    visibility:visible;
    transform:translateY(0);
}
.back-to-top:hover{
    background:#075c4e;
    transform:translateY(-3px);
}
@media(max-width:767.98px){
    .wa-float{
        left:16px !important;
        bottom:16px !important;
        width:54px !important;
        height:54px !important;
        font-size:27px !important;
    }
    .back-to-top{
        right:16px;
        bottom:16px;
        width:54px;
        height:54px;
        font-size:23px;
    }
}

/* =========================================================
   FIX BERANDA — BANNER FULL WIDTH
   Gambar banner memenuhi seluruh lebar viewport tanpa ruang
   kosong di kiri/kanan. Tetap proporsional dan responsive.
   ========================================================= */
html, body { overflow-x: hidden; }
.portal-hero {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 0 !important;
}
.portal-hero .container-fluid,
.portal-hero-shell,
.portal-banner {
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
}
.portal-hero-shell {
    display: block !important;
    min-height: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.portal-banner {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1600 / 700;
    overflow: hidden;
    background: #062c26;
}
.portal-banner-slides,
.portal-banner-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
}
.portal-banner-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center !important;
}
@media (max-width: 767.98px) {
    .portal-banner {
        aspect-ratio: 16 / 9;
    }
    .portal-banner-slide img {
        object-fit: cover !important;
    }
}

/* =========================================================
   PROGRAM UNGGULAN — TAMPILAN KARTU PROFESIONAL
========================================================= */
.program-content{padding:48px 52px 56px}
.program-intro{max-width:850px;margin:0 auto 38px;text-align:center}
.program-kicker{display:inline-flex;align-items:center;gap:8px;color:var(--green-700);font-size:12px;font-weight:900;letter-spacing:.16em}
.program-kicker i{color:var(--gold);font-size:16px}
.program-intro h2{margin:12px 0 10px;font-size:clamp(28px,3.4vw,42px);line-height:1.12;color:var(--ink);font-weight:850}
.program-intro p{margin:0;color:var(--muted);font-size:16px;line-height:1.7}
.program-body{color:var(--ink-2)}
.program-body>p:first-child{max-width:900px;margin:0 auto 30px;text-align:center;font-size:17px;line-height:1.75}
.program-body>ol,.program-body>ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.program-body>ol>li,.program-body>ul>li{position:relative;padding:25px 25px 23px 62px;background:linear-gradient(180deg,#f8fcfb,#fff);border:1px solid #dcebe7;border-radius:20px;box-shadow:0 8px 24px rgba(16,42,67,.06);font-size:21px;font-weight:850;color:var(--ink);line-height:1.35;transition:.22s ease}
.program-body>ol>li:hover,.program-body>ul>li:hover{transform:translateY(-3px);box-shadow:0 16px 35px rgba(16,42,67,.10);border-color:#bfe1d8}
.program-body>ol>li::before{content:counter(program-item,decimal-leading-zero);counter-increment:program-item;position:absolute;left:20px;top:22px;width:31px;height:31px;border-radius:10px;display:grid;place-items:center;background:var(--green-700);color:#fff;font-size:12px;font-weight:900}
.program-body>ol{counter-reset:program-item}
.program-body>ol>li::marker{font-size:0}
.program-body>ol>li>ul,.program-body>ol>li>ol,.program-body>ul>li>ul,.program-body>ul>li>ol{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.program-body>ol>li>ul>li,.program-body>ol>li>ol>li,.program-body>ul>li>ul>li,.program-body>ul>li>ol>li{position:relative;padding-left:24px;color:#52687b;font-size:15px;font-weight:600;line-height:1.55}
.program-body>ol>li>ul>li::before,.program-body>ol>li>ol>li::before,.program-body>ul>li>ul>li::before,.program-body>ul>li>ol>li::before{content:"✓";position:absolute;left:0;top:0;color:var(--green-700);font-weight:900}
.program-body h2{margin:30px 0 14px;color:var(--green-800);font-size:27px}
.program-body h3{margin:25px 0 12px;color:var(--green-800);font-size:22px}
.program-body p{line-height:1.8}
@media(max-width:800px){
 .program-content{padding:32px 22px 38px}
 .program-body>ol,.program-body>ul{grid-template-columns:1fr}
 .program-body>ol>li,.program-body>ul>li{font-size:19px;padding:21px 20px 20px 56px}
 .program-body>ol>li::before{left:17px;top:19px}
}
@media(max-width:520px){
 .program-intro{margin-bottom:28px}
 .program-intro p{font-size:14px}
 .program-body>ol>li,.program-body>ul>li{font-size:17px;border-radius:16px}
 .program-body>ol>li>ul>li,.program-body>ol>li>ol>li,.program-body>ul>li>ul>li,.program-body>ul>li>ol>li{font-size:14px}
}

/* =========================================================
   PROGRAM UNGGULAN — FINAL CLEAN LAYOUT
   Menghindari konten editor yang menyatu menjadi satu paragraf.
========================================================= */
.program-content{padding:48px 52px 64px!important}
.program-intro{max-width:920px;margin:0 auto 38px;text-align:center}
.program-intro .program-kicker{display:inline-flex;align-items:center;gap:9px;color:var(--green-700);font-size:12px;font-weight:900;letter-spacing:.15em}
.program-intro .program-kicker i{color:var(--gold)}
.program-intro h2{margin:12px 0 10px;font-size:clamp(28px,3.2vw,42px);line-height:1.12;color:var(--ink);font-weight:850;letter-spacing:-.03em}
.program-intro p{margin:0 auto;color:var(--muted);font-size:16px;line-height:1.7;max-width:820px}
.program-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.program-card{position:relative;overflow:hidden;background:linear-gradient(180deg,#ffffff 0%,#f8fcfb 100%);border:1px solid #dcebe7;border-radius:22px;padding:26px 27px 24px;box-shadow:0 10px 30px rgba(16,42,67,.07);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.program-card::after{content:"";position:absolute;right:-45px;top:-55px;width:150px;height:150px;border-radius:50%;background:rgba(13,128,108,.055);pointer-events:none}
.program-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(16,42,67,.11);border-color:#bfe1d8}
.program-card-head{position:relative;z-index:1;display:flex;align-items:flex-start;gap:16px;padding-bottom:17px;border-bottom:1px solid #e5efec}
.program-number{flex:0 0 44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--green-700),var(--green-900));color:#fff;font-size:13px;font-weight:900;box-shadow:0 7px 16px rgba(13,128,108,.20)}
.program-icon{font-size:22px;line-height:1;margin-bottom:5px}
.program-card h3{margin:0;color:var(--ink);font-size:22px;line-height:1.25;font-weight:850;letter-spacing:-.02em}
.program-items{position:relative;z-index:1;display:grid;gap:10px;list-style:none;margin:18px 0 0;padding:0}
.program-items li{display:flex;align-items:flex-start;gap:10px;color:#52687b;font-size:15px;line-height:1.55;font-weight:600}
.program-items li span{flex:0 0 21px;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#e1f3ee;color:var(--green-700);font-size:12px;font-weight:900;margin-top:1px}
@media(max-width:800px){
 .program-content{padding:34px 22px 44px!important}
 .program-grid{grid-template-columns:1fr;gap:18px}
 .program-card{padding:22px 20px}
 .program-card h3{font-size:20px}
}
@media(max-width:520px){
 .program-intro{margin-bottom:28px}
 .program-intro h2{font-size:27px}
 .program-intro p{font-size:14px}
 .program-card{border-radius:17px}
 .program-items li{font-size:14px}
}

/* Program Unggulan: menjaga teks panjang tetap rapi */
.program-card{min-width:0}
.program-card h3,.program-items li strong{overflow-wrap:anywhere}
.program-items li strong{font-weight:600}


/* CMS as single source of truth */
.cms-page-content{line-height:1.8;font-size:1.04rem;color:#29445f}.cms-page-content h1,.cms-page-content h2,.cms-page-content h3{color:#102d49;margin-top:1.4rem}.cms-page-content img{max-width:100%;height:auto;border-radius:14px}.cms-page-content table{width:100%;border-collapse:collapse}.cms-page-content th,.cms-page-content td{padding:10px;border:1px solid #dbe7ee;text-align:left}.cms-page-content ul,.cms-page-content ol{padding-left:1.5rem}.cms-page-content a{color:#087f6c}

/* ===== Extracted component styles (kept out of PHP) ===== */
.site-header .dropdown-menu{border:0;border-radius:16px;padding:8px;box-shadow:0 18px 45px rgba(15,23,42,.16);min-width:220px}
.site-header .menu-sub-item{position:relative}
.site-header .submenu-menu{top:-8px;left:100%;margin-left:6px;display:none}
.site-header .menu-sub-item:hover>.submenu-menu,.site-header .menu-sub-item:focus-within>.submenu-menu{display:block}
.site-header .submenu-arrow{float:right;margin-top:4px;font-size:.75rem}
.site-header .dropdown-item{border-radius:10px;padding:.62rem .8rem;font-weight:650;white-space:nowrap}
.site-header .dropdown-item.active,.site-header .dropdown-item:hover{background:#ecfdf5;color:#047857}
@media(max-width:991.98px){
 .site-header .submenu-menu{position:static!important;display:block;box-shadow:none;border-radius:8px;margin:0 0 0 12px;padding:0 0 0 8px;border-left:2px solid #d1fae5}
 .site-header .submenu-toggle .submenu-arrow{display:none}
 .site-header .dropdown-menu{box-shadow:none;background:transparent;padding-left:10px}
 .site-header .dropdown-item{color:inherit}
}
.gallery-lightbox{display:none;position:fixed;inset:0;z-index:999999;background:#020617f7;align-items:center;justify-content:center;padding:50px}
.gallery-lightbox.show{display:flex}
.lightbox-content{text-align:center;color:#fff}
.lightbox-content img{max-width:90vw;max-height:80vh;border-radius:14px}
.lightbox-close,.lightbox-prev,.lightbox-next{position:absolute;background:#ffffff18;color:#fff;border:1px solid #ffffff20;border-radius:14px;cursor:pointer}
.lightbox-close{right:20px;top:18px;font-size:36px;width:50px;height:50px}
.lightbox-prev,.lightbox-next{top:50%;font-size:30px;width:55px;height:70px}
.lightbox-prev{left:20px}.lightbox-next{right:20px}
.lightbox-caption{margin-top:12px;font-weight:800}
@media(max-width:600px){.gallery-lightbox{padding:20px 8px}.lightbox-prev{left:8px}.lightbox-next{right:8px}}
.identity-empty{color:#94a3b8;font-style:italic}.identity-table td{min-width:0}
.public-page-card{padding:28px}
