*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;font-family:Arial,Helvetica,sans-serif;color:#252525;line-height:1.6}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.wrap{width:min(1120px,92%);margin:auto}
.topbar{background:#F08000;color:#fff;font-size:12px}.topbar-inner{min-height:35px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:5px 0}
.hero{position:relative;color:white;background:linear-gradient(#0006,#0006),url('../images/slide1.jpg') center/cover no-repeat,#999;padding-bottom:35px}.nav{min-height:75px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-weight:bold}.brand img{width:42px;height:42px;object-fit:contain}.nav-links{display:flex;list-style:none;align-items:center;gap:24px;padding:0;margin:0}.nav-links a{font-size:13px;font-weight:bold}.nav-links a:hover{color:#ffc928}.menu-toggle{display:none;background:transparent;border:0;color:white;font-size:26px}
.hero-center{text-align:center;padding:15px 0 25px}.hero-logo{width:420px;height:100px;object-fit:contain;margin:auto}.hero-center h1{font-size:clamp(25px,4vw,42px);line-height:1.2;color:#ffca24;text-shadow:2px 3px 3px #222;margin:0}.hero-center p{color:#ffe39a;font-weight:bold;margin:8px 0}
.quick-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.quick-card{display:flex;gap:15px;align-items:center;padding:20px;background:#292929ed;min-height:105px}.quick-icon{font-size:36px;color:#ffc928}.quick-card h3{font-size:16px;margin:0 0 5px}.quick-card p{font-size:12px;margin:0;color:#eee}
.welcome{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:55px;padding:65px 0}.welcome-photo{min-height:250px;background:#f3f3f3;overflow:hidden}.welcome-photo img{width:100%;height:300px;object-fit:cover}.welcome h2{font-size:clamp(28px,3vw,40px);line-height:1.2;color:#071b91;margin:5px 0 18px}.welcome p{font-size:14px;color:#555}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:bold;color:#e87516}
.content-section{padding:30px 0 45px}.section-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:22px;border-bottom:1px solid #eee;padding-bottom:15px}.section-heading h2{font-size:clamp(24px,3vw,32px);color:#071b91;margin:3px 0 0}.section-mark{width:55px;height:4px;background:#e87516;border-radius:4px}.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.content-card{border:1px solid #eee;border-radius:10px;overflow:hidden;background:white;box-shadow:0 5px 20px #14234d0b;transition:transform .2s,box-shadow .2s}.content-card:hover{transform:translateY(-4px);box-shadow:0 10px 25px #14234d18}.card-image{display:block;height:190px;background:#f1f3f8}.card-image img{width:100%;height:100%;object-fit:cover}.image-placeholder{height:100%;display:grid;place-items:center;color:#e87516;font-size:42px;font-weight:bold;background:linear-gradient(135deg,#fff0df,#e6eaff)}.card-body{padding:17px}.category-pill{display:inline-block;background:#fff0df;color:#b9530b;border-radius:20px;padding:4px 10px;font-size:11px;font-weight:bold}.card-body h3{font-size:18px;line-height:1.4;margin:12px 0 8px}.card-body h3 a:hover{color:#e87516}.card-body p{font-size:13px;color:#626262;line-height:1.7}.card-footer{display:flex;justify-content:space-between;gap:8px;align-items:center;border-top:1px solid #eee;margin-top:15px;padding-top:12px;font-size:11px;color:#777}.card-footer a{color:#d96712;font-weight:bold}.empty-state{background:#fff8f0;border:1px dashed #edb27c;border-radius:8px;padding:20px;color:#77502e;font-size:14px}
.site-footer{background:linear-gradient(135deg,#e87516,#f28c28 55%,#ffad42);color:white;margin-top:25px}.footer-accent{height:5px;background:linear-gradient(90deg,#092477,#fff,#092477)}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1.2fr;gap:35px;padding-top:40px;padding-bottom:35px}.footer-grid h3,.footer-grid h4{margin:0 0 14px;color:white}.footer-grid p,.footer-grid a{font-size:13px;color:#fff7ed}.footer-grid a{display:block;margin:8px 0}.footer-grid a:hover{color:#092477}.footer-bottom{background:#c95c0b;padding:16px 0;font-size:12px}.contact-float{position:fixed;right:16px;bottom:16px;background:#092477;color:white;border-radius:30px;padding:12px 18px;box-shadow:0 4px 16px #0003;font-size:13px}
.simple-header{background:##F08000;color:white;padding:18px 4%}.simple-header a{font-weight:bold}.detail-content{max-width:850px;padding-top:45px;padding-bottom:70px}.detail-content h1{font-size:clamp(28px,4vw,42px);line-height:1.25;color:##F08000}.detail-date{font-size:13px;color:#777}.detail-image{width:100%;max-height:480px;object-fit:cover;border-radius:10px;margin:25px 0}.detail-summary{font-size:18px;font-weight:bold;color:#555}.article-body{line-height:1.9;white-space:normal}
.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#071b91,#e87516)}.login-card{width:min(420px,100%);background:white;border-radius:16px;padding:30px;box-shadow:0 15px 45px #0003}.login-card h1{margin:0 0 5px;color:#071b91}.login-card p{color:#666;font-size:14px}.login-card label,.content-form label{display:block;font-weight:bold;font-size:13px;margin:15px 0 6px}.login-card input,.content-form input,.content-form textarea,.content-form select{width:100%;padding:12px;border:1px solid #d7dbe6;border-radius:7px;font:inherit;background:white}.login-card input:focus,.content-form input:focus,.content-form textarea:focus,.content-form select:focus{outline:2px solid #ffc078;border-color:#e87516}.login-mark{width:55px;height:55px;border-radius:15px;background:#fff0df;color:#d96712;display:grid;place-items:center;font-weight:bold;font-size:20px;margin-bottom:18px}.btn-primary,.btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:11px 17px;border:0;border-radius:7px;font-weight:bold;font-size:13px;cursor:pointer}.btn-primary{background:#e87516;color:white}.btn-primary:hover{background:#c95c0b}.login-card .btn-primary{width:100%;margin-top:20px}.btn-secondary{background:#edf0fa;color:#071b91}.back-link{display:block;text-align:center;font-size:13px;margin-top:18px;color:#071b91}
.admin-page{background:#f5f6fa;min-height:100vh}.admin-top{background:#071b91;color:white;padding:16px max(4%,calc((100% - 1120px)/2));display:flex;justify-content:space-between;gap:15px;align-items:center}.admin-top a{color:white}.admin-brand{font-weight:bold}.admin-wrap{width:min(1120px,92%);margin:35px auto 60px}.admin-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.admin-heading h1{margin:4px 0;color:#071b91;font-size:32px}.admin-heading p{margin:0;color:#666;font-size:14px}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin-bottom:25px}.stat-card,.admin-panel{background:white;border:1px solid #eaecf2;border-radius:12px;padding:20px;box-shadow:0 4px 15px #14234d08}.stat-card span{display:block;font-size:12px;color:#777}.stat-card strong{display:block;font-size:30px;color:#e87516;margin-top:7px}.admin-panel{margin-bottom:25px}.admin-panel h2{font-size:20px;color:#071b91;margin:0 0 8px}.admin-panel>p{font-size:13px;color:#666}.admin-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:20px}.admin-action{padding:18px;border:1px solid #eee;border-radius:9px;display:flex;flex-direction:column;gap:15px}.admin-action span{font-weight:bold}.admin-action strong{font-size:12px;color:#e87516}.admin-action:hover{border-color:#e87516;background:#fffaf5}.admin-note{font-size:13px;color:#777}.category-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.category-tabs a{padding:9px 15px;background:white;border:1px solid #e1e4ed;border-radius:25px;font-size:13px}.category-tabs a.selected{background:#e87516;border-color:#e87516;color:white}.content-form{max-width:850px}.content-form textarea{resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-buttons{display:flex;gap:10px;margin-top:20px}.current-image{font-size:12px;color:#666}.current-image img{width:130px;height:90px;object-fit:cover;border-radius:6px;margin-top:8px}.alert{padding:12px 15px;border-radius:7px;margin:15px 0;font-size:13px}.alert.error{background:#fff0f0;color:#a22222}.alert.success{background:#eaf8ef;color:#176b38}.table-scroll{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;margin-top:15px;font-size:13px}.admin-table th,.admin-table td{text-align:left;padding:12px;border-bottom:1px solid #eee;vertical-align:middle}.admin-table th{color:#666;background:#fafafa}.status{font-size:11px;border-radius:20px;padding:5px 9px}.status.published{background:#e5f7eb;color:#19733a}.status.draft{background:#fff0df;color:#a9540d}.actions{white-space:nowrap}.actions>a{color:#1746a2;font-weight:bold;margin-right:10px}.actions form{display:inline}.delete-link{border:0;background:transparent;color:#c32e2e;cursor:pointer;font:inherit}
@media(max-width:900px){.nav-links{gap:12px}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.topbar-inner{justify-content:center;text-align:center}.topbar-inner>div:last-child{display:none}.nav{min-height:65px;flex-wrap:wrap}.brand{font-size:12px}.brand img{width:34px;height:34px}.menu-toggle{display:block}.nav-links{display:none;order:3;width:100%;flex-direction:column;align-items:stretch;gap:0;padding:8px 15px;background:#071b91;border-radius:8px}.nav-links.active{display:flex}.nav-links a{display:block;padding:10px 0;border-bottom:1px solid #ffffff25}.hero-center{padding-top:25px}.hero-logo{width:110px;height:110px}.quick-cards{grid-template-columns:1fr;gap:9px}.quick-card{min-height:75px;padding:13px}.quick-icon{font-size:29px}.welcome{grid-template-columns:1fr;gap:25px;padding:40px 0}.welcome-photo img{height:230px}.content-section{padding:22px 0 30px}.content-grid{grid-template-columns:1fr;gap:16px}.card-image{height:210px}.footer-grid{grid-template-columns:1fr;gap:25px;padding-top:32px}.contact-float{right:10px;bottom:10px}.admin-wrap{margin-top:25px}.admin-heading{align-items:flex-start;flex-direction:column}.admin-heading h1{font-size:27px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:15px}.stat-card strong{font-size:25px}.admin-actions{grid-template-columns:1fr 1fr}.form-row{grid-template-columns:1fr;gap:0}.admin-top{padding:14px 4%;font-size:12px}.admin-panel{padding:15px}.login-card{padding:24px}}


/* Header dan menu tetap terlihat saat halaman di-scroll */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1001;
}

.hero {
    position: relative;
}

/* Menu navigasi tetap menempel di atas */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
}



/* Dropdown Profil */
.nav-links li.dropdown {
  position: relative;
}

.nav-links .dropdown-toggle {
  display: block;
  padding: 12px 14px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav-links .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 5px 0;
  list-style: none;
  background: #ffffff;
  box-shadow: 0 5px 15px rgba(0,0,0,.18);
  z-index: 99999;
}

.nav-links .dropdown-menu li a {
  display: block;
  padding: 12px 16px;
  color: #17316b;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links .dropdown-menu li a:hover {
  background: #fff3c4;
}

/* Dropdown terbuka */
.nav-links .dropdown.is-open > .dropdown-menu {
  display: block !important;
}


/* Tampilan HP */
@media (max-width: 768px) {
  .nav-links .dropdown-menu {
    position: static;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    background: #fff3c4;
  }

  .nav-links .dropdown-menu li a {
    white-space: normal;
    padding-left: 30px;
  }
}


/* ==================================
   NAVIGASI SMADA BERAKSI - ELEGAN
   ================================== */

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: 'Poppins', Arial, sans-serif;
}

/* Logo dan nama sekolah */
.nav .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav .brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

/* Menu utama */
.nav .nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav .nav-links > li {
  position: relative;
  margin: 0;
  padding: 0;
}

/* Semua tautan dan tombol dropdown seragam */
.nav .nav-links > li > a,
.nav .nav-links > li > .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 42px;
  padding: 10px 13px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.25px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

/* Efek hover yang halus */
.nav .nav-links > li > a:hover,
.nav .nav-links > li > .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffdc65;
}

/* Panah dropdown */
.nav .dropdown-toggle .arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.nav .dropdown.is-open > .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

/* Submenu */
.nav .dropdown-menu {
  top: calc(100% + 8px);
  min-width: 230px;
  padding: 7px;
  border: 1px solid rgba(20, 35, 70, 0.08);
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.nav .dropdown-menu li a {
  padding: 11px 13px;
  border-radius: 5px;
  color: #17316b;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  transition: background-color 0.2s ease;
}

.nav .dropdown-menu li a:hover {
  background: #fff3c4;
  color: #b85d0a;
}

/* Tablet dan laptop berukuran sedang */
@media (min-width: 651px) and (max-width: 1000px) {
  .nav {
    gap: 10px;
  }

  .nav .brand {
    gap: 8px;
    font-size: 14px;
  }

  .nav .brand img {
    width: 36px;
    height: 36px;
  }

  .nav .nav-links {
    gap: 2px;
  }

  .nav .nav-links > li > a,
  .nav .nav-links > li > .dropdown-toggle {
    padding: 9px 8px;
    font-size: 10px;
  }
}

/* Tampilan HP: pertahankan menu hamburger */
@media (max-width: 650px) {
  .nav {
    min-height: 65px;
    gap: 10px;
  }

  .nav .brand {
    font-size: 13px;
  }

  .nav .nav-links {
    gap: 0;
  }

  .nav .nav-links > li > a,
  .nav .nav-links > li > .dropdown-toggle {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    padding: 11px 12px;
    font-size: 12px;
  }

  .nav .dropdown-menu {
    top: auto;
    padding: 5px;
    border-radius: 6px;
    box-shadow: none;
  }

  .nav .dropdown-menu li a {
    padding: 10px 14px;
    font-size: 12px;
  }
}




/* =========================================
   HALAMAN SAMBUTAN KEPALA SEKOLAH
   ========================================= */

.sambutan-page {
  font-family: 'Poppins', Arial, sans-serif;
  color: #303747;
  background: #fffdf9;
}

.sambutan-page .topbar {
  position: relative;
  border-bottom: 3px solid #ffd15b;
}

.sambutan-page .sambutan-nav {
  position: relative;
  z-index: 1000;
  background: #27364a;
  color: #fff;
}

.sambutan-page .nav {
  min-height: 76px;
}

.sambutan-page .nav .brand {
  font-size: 16px;
  font-weight: 700;
}

.sambutan-page .nav .nav-links > li > a,
.sambutan-page .nav .nav-links > li > .dropdown-toggle {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.sambutan-page .nav .dropdown-menu {
  display: none !important;
}

.sambutan-page .nav .dropdown.is-open > .dropdown-menu {
  display: block !important;
}

/* Banner */
.sambutan-banner {
  position: relative;
  overflow: hidden;
  padding: 58px 0 48px;
  background: linear-gradient(115deg, #9c430b, #e87516 60%, #ffbd43);
  color: #fff;
}

.sambutan-banner::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -100px;
  border: 35px solid rgba(255,255,255,.09);
  border-radius: 50%;
}

.sambutan-banner .wrap {
  position: relative;
  z-index: 1;
}

.sambutan-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
}

.sambutan-banner h1 {
  margin: 0;
  max-width: 800px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.8px;
}

.sambutan-banner p {
  margin: 13px 0 18px;
  max-width: 680px;
  color: #fff8e9;
  font-size: 14px;
  line-height: 1.8;
}

.sambutan-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #fff2d4;
}

.sambutan-breadcrumb a {
  color: #fff;
  font-weight: 600;
}

/* Area isi */
.sambutan-main {
  padding-top: 45px;
  padding-bottom: 65px;
}

.sambutan-card {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 42px;
  padding: 36px;
  background: #fff;
  border: 1px solid #f1e7da;
  border-radius: 16px;
  box-shadow: 0 12px 38px rgba(87, 54, 24, .07);
}

/* Foto kepala sekolah */
.sambutan-photo {
  position: sticky;
  top: 25px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff0dc, #f5d1a6);
  border: 1px solid #f1dfc9;
}

.sambutan-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.sambutan-photo-caption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 17px;
  background: #fff8ee;
  border-top: 3px solid #e87516;
}

.sambutan-photo-caption span {
  color: #a35a24;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sambutan-photo-caption strong {
  color: #303747;
  font-size: 14px;
  line-height: 1.6;
}

/* Teks sambutan */
.sambutan-content {
  min-width: 0;
}

.sambutan-eyebrow {
  color: #d66b18;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.sambutan-content h2 {
  margin: 10px 0 23px;
  color: #263852;
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.5px;
}

.sambutan-content p {
  margin: 0 0 18px;
  color: #515b6b;
  font-size: 14px;
  font-weight: 400;
  line-height: 2;
  text-align: justify;
}

.sambutan-content .sambutan-pembuka {
  color: #35465d;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
  padding-left: 17px;
  border-left: 3px solid #f0a13d;
}

.sambutan-content p strong {
  color: #c45b0d;
  font-weight: 700;
}

.sambutan-content h3 {
  margin: 24px 0;
  color: #263852;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

/* Penutup */
.sambutan-signature {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 25px;
  padding: 20px;
  background: #fff8ee;
  border-radius: 8px;
  border-left: 4px solid #e87516;
}

.sambutan-signature span {
  color: #626b78;
  font-size: 12px;
}

.sambutan-signature strong {
  color: #263852;
  font-size: 14px;
  font-weight: 700;
}

.sambutan-signature small {
  color: #8b8f97;
  font-size: 11px;
  font-style: italic;
}

.sambutan-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 25px;
  padding: 11px 18px;
  border-radius: 7px;
  background: #e87516;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}

.sambutan-back:hover {
  background: #bd570c;
  transform: translateY(-2px);
}

/* Footer */
.sambutan-footer {
  background: #27364a;
  color: #fff;
}

.sambutan-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.sambutan-footer-inner strong {
  font-size: 14px;
  font-weight: 700;
}

.sambutan-footer-inner p {
  margin: 5px 0 0;
  color: #dce2ec;
  font-size: 12px;
}

.sambutan-footer-inner > a {
  color: #ffd16b;
  font-size: 12px;
  font-weight: 600;
}

.sambutan-copyright {
  padding: 13px 4%;
  background: #1d293a;
  color: #c8d0dc;
  text-align: center;
  font-size: 11px;
}

/* Tablet */
@media (max-width: 850px) {
  .sambutan-card {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 25px;
    padding: 25px;
  }
}

/* HP */
@media (max-width: 650px) {
  .sambutan-banner {
    padding: 38px 0 32px;
  }

  .sambutan-banner p {
    font-size: 12px;
  }

  .sambutan-main {
    padding-top: 24px;
    padding-bottom: 35px;
  }

  .sambutan-card {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 17px;
    border-radius: 11px;
  }

  .sambutan-photo {
    position: static;
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .sambutan-photo img {
    aspect-ratio: 4 / 4.5;
  }

  .sambutan-content h2 {
    font-size: 22px;
  }

  .sambutan-content p,
  .sambutan-content .sambutan-pembuka {
    font-size: 13px;
    line-height: 1.9;
    text-align: left;
  }

  .sambutan-footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}


/* =========================================
   SMADA BERAKSI - MODERN SCHOOL WEBSITE
   ========================================= */

:root {
  --smada-orange: #ed790d;
  --smada-orange-dark: #bd5708;
  --smada-yellow: #ffcb3d;
  --smada-navy: #23344d;
  --smada-text: #303b4d;
  --smada-muted: #6b7280;
  --smada-bg: #fffaf4;
  --smada-white: #ffffff;
  --smada-border: #f0e5d8;
  --smada-shadow: 0 12px 32px rgba(44, 47, 56, .08);
}

/* Fondasi */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--smada-bg);
  color: var(--smada-text);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

body,
button,
input,
textarea,
select {
  font-family: 'Poppins', Arial, sans-serif;
}

a {
  transition: color .2s ease, background-color .2s ease,
              transform .2s ease, box-shadow .2s ease;
}

/* Header informasi */
.topbar {
  position: relative;
  z-index: 1002;
  color: #fff;
  background: linear-gradient(100deg, #bd5708, #ed790d 60%, #f5a623);
  border-bottom: 3px solid var(--smada-yellow);
  font-size: 11px;
  font-weight: 500;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.header-motto {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25px;
}

.header-motto i {
  margin-left: 5px;
  color: #fff3c8;
  font-style: normal;
  font-weight: 500;
}

/* Banner dan navigasi */
.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background:
    linear-gradient(120deg, rgba(25, 39, 61, .94), rgba(44, 55, 74, .80)),
    url('../images/slide1.jpg') center 42% / cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 201, 40, .20), transparent 32%),
    linear-gradient(180deg, transparent 55%, rgba(15, 25, 41, .28));
  pointer-events: none;
}

.hero .nav {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  padding-left: max(24px, calc((100% - 1200px) / 2));
  padding-right: max(24px, calc((100% - 1200px) / 2));
  min-height: 76px;
  background: rgba(35, 52, 77, .97);
  border-bottom: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 18px rgba(0,0,0,.10);
  backdrop-filter: blur(12px);
}

.nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.3px;
  white-space: nowrap;
}

.nav .brand img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav .nav-links > li {
  position: relative;
  margin: 0;
}

.nav .nav-links > li > a,
.nav .nav-links > li > .dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .35px;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav .nav-links > li > a:hover,
.nav .nav-links > li > .dropdown-toggle:hover {
  background: rgba(255,255,255,.12);
  color: var(--smada-yellow);
}

.nav .nav-links .dropdown-menu {
  display: none !important;
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 235px;
  margin: 0;
  padding: 7px;
  list-style: none;
  border: 1px solid var(--smada-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(15,25,41,.18);
  z-index: 2000;
}

.nav .nav-links .dropdown.is-open > .dropdown-menu {
  display: block !important;
}

.nav .dropdown-menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--smada-navy);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  white-space: normal;
}

.nav .dropdown-menu li a:hover {
  background: #fff3df;
  color: var(--smada-orange-dark);
}

.menu-toggle {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* Area utama banner */
.hero-center {
  padding-top: 65px;
  padding-bottom: 110px;
  text-align: center;
}

.hero-center .hero-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,.20));
}

.hero-center h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(29px, 4vw, 49px);
  font-weight: 800;
  letter-spacing: .4px;
  line-height: 1.25;
  text-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.hero-center p {
  margin: 0;
  color: #ffe09a;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 600;
  letter-spacing: .8px;
}

/* Kartu informasi */
.quick-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -65px;
  margin-bottom: 45px;
}

.quick-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  min-width: 0;
  padding: 23px;
  border: 1px solid rgba(240,229,216,.9);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--smada-shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(44,47,56,.12);
}

.quick-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff0dc;
  color: var(--smada-orange-dark);
  font-size: 23px;
}

