@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');
:root{--green:#006b45;--green2:#087f50;--dark:#064b35;--gold:#d9a52e;--pale:#e5f5ea;--ink:#202b25;--soft:#f7f9f7}
*{box-sizing:border-box}body{font-family:Poppins,Arial,sans-serif;color:var(--ink);margin:0}.topbar{background:var(--dark);color:#fff;padding:8px 0;font-size:12px}.navbar-brand{color:var(--dark)!important;font-weight:700;line-height:1.1}.navbar-brand small{letter-spacing:3px;font-size:11px}.brand-logo{width:48px;height:48px;object-fit:contain}.nav-link{font-size:13px;font-weight:500}.nav-link:hover{color:var(--green)!important}.hero{background:linear-gradient(105deg,rgba(0,75,48,.96),rgba(0,107,69,.82)),url('../uploads/hero.jpg') center/cover;color:#fff}.hero .min-vh-50{min-height:440px}.hero h1{font-size:clamp(2rem,4vw,3.4rem);font-weight:800;max-width:760px}.hero .lead{max-width:650px}.eyebrow{color:var(--gold);font-size:12px;font-weight:700;letter-spacing:1.4px}.btn-gold{background:var(--gold);border-color:var(--gold);color:#1d2b22;font-weight:600}.btn-emerald{background:var(--green);border-color:var(--green);color:#fff}.btn-emerald:hover{background:var(--dark);color:#fff}.section{padding:64px 0}.section h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;color:var(--dark)}.section-soft{background:var(--soft)}.feature-panel,.unit-card,.news-card,.panel,.stat-card{background:#fff;border:1px solid #e6ece8;border-radius:16px;box-shadow:0 5px 20px rgba(10,50,30,.05)}.feature-panel{padding:32px;background:var(--pale)}.unit-card{padding:22px}.unit-card h3{font-size:17px;font-weight:700}.unit-card p,.unit-card small{font-size:12px;color:#64736a}.unit-icon{font-size:28px;color:var(--gold)}.program-item{padding:16px;border:1px solid #e5ece7;border-radius:12px;color:var(--green);font-weight:700}.program-item span{color:var(--ink);font-size:13px}.news-card{overflow:hidden}.news-card img{width:100%;height:190px;object-fit:cover}.news-card h3{font-size:16px;font-weight:700}.news-card p,.news-card small{font-size:12px;color:#68766e}footer{background:var(--dark);color:#fff}footer p{font-size:13px;color:#d8e8df}.login-page{min-height:100vh;background:linear-gradient(135deg,var(--dark),var(--green2));display:grid;place-items:center;padding:20px}.login-card{background:#fff;border-radius:18px;padding:32px;width:min(100%,430px);box-shadow:0 20px 60px #002d1c55}.login-card h2{font-weight:800;color:var(--dark)}.admin-shell{min-height:100vh;display:flex;background:var(--soft)}.sidebar{width:250px;background:var(--dark);color:#fff;padding:26px 18px;flex-shrink:0}.sidebar h4{font-size:17px;font-weight:800;margin:0}.sidebar small{letter-spacing:3px}.sidebar a{display:block;color:#e7f2eb;text-decoration:none;padding:12px 14px;border-radius:9px;margin:5px 0;font-size:13px}.sidebar a:hover,.sidebar a.active{background:var(--green2);color:#fff}.admin-main{padding:32px;flex:1;min-width:0}.admin-main h2{font-size:24px;font-weight:700;color:var(--dark)}.stat-card,.panel{padding:22px}.stat-card span{display:block;color:#64736a;font-size:13px}.stat-card strong{display:block;color:var(--green);font-size:32px;margin-top:8px}.panel h4{font-size:17px;font-weight:700;color:var(--dark)}.table{font-size:13px}@media(max-width:800px){.admin-shell{display:block}.sidebar{width:100%;padding:16px}.sidebar a{display:inline-block;margin:3px}.admin-main{padding:18px}.hero .min-vh-50{min-height:380px}.section{padding:44px 0}}

/* V6 refinement */
a,button,input,textarea,select{outline-offset:3px}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(217,165,46,.75)}
.news-card img{display:block}
.news-card a img{transition:transform .25s ease}
.news-card a:hover img{transform:scale(1.025)}
.article-body{font-size:1rem;line-height:1.85;overflow-wrap:anywhere}
.admin-main .table td,.admin-main .table th{vertical-align:middle}
@media(max-width:800px){.sidebar{display:flex;flex-wrap:wrap;align-items:center;gap:3px}.sidebar h4,.sidebar small{width:100%}.sidebar a{padding:9px 11px;font-size:12px}.admin-main{overflow-x:hidden}.feature-panel{padding:22px}}


/* Halaman berita - penyempurnaan tampilan */
.news-page{background:#f7faf8;min-height:100vh;display:flex;flex-direction:column}
.news-navbar{position:sticky;top:0;z-index:20;border-bottom:1px solid #e8eee9}
.news-main{width:100%;max-width:1120px;padding-top:54px;padding-bottom:76px;flex:1}
.news-heading{margin-bottom:28px}
.news-heading .eyebrow,.news-detail .eyebrow{color:var(--green2)}
.news-heading h1{font-size:clamp(2rem,4vw,2.7rem);font-weight:800;letter-spacing:-1.2px;color:var(--dark);margin:7px 0 10px}
.news-heading p{color:#66756c;margin:0;max-width:680px;font-size:14px}
.news-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:28px 0 18px;max-width:900px}
.news-search .form-control{min-height:46px;border:1px solid #dce6df;border-radius:10px;box-shadow:none;flex:1 1 360px;padding:11px 15px}
.news-search .form-control:focus{border-color:var(--green2);box-shadow:0 0 0 3px rgba(8,127,80,.10)}
.news-search .btn{min-height:46px;border-radius:10px;padding:0 24px;font-weight:600}
.clear-search{font-size:12px;color:var(--green);text-decoration:none}
.search-caption{font-size:13px;color:#68766e;margin:0 0 18px}
.news-grid{row-gap:26px!important}
.news-card-modern{border:1px solid #e4ebe6;border-radius:15px;overflow:hidden;box-shadow:0 7px 24px rgba(12,55,34,.055);transition:transform .2s ease,box-shadow .2s ease;display:flex;flex-direction:column}
.news-card-modern:hover{transform:translateY(-4px);box-shadow:0 13px 30px rgba(12,55,34,.11)}
.news-image-link{display:block;height:220px;overflow:hidden;background:#e8f2ec}
.news-card-modern .news-image-link img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.news-card-modern:hover .news-image-link img{transform:scale(1.045)}
.news-image-placeholder{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(135deg,#064b35,#087f50);color:white;gap:6px}
.news-image-placeholder span{font-size:42px;font-weight:800;letter-spacing:3px}
.news-image-placeholder small{font-size:10px;letter-spacing:2px;color:#e3f2e9}
.news-card-content{padding:20px;display:flex;flex-direction:column;flex:1}
.news-card-date,.news-date{font-size:11px;color:#849188;letter-spacing:.2px}
.news-card-content h2{font-size:18px;line-height:1.45;font-weight:700;color:var(--dark);margin:10px 0 9px}
.news-card-content p{font-size:13px;line-height:1.7;color:#68766e;margin:0 0 18px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.news-readmore{font-size:13px;font-weight:600;color:var(--green);text-decoration:none;margin-top:auto;display:inline-flex;gap:8px;align-items:center}
.news-readmore:hover{color:var(--dark)}
.news-detail{max-width:850px;margin:0 auto;background:#fff;border:1px solid #e5ece7;border-radius:18px;padding:clamp(22px,4vw,48px);box-shadow:0 8px 30px rgba(10,50,30,.05)}
.back-link{font-size:13px;color:var(--green);text-decoration:none;font-weight:600}
.news-detail h1{font-size:clamp(1.8rem,4vw,2.7rem);font-weight:800;line-height:1.25;color:var(--dark);letter-spacing:-.7px;margin:8px 0 12px}
.news-detail-image{display:block;width:100%;max-height:520px;object-fit:contain;background:#f1f5f2;border-radius:13px;margin:24px 0}
.news-lead{font-size:17px;line-height:1.75;font-weight:500;color:#506158;margin:22px 0}
.article-body{font-size:15px;line-height:1.95;color:#34443a;overflow-wrap:anywhere}
.news-empty{background:#fff;border:1px solid #e5ece7;border-radius:16px;padding:34px;text-align:center}
.news-empty h1,.news-empty h2{font-size:22px;color:var(--dark);font-weight:700}
.news-empty p{color:#68766e;font-size:14px}
.news-footer{background:var(--dark);color:#dcebe2;padding:20px 0;font-size:12px;text-align:center}
@media(max-width:576px){.news-main{padding-top:36px;padding-bottom:48px}.news-search{gap:8px}.news-search .btn{width:100%}.news-image-link{height:205px}.news-card-content{padding:17px}.news-detail{border-radius:13px}.news-navbar .navbar-brand{font-size:13px}.news-navbar .btn{font-size:11px}}


/* Penyelarasan final berita: beranda dan halaman semua berita */
.home-news-section .home-news-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-bottom:28px}
.home-news-heading h2{margin:7px 0 8px}
.home-news-heading p{max-width:620px;color:#68766e;font-size:14px;margin:0}
.home-news-search{display:flex;align-items:center;gap:8px;width:min(100%,360px);flex:0 0 360px}
.home-news-search .form-control{min-width:0;min-height:44px;border-radius:9px;border-color:#dce6df;box-shadow:none}
.home-news-search .btn{min-height:44px;padding:0 22px;border-radius:9px;font-weight:600;white-space:nowrap}
.home-news-grid{row-gap:24px!important}
.home-news-card{display:flex;flex-direction:column;border-radius:15px;overflow:hidden;background:#fff;border:1px solid #e4ebe6;box-shadow:0 7px 24px rgba(12,55,34,.055);transition:transform .2s ease,box-shadow .2s ease}
.home-news-card:hover{transform:translateY(-4px);box-shadow:0 13px 30px rgba(12,55,34,.11)}
.home-news-image{display:block;height:220px;overflow:hidden;background:#e8f2ec}
.home-news-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.home-news-card:hover .home-news-image img{transform:scale(1.04)}
.home-news-content{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:18px 20px 20px}
.home-news-content h3{font-size:17px;line-height:1.45;font-weight:700;color:var(--dark);margin:9px 0}
.home-news-content p{font-size:13px;line-height:1.7;color:#68766e;margin:0 0 16px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home-news-content .news-readmore{margin-top:auto}
.home-news-all{border-radius:9px;padding:10px 20px;font-weight:600}
.news-main{max-width:1140px;padding-top:44px;padding-bottom:64px}
.news-heading{margin-bottom:22px}
.news-heading h1{font-size:clamp(1.8rem,3vw,2.35rem);letter-spacing:-.7px}
.news-search{display:flex;flex-wrap:nowrap;align-items:center;gap:10px;max-width:100%;margin:22px 0 24px}
.news-search .form-control{flex:1 1 auto;min-width:0;min-height:44px}
.news-search .btn{flex:0 0 auto;min-height:44px}
.news-search .clear-search{flex:0 0 auto;white-space:nowrap}
.news-grid{row-gap:24px!important}
.news-image-link{height:220px}
.news-card-content{padding:18px 20px 20px}
.news-card-content h2{font-size:17px;line-height:1.45;margin:9px 0}
.news-footer{margin-top:auto;padding:18px 0}
@media(max-width:767.98px){.home-news-section .home-news-heading{display:block}.home-news-search{width:100%;max-width:460px;flex-basis:auto;margin-top:18px}.news-main{padding-top:34px;padding-bottom:48px}.news-search{flex-wrap:wrap}.news-search .form-control{flex:1 1 100%}.news-search .btn{flex:1 1 auto}.news-search .clear-search{padding:8px 0}}
@media(max-width:575.98px){.home-news-image,.news-image-link{height:205px}.home-news-content,.news-card-content{padding:16px}.home-news-content h3,.news-card-content h2{font-size:16px}.news-heading h1{font-size:1.8rem}}

/* Header halaman berita dibuat identik dengan navigasi beranda */
.news-navbar .brand-logo{width:48px;height:48px;object-fit:contain}
.news-navbar .navbar-brand{color:var(--dark)!important;font-weight:700;line-height:1.1}
.news-navbar .navbar-brand small{letter-spacing:3px;font-size:11px}
.news-navbar .nav-link{font-size:13px;font-weight:500}
.news-navbar .nav-link.active{color:var(--green)!important;font-weight:700}
.news-page .news-card-content h3{font-size:17px;line-height:1.45;font-weight:700;color:var(--dark);margin:9px 0}
.news-page .news-card-content{padding:18px 20px 20px}
@media(max-width:575.98px){.news-page .news-card-content{padding:16px}.news-page .news-card-content h3{font-size:16px}}


/* Konsistensi header dan footer halaman berita dengan beranda */
.news-topbar{flex:0 0 auto}
.news-navbar .container{max-width:1140px}
.news-navbar .navbar-brand{margin-right:1.5rem}
.news-navbar .navbar-nav{align-items:center}
.news-navbar .nav-link{padding:.65rem .48rem}
.news-site-footer{margin-top:auto;background:var(--dark);color:#fff;padding:0;text-align:left}
.news-site-footer h2{color:#fff}
.news-site-footer p{font-size:13px;color:#d8e8df}
.news-footer-divider{border-color:rgba(255,255,255,.25);margin:18px 0 12px}
.news-footer-home{display:inline-block;color:#fff;text-decoration:none;border:1px solid rgba(255,255,255,.65);border-radius:8px;padding:8px 13px;font-size:12px}
.news-footer-home:hover{background:var(--green2);color:#fff}
.news-site-footer small{font-size:11px;color:#d8e8df}
@media(max-width:991.98px){.news-navbar .navbar-nav{align-items:stretch}.news-navbar .nav-link{padding:.55rem 0}}


/* Foto dan sambutan kepala unit pendidikan */
.unit-head-photo{display:block;width:104px;height:104px;object-fit:cover;border-radius:50%;margin:12px auto;border:4px solid #e5f5ea;box-shadow:0 5px 18px rgba(6,75,53,.12)}
.unit-head-name{font-size:12px!important;color:#40564a!important;text-align:center;margin-bottom:10px}
.unit-head-welcome{padding:26px;background:#f7faf8;border:1px solid #e2ece5;border-radius:16px}
.unit-head-detail-photo{width:100%;max-width:220px;aspect-ratio:3/4;object-fit:cover;object-position:center top;border-radius:14px;box-shadow:0 8px 24px rgba(6,75,53,.12)}
.unit-head-message{font-size:15px;line-height:1.9;color:#405047;white-space:normal}
@media(max-width:575.98px){.unit-head-welcome{padding:18px}.unit-head-detail-photo{max-width:170px;margin-bottom:8px}}


/* PERBAIKAN TAMPILAN FOTO KEPALA UNIT - 23 NOVEMBER 2026 */
#unit .unit-card { min-width:0; overflow:hidden; }
#unit .unit-card .unit-head-photo {
  display:block !important;
  width:104px !important;
  max-width:104px !important;
  height:104px !important;
  max-height:104px !important;
  object-fit:cover !important;
  object-position:center top !important;
  border-radius:50% !important;
  margin:12px auto !important;
  flex:none !important;
}
#unit .unit-card .unit-head-name { text-align:center !important; overflow-wrap:anywhere; }
.unit-head-welcome { width:100%; max-width:100%; overflow:hidden; }
.unit-head-layout {
  display:grid;
  grid-template-columns:minmax(150px,220px) minmax(0,1fr);
  align-items:start;
  gap:28px;
  width:100%;
  max-width:100%;
}
.unit-head-photo-wrap { width:100%; min-width:0; text-align:center; }
.unit-head-detail-photo {
  display:block !important;
  width:100% !important;
  max-width:220px !important;
  height:auto !important;
  aspect-ratio:3 / 4 !important;
  object-fit:cover !important;
  object-position:center top !important;
  margin:0 auto !important;
  border-radius:14px;
}
.unit-head-copy { min-width:0; width:100%; overflow-wrap:anywhere; }
.unit-head-message { width:100%; max-width:100%; overflow-wrap:anywhere; word-break:normal; line-height:1.85; }
@media(max-width:767.98px) {
  .unit-head-layout { grid-template-columns:minmax(0,1fr); gap:18px; }
  .unit-head-detail-photo { max-width:180px !important; }
  .unit-head-welcome { padding:18px; }
}


/* V7 - Tata letak halaman profil unit yang responsif */
.unit-page-container{max-width:1140px!important}
.unit-page-grid{
  display:grid;
  grid-template-columns:minmax(0,2.1fr) minmax(260px,.9fr);
  align-items:start;
  gap:30px;
  width:100%;
}
.unit-main-column,.unit-sidebar{min-width:0;width:100%}
.unit-main-column>p{font-size:15px;line-height:1.85;color:#405047;overflow-wrap:anywhere}
.unit-main-column h1{font-size:clamp(1.55rem,3vw,2.15rem);line-height:1.25;color:var(--dark);font-weight:800;margin:5px 0}
.unit-main-column h3{color:var(--dark);font-weight:700;margin-top:26px}
.unit-sidebar .feature-panel{position:sticky;top:24px;padding:24px}
.unit-sidebar .feature-panel h3{font-size:19px;color:var(--dark);font-weight:800;margin-bottom:18px}
.unit-sidebar .feature-panel p{font-size:13px;line-height:1.7;overflow-wrap:anywhere;margin-bottom:14px}
.unit-head-welcome{padding:28px;background:#f7faf8;border:1px solid #e2ece5;border-radius:16px;margin:32px 0!important}
.unit-head-layout{
  display:grid;
  grid-template-columns:minmax(150px,190px) minmax(0,1fr);
  align-items:start;
  gap:26px;
  width:100%;
}
.unit-head-photo-wrap{min-width:0;width:100%;text-align:center}
.unit-head-detail-photo{
  display:block;width:100%;max-width:190px;height:auto;aspect-ratio:3/4;
  object-fit:cover;object-position:center top;margin:0 auto;border-radius:14px;
  box-shadow:0 8px 24px rgba(6,75,53,.12)
}
.unit-head-copy{min-width:0;width:100%;overflow-wrap:anywhere}
.unit-head-copy h2{font-size:clamp(1.2rem,2vw,1.55rem);line-height:1.35;color:var(--dark);font-weight:700}
.unit-head-message{font-size:15px;line-height:1.9;color:#405047;overflow-wrap:anywhere;word-break:normal}
@media(max-width:991.98px){
  .unit-page-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  .unit-sidebar .feature-panel{position:static}
}
@media(max-width:575.98px){
  .unit-page-container{padding-left:16px;padding-right:16px}
  .unit-page-container.py-5{padding-top:28px!important;padding-bottom:32px!important}
  .unit-page-grid{gap:18px}
  .unit-head-welcome{padding:18px;margin:24px 0!important}
  .unit-head-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .unit-head-detail-photo{max-width:165px}
  .unit-head-copy h2{text-align:center}
  .unit-head-copy>.eyebrow{display:block;text-align:center}
  .unit-head-message{font-size:14px;line-height:1.8}
  .unit-main-column>p{font-size:14px;line-height:1.8}
  .unit-sidebar .feature-panel{padding:20px}
}


/* V8 - Perataan informasi kartu dan posisi sambutan sejajar informasi unit */
#unit .unit-card-meta{text-align:center!important}
#unit .unit-card-meta p,
#unit .unit-card-meta small{display:block;text-align:center!important}
#unit .unit-card-meta .mt-3{text-align:center!important}
#unit .unit-card-meta .btn{display:inline-block}
.unit-detail-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(280px,.95fr);
  align-items:start;
  gap:28px;
  margin-top:28px;
}
.unit-profile-intro{width:100%;max-width:100%}
.unit-profile-intro>p{font-size:15px;line-height:1.8;color:#405047;overflow-wrap:anywhere}
.unit-detail-lower-grid .unit-head-welcome{width:100%;min-width:0}
.unit-detail-lower-grid .unit-sidebar{min-width:0}
.unit-detail-lower-grid .unit-sidebar .feature-panel{position:static;height:auto}
.unit-detail-lower-grid .unit-head-layout{grid-template-columns:minmax(130px,180px) minmax(0,1fr);gap:22px}
.unit-detail-lower-grid .unit-head-detail-photo{max-width:180px}
@media(max-width:991.98px){
  .unit-detail-lower-grid{grid-template-columns:minmax(0,1fr);gap:22px}
}
@media(max-width:575.98px){
  .unit-profile-intro>p{font-size:14px;line-height:1.8}
  .unit-detail-lower-grid{margin-top:20px;gap:18px}
  .unit-detail-lower-grid .unit-head-layout{grid-template-columns:minmax(0,1fr);gap:16px}
  .unit-detail-lower-grid .unit-head-detail-photo{max-width:165px}
}

/* V9 - Penyegaran visual halaman detail Unit Pendidikan */
.unit-modern-page{background:#f5f9f6;color:#20372d}
.unit-topnav{min-height:76px;border-bottom:1px solid #e8f0eb}
.unit-brand-mark{display:inline-grid;place-items:center;width:42px;height:42px;border:2px solid #0b7950;border-radius:50%;color:#0b7950;margin-right:10px;font-size:23px}
.unit-topnav .navbar-brand{display:flex;align-items:center;color:#075b3d;letter-spacing:.3px;font-size:16px;line-height:1.05}
.unit-topnav .navbar-brand small{display:block;font-size:9px;letter-spacing:3px;margin-top:5px}
.unit-hero{position:relative;isolation:isolate;overflow:hidden;color:#fff;background:linear-gradient(110deg,rgba(3,70,47,.98) 0%,rgba(7,116,77,.94) 58%,rgba(13,137,91,.84) 100%);min-height:290px}
.unit-hero:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(90deg,rgba(0,65,43,.96) 0%,rgba(0,91,59,.91) 48%,rgba(0,80,52,.30) 100%),var(--unit-cover);background-position:center;background-size:cover;opacity:1}
.unit-hero:after{content:"";position:absolute;z-index:-1;width:440px;height:440px;border:1px solid rgba(255,255,255,.13);border-radius:50%;right:-110px;top:-210px;box-shadow:0 0 0 28px rgba(255,255,255,.035),0 0 0 58px rgba(255,255,255,.025)}
.unit-hero-inner{padding-top:18px;padding-bottom:36px}
.unit-breadcrumb{display:flex;gap:11px;align-items:center;font-size:12px;color:rgba(255,255,255,.78);margin-bottom:30px;flex-wrap:wrap}
.unit-breadcrumb a{color:inherit;text-decoration:none}.unit-breadcrumb a:hover{color:#ffd36c}.unit-breadcrumb strong{color:#fff;font-weight:600}
.unit-hero-content{display:flex;align-items:center;gap:28px;max-width:900px}
.unit-hero-logo{width:130px;height:130px;flex:0 0 130px;background:#fff;border:4px solid rgba(244,190,65,.9);border-radius:26px;display:grid;place-items:center;box-shadow:0 12px 35px rgba(0,0,0,.2);transform:rotate(-2deg)}
.unit-hero-logo img{width:100%;height:100%;object-fit:contain;padding:10px}
.unit-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:#ffd36c}
.unit-hero-copy h1{font-size:clamp(27px,4vw,43px);font-weight:850;line-height:1.12;margin:9px 0 10px;color:#fff}
.unit-hero-copy>p{font-size:15px;color:rgba(255,255,255,.88);margin-bottom:17px;max-width:650px}
.unit-hero-tags{display:flex;gap:10px;flex-wrap:wrap}.unit-hero-tags span{display:inline-flex;align-items:center;gap:7px;background:#fff;color:#075b3d;border-radius:30px;padding:8px 15px;font-size:12px;font-weight:750;box-shadow:0 4px 15px rgba(0,0,0,.1)}
.unit-modern-container{padding-top:34px!important;padding-bottom:42px!important}
.unit-detail-lower-grid{grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:22px;margin-top:0;align-items:stretch}
.unit-welcome-card{background:#fff!important;border:1px solid #e2eee6!important;border-radius:22px!important;padding:28px!important;box-shadow:0 12px 34px rgba(10,75,48,.07)}
.unit-welcome-card .unit-head-layout{grid-template-columns:minmax(145px,190px) minmax(0,1fr)!important;gap:24px!important;align-items:center}
.unit-photo-frame{padding:7px;background:linear-gradient(145deg,#d9f1e3,#fff 55%,#f7d889);border-radius:20px;box-shadow:0 9px 25px rgba(8,94,60,.12)}
.unit-welcome-card .unit-head-detail-photo{border-radius:15px!important;max-width:100%!important;aspect-ratio:4/5!important;object-position:center top!important}
.unit-head-caption{text-align:center;margin-top:12px}.unit-head-caption strong{display:block;color:#075b3d;font-size:13px;line-height:1.4}.unit-head-caption small{font-size:11px;color:#75867c}
.unit-welcome-card .unit-head-copy h2{font-size:clamp(19px,2vw,25px);font-weight:800;color:#075b3d;margin:8px 0 10px}
.unit-message-rule{width:58px;height:4px;border-radius:5px;background:linear-gradient(90deg,#0b8053,#e5ad35);margin:0 0 17px}
.unit-welcome-card .unit-head-message{font-size:14px;line-height:1.85;color:#52645a}
.unit-info-card{height:100%;padding:24px!important;background:linear-gradient(150deg,#e4f5e9,#fff)!important;border:1px solid #d7eadf;border-radius:22px!important;box-shadow:0 12px 34px rgba(10,75,48,.06)}
.unit-info-heading{display:flex;align-items:center;gap:12px;padding-bottom:15px;margin-bottom:7px;border-bottom:1px solid #d5e8dc}.unit-info-heading>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#08764d;color:#fff;font-size:20px}.unit-info-heading small,.unit-section-heading small,.unit-vm-item small{font-size:9px;letter-spacing:1.4px;font-weight:800;color:#bd8a21}.unit-info-heading h3{font-size:20px;font-weight:850;color:#075b3d;margin:2px 0 0}
.unit-info-row{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;padding:11px 0;border-bottom:1px solid rgba(8,91,59,.10)}.unit-info-row:last-child{border-bottom:0}.unit-info-icon{width:30px;height:30px;border-radius:9px;background:#fff;color:#08764d;display:grid;place-items:center;font-size:16px}.unit-info-row small{display:block;color:#7a8c81;font-size:10px;font-weight:700;margin-bottom:2px}.unit-info-row p{font-size:12px;line-height:1.55;color:#30483b;margin:0;overflow-wrap:anywhere}.unit-info-row a{color:#08764d;text-decoration:none}
.unit-content-card{background:#fff;border:1px solid #e3eee7;border-radius:20px;padding:26px 30px;margin-top:22px;box-shadow:0 8px 25px rgba(10,75,48,.045)}
.unit-section-heading{display:flex;gap:14px;align-items:center;margin-bottom:17px}.unit-section-heading>span{font-size:24px;font-weight:900;color:#d7a332}.unit-section-heading h2,.unit-vm-item h2{font-size:21px;font-weight:850;color:#075b3d;margin:3px 0 0}.unit-rich-text,.unit-vm-item p{font-size:14px;line-height:1.9;color:#52645a;margin:0;overflow-wrap:anywhere}
.unit-vm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}.unit-vm-item{display:flex;gap:15px;align-items:flex-start}.unit-vm-icon{width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:#e4f4e9;color:#08764d;display:grid;place-items:center;font-size:22px}.unit-vm-item p{margin-top:9px}
.unit-quicklinks{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}.unit-quicklinks a{display:flex;align-items:center;gap:8px;padding:11px 17px;background:#fff;border:1px solid #dcebe1;border-radius:13px;color:#08764d;text-decoration:none;font-size:17px;box-shadow:0 5px 15px rgba(10,75,48,.04);transition:.2s}.unit-quicklinks a span{font-size:12px;font-weight:750}.unit-quicklinks a:hover{background:#08764d;color:#fff;transform:translateY(-2px)}
.unit-modern-footer{background:#064c35;color:#fff}.unit-modern-footer .container{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:12px}.unit-modern-footer span{color:rgba(255,255,255,.72)}
@media(max-width:991.98px){.unit-detail-lower-grid{grid-template-columns:minmax(0,1fr)!important}.unit-info-card{height:auto}.unit-hero:before{background-image:linear-gradient(90deg,rgba(0,65,43,.96),rgba(0,91,59,.84)),var(--unit-cover)}}
@media(max-width:575.98px){.unit-topnav{min-height:66px}.unit-topnav .navbar-brand{font-size:13px}.unit-brand-mark{width:35px;height:35px;font-size:19px}.unit-topnav .btn{font-size:11px;padding:7px 12px!important}.unit-hero-inner{padding-top:14px;padding-bottom:27px}.unit-breadcrumb{font-size:10px;margin-bottom:22px;gap:7px}.unit-hero-content{align-items:flex-start;gap:14px}.unit-hero-logo{width:74px;height:74px;flex-basis:74px;border-width:3px;border-radius:17px}.unit-hero-logo img{padding:5px}.unit-hero-copy h1{font-size:25px}.unit-hero-copy>p{font-size:12px;line-height:1.55}.unit-kicker{font-size:9px;letter-spacing:1px}.unit-hero-tags{gap:6px}.unit-hero-tags span{font-size:9px;padding:6px 9px}.unit-modern-container{padding-top:22px!important;padding-bottom:28px!important}.unit-welcome-card{padding:19px!important}.unit-welcome-card .unit-head-layout{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}.unit-welcome-card .unit-head-detail-photo{max-width:165px!important}.unit-welcome-card .unit-head-copy h2{text-align:left}.unit-welcome-card .unit-head-message{font-size:13px;line-height:1.8}.unit-info-card{padding:19px!important}.unit-content-card{padding:20px;margin-top:16px}.unit-section-heading h2,.unit-vm-item h2{font-size:18px}.unit-rich-text,.unit-vm-item p{font-size:13px;line-height:1.8}.unit-vm-grid{grid-template-columns:minmax(0,1fr);gap:22px}.unit-quicklinks{gap:8px}.unit-quicklinks a{padding:9px 11px}.unit-quicklinks a span{font-size:10px}.unit-modern-footer .container{display:block;text-align:center}.unit-modern-footer span{display:block;margin-top:6px;font-size:10px}}

/* V10 — Layout premium halaman detail Unit Pendidikan */
.unit-modern-page{background:#f3f8f5!important;color:#173b2d;font-family:inherit}
.unit-topnav{min-height:70px!important;background:#fff!important;box-shadow:0 3px 18px rgba(0,50,30,.07);position:relative;z-index:5}
.unit-topnav .container,.unit-hero-inner,.unit-modern-container{max-width:1440px!important}
.unit-brand-mark{background:#f1faf4;border-color:#0b7950;color:#08764d;transform:none}
.unit-hero{min-height:280px!important;background:#006b45!important}
.unit-hero:before{background-image:linear-gradient(90deg,rgba(0,65,43,.97) 0%,rgba(0,91,59,.91) 48%,rgba(0,80,52,.28) 100%),var(--unit-cover)!important;background-position:center 48%!important;background-size:cover!important}
.unit-hero:after{border-color:rgba(255,255,255,.18)}
.unit-hero-inner{padding-top:18px!important;padding-bottom:32px!important}
.unit-breadcrumb{font-size:13px!important;margin-bottom:24px!important;color:rgba(255,255,255,.9)!important}
.unit-hero-content{max-width:1120px!important;gap:28px!important}
.unit-hero-logo{width:142px!important;height:142px!important;flex-basis:142px!important;border-radius:22px!important;transform:none!important}
.unit-hero-copy h1{font-size:clamp(30px,3.6vw,48px)!important;letter-spacing:-.7px!important;margin:7px 0 8px!important}
.unit-hero-copy>p{font-size:17px!important;line-height:1.55!important;max-width:720px!important}
.unit-hero-tags span{font-size:13px!important;padding:9px 17px!important}
.unit-modern-container{padding-top:32px!important;padding-bottom:56px!important}
.unit-detail-lower-grid{display:grid!important;grid-template-columns:minmax(0,2.05fr) minmax(330px,.95fr)!important;gap:26px!important;align-items:start!important;margin-top:0!important}
.unit-welcome-card{padding:28px!important;border-radius:24px!important;box-shadow:0 14px 38px rgba(6,74,47,.075)!important}
.unit-welcome-card .unit-head-layout{display:grid!important;grid-template-columns:minmax(220px,34%) minmax(0,1fr)!important;gap:28px!important;align-items:center!important}
.unit-welcome-card .unit-head-photo-wrap{width:100%!important}
.unit-photo-frame{padding:8px!important;border-radius:22px!important}
.unit-welcome-card .unit-head-detail-photo{display:block!important;width:100%!important;max-width:none!important;aspect-ratio:4/5!important;object-fit:cover!important;object-position:center top!important;border-radius:16px!important}
.unit-head-caption{margin-top:12px!important}
.unit-head-caption strong{font-size:14px!important}
.unit-head-caption small{font-size:12px!important}
.unit-welcome-card .unit-head-copy h2{font-size:clamp(21px,2vw,28px)!important;line-height:1.25!important;margin:8px 0 12px!important}
.unit-welcome-card .unit-head-copy>.eyebrow{font-size:10px!important;letter-spacing:1.4px!important;color:#c18c22!important;font-weight:850!important}
.unit-welcome-card .unit-head-message{font-size:15px!important;line-height:1.78!important;color:#42594d!important}
.unit-info-card{padding:25px!important;border-radius:24px!important;background:linear-gradient(145deg,#e7f6ec 0%,#fff 100%)!important;box-shadow:0 14px 38px rgba(6,74,47,.08)!important}
.unit-info-heading{gap:13px!important;padding-bottom:17px!important;margin-bottom:8px!important}
.unit-info-heading>span{width:46px!important;height:46px!important;border-radius:15px!important;font-size:21px!important}
.unit-info-heading h3{font-size:23px!important}
.unit-info-row{grid-template-columns:38px minmax(0,1fr)!important;gap:11px!important;padding:14px 0!important}
.unit-info-icon{width:36px!important;height:36px!important;border-radius:11px!important;font-size:18px!important}
.unit-info-row small{font-size:12px!important;color:#64796d!important}
.unit-info-row p{font-size:14px!important;line-height:1.6!important;color:#263f32!important}
.unit-content-card{padding:30px 34px!important;border-radius:22px!important;margin-top:26px!important}
.unit-section-heading h2,.unit-vm-item h2{font-size:24px!important}
.unit-rich-text,.unit-vm-item p{font-size:15px!important;line-height:1.85!important}
.unit-quicklinks{justify-content:flex-start!important;gap:12px!important;margin-top:28px!important}
.unit-quicklinks a{padding:13px 18px!important;border-radius:14px!important;font-size:20px!important}
.unit-quicklinks a span{font-size:13px!important}
.unit-modern-footer{padding:8px 0!important}
@media(max-width:1199.98px){
 .unit-detail-lower-grid{grid-template-columns:minmax(0,1.65fr) minmax(300px,.95fr)!important;gap:20px!important}
 .unit-welcome-card{padding:22px!important}
 .unit-welcome-card .unit-head-layout{grid-template-columns:minmax(170px,31%) minmax(0,1fr)!important;gap:20px!important}
 .unit-welcome-card .unit-head-message{font-size:14px!important}
}
@media(max-width:991.98px){
 .unit-hero-content{max-width:100%!important}
 .unit-detail-lower-grid{grid-template-columns:minmax(0,1fr)!important;gap:20px!important}
 .unit-info-card{height:auto!important}
 .unit-welcome-card .unit-head-layout{grid-template-columns:minmax(190px,30%) minmax(0,1fr)!important}
}
@media(max-width:767.98px){
 .unit-topnav{min-height:62px!important}
 .unit-hero{min-height:0!important}
 .unit-hero-inner{padding:14px 18px 26px!important}
 .unit-breadcrumb{font-size:11px!important;margin-bottom:18px!important}
 .unit-hero-content{gap:15px!important;align-items:center!important}
 .unit-hero-logo{width:82px!important;height:82px!important;flex-basis:82px!important;border-radius:16px!important}
 .unit-hero-logo img{padding:5px!important}
 .unit-hero-copy h1{font-size:clamp(22px,5vw,32px)!important}
 .unit-hero-copy>p{font-size:12px!important;margin-bottom:10px!important}
 .unit-hero-tags span{font-size:10px!important;padding:6px 10px!important}
 .unit-modern-container{padding:20px 14px 34px!important}
 .unit-welcome-card{padding:20px!important}
 .unit-welcome-card .unit-head-layout{grid-template-columns:minmax(0,1fr)!important;gap:18px!important}
 .unit-welcome-card .unit-head-photo-wrap{max-width:220px!important;margin:0 auto!important}
 .unit-welcome-card .unit-head-detail-photo{max-width:100%!important}
 .unit-welcome-card .unit-head-copy h2{font-size:21px!important}
 .unit-welcome-card .unit-head-message{font-size:14px!important;line-height:1.8!important}
 .unit-info-card{padding:20px!important}
 .unit-info-heading h3{font-size:20px!important}
 .unit-info-row p{font-size:13px!important}
}
@media(max-width:420px){
 .unit-hero-content{align-items:flex-start!important}
 .unit-hero-logo{width:68px!important;height:68px!important;flex-basis:68px!important}
 .unit-hero-copy h1{font-size:21px!important}
 .unit-hero-tags{gap:5px!important}
 .unit-hero-tags span{font-size:9px!important}
}

/* V11 — Koreksi tata letak desktop lebar dan posisi foto kepala unit */
@media (min-width: 992px) {
  .unit-topnav .container,
  .unit-hero-inner {
    width: calc(100% - 64px) !important;
    max-width: 1900px !important;
  }
  .unit-modern-container {
    width: calc(100% - 64px) !important;
    max-width: 1900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .unit-detail-lower-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1.85fr) minmax(380px, .95fr) !important;
    gap: 28px !important;
    align-items: start !important;
    width: 100% !important;
  }
  .unit-welcome-card { min-width: 0 !important; width: 100% !important; }
  .unit-welcome-card .unit-head-layout {
    display: grid !important;
    grid-template-columns: minmax(240px, 34%) minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 28px !important;
  }
  .unit-welcome-card .unit-head-photo-wrap {
    align-self: start !important;
    margin-top: 4px !important;
  }
  .unit-welcome-card .unit-photo-frame { width: 100% !important; }
  .unit-welcome-card .unit-head-detail-photo {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
  .unit-welcome-card .unit-head-copy { min-width: 0 !important; }
  .unit-info-card { width: 100% !important; height: auto !important; }
}
@media (min-width: 992px) and (max-width: 1250px) {
  .unit-modern-container { width: calc(100% - 40px) !important; }
  .unit-detail-lower-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, .95fr) !important;
    gap: 18px !important;
  }
  .unit-welcome-card .unit-head-layout {
    grid-template-columns: minmax(190px, 32%) minmax(0, 1fr) !important;
    gap: 18px !important;
  }
}


/* =========================================================
   BERANDA MODERN — YPI AL-MUAWANAH SINGAJAYA
   Penyegaran visual beranda tanpa mengubah fungsi/database.
   ========================================================= */
:root{
  --green:#08764f;--green2:#109568;--dark:#073f30;--gold:#e5b23d;
  --ink:#20352b;--soft:#f4f8f5;--pale:#eaf5ee;
}
html{scroll-behavior:smooth;scroll-padding-top:88px}
body{font-size:14px;background:#fff;overflow-x:hidden}
.topbar{background:#063b2d;padding:9px 0;font-size:11px;letter-spacing:.15px}
.navbar.sticky-top{z-index:1030;min-height:76px;border-bottom:1px solid #edf1ee}
.navbar .container{max-width:1180px}
.navbar-brand{font-size:15px;letter-spacing:.15px}
.brand-logo{width:52px;height:52px}
.navbar-nav{gap:3px}
.nav-link{font-size:12px;padding:.7rem .68rem!important;color:#42564b!important;transition:color .2s ease}
.nav-link:hover,.nav-link:focus{color:var(--green2)!important}
.hero{position:relative;isolation:isolate;overflow:hidden;min-height:520px;display:flex;align-items:center;
 background:radial-gradient(circle at 82% 30%,rgba(86,190,137,.34),transparent 28%),
 linear-gradient(118deg,#063f30 0%,#08744e 58%,#16875e 100%);color:#fff}
.hero:before{content:"";position:absolute;z-index:-1;width:520px;height:520px;border:1px solid rgba(255,255,255,.12);
 border-radius:50%;right:-120px;top:-190px;box-shadow:0 0 0 38px rgba(255,255,255,.035),0 0 0 78px rgba(255,255,255,.025)}
.hero:after{content:"";position:absolute;z-index:-1;width:280px;height:280px;border-radius:50%;right:13%;bottom:-210px;
 background:rgba(255,255,255,.07);filter:blur(2px)}
.hero .container{max-width:1180px;position:relative}
.hero .min-vh-50{min-height:520px}
.hero .col-lg-8{max-width:790px;padding-top:76px!important;padding-bottom:76px!important}
.hero .eyebrow{color:#f4ce70;font-size:11px;letter-spacing:2px;margin-bottom:18px}
.hero h1{font-size:clamp(2.45rem,5vw,4.35rem);line-height:1.12;letter-spacing:-1.8px;
 max-width:760px;margin:0 0 20px;font-weight:800;text-wrap:balance}
.hero .lead{font-size:16px;line-height:1.8;max-width:610px;color:rgba(255,255,255,.86);margin-bottom:27px}
.hero .btn{border-radius:9px;padding:11px 19px;font-size:13px;font-weight:700;transition:transform .2s,box-shadow .2s}
.hero .btn:hover{transform:translateY(-2px);box-shadow:0 8px 20px #002c1d44}
.btn-gold{background:linear-gradient(135deg,#f0c75f,#dba52e);border:0;color:#173528}
.btn-outline-light{border-width:1.5px}
.section{padding:82px 0}
.section>.container{max-width:1180px}
.section .eyebrow{display:inline-block;color:#b1811c;font-size:10px;letter-spacing:2px;margin-bottom:9px}
.section h2{font-size:clamp(1.8rem,3vw,2.45rem);letter-spacing:-.8px;line-height:1.2;margin:0 0 19px}
.section p{font-size:13px;line-height:1.9;color:#596b60}
#profil .row{align-items:stretch!important}
#profil .col-lg-7{padding-right:clamp(20px,4vw,60px)}
#profil .col-lg-7>p{max-width:760px;margin-bottom:18px}
#profil .col-lg-7 h3{font-size:19px;font-weight:750;color:var(--dark);margin:25px 0 8px}
#profil .feature-panel{height:100%;display:flex;flex-direction:column;justify-content:center;position:relative;
 overflow:hidden;padding:38px;background:linear-gradient(145deg,#eaf6ee,#f7fbf8);border:1px solid #dceee2;border-radius:22px}
#profil .feature-panel:after{content:"";position:absolute;width:190px;height:190px;border-radius:50%;right:-70px;top:-85px;background:#d7eddf}
#profil .feature-panel>*{position:relative;z-index:1}
#profil .feature-panel h3{font-size:23px;font-weight:800;color:var(--dark);margin-bottom:8px}
#profil .feature-panel strong{font-size:12px;color:#9a741f;margin-bottom:14px}
#profil .feature-panel p{font-size:13px;line-height:1.85;color:#52675a}
.section-soft{background:linear-gradient(180deg,#f5f9f6,#eff6f1)}
#unit .unit-card,.section .unit-card{height:100%;border:1px solid #e4ece6;border-radius:18px;padding:25px;
 box-shadow:0 8px 28px rgba(7,63,48,.045);transition:transform .22s,box-shadow .22s,border-color .22s}
#unit .unit-card:hover,.section .unit-card:hover{transform:translateY(-5px);border-color:#c9e3d2;box-shadow:0 15px 35px rgba(7,63,48,.10)}
#unit .unit-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#eaf5ee;color:#b88927;margin-bottom:16px}
#unit .unit-card h3{font-size:16px;line-height:1.4;color:var(--dark);margin-bottom:12px}
#unit .unit-card-meta p{font-size:12px;line-height:1.75}
#unit .unit-card-meta small{display:block;line-height:1.7}
#unit .unit-card .btn{border-radius:8px;padding:8px 16px;font-weight:600}
.section .row{--bs-gutter-y:1.25rem}
.program-item{height:100%;min-height:132px;padding:23px;border:1px solid #e2ebe4;border-radius:16px;background:#fff;
 box-shadow:0 6px 22px rgba(7,63,48,.035);transition:transform .2s,box-shadow .2s}
.program-item:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(7,63,48,.09)}
.program-item:first-letter{color:#c18f24}
.program-item span{font-size:14px;font-weight:750;color:var(--dark)}
.program-item p{font-size:12px;line-height:1.75;color:#718076}
.home-news-section .home-news-heading{align-items:flex-end}
.home-news-card{border-radius:18px;box-shadow:0 8px 26px rgba(7,63,48,.055)}
.home-news-image{height:230px}
.home-news-content h3{font-size:16px;color:var(--dark)}
.home-news-all{border-radius:9px;padding:11px 22px;font-weight:650}
#kontak{background:linear-gradient(120deg,#063b2d,#075b40);padding-top:12px}
#kontak h3,#kontak h4{font-weight:750}
#kontak .form-control{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.96);border-radius:9px;padding:11px 13px;font-size:12px}
#kontak .btn{border-radius:9px;padding:10px 20px;font-weight:700}
footer hr{border-color:rgba(255,255,255,.22);margin:28px 0 15px}
footer small{font-size:11px;color:#c8ddd2}
@media(max-width:991.98px){
 .navbar .container{padding-left:20px;padding-right:20px}
 .navbar-nav{gap:0;padding:10px 0}
 .nav-link{padding:10px 2px!important}
 .hero,.hero .min-vh-50{min-height:460px}
 .hero .col-lg-8{padding-top:64px!important;padding-bottom:64px!important}
 .section{padding:64px 0}
}
@media(max-width:767.98px){
 .hero,.hero .min-vh-50{min-height:430px}
 .hero h1{font-size:clamp(2.15rem,8vw,3.15rem);letter-spacing:-1px}
 .hero .lead{font-size:14px}
 .hero .eyebrow{font-size:9px;line-height:1.7}
 .section{padding:52px 0}
 #profil .col-lg-7{padding-right:12px}
 #profil .feature-panel{padding:25px}
 .home-news-section .home-news-heading{display:block}
 .home-news-search{width:100%;max-width:none;margin-top:20px}
}
@media(max-width:575.98px){
 .topbar{font-size:10px}
 .brand-logo{width:44px;height:44px}
 .navbar-brand{font-size:13px}
 .hero,.hero .min-vh-50{min-height:410px}
 .hero .col-lg-8{padding-top:50px!important;padding-bottom:50px!important}
 .hero .btn{padding:10px 14px;font-size:12px}
 .section h2{font-size:1.75rem}
 #unit .unit-card,.section .unit-card{padding:19px}
 .home-news-image{height:205px}
}

/* Foto Ketua Yayasan dari data Pengurus Yayasan */
#profil .chairman-card{min-height:100%;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;padding:34px 30px;background:linear-gradient(145deg,#eaf6ee,#f8fcf9);border:1px solid #dceee2;border-radius:22px;box-shadow:0 12px 30px rgba(7,63,48,.07);position:relative;overflow:hidden}
#profil .chairman-card:before{content:"";position:absolute;width:210px;height:210px;right:-90px;top:-105px;border-radius:50%;background:rgba(16,149,104,.07)}
#profil .chairman-card>*{position:relative;z-index:1}
#profil .chairman-photo{width:180px;height:210px;object-fit:cover;object-position:center top;border-radius:18px;border:5px solid #fff;box-shadow:0 8px 24px rgba(7,63,48,.15);margin:0 auto 22px}
#profil .chairman-photo-placeholder{width:180px;height:210px;border-radius:18px;background:#dceee2;color:#08764f;display:flex;align-items:center;justify-content:center;font-size:52px;margin:0 auto 22px;border:5px solid #fff}
#profil .chairman-card h3{font-size:21px;font-weight:800;color:#073f30;margin:0 0 7px}
#profil .chairman-card .chairman-position{font-size:12px;font-weight:750;color:#a47b21;margin-bottom:13px}
#profil .chairman-card p{font-size:13px;line-height:1.8;color:#52675a;margin:0}
@media(max-width:767.98px){#profil .chairman-photo,#profil .chairman-photo-placeholder{width:155px;height:180px}}


/* FINAL FIX: batasi ukuran foto Ketua Yayasan agar tidak melebar */
#profil .row{align-items:flex-start!important}
#profil .col-lg-5{display:flex;align-items:flex-start;justify-content:center}
#profil .chairman-card{
  width:100%;max-width:440px;min-height:0!important;height:auto!important;
  padding:30px 26px!important;align-self:flex-start;flex:0 1 auto;
}
#profil .chairman-card img.chairman-photo{
  display:block!important;position:relative!important;float:none!important;
  width:220px!important;min-width:0!important;max-width:100%!important;
  height:260px!important;min-height:0!important;max-height:260px!important;
  object-fit:cover!important;object-position:center top!important;
  margin:0 auto 20px!important;border-radius:16px!important;
}
#profil .chairman-card .chairman-photo-placeholder{
  width:220px!important;height:260px!important;max-width:100%!important;
  margin:0 auto 20px!important;flex:none!important;
}
#profil .chairman-card h3{font-size:20px!important;line-height:1.35;margin:0 0 6px!important}
#profil .chairman-card .chairman-position{margin:0 0 12px!important}
#profil .chairman-card p{margin:0!important}
@media(max-width:767.98px){
 #profil .col-lg-5{margin-top:22px}
 #profil .chairman-card{max-width:100%;padding:24px 18px!important}
 #profil .chairman-card img.chairman-photo,
 #profil .chairman-card .chairman-photo-placeholder{width:180px!important;height:220px!important;max-height:220px!important}
}

/* Artikel editorial: foto menyatu di antara paragraf dan tata letak lebih lapang */
.news-detail{max-width:900px;padding:clamp(24px,4.5vw,58px);border-radius:22px;box-shadow:0 16px 46px rgba(10,50,30,.07)}
.news-detail h1{max-width:780px;font-size:clamp(2rem,4.2vw,3rem);letter-spacing:-1.1px}
.news-date{display:inline-block;padding:7px 12px;background:#f0f7f2;border-radius:30px;color:#557264;margin:4px 0 18px}
.news-lead{font-size:clamp(1.05rem,1.8vw,1.22rem);line-height:1.85;color:#50665a;border-left:4px solid var(--gold);padding:5px 0 5px 18px;margin:18px 0 24px}
.article-body{font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:1.95;color:#35463c;overflow-wrap:break-word}
.article-body p{margin:0 0 1.25em}
.article-body h2,.article-body h3,.article-body h4{font-family:Poppins,Arial,sans-serif;color:var(--dark);font-weight:750;line-height:1.35;margin:1.6em 0 .65em}
.article-body h2{font-size:1.55rem}.article-body h3{font-size:1.28rem}
.article-body blockquote{margin:1.5em 0;padding:18px 24px;border-left:4px solid var(--gold);background:#f5faf6;border-radius:0 12px 12px 0;color:#52665a;font-style:italic}
.article-body img{max-width:100%;height:auto;border-radius:13px;box-shadow:0 8px 25px rgba(10,50,30,.10)}
.article-body img[style*="float: left"],.article-body img[style*="float:left"]{margin:8px 26px 18px 0}
.article-body img[style*="float: right"],.article-body img[style*="float:right"]{margin:8px 0 18px 26px}
.article-body img:not([style*="float"]){display:block;margin:28px auto}
.article-feature-image{float:left;width:22%;max-width:180px;min-width:125px;max-height:280px;object-fit:cover;margin:7px 20px 14px 0!important;border-radius:8px}
.article-body figure{margin:28px auto;text-align:center;clear:both}
.article-body figcaption{font:italic 12px Poppins,Arial,sans-serif;color:#7b8b80;margin-top:9px}
@media(max-width:767.98px){.news-detail{padding:22px 18px;border-radius:15px}.article-body{font-size:16px;line-height:1.85}.article-feature-image{float:left;width:34%;min-width:105px;max-width:155px;max-height:230px;object-fit:cover;margin:5px 14px 10px 0!important}.article-body img[style*="float"]{float:none!important;display:block;width:min(100%,520px)!important;margin:20px auto!important}.news-detail h1{font-size:1.8rem}}

/* FIX FINAL: foto utama berita berada di kiri dan teks mengalir di kanan */
.news-detail .article-body > img.article-feature-image {
  float:left !important; display:block !important; width:22% !important;
  min-width:125px !important; max-width:180px !important; max-height:280px !important;
  height:auto !important; object-fit:cover !important; margin:6px 20px 14px 0 !important;
}
.news-detail .article-body > p.news-lead { clear:none !important; margin:0 0 18px !important; padding:0 !important; border:0 !important; }
@media(max-width:767.98px) {
  .news-detail .article-body > img.article-feature-image { float:left !important; width:34% !important; min-width:105px !important; max-width:145px !important; max-height:220px !important; margin:4px 13px 10px 0 !important; }
}

/* Penyempurnaan ukuran foto utama dan tipografi artikel */
.news-detail .article-body > img.article-feature-image { float:left!important; width:120px!important; min-width:120px!important; max-width:120px!important; height:170px!important; max-height:170px!important; object-fit:cover!important; object-position:center top!important; margin:5px 18px 14px 0!important; border-radius:8px!important; }
.news-detail .article-body { font-size:17px; line-height:1.85; }
.news-detail .article-body p { margin-bottom:1.1em; }
@media(max-width:767.98px) { .news-detail .article-body > img.article-feature-image { width:105px!important; min-width:105px!important; max-width:105px!important; height:150px!important; max-height:150px!important; margin:4px 13px 10px 0!important; } .news-detail .article-body { font-size:15px; line-height:1.75; } }


/* Format artikel publik: rata kiri-kanan dan penekanan tebal. */
.news-detail .article-body p { text-align:justify; text-justify:inter-word; hyphens:auto; }
.news-detail .article-body strong,.news-detail .article-body b { font-weight:700; color:#123d2e; }
.news-detail .article-body h2,.news-detail .article-body h3,.news-detail .article-body h4 { font-weight:750; color:#064b35; }


/* Foto tambahan di dalam artikel: ukuran proporsional, terpisah dari alur teks. */
.news-detail .article-body img:not(.article-feature-image):not([style*="float"]) {
  display:block !important;
  width:auto !important;
  max-width:min(68%, 560px) !important;
  max-height:420px !important;
  height:auto !important;
  object-fit:contain !important;
  margin:24px auto !important;
  clear:both;
}
.news-detail .article-body figure { max-width:100%; margin:24px auto !important; clear:both; }
@media(max-width:767.98px) {
  .news-detail .article-body img:not(.article-feature-image):not([style*="float"]) {
    max-width:88% !important;
    max-height:340px !important;
    margin:18px auto !important;
  }
}


/* Rich text editor shared by all editable content areas in the admin. */
.ypi-rich-source{display:none!important}
.ypi-rich-editor{border:1px solid #cfd8d3;border-radius:8px;overflow:hidden;background:#fff}
.ypi-rich-toolbar{display:flex;flex-wrap:wrap;gap:5px;padding:8px;background:#f4f8f6;border-bottom:1px solid #dce5e0}
.ypi-rich-toolbar button,.ypi-rich-toolbar select{border:1px solid #cbd8d1;background:#fff;border-radius:5px;padding:5px 9px;color:#174b39;font-size:12px;min-height:30px}
.ypi-rich-toolbar button:hover{background:#e2f2e9}
.ypi-rich-toolbar button:focus-visible,.ypi-rich-toolbar select:focus-visible{outline:2px solid #16865b;outline-offset:1px}
.ypi-rich-sep{width:1px;background:#ccd8d1;margin:2px 3px}
.ypi-rich-canvas{min-height:150px;padding:12px 14px;outline:none;line-height:1.7;color:#24342d;white-space:normal}
.ypi-rich-canvas:focus{box-shadow:inset 0 0 0 2px #d9eee3}
.ypi-rich-canvas p{margin:0 0 12px;text-align:justify}
.ypi-rich-canvas h2,.ypi-rich-canvas h3{color:#064b38;font-weight:700;margin:18px 0 9px}
.ypi-rich-canvas ul,.ypi-rich-canvas ol{padding-left:24px;margin:0 0 12px}
.ypi-rich-canvas blockquote{border-left:4px solid #13835a;padding:8px 14px;margin:12px 0;background:#f4f8f6}
.ypi-rich-canvas a{color:#087b53;text-decoration:underline}

/* FINAL FIX: justify seluruh isi profil, sejarah, visi, misi, dan sambutan. */
#profil .col-lg-7 > div,
#profil .col-lg-7 > div p,
#profil .col-lg-7 > div li,
#profil .chairman-card > div,
#profil .chairman-card > div p,
.unit-rich-text,
.unit-rich-text p,
.unit-rich-text li,
.unit-vm-item > div > p,
.unit-vm-item > div > div,
.unit-vm-item > div > div p,
.unit-vm-item li,
.unit-head-message,
.unit-head-message p,
.unit-head-message li {
  text-align: justify !important;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: anywhere;
}
#profil .col-lg-7 > div p,
.unit-rich-text p,
.unit-vm-item p,
.unit-head-message p { margin-bottom: .8em; }
#profil .col-lg-7 > div ul,
#profil .col-lg-7 > div ol,
.unit-rich-text ul,
.unit-rich-text ol,
.unit-vm-item ul,
.unit-vm-item ol { padding-left: 1.4rem; }
#profil .col-lg-7 > div li,
.unit-rich-text li,
.unit-vm-item li { margin-bottom: .28em; }
/* Editor preview also follows the same paragraph alignment as published pages. */
.ypi-rich-canvas p,
.ypi-rich-canvas li { text-align: justify !important; text-justify: inter-word; }

/* Render deskripsi unit sebagai HTML terformat yang aman, bukan menampilkan tag HTML mentah. */
#unit .unit-description{font-size:12px;line-height:1.75;text-align:center;overflow-wrap:anywhere}
#unit .unit-description p{margin:0 0 .45rem;text-align:center}
#unit .unit-description p:last-child{margin-bottom:0}
.unit-hero-copy .unit-description p{margin:0 0 .5rem}
