:root{
  --accent:#2b6ef6;
  --muted:#666;
  --card:#ffffffee;
  --bg:#f6f8fb;
  --glass: rgba(255,255,255,0.7);
}
*{box-sizing:border-box}
body{font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial; margin:0; color:#222; background:var(--bg)}
.container{max-width:1100px;margin:0 auto;padding:28px}
.flex{display:flex;gap:28px;align-items:center}

/* Hero */
.hero{position:relative;height:72vh;min-height:420px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.carousel, .carousel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.carousel img{opacity:0;transition:opacity 1s ease;filter:brightness(0.88) contrast(1.03)}
.carousel img.active{opacity:1}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(180deg, rgba(8,12,20,0.08), rgba(8,12,20,0.28));}
.hero-content{position:relative;z-index:2;text-align:center;color:#fff;padding:20px}
.logo{width:120px;height:120px;border-radius:20px;object-fit:cover;border:4px solid rgba(255,255,255,0.18);box-shadow:0 8px 30px rgba(10,10,60,0.3)}
.hero-content h1{margin:14px 0;font-size:2.1rem;letter-spacing:0.6px}
.tagline{opacity:0.95}

/* school name and tagline drop shadow for legibility (stronger) */
#schoolName, .tagline { text-shadow: 0 8px 28px rgba(0,0,0,0.72), 0 2px 6px rgba(0,0,0,0.45); }
.down-arrow{position:absolute;bottom:18px;z-index:3;color:#fff;font-size:28px;text-decoration:none}

/* Carousel controls */
.carousel-controls{position:absolute;inset:auto 18px 18px 18px;display:flex;justify-content:space-between;align-items:center;z-index:30;pointer-events:auto}
.carousel-controls button{background:rgba(0,0,0,0.45);color:#fff;border:0;padding:8px 12px;border-radius:8px;font-size:20px;cursor:pointer;backdrop-filter:blur(4px)}
.carousel-controls button:hover{background:rgba(0,0,0,0.65)}
.carousel-prev{margin-right:auto}
.carousel-next{margin-left:auto}

/* Navbar - modern aesthetic */
.site-nav{position:fixed;left:12px;right:12px;top:16px;z-index:9999}
.site-nav .nav-inner{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));backdrop-filter:blur(6px);padding:10px 14px;border-radius:12px}

/* scrolled state: solid dark background without blur */
.site-nav.scrolled .nav-inner{background:rgba(0,0,0,0.95);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 12px 30px rgba(0,0,0,0.5)}
.site-nav.scrolled .nav-title,.site-nav.scrolled .nav-list a,.site-nav.scrolled .drop-btn{color:#fff}
.site-nav.scrolled .nav-menu{background:rgba(0,0,0,0.98);color:#fff}
.site-nav.scrolled .drop-menu{background:rgba(255,255,255,0.04)}

/* Force links/buttons transparent on scrolled state to avoid Chrome native blocks */
.site-nav.scrolled .nav-list li,
.site-nav.scrolled .nav-list a,
.site-nav.scrolled .drop-btn,
.site-nav.scrolled .nav-list a:focus,
.site-nav.scrolled .drop-btn:focus{
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  mix-blend-mode: normal !important;
}

/* Additional override: remove any backdrop-filter, clip or isolation that could create dark blocks in Chrome */
.site-nav.scrolled .nav-list a,
.site-nav.scrolled .drop-btn,
.site-nav.scrolled .nav-list li{
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  isolation: isolate !important;
  background-clip: padding-box !important;
}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff}
.nav-logo{width:44px;height:44px;border-radius:10px;object-fit:cover;border:2px solid rgba(255,255,255,0.12)}
.nav-title{font-weight:700;font-size:1rem;color:#fff}
.nav-menu{display:block}
.nav-list{list-style:none;margin:0;padding:0;display:flex;gap:14px;align-items:center}
.nav-list li{position:relative}
.nav-list a, .drop-btn{color:#fff;text-decoration:none;padding:8px 12px;border-radius:8px;background:transparent;border:0;cursor:pointer;font-weight:600}
.nav-list a:hover, .drop-btn:hover{background:rgba(255,255,255,0.06)}
.nav-list a, .drop-btn, .nav-title, .drop-menu a { text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
.nav-dropdown .drop-menu{position:absolute;top:100%;right:0;margin-top:0;background:rgba(255,255,255,0.06);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,0.08);color:#fff;border-radius:10px;box-shadow:0 12px 30px rgba(10,20,50,0.12);display:none;min-width:220px;padding:8px 0;z-index:2200;list-style:none;margin:0}
.nav-dropdown:hover .drop-menu,
.nav-dropdown:focus-within .drop-menu{display:block}
.nav-dropdown.open .drop-menu{display:block}
.nav-dropdown.open .drop-menu{display:block}
.drop-menu li{padding:6px 8px}
.drop-menu a{color:#fff}
.nav-toggle{display:none;background:transparent;border:0;color:#fff;font-size:22px;padding:8px 10px;border-radius:8px;cursor:pointer}

/* Mobile behavior */
@media(max-width:860px){
  .nav-list{gap:8px}
  .nav-title{display:none}
}

@media(max-width:960px){
  .nav-toggle{display:flex}
  .nav-menu{position:fixed;left:12px;right:12px;top:76px;background:#fff;color:#16325c;border-radius:12px;padding:12px;flex-direction:column;gap:8px;max-height:0;overflow:auto;opacity:0;transform-origin:top;box-shadow:0 18px 40px rgba(10,20,50,0.15);transition:max-height .36s ease,opacity .28s ease}
  .site-nav.open .nav-menu{max-height:calc(100vh - 96px);opacity:1}
  .nav-list{flex-direction:column}
  .nav-list a{color:#16325c;padding:10px;border-radius:8px}
  .drop-btn{color:#16325c;padding:10px;border-radius:8px;background:transparent;border:0;text-align:left;width:100%}
  .nav-list a, .drop-btn, .nav-title, .drop-menu a { text-shadow: 0 1px 2px rgba(255,255,255,0.65); }
  .drop-btn .caret{margin-left:8px}

/* Remove native button blocks and shadows that can appear in some browsers */
.drop-btn{appearance:none !important;-webkit-appearance:none !important;background:none !important;box-shadow:none !important;border:none !important}
.nav-list a, .drop-btn{background-color:transparent !important;background:none !important}
.nav-list li, .drop-menu li{background:transparent}
.drop-btn, .nav-list a{ -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none }
.drop-btn::before, .drop-btn::after{display:none}
  .nav-dropdown .drop-menu{position:relative;top:auto;right:auto;background:transparent;box-shadow:none;padding-left:12px;margin-top:6px}
  .nav-dropdown .drop-menu a{color:#16325c}
  .nav-dropdown:hover .drop-menu{display:none}
  /* ensure submenu is visible when `.open` is toggled by JS on mobile */
  .nav-dropdown.open .drop-menu{display:block}
  .brand{z-index:1500}
  .nav-toggle{position:absolute;right:18px;top:18px;z-index:1600;background:rgba(255,255,255,0.06);backdrop-filter:blur(6px)}
  .hero{padding-top:110px}
}

/* Desktop: animate submenu open with fade+slide (keeps mobile unchanged) */
@media (min-width:721px) {
  .nav-dropdown .drop-menu{display:block;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .22s ease, transform .22s ease;pointer-events:none}
  .nav-dropdown:hover .drop-menu,.nav-dropdown:focus-within .drop-menu,.nav-dropdown.open .drop-menu{opacity:1;visibility:visible;transform:translateY(0);pointer-events:auto}
  .nav-dropdown .drop-menu li:hover{background:rgba(255,255,255,0.04)}
}

.section{padding:60px 0;background:transparent}
.welcome .container{align-items:flex-start}
.photo img{width:260px;border-radius:12px;object-fit:cover;box-shadow:0 10px 30px rgba(20,30,60,0.12)}
.welcome-text h2{margin-top:0}

.news-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:18px}
.news-teaser-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:22px;margin-top:18px}
.all-news-list{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:18px;align-items:stretch}
.news-teaser{background:var(--card);border-radius:14px;overflow:hidden;box-shadow:0 12px 30px rgba(10,20,50,0.06);display:flex;flex-direction:column;height:100%}
.news-teaser .thumb{position:relative;height:220px;overflow:hidden}
.news-teaser .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.date-badge{position:absolute;top:14px;right:14px;background:#fff;color:#0b1220;padding:8px 10px;border-radius:12px;box-shadow:0 6px 18px rgba(0,0,0,0.12);text-align:center;font-weight:700}
.date-badge .db-day{font-size:18px;line-height:1}
.date-badge .db-month{font-size:11px;opacity:0.9}
.news-teaser .body{padding:18px;display:flex;flex-direction:column;gap:10px;flex:1}
.news-teaser h4{margin:0 0 8px;font-size:1.05rem}
/* limit preview to 4 lines for tidy grid layout */
.all-news-list .news-teaser .body p{margin:0;color:var(--muted);font-size:0.96rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:4;line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.read-more{display:inline-block;margin-top:12px;color:var(--accent);font-weight:700}
/* reduce read-more size by 25% on all-news grid */
.all-news-list .read-more{font-size:0.75rem}
@media(max-width:1200px){.all-news-list{grid-template-columns:repeat(3,1fr)}}
@media(max-width:920px){.all-news-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.all-news-list{grid-template-columns:repeat(1,1fr)}.news-teaser .thumb{height:160px}}
@media(max-width:720px){
  .all-news-page-shell{padding-top:18px;padding-bottom:42px}
  .all-news-hero{padding:22px;border-radius:22px}
  .all-news-brand{flex-direction:column;align-items:flex-start}
  .all-news-brand-mark{width:74px;height:74px;flex-basis:74px;border-radius:22px}
  .all-news-hero h1{font-size:2.3rem}
  .all-news-panel{padding:18px}
  .all-news-filter-form{align-items:stretch}
  .all-news-filter-fields{width:100%}
  .all-news-month-select,.all-news-filter-button{width:100%}
}

/* Featured pinned news styles */
.news-feature{display:flex;flex-direction:column;background:var(--card);border-radius:14px;overflow:hidden;box-shadow:0 18px 40px rgba(10,20,50,0.08);margin-bottom:20px}
.news-feature .thumb{height:420px;overflow:hidden}
.news-feature .thumb img{width:100%;height:100%;object-fit:cover}
.news-feature .feature-body{padding:26px;position:relative}
.news-feature h3{margin:0 0 12px;font-size:1.6rem}
.feature-excerpt{color:var(--muted);font-size:1.03rem;line-height:1.6}
@media(max-width:920px){.news-feature .thumb{height:280px}}@media(max-width:720px){.news-feature .thumb{height:200px}.news-feature h3{font-size:1.2rem}}

.feature-meta{color:#6b7280;font-size:0.95rem;margin:8px 0 12px}
.feature-meta .feature-author{font-weight:700;color:#16325c}
.feature-meta .feature-date{color:#9aa0a6}

.meta-row{display:flex;gap:8px;align-items:center;color:#9aa0a6;font-size:0.95rem;margin:6px 0}
.meta-author{font-weight:700;color:#16325c}

/* Blue meta box used for author + date */
.meta-box{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(90deg,var(--accent),#4a8ffd);color:#fff;padding:6px 10px;border-radius:10px;font-weight:700;font-size:0.58rem}
.meta-box .meta-author{color:#fff;font-weight:800}
.meta-box .date-text{color:#eaf2ff;font-weight:600}
.meta-box .feature-author{color:#fff}
.meta-box .feature-date{color:#eaf2ff}

/* slightly smaller box on small cards (50% smaller than previous) */
.news-teaser.small .meta-box{padding:6px 8px;font-size:0.55rem;border-radius:8px}

/* Hover effects: subtle zoom and drop shadow for all news cards */
.news-list-card, .news-teaser, .admin-news-card, .news-feature, .news-grid .news-item {
  transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms ease;
  transform-origin: center;
}
.news-list-card:hover, .news-teaser:hover, .admin-news-card:hover, .news-feature:hover, .news-grid .news-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  z-index: 3;
}
.news-list-card .meta-box{width:100%;display:flex;justify-content:flex-start}

/* Two-column news layout: pinned left, stacked teasers right */
.news-columns{display:flex;gap:20px;align-items:stretch}
.news-left{flex:1 1 60%}
.news-right{flex:0 0 36%;display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:4px}
.news-right .news-teaser.small{display:flex;gap:14px;align-items:flex-start;background:transparent;border-radius:10px;padding:12px 6px}
.news-teaser.small.admin-news-card{display:flex;align-items:flex-start;gap:12px;padding:10px 6px;border-radius:10px;background:transparent}
.news-teaser.small.admin-news-card .admin-news-thumb{width:140px;height:92px;object-fit:cover;border-radius:8px;flex:0 0 140px}
.news-teaser.small.admin-news-card .admin-news-body{flex:1;min-width:0;padding:4px 6px}
.news-teaser.small.admin-news-card .admin-news-title{font-weight:700;font-size:1rem;margin-bottom:8px;color:#16325c}
.news-teaser.small.admin-news-card .admin-news-meta{color:#9aa0a6;font-size:0.95rem}
.news-right .news-teaser.small.admin-news-card + .news-teaser.small.admin-news-card{border-top:1px solid #eef3f8;padding-top:12px;margin-top:6px}
.news-right{max-height:520px}

/* Card wrapper for right-column news list */
.news-list-card{background:var(--card);padding:12px;border-radius:12px;box-shadow:0 10px 30px rgba(10,20,50,0.06);display:flex;flex-direction:column}
.news-list-card .side-card-title{margin:0 0 10px;font-size:1.03rem;color:#16325c;font-weight:800}
.news-list-card .side-card-body{display:flex;flex-direction:column;gap:6px;overflow:auto}
.news-list-card .admin-news-thumb{flex:0 0 100px;width:100px;height:64px}
.news-list-card .admin-news-title{font-size:0.98rem}
.news-list-card .admin-news-meta{font-size:0.9rem}

@media(max-width:920px){.news-list-card{padding:10px}} 

@media(max-width:920px){.news-columns{flex-direction:column}.news-right{max-height:none;flex-basis:auto}}

/* small date badge adjustments */
.date-badge.small-badge{width:48px;height:48px;right:8px;top:8px;font-size:12px}
.date-badge.small-badge .db-day{font-size:16px;line-height:18px}
.date-badge.small-badge .db-month{font-size:10px}

.footer{background:#0b1220;color:#fff;padding:18px 0}
.footer .container{display:flex;justify-content:space-between;align-items:center}
.footer a{color:var(--accent)}

/* Admin */
.admin-page{background:#eef3ff}
.admin-container{max-width:1100px;margin:24px auto;padding:0}
.card{background:var(--card);padding:16px;border-radius:10px;margin-bottom:18px}
form label{display:block;margin-bottom:10px}
input[type=text], textarea{width:100%;padding:8px;border-radius:6px;border:1px solid #d8dbe5}
button{background:var(--accent);color:#fff;padding:10px 14px;border:none;border-radius:8px;cursor:pointer}
.admin-news-list .admin-news{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px dashed #e6e9f2}
.admin-actions{display:flex;gap:12px;align-items:center;margin-top:12px}
.back-link{margin-left:auto}

/* Admin news card layout */
.admin-news-card{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:10px;background:var(--card);box-shadow:0 8px 24px rgba(10,20,50,0.06);margin-bottom:12px}
.admin-news-thumb{width:140px;height:92px;object-fit:cover;border-radius:8px;flex:0 0 140px}
.admin-news-body{flex:1;min-width:0}
.admin-news-title{display:block;margin-bottom:6px;font-size:1rem}
.admin-news-meta{color:var(--muted);font-size:0.88rem;margin-bottom:6px}
.admin-news-excerpt{margin:0;color:#444;font-size:0.95rem}
.admin-news-actions{display:flex;flex-direction:column;gap:8px;align-items:flex-end}
@media(max-width:720px){.admin-news-card{flex-direction:column}.admin-news-thumb{width:100%;height:160px;flex:0 0 auto}.admin-news-actions{flex-direction:row;justify-content:flex-end;width:100%}}

/* Modal styles for admin add-news */
.btn-primary { background:#2b6cb0; color:#fff; border:0; cursor:pointer }
.modal button[type="submit"]{background:#2f9e44;color:#fff;border:0;cursor:pointer}
.modal button[type="submit"]:hover{background:#2b8a3e}
.modal { position:fixed; inset:0; background:rgba(0,0,0,0.45); display:flex; align-items:center; justify-content:center; z-index:1200 }
.modal-panel { background:#fff; padding:18px; width:100%; max-width:560px; border-radius:10px; box-shadow:0 8px 30px rgba(0,0,0,0.15); position:relative; max-height:85vh; overflow:auto }
.modal-panel h3 { margin-top:0 }
.modal-panel label { display:block; margin-top:8px }
.modal-panel input[type="text"], .modal-panel textarea { width:100%; padding:8px; border:1px solid #ddd; border-radius:6px; box-sizing:border-box }
.modal-close { position:absolute; right:10px; top:8px; border:0; background:transparent; font-size:22px; line-height:1; cursor:pointer }

/* three-column image upload in add-news */
.image-upload-grid input[type="file"]{width:100%}

@media (max-width:520px){
  .modal-panel { margin:16px; width:auto; max-width:calc(100% - 32px) }
}

/* Pagination and controls for all-news */
.all-news-controls{margin-bottom:12px}
.per-page-select{padding:6px;border-radius:6px;border:1px solid #d8dbe5}
.pagination-link{display:inline-block;padding:8px 10px;border-radius:8px;background:#fff;color:#16325c;border:1px solid #e6eef8;text-decoration:none}
.pagination-link[aria-current="page"]{background:linear-gradient(90deg,var(--accent),#5aa0ff);color:#fff;border-color:transparent}
.pagination-link:hover{box-shadow:0 8px 20px rgba(10,20,50,0.08)}

.all-news-page{
  font-family:"Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:linear-gradient(180deg, #f8fafc 0%, #eef3ff 100%);
}
.all-news-page-shell{padding-top:28px;padding-bottom:56px}
.all-news-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:22px;
  padding:30px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(15,118,110,0.92), rgba(15,23,42,0.96));
  color:#fff;
  box-shadow:0 28px 58px rgba(15,23,42,0.18);
  margin-bottom:22px;
}
.all-news-brand{display:flex;align-items:center;gap:18px;min-width:0}
.all-news-brand-mark{
  width:88px;
  height:88px;
  border-radius:26px;
  overflow:hidden;
  flex:0 0 88px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.18);
  display:flex;
  align-items:center;
  justify-content:center;
}
.all-news-brand-mark img{width:100%;height:100%;object-fit:cover;display:block}
.all-news-brand-mark span{color:#fff;font-family:"Cormorant Garamond", serif;font-size:2.6rem;font-weight:700}
.all-news-kicker{display:inline-flex;margin-bottom:8px;color:rgba(255,255,255,0.74);font-size:.8rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.all-news-hero h1{margin:0;font-family:"Cormorant Garamond", serif;font-size:3rem;line-height:.94;letter-spacing:-.02em}
.all-news-hero p{margin:10px 0 0;max-width:720px;color:rgba(255,255,255,0.84);line-height:1.75}
.all-news-home-link{white-space:nowrap}
.all-news-panel{padding:22px}
.all-news-filter-form{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;flex-wrap:wrap}
.all-news-filter-copy{display:flex;flex-direction:column;gap:6px;color:#475569}
.all-news-filter-copy strong{font-size:1rem;color:#14212b}
.all-news-filter-fields{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.all-news-month-select{min-width:220px;padding:10px 12px;border-radius:10px}
.all-news-filter-button{min-height:42px;padding:0 14px;border-radius:10px}
.all-news-reset-link{display:inline-flex;align-items:center;color:#475569;text-decoration:none;font-weight:700}
.all-news-summary{margin:12px 0 4px;color:#64748b;line-height:1.7}
.catalog-list{margin-top:18px}
.catalog-meta-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.catalog-pill{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:#edf7f5;color:#0f766e;font-size:.78rem;font-weight:800}
.catalog-pill-muted{background:#f3f4f6;color:#4b5563}
.all-news-thumb-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(15,118,110,0.14), rgba(217,119,6,0.14));
  color:#475569;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.all-news-empty{
  margin-top:18px;
  padding:20px;
  border-radius:16px;
  background:#fff;
  border:1px dashed #d8dbe5;
  color:#64748b;
  line-height:1.75;
}
.all-news-pagination{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:24px}

/* Admin sidebar */
.admin-sidebar{width:var(--sidebar-width,240px);flex:0 0 var(--sidebar-width,240px);position:fixed;left:0;top:0;bottom:0;z-index:1300;overflow:hidden;transition:width .24s cubic-bezier(.2,.9,.2,1)}
.admin-side-inner{padding:18px;background:#0b0b0b;border-radius:0;height:100vh;overflow:auto;display:flex;flex-direction:column;gap:12px;color:#fff}
.admin-side-inner h3,.sidebar-title{margin:0 0 10px;font-size:1.05rem;color:#fff}
.admin-menu{list-style:none;padding:0;margin:0}
.admin-menu li{margin:6px 0}
.admin-menu a{display:flex;align-items:center;padding:10px;border-radius:8px;color:#ffffff;text-decoration:none}
.admin-menu li.active a{background:linear-gradient(90deg,var(--accent),#5aa0ff);color:#fff}
.admin-menu li.logout a{background:#2b0b0b;color:#ffdddd}
.menu-icon{display:inline-block;width:34px;text-align:center;margin-right:10px;font-size:18px;color:#fff;transition:transform .18s ease}
.menu-icon svg{width:18px;height:18px;display:block;fill:currentColor}
.menu-text{white-space:nowrap;display:inline-block;vertical-align:middle;max-width:300px;opacity:1;transition:opacity .18s ease, max-width .24s cubic-bezier(.2,.9,.2,1);overflow:hidden}
.sidebar-toggle{background:rgba(255,255,255,0.04);border:0;cursor:pointer;padding:6px;border-radius:8px;font-size:14px;align-self:flex-end;color:#fff}

/* collapsed state: icon-only sidebar */
.sidebar-collapsed .admin-sidebar{width:var(--sidebar-collapsed,64px);flex:0 0 var(--sidebar-collapsed,64px)}
.sidebar-collapsed .admin-content{margin-left:var(--sidebar-collapsed,64px)}
.sidebar-collapsed .menu-text{opacity:0;max-width:0;margin:0;padding:0}
.sidebar-collapsed .sidebar-title{opacity:0;height:0}
.sidebar-collapsed .admin-menu a{justify-content:center;padding:12px}
.admin-content{margin-left:var(--sidebar-width,240px);transition:margin-left .24s cubic-bezier(.2,.9,.2,1)}

@media(max-width:900px){
  .admin-sidebar{position:relative;width:100%;flex:0 0 auto}
  .admin-content{margin-left:0}
}

/* sidebar footer */
.sidebar-footer{margin-top:auto;padding:12px 8px;font-size:12px;color:rgba(255,255,255,0.64);text-align:center;border-top:1px solid rgba(255,255,255,0.03)}
.sidebar-collapsed .sidebar-footer{display:none}

/* Submenu (Data) styles: animated open/close using max-height */
.admin-menu .has-children > a{display:flex;align-items:center;padding:10px;border-radius:8px;color:#ffffff;text-decoration:none}
.admin-menu .sub-menu{padding-left:18px;max-height:0;overflow:hidden;opacity:0;transition:max-height .28s cubic-bezier(.2,.9,.2,1), opacity .22s ease;}
.admin-menu .has-children.open .sub-menu{opacity:1;max-height:400px}
.admin-menu .has-children .caret{transition:transform .18s ease,color .18s ease;color:rgba(255,255,255,0.8);font-size:12px}
.admin-menu .has-children.open > a .caret{transform:rotate(180deg)}
.admin-menu .sub-menu a{padding:8px 10px;border-radius:8px;display:flex;align-items:center;color:#ffffff;text-decoration:none}
.admin-menu .sub-menu li.active a{background:rgba(255,255,255,0.06)}
/* open on hover for pointer devices */
@media (hover: hover) and (pointer: fine) {
  .admin-menu .has-children:hover > .sub-menu{opacity:1;max-height:400px}
  .admin-menu .has-children:hover > a .caret{transform:rotate(180deg)}
}

/* News modal (Tambah Berita) */
#newsModal{display:none;position:fixed;inset:0;background:rgba(2,6,23,0.6);align-items:center;justify-content:center;padding:20px;z-index:1400}
#newsModal.open,#newsModal[style*="display:flex"]{display:flex}
#newsModal .modal-inner{width:820px;max-width:100%;background:#fff;color:#111;padding:18px;border-radius:12px;box-shadow:0 12px 40px rgba(2,6,23,0.06);border:1px solid rgba(0,0,0,0.06)}
#newsModal h3{margin:0 0 12px;font-size:1.2rem;color:#111}
#newsModal label{display:block;font-size:13px;margin-bottom:8px;color:rgba(0,0,0,0.8)}
#newsModal .input,#newsModal textarea{width:100%;padding:10px;border-radius:8px;border:1px solid rgba(0,0,0,0.08);background:#fff;color:#111;outline:none}
#newsModal .input:focus,#newsModal textarea:focus{border-color:rgba(90,160,255,0.9);box-shadow:0 6px 24px rgba(90,160,255,0.06)}
#newsModal .modal-inner .btn{padding:8px 12px;border-radius:8px;border:0;cursor:pointer;margin-left:8px}
#newsModal .btn{background:rgba(0,0,0,0.04);color:#111}
#newsModal .btn-primary,#newsModal button[type="submit"]{background:linear-gradient(90deg,#2f9e44,#37b24d);color:#fff}
#newsModal .modal-inner .col-right{width:320px}
#newsModal input[type=file]{color:#111}
#newsModal .news-images-preview{display:flex;gap:8px;margin-top:8px}
#newsModal .news-images-preview img{width:120px;height:80px;object-fit:cover;border-radius:6px;border:1px solid rgba(0,0,0,0.06)}
#newsModal .modal-inner form{display:block}

/* Jadwal modal compact selects */
#jadwalModal .jadwal-form-grid{display:grid;grid-template-columns:160px 240px;gap:14px;align-items:end;justify-content:flex-start;margin-bottom:12px}
#jadwalModal .jadwal-modal-field{display:block;margin:0}
#jadwalModal .jadwal-select{width:100%;min-height:44px;padding:10px 12px;border-radius:10px;border:1px solid rgba(15,23,42,0.12);background:linear-gradient(180deg,#ffffff,#f6faf7);color:#0f172a;font-weight:600;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,0.7)}
#jadwalModal .jadwal-select:focus{border-color:rgba(47,158,68,0.55);box-shadow:0 0 0 4px rgba(47,158,68,0.12);background:#fff}
#jadwalModal .jadwal-select:disabled{color:#94a3b8;background:#f3f4f6;cursor:not-allowed;box-shadow:none}
#jadwalModal .jadwal-field-tingkat{max-width:160px}
#jadwalModal .jadwal-field-kelas{max-width:240px}

@media(max-width:900px){
  #newsModal .modal-inner{padding:14px}
  #newsModal .modal-inner .col-right{width:40%}
}

@media(max-width:640px){
  #jadwalModal .jadwal-form-grid{grid-template-columns:1fr;gap:12px}
  #jadwalModal .jadwal-field-tingkat,
  #jadwalModal .jadwal-field-kelas{max-width:none}
}

/* Admin news list layout */
.news-list{list-style:none;padding:0;margin:0}
.news-item{display:flex;gap:14px;padding:12px 10px;border-bottom:1px solid rgba(0,0,0,0.06);align-items:flex-start;background:transparent}
.news-item .thumb{flex:0 0 140px}
.news-item .thumb img{width:140px;height:100px;object-fit:cover;border-radius:6px;border:1px solid rgba(0,0,0,0.06)}
.thumb-placeholder{width:140px;height:100px;border-radius:6px;background:linear-gradient(180deg,#f0f0f0,#e6e6e6);display:block;border:1px solid rgba(0,0,0,0.04)}
.news-content{flex:1}
.news-title{margin:0 0 6px;color:#111;font-size:1.05rem}
.news-item .meta{font-size:13px;color:#666;margin-bottom:8px}
.news-item .excerpt{margin:0;color:#333;max-height:5.6rem;overflow:hidden}

@media(max-width:700px){
  .news-item{flex-direction:column}
  .news-item .thumb{flex:0 0 auto;width:100%}
  .news-item .thumb img,.thumb-placeholder{width:100%;height:180px}
}

/* News cards grid */
.news-list-compact{display:flex;flex-direction:column;gap:10px;margin:0;padding:0}
.news-card.compact{display:flex;align-items:center;gap:14px;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 6px 14px rgba(0,0,0,0.04);border:1px solid rgba(0,0,0,0.04);padding:10px}
.news-card.compact .card-thumb{flex:0 0 120px}
.news-card.compact .card-thumb img{width:120px;height:84px;object-fit:cover;border-radius:6px}
.news-card.compact .thumb-placeholder{width:120px;height:84px;border-radius:6px;background:linear-gradient(180deg,#f0f0f0,#e6e6e6)}
.news-card.compact .card-body{flex:1;padding:4px 0}
.news-card.compact .news-title{margin:0 0 6px;color:#111;font-size:1rem}
.news-card.compact .meta{font-size:13px;color:#666}

@media(max-width:700px){
  .news-card.compact{flex-direction:row}
}

@media(max-width:520px){
  .news-card.compact{flex-direction:row;gap:10px}
  .news-card.compact .card-thumb img,.news-card.compact .thumb-placeholder{width:100px;height:72px}
}

/* Styled file upload button inside modal */
.file-upload{display:block;margin-bottom:8px;font-size:13px;color:rgba(0,0,0,0.8)}
.file-upload .file-btn{display:inline-block;padding:8px 10px;border-radius:8px;background:rgba(0,0,0,0.06);color:#111;cursor:pointer;border:1px solid rgba(0,0,0,0.06);margin-top:6px}
.file-upload input[type=file]{display:none}
.file-upload .file-name{display:inline-block;margin-left:8px;font-size:13px;color:#444;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}
.news-images-preview{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;max-width:100%;overflow:hidden}
.news-images-preview .preview-item{width:100px;height:66px;flex:0 0 auto;border-radius:6px;overflow:hidden}
.news-images-preview .preview-item img{width:100%;height:100%;object-fit:cover;display:block}

/* Danger button (e.g. delete) */
.btn-danger { background: #e53e3e; color: #fff; border: 0; cursor: pointer }
.btn-danger:hover { background: #c53030 }
.btn-sm { padding:6px 8px; font-size:0.85rem; border-radius:6px }

/* Layout when using admin layout */
.admin-layout{display:flex;gap:18px}
.admin-content{flex:1;padding:18px}

@media(max-width:900px){
  .admin-layout{flex-direction:column}
  .admin-sidebar{width:100%}
}

@media(max-width:700px){.flex{flex-direction:column}.hero-content h1{font-size:1.6rem}.photo img{width:200px}}

/* Public landing page redesign */
html{scroll-behavior:smooth}

body.public-home{
  --landing-bg:#f4efe7;
  --landing-surface:#fffdf9;
  --landing-surface-strong:#ffffff;
  --landing-ink:#1f2933;
  --landing-muted:#5b6470;
  --landing-line:rgba(31,41,51,0.08);
  --landing-accent:#0f766e;
  --landing-accent-deep:#115e59;
  --landing-warm:#d97706;
  --landing-shadow:0 24px 60px rgba(31,41,51,0.10);
  margin:0;
  color:var(--landing-ink);
  background:
    radial-gradient(circle at top left, rgba(217,119,6,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(15,118,110,0.10), transparent 24%),
    linear-gradient(180deg, #f9f4ec 0%, #f4efe7 34%, #fbf8f3 100%);
  font-family:'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.public-home .container{max-width:1200px;padding:0 28px}
body.public-home h1,
body.public-home h2,
body.public-home h3,
body.public-home .nav-title,
body.public-home .hero-panel-brand strong,
body.public-home .feature-card h3,
body.public-home .activity-card h3,
body.public-home .data-card-modern h3{
  font-family:'Cormorant Garamond', Georgia, serif;
  letter-spacing:.01em;
}

body.public-home .hero{
  min-height:100svh;
  padding:124px 0 54px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  overflow:hidden;
}

body.public-home .carousel,
body.public-home .carousel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
body.public-home .carousel img{opacity:0;transition:opacity 900ms ease;filter:saturate(1.08) contrast(1.05) brightness(0.64)}
body.public-home .carousel img.active{opacity:1}
body.public-home .carousel-controls{inset:auto 24px 24px auto;gap:10px;justify-content:flex-end}
body.public-home .carousel-controls button{
  width:46px;
  height:46px;
  padding:0;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.22);
  background:rgba(255,255,255,0.12);
  color:#fff;
  font-size:1.5rem;
  backdrop-filter:blur(10px);
}
body.public-home .carousel-controls button:hover{background:rgba(255,255,255,0.22)}

body.public-home .hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(15,23,42,0.28) 0%, rgba(15,23,42,0.52) 36%, rgba(17,24,39,0.72) 100%);
}
body.public-home .hero-mesh{
  position:absolute;
  inset:0;
  background-image:linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(180deg, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
  opacity:.26;
}
body.public-home .hero-orb{
  position:absolute;
  border-radius:999px;
  filter:blur(16px);
  opacity:.75;
}
body.public-home .hero-orb-left{
  width:220px;
  height:220px;
  left:8%;
  top:18%;
  background:radial-gradient(circle, rgba(217,119,6,0.38), transparent 72%);
}
body.public-home .hero-orb-right{
  width:280px;
  height:280px;
  right:7%;
  bottom:16%;
  background:radial-gradient(circle, rgba(15,118,110,0.40), transparent 70%);
}

body.public-home .landing-nav{
  position:fixed;
  top:12px;
  left:12px;
  right:12px;
  z-index:10040;
}
body.public-home .landing-nav .container{position:relative}
body.public-home .landing-nav__surface{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-radius:24px;
  background:rgba(248,242,232,0.14);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(18px);
  box-shadow:0 18px 42px rgba(15,23,42,0.18);
}
body.public-home .landing-nav.is-scrolled .landing-nav__surface{
  background:rgba(17,24,39,0.84);
  border-color:rgba(255,255,255,0.10);
  box-shadow:0 22px 54px rgba(15,23,42,0.28);
}
body.public-home .landing-nav__brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  color:#fff;
  text-decoration:none;
}
body.public-home .landing-nav__brand-mark{
  width:50px;
  height:50px;
  border-radius:16px;
  overflow:hidden;
  flex:0 0 50px;
  box-shadow:0 10px 24px rgba(0,0,0,0.16);
}
body.public-home .landing-nav__brand-logo,
body.public-home .landing-nav__brand-fallback{
  width:100%;
  height:100%;
  display:block;
}
body.public-home .landing-nav__brand-logo{object-fit:cover;border:1px solid rgba(255,255,255,0.16)}
body.public-home .landing-nav__brand-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(217,119,6,0.94), rgba(15,118,110,0.94));
  color:#fff;
  font-weight:800;
}
body.public-home .landing-nav__brand-copy{display:flex;flex-direction:column;min-width:0}
body.public-home .landing-nav__brand-name{
  display:block;
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:1.24rem;
  line-height:1;
  color:#fff;
}
body.public-home .landing-nav__brand-subtitle{
  display:block;
  margin-top:4px;
  color:rgba(255,255,255,0.74);
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.public-home .landing-nav__toggle,
body.public-home .landing-nav__close{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  cursor:pointer;
}
body.public-home .landing-nav__toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  justify-self:end;
  min-height:46px;
  padding:0 15px;
  border-radius:999px;
  background:rgba(255,255,255,0.10);
  color:#fff;
  box-shadow:0 10px 26px rgba(15,23,42,0.14);
}
body.public-home .landing-nav__toggle-box{
  position:relative;
  width:18px;
  height:14px;
  display:inline-block;
}
body.public-home .landing-nav__toggle-box span{
  position:absolute;
  left:0;
  width:100%;
  height:2px;
  border-radius:999px;
  background:currentColor;
  transition:transform .22s ease, opacity .22s ease, top .22s ease;
}
body.public-home .landing-nav__toggle-box span:nth-child(1){top:0}
body.public-home .landing-nav__toggle-box span:nth-child(2){top:6px}
body.public-home .landing-nav__toggle-box span:nth-child(3){top:12px}
body.public-home .landing-nav__toggle-text{
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.public-home .landing-nav.is-open .landing-nav__toggle-box span:nth-child(1){top:6px;transform:rotate(45deg)}
body.public-home .landing-nav.is-open .landing-nav__toggle-box span:nth-child(2){opacity:0}
body.public-home .landing-nav.is-open .landing-nav__toggle-box span:nth-child(3){top:6px;transform:rotate(-45deg)}
body.public-home .landing-nav__panel{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  display:grid;
  gap:18px;
  padding:18px;
  border-radius:28px;
  background:rgba(255,250,243,0.98);
  color:#16325c;
  border:1px solid rgba(19,32,40,0.08);
  box-shadow:0 30px 60px rgba(19,32,40,0.28);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(-10px) scale(.98);
  transform-origin:top center;
  transition:opacity .22s ease, transform .26s ease, visibility .22s ease;
  max-height:calc(100vh - 112px);
  overflow-y:auto;
}
body.public-home .landing-nav.is-open .landing-nav__panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
body.public-home .landing-nav__panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(19,32,40,0.08);
}
body.public-home .landing-nav__panel-copy{min-width:0}
body.public-home .landing-nav__panel-kicker{
  display:block;
  color:#0f766e;
  font-size:.74rem;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
}
body.public-home .landing-nav__panel-title{
  display:block;
  margin-top:8px;
  color:#132028;
  font-family:'Cormorant Garamond', Georgia, serif;
  font-size:1.65rem;
  line-height:1;
}
body.public-home .landing-nav__panel-text{
  margin:8px 0 0;
  color:#5b6470;
  font-size:.92rem;
  line-height:1.65;
}
body.public-home .landing-nav__close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  padding:0;
  border-radius:999px;
  background:#eff5f4;
  color:#16325c;
  border:1px solid rgba(19,32,40,0.08);
  font-size:1.5rem;
  line-height:1;
}
body.public-home .landing-nav__links{
  list-style:none;
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
}
body.public-home .landing-nav__links a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:54px;
  padding:0 16px;
  border-radius:18px;
  color:#16325c;
  text-decoration:none;
  font-size:.95rem;
  font-weight:700;
  background:rgba(15,118,110,0.05);
  border:1px solid rgba(15,118,110,0.08);
  transition:transform .22s ease, background-color .22s ease, border-color .22s ease;
}
body.public-home .landing-nav__links a::after{
  content:'›';
  color:rgba(22,50,92,0.42);
  font-size:1rem;
  font-weight:700;
}
body.public-home .landing-nav__links a:hover{
  transform:translateY(-1px);
  background:rgba(15,118,110,0.08);
  border-color:rgba(15,118,110,0.14);
}
body.public-home .landing-nav__links a.is-active,
body.public-home .landing-nav__links a[aria-current="page"]{
  color:#0f3d3a;
  background:rgba(15,118,110,0.14);
  border-color:rgba(15,118,110,0.26);
  box-shadow:0 12px 24px rgba(15,118,110,0.12);
}
body.public-home .landing-nav__links a.is-active::after,
body.public-home .landing-nav__links a[aria-current="page"]::after{color:#0f766e}
body.public-home .landing-nav__backdrop{
  position:fixed;
  inset:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  border:0;
  background:rgba(8,15,20,0.42);
  backdrop-filter:blur(6px);
  transition:opacity .22s ease, visibility .22s ease;
  z-index:1;
}
body.public-home .landing-nav.is-open .landing-nav__backdrop{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

body.public-home .footer-brand-mark,
body.public-home .hero-school-fallback,
body.public-home .principal-photo-fallback,
body.public-home .activity-icon-fallback{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
}

body.public-home .hero-shell{
  position:relative;
  z-index:3;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:center;
  align-items:center;
}
body.public-home .hero-copy{
  max-width:860px;
  color:#fff;
  text-align:center;
}
body.public-home .hero-school-mark{
  width:173px;
  height:173px;
  margin:0 auto 22px;
  padding:13px;
  border-radius:35px;
  background:linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08));
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:0 22px 44px rgba(15,23,42,0.22);
  backdrop-filter:blur(10px);
}
body.public-home .hero-school-logo,
body.public-home .hero-school-fallback{
  width:100%;
  height:100%;
  display:block;
  border-radius:26px;
}
body.public-home .hero-school-logo{
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(255,255,255,0.10);
}
body.public-home .hero-school-fallback{
  background:linear-gradient(135deg, rgba(217,119,6,0.96), rgba(15,118,110,0.96));
  color:#fff;
  font-size:4rem;
}
body.public-home .hero-copy h1{
  margin:18px 0 18px;
  font-size:clamp(3.2rem, 6vw, 5.5rem);
  line-height:.95;
  color:#fff;
  text-wrap:balance;
}
body.public-home .hero-accent{display:block;color:#fff4df}
body.public-home .hero-heading-line{
  display:block;
  margin-top:12px;
  font-size:clamp(1.4rem, 2.4vw, 2.2rem);
  line-height:1.12;
  color:rgba(255,245,230,0.92);
}
body.public-home .hero-lead{
  max-width:660px;
  margin:0 auto 26px;
  color:rgba(255,255,255,0.86);
  font-size:1.05rem;
  line-height:1.75;
}
body.public-home .hero-actions{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:0}
body.public-home .hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 20px;
  border-radius:999px;
  font-weight:700;
  text-decoration:none;
  transition:transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
body.public-home .hero-btn:hover{transform:translateY(-2px)}
body.public-home .hero-btn-primary{
  background:linear-gradient(135deg, #f59e0b, #d97706);
  color:#fff;
  box-shadow:0 18px 28px rgba(217,119,6,0.28);
}
body.public-home .hero-btn-secondary{
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.18);
  color:#fff;
}

body.public-home .down-arrow{
  bottom:26px;
  left:50%;
  transform:translateX(-50%);
  width:52px;
  height:52px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.14);
  color:#fff;
  backdrop-filter:blur(12px);
}

body.public-home .landing-main{position:relative;z-index:2}
body.public-home .section{padding:88px 0}
body.public-home .landing-ribbon{margin-top:-36px;padding-top:0;padding-bottom:36px}
body.public-home .ribbon-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
body.public-home .ribbon-card{
  padding:22px;
  border-radius:24px;
  background:rgba(255,253,249,0.88);
  border:1px solid rgba(255,255,255,0.55);
  box-shadow:var(--landing-shadow);
}
body.public-home .ribbon-card span{display:block;color:var(--landing-accent-deep);font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body.public-home .ribbon-card strong{display:block;margin:14px 0 10px;font-size:1.5rem;font-family:'Cormorant Garamond', Georgia, serif}
body.public-home .ribbon-card p{margin:0;color:var(--landing-muted);line-height:1.65}

body.public-home .landing-section{position:relative}
body.public-home .section-heading{max-width:760px;margin-bottom:30px}
body.public-home .section-eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--landing-accent-deep);font-size:.82rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
body.public-home .section-heading h2,
body.public-home .profile-copy h2,
body.public-home .cta-copy h2{
  margin:10px 0 12px;
  font-size:clamp(2.1rem, 4vw, 3.4rem);
  line-height:.98;
  color:#14212b;
  text-wrap:balance;
}
body.public-home .section-heading p,
body.public-home .section-intro,
body.public-home .cta-copy p{
  margin:0;
  color:var(--landing-muted);
  font-size:1rem;
  line-height:1.8;
}
body.public-home .section-news.has-static-news-background{
  background-color:#132028;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:scroll;
}
@media(min-width:1101px) and (prefers-reduced-motion:no-preference){
  body.public-home .section-news.has-static-news-background{background-attachment:fixed}
}
body.public-home .section-news.has-static-news-background .container{position:relative;z-index:1}
body.public-home .section-news.has-static-news-background .section-eyebrow{color:#f7d8a6}
body.public-home .section-news.has-static-news-background .news-card-surface,
body.public-home .section-news.has-static-news-background .empty-state{
  background:rgba(255,253,249,0.97);
  border-color:rgba(255,255,255,0.82);
  box-shadow:0 18px 44px rgba(15,23,42,0.16);
}
body.public-home .section-news.has-static-news-background .news-date-pill{background:#fff4df}
body.public-home .section-news.has-static-news-background .news-meta-modern{color:#5f6974}

body.public-home .profile-grid{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:28px;
  align-items:start;
}
body.public-home .profile-pillars{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
  margin-top:26px;
}
body.public-home .pillar-card,
body.public-home .principal-card,
body.public-home .feature-card,
body.public-home .activity-card,
body.public-home .data-card-modern,
body.public-home .cta-shell,
body.public-home .news-card-surface,
body.public-home .empty-state{
  background:rgba(255,253,249,0.88);
  border:1px solid rgba(255,255,255,0.65);
  box-shadow:var(--landing-shadow);
}
body.public-home .pillar-card{
  padding:18px;
  border-radius:22px;
}
body.public-home .pillar-card strong{display:block;font-size:1.22rem;color:#16242f}
body.public-home .pillar-card p{margin:10px 0 0;color:var(--landing-muted);line-height:1.7}
body.public-home .mission-list{
  margin:12px 0 0;
  padding-left:1.4rem;
  color:var(--landing-muted);
  display:grid;
  gap:10px;
}
body.public-home .mission-list li{line-height:1.75;padding-left:4px}
body.public-home .mission-list li::marker{font-weight:800;color:#0f766e}

body.public-home .principal-card{
  border-radius:30px;
  overflow:hidden;
}
body.public-home .principal-media{background:linear-gradient(180deg, rgba(15,118,110,0.10), rgba(217,119,6,0.12));padding:18px}
body.public-home .principal-media img,
body.public-home .principal-photo-fallback{
  width:80%;
  min-height:288px;
  margin:0 auto;
  border-radius:24px;
}
body.public-home .principal-media img{object-fit:cover;display:block}
body.public-home .principal-photo-fallback{background:linear-gradient(135deg,#0f766e,#d97706);color:#fff;font-size:4rem}
body.public-home .principal-body{padding:24px}
body.public-home .principal-body h3{margin:10px 0 12px;font-size:2.2rem;color:#14212b}
body.public-home .principal-body p{margin:0;color:var(--landing-muted);line-height:1.85}
body.public-home .principal-meta{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
body.public-home .principal-meta span{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#f2ece4;color:#4a5561;font-size:.86rem;font-weight:700}

body.public-home .news-grid-modern,
body.public-home .feature-grid,
body.public-home .activity-grid{display:grid;gap:18px}
body.public-home .news-grid-modern{grid-template-columns:repeat(3,minmax(0,1fr))}
body.public-home .feature-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.public-home .activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

body.public-home .news-card-modern,
body.public-home .feature-card,
body.public-home .activity-card{height:100%}
body.public-home .news-card-modern{display:flex}
body.public-home .news-card-surface,
body.public-home .feature-card,
body.public-home .activity-card{
  border-radius:26px;
  overflow:hidden;
}
body.public-home .news-card-surface{
  display:flex;
  flex-direction:column;
  width:100%;
  height:100%;
}
body.public-home .news-media-modern,
body.public-home .feature-card-media{
  position:relative;
  overflow:hidden;
}
body.public-home .news-media-modern{height:212px;background:#e8dfd1}
body.public-home .feature-card-media{height:210px;background:#e8dfd1}
body.public-home .news-media-modern img,
body.public-home .feature-card-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .45s ease}
body.public-home .news-card-modern:hover img,
body.public-home .feature-card:hover img{transform:scale(1.06)}
body.public-home .news-media-placeholder,
body.public-home .feature-card-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#7b8790;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  background:linear-gradient(135deg, rgba(15,118,110,0.10), rgba(217,119,6,0.10));
}
body.public-home .news-content-modern,
body.public-home .feature-card-body{padding:18px 18px 20px}
body.public-home .news-content-modern{
  display:flex;
  flex-direction:column;
  flex:1;
}
body.public-home .news-date-pill{
  display:inline-flex;
  align-items:center;
  padding:7px 12px;
  border-radius:999px;
  background:#edf7f5;
  color:var(--landing-accent-deep);
  font-size:.82rem;
  font-weight:800;
}
body.public-home .news-content-modern h3,
body.public-home .feature-card h3,
body.public-home .activity-card h3{
  margin:14px 0 10px;
  font-size:1.95rem;
  line-height:1;
  color:#16242f;
}
body.public-home .news-content-modern h3{
  font-size:1.72rem;
  line-height:1.12;
  min-height:3.85rem;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
}
body.public-home .news-content-modern p,
body.public-home .feature-card p,
body.public-home .activity-card p{margin:0;color:var(--landing-muted);line-height:1.75}
body.public-home .news-content-modern p{
  flex:1;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  line-clamp:3;
  overflow:hidden;
}
body.public-home .news-meta-modern{margin-top:14px;color:#77818a;font-size:.88rem;font-weight:700}
body.public-home .section-news-actions,
body.public-home .section-facilities-actions,
body.public-home .section-prestasi-actions{display:flex;justify-content:center;margin-top:26px}
body.public-home .section-news-button,
body.public-home .section-facilities-button,
body.public-home .section-prestasi-button{
  min-width:220px;
  background:#14212b;
  color:#fff;
  box-shadow:0 18px 30px rgba(15,23,42,0.18);
}
body.public-home .section-news.has-static-news-background .section-news-button{
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.24);
  box-shadow:none;
}

body.public-home .activity-card{
  display:flex;
  gap:16px;
  align-items:flex-start;
  padding:20px;
}
body.public-home .activity-icon-wrap{flex:0 0 72px}
body.public-home .activity-icon,
body.public-home .activity-icon-fallback{
  width:72px;
  height:72px;
  border-radius:22px;
}
body.public-home .activity-icon{object-fit:cover;display:block;border:1px solid rgba(15,23,42,0.08);background:#fff}
body.public-home .activity-icon-fallback{background:linear-gradient(135deg,#0f766e,#d97706);color:#fff;font-size:1.8rem}

body.public-home .data-grid-modern{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
body.public-home .data-card-modern{
  padding:22px;
  border-radius:26px;
}
body.public-home .data-card-wide{grid-column:span 1}
body.public-home .data-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:18px}
body.public-home .data-card-top h3{margin:0;font-size:2rem;line-height:1;color:#14212b}
body.public-home .data-card-top span{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;background:#f2ece4;color:#4a5561;font-size:.84rem;font-weight:700}
body.public-home .person-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
body.public-home .person-list li{display:flex;gap:12px;align-items:flex-start}
body.public-home .person-dot{width:11px;height:11px;margin-top:8px;border-radius:999px;background:linear-gradient(135deg,#d97706,#0f766e);flex:0 0 11px}
body.public-home .person-list strong{display:block;color:#16242f;font-size:1rem}
body.public-home .person-list span{display:block;margin-top:4px;color:var(--landing-muted);line-height:1.65;font-size:.92rem}
body.public-home .data-card-empty{margin:0;color:var(--landing-muted);line-height:1.7}
body.public-home .graduation-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
body.public-home .graduation-stat-box{
  padding:16px;
  border-radius:18px;
  background:#f5efe6;
}
body.public-home .graduation-stat-box strong{display:block;font-size:1.8rem;color:#16242f}
body.public-home .graduation-stat-box span{display:block;margin-top:6px;color:var(--landing-muted);font-size:.9rem}
body.public-home .graduation-year-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
body.public-home .graduation-year-list span{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#edf7f5;color:var(--landing-accent-deep);font-size:.86rem;font-weight:700}

body.public-home .app-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
}
body.public-home .app-card{height:100%}
body.public-home .app-card-link{
  display:flex;
  align-items:center;
  gap:18px;
  height:100%;
  padding:20px;
  border-radius:26px;
  text-decoration:none;
  color:inherit;
  background:rgba(255,253,249,0.94);
  border:1px solid rgba(255,255,255,0.72);
  box-shadow:var(--landing-shadow);
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.public-home .app-card-link:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 50px rgba(15,23,42,0.14);
  border-color:rgba(15,118,110,0.18);
}
body.public-home .app-card-logo-wrap{
  flex:0 0 76px;
  width:76px;
  height:76px;
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(135deg, rgba(15,118,110,0.14), rgba(217,119,6,0.14));
  display:flex;
  align-items:center;
  justify-content:center;
}
body.public-home .app-card-logo,
body.public-home .app-card-logo-fallback{
  width:100%;
  height:100%;
  display:block;
}
body.public-home .app-card-logo{object-fit:cover}
body.public-home .app-card-logo-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0f766e;
  font-size:1.7rem;
  font-weight:800;
}
body.public-home .app-card-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.public-home .app-card-title{
  font-size:1.35rem;
  font-weight:800;
  line-height:1.15;
  color:#14212b;
}
body.public-home .app-card-meta{
  color:var(--landing-muted);
  line-height:1.6;
  word-break:break-word;
}
body.public-home .app-card-action{
  display:inline-flex;
  align-items:center;
  width:max-content;
  margin-top:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#edf7f5;
  color:var(--landing-accent-deep);
  font-size:.84rem;
  font-weight:800;
}

body.public-home .cta-shell{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px;
  padding:34px;
  border-radius:32px;
  background:linear-gradient(135deg, rgba(15,118,110,0.10), rgba(217,119,6,0.10)), rgba(255,253,249,0.92);
}
body.public-home .cta-copy{max-width:720px}
body.public-home .cta-actions{display:flex;gap:14px;flex-wrap:wrap}

body.public-home .empty-state{
  padding:22px;
  border-radius:24px;
  color:var(--landing-muted);
  line-height:1.75;
}

body.public-home .footer{
  background:#132028;
  color:#eef2f4;
  padding:30px 0;
}
body.public-home .footer-shell{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
body.public-home .footer-brand-block{display:flex;align-items:center;gap:16px}
body.public-home .footer-brand-mark{
  width:62px;
  height:62px;
  border-radius:20px;
  background:linear-gradient(135deg, rgba(217,119,6,0.92), rgba(15,118,110,0.92));
  color:#fff;
  overflow:hidden;
}
body.public-home .footer-brand-logo{width:100%;height:100%;object-fit:cover;display:block}
body.public-home .footer-brand-block strong{display:block;font-size:1.1rem}
body.public-home .footer-tagline{margin-top:4px;color:rgba(238,242,244,0.72);font-size:.94rem}
body.public-home .footer-copy-group{display:flex;flex-direction:column;gap:10px;align-items:flex-end;color:rgba(238,242,244,0.80);text-align:right}
body.public-home .footer a{color:#fff2d8}

body.public-home [data-reveal]{opacity:0;transform:translateY(28px);transition:opacity .7s ease, transform .7s ease;will-change:opacity, transform}
body.public-home [data-reveal].is-visible{opacity:1;transform:none}

@media(max-width:1100px){
  body.public-home .hero-shell,
  body.public-home .profile-grid,
  body.public-home .news-grid-modern,
  body.public-home .feature-grid,
  body.public-home .data-grid-modern,
  body.public-home .app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.public-home .hero-shell{grid-template-columns:minmax(0,1fr)}
  body.public-home .hero-copy{max-width:none}
}

@media(max-width:860px){
  body.public-home .ribbon-grid,
  body.public-home .profile-pillars,
  body.public-home .activity-grid,
  body.public-home .feature-grid,
  body.public-home .news-grid-modern,
  body.public-home .data-grid-modern,
  body.public-home .app-grid,
  body.public-home .graduation-summary-grid{grid-template-columns:1fr}
  body.public-home .cta-shell{flex-direction:column;align-items:flex-start}
  body.public-home .footer-copy-group{align-items:flex-start;text-align:left}
}

@media(max-width:720px){
  body.public-home .landing-nav{left:10px;right:10px;top:10px}
  body.public-home .landing-nav__surface{padding:11px 12px;border-radius:22px}
  body.public-home .landing-nav__brand-name{font-size:1.18rem}
  body.public-home .landing-nav__brand-subtitle{font-size:.74rem}
  body.public-home .landing-nav__panel{padding:16px;border-radius:24px}
  body.public-home .hero{min-height:auto;padding:116px 0 44px}
  body.public-home .hero-school-mark{width:154px;height:154px;padding:11px;border-radius:32px}
  body.public-home .hero-copy h1{font-size:clamp(2.4rem, 13vw, 4rem)}
  body.public-home .hero-heading-line{font-size:clamp(1.2rem, 5vw, 1.6rem)}
  body.public-home .pillar-card,
  body.public-home .news-card-surface,
  body.public-home .feature-card,
  body.public-home .activity-card,
  body.public-home .data-card-modern,
  body.public-home .cta-shell,
  body.public-home .ribbon-card{border-radius:22px}
  body.public-home .section{padding:72px 0}
  body.public-home .landing-ribbon{margin-top:-20px}
  body.public-home .section-news.has-static-news-background{background-attachment:scroll}
}

@media(max-width:560px){
  body.public-home .container{padding:0 18px}
  body.public-home .landing-nav__surface{padding:10px 11px;border-radius:20px}
  body.public-home .landing-nav__brand-mark{width:46px;height:46px;flex-basis:46px;border-radius:14px}
  body.public-home .landing-nav__brand-name{font-size:1.08rem}
  body.public-home .landing-nav__brand-subtitle{display:none}
  body.public-home .landing-nav__toggle{padding:0 12px;min-height:44px}
  body.public-home .landing-nav__toggle-text{display:none}
  body.public-home .landing-nav__panel{left:-4px;right:-4px;padding:15px;border-radius:22px}
  body.public-home .landing-nav__panel-title{font-size:1.5rem}
  body.public-home .hero-school-mark{width:134px;height:134px;margin-bottom:18px;padding:10px;border-radius:27px}
  body.public-home .hero-school-logo,
  body.public-home .hero-school-fallback{border-radius:19px}
  body.public-home .hero-school-fallback{font-size:3rem}
  body.public-home .hero-actions,
  body.public-home .cta-actions{flex-direction:column;width:100%}
  body.public-home .hero-btn{width:100%}
  body.public-home .principal-body h3,
  body.public-home .news-content-modern h3,
  body.public-home .feature-card h3,
  body.public-home .activity-card h3,
  body.public-home .data-card-top h3{font-size:1.7rem}
  body.public-home .app-card-link{align-items:flex-start}
  body.public-home .app-card-title{font-size:1.22rem}
  body.public-home .principal-media img,
  body.public-home .principal-photo-fallback{min-height:240px}
  body.public-home .footer-brand-block{align-items:flex-start}
}

@media(min-width:901px){
  body.public-home .landing-nav{left:20px;right:20px;top:18px}
  body.public-home .landing-nav__surface{
    grid-template-columns:auto minmax(0,1fr);
    gap:20px;
    padding:14px 20px;
    border-radius:26px;
  }
  body.public-home .landing-nav__brand-mark{width:54px;height:54px;flex-basis:54px;border-radius:18px}
  body.public-home .landing-nav__brand-name{font-size:1.6rem}
  body.public-home .landing-nav__brand-subtitle{font-size:.84rem}
  body.public-home .landing-nav__toggle,
  body.public-home .landing-nav__close,
  body.public-home .landing-nav__backdrop{display:none}
  body.public-home .landing-nav__panel{
    position:static;
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
    padding:0;
    margin-left:auto;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    max-height:none;
    overflow:visible;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:none;
  }
  body.public-home .landing-nav__panel-head{display:none}
  body.public-home .landing-nav__links{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
  }
  body.public-home .landing-nav__links a{
    min-height:46px;
    padding:0 16px;
    border-radius:999px;
    color:#fff;
    background:transparent;
    border:0;
  }
  body.public-home .landing-nav__links a::after{display:none}
  body.public-home .landing-nav__links a:hover{background:rgba(255,255,255,0.10);border-color:transparent}
  body.public-home .landing-nav__links a.is-active,
  body.public-home .landing-nav__links a[aria-current="page"]{
    color:#fff4df;
    background:rgba(255,255,255,0.14);
    border-color:transparent;
    box-shadow:none;
  }
  body.public-home .landing-nav.is-scrolled .landing-nav__links a.is-active,
  body.public-home .landing-nav.is-scrolled .landing-nav__links a[aria-current="page"]{background:rgba(255,255,255,0.10)}
}