.quick-card h3 {
  margin: 0 0 8px;
  color: var(--smada-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.quick-card p {
  margin: 4px 0;
  color: var(--smada-muted);
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.quick-card p strong,
.quick-card p b {
  color: var(--smada-orange-dark);
}

.quick-card .detail {
  display: inline-block;
  margin-top: 4px;
  color: var(--smada-orange-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Sambutan kepala sekolah */
.welcome {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 42px;
  margin: 25px 0 65px;
  padding: 30px;
  border: 1px solid var(--smada-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--smada-shadow);
}

.welcome-photo {
  overflow: hidden;
  border-radius: 12px;
  background: #f5e8d8;
}

.welcome-photo img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--smada-orange-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.welcome h2 {
  margin: 0 0 15px;
  color: var(--smada-navy);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  line-height: 1.4;
}

.welcome p {
  margin: 0 0 20px;
  color: var(--smada-muted);
  font-size: 13px;
  line-height: 1.95;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 19px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(100deg, var(--smada-orange), #f49b24);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(237,121,13,.20);
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--smada-orange-dark);
  color: #fff;
}

/* Bagian berita, prestasi, kegiatan, galeri */
.content-section {
  margin: 0 0 65px;
  scroll-margin-top: 95px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--smada-navy);
  font-size: clamp(22px, 2.5vw, 29px);
  font-weight: 800;
  line-height: 1.4;
}

.section-mark {
  display: block;
  width: 52px;
  height: 5px;
  flex: 0 0 52px;
  margin-bottom: 6px;
  border-radius: 20px;
  background: linear-gradient(90deg, var(--smada-orange), var(--smada-yellow));
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.content-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--smada-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(44,47,56,.045);
  transition: transform .25s ease, box-shadow .25s ease;
}

.content-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 32px rgba(44,47,56,.11);
}

.card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #f4e9db;
}

.card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.content-card:hover .card-image img {
  transform: scale(1.04);
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #bd6b21;
  background: linear-gradient(135deg, #fff0d9, #f7d8a8);
  font-size: 36px;
  font-weight: 800;
}

.card-body {
  padding: 19px;
}

.category-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 20px;
  background: #fff0dc;
  color: #a94c06;
  font-size: 10px;
  font-weight: 700;
}

.card-body h3 {
  margin: 12px 0 9px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.card-body h3 a {
  color: var(--smada-navy);
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--smada-orange-dark);
}

.card-body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  color: var(--smada-muted);
  font-size: 12px;
  line-height: 1.9;
}

.card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid #f1e9df;
  font-size: 10px;
}

.card-footer span {
  color: #8a909b;
}

.card-footer a {
  color: var(--smada-orange-dark);
  font-weight: 700;
  text-decoration: none;
}

.empty-state {
  padding: 28px;
  border: 1px dashed #e8d7c4;
  border-radius: 12px;
  background: #fff;
  color: var(--smada-muted);
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--smada-navy);
  color: #fff;
}

.footer-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--smada-orange), var(--smada-yellow), #f49b24);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr 1fr;
  gap: 40px;
  padding-top: 42px;
  padding-bottom: 36px;
}

.footer-grid h3,
.footer-grid h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-grid p,
.footer-grid a {
  color: #d3dbe7;
  font-size: 12px;
  line-height: 1.9;
}

.footer-grid > div > a {
  display: block;
  margin-bottom: 5px;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--smada-yellow);
}

.footer-description {
  max-width: 360px;
}

.footer-social {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--smada-orange);
}

.footer-bottom {
  padding: 14px 0;
  background: #1b293d;
  color: #cbd4e1;
  font-size: 10px;
}

.contact-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  padding: 12px 17px;
  border-radius: 30px;
  background: var(--smada-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 7px 22px rgba(0,0,0,.18);
}

.contact-float:hover {
  transform: translateY(-3px);
  background: var(--smada-orange-dark);
}

/* Tablet */
@media (max-width: 1000px) {
  .nav .brand {
    font-size: 14px;
  }

  .nav .brand img {
    width: 37px;
    height: 37px;
  }

  .nav .nav-links > li > a,
  .nav .nav-links > li > .dropdown-toggle {
    padding: 8px;
    font-size: 10px;
  }

  .quick-card {
    padding: 17px;
    gap: 10px;
  }

  .content-grid {
    gap: 15px;
  }
}

/* HP */
@media (max-width: 768px) {
  .topbar-inner {
    justify-content: center;
    text-align: center;
  }

  .header-motto {
    display: none;
  }

  .hero .nav {
    min-height: 66px;
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-center {
    padding-top: 45px;
    padding-bottom: 90px;
  }

  .hero-center .hero-logo {
    width: 86px;
    height: 86px;
  }

  .quick-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: -48px;
    margin-bottom: 35px;
  }

  .quick-card {
    padding: 17px;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 45px;
    padding: 18px;
  }

  .welcome-photo img {
    max-height: 300px;
  }

  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .card-body h3 {
    font-size: 13px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .hero .nav {
    flex-wrap: wrap;
  }

  .nav .brand {
    font-size: 14px;
  }

  .nav .menu-toggle {
    display: block;
    margin-left: auto;
    padding: 5px 11px;
  }

  .nav .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 10px 0 14px;
    border-top: 1px solid rgba(255,255,255,.13);
  }

  .nav .nav-links.active {
    display: flex;
  }

  .nav .nav-links > li > a,
  .nav .nav-links > li > .dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    font-size: 11px;
  }

  .nav .nav-links .dropdown-menu {
    position: static;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #fff4e4;
    box-shadow: none;
  }

  .nav .dropdown-menu li a {
    font-size: 11px;
  }

  .hero-center h1 {
    font-size: 28px;
  }

  .hero-center p {
    font-size: 12px;
    letter-spacing: .3px;
  }

  .content-section {
    margin-bottom: 45px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .card-image {
    aspect-ratio: 16 / 9;
  }

  .section-heading h2 {
    font-size: 22px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .contact-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 11px;
  }
}

/* Kurangi animasi bagi pengguna yang memilih reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* Banner SMADA: gambar lebih cerah */
.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background:
    linear-gradient(
      120deg,
      rgba(25, 39, 61, 0.38),
      rgba(44, 55, 74, 0.18)
    ),
    url('../images/slide1.jpg')
    center 42% / cover no-repeat;
  color: #fff;
}

/* Kurangi lapisan gelap di atas foto */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(255, 201, 40, 0.12),
      transparent 40%
    );
  pointer-events: none;
}


/* ======================================
   LOGO DAN JUDUL UTAMA SMADA
   ====================================== */

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 55px;
  padding-bottom: 100px;
}

/* Ukuran logo disesuaikan dengan judul */
.hero-center .hero-logo {
  display: block;
  width: clamp(550px, 10vw, 125px);
  height: clamp(90px, 10vw, 125px);
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.28));
}

/* Judul sekolah lebih tebal dan menonjol */
.hero-center h1 {
  margin: 0 0 12px;
  color: #FF8C00;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.8px;
  text-align: center;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.65),
    0 5px 16px rgba(0, 0, 0, 0.35);
}

/* Slogan tetap serasi dengan judul */
.hero-center p {
  margin: 0;
  color: #FF9933;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: clamp(12px, 1.5vw, 17px);
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Penyesuaian layar HP */
@media (max-width: 650px) {
  .hero-center {
    padding-top: 42px;
    padding-bottom: 85px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero-center .hero-logo {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }

  .hero-center h1 {
    font-size: clamp(23px, 6.2vw, 32px);
    font-weight: 800;
    letter-spacing: 0.2px;
    line-height: 1.35;
  }

  .hero-center p {
    font-size: 11px;
    letter-spacing: 0.2px;
  }
}

