*{box-sizing:border-box}
html{
  scroll-behavior:smooth;
  height:100%;
  overflow-x:hidden;
  max-width:100%;
}
 
body{
  margin:0;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  font-family:'Poppins',Arial,Helvetica,sans-serif;
  font-size:18px;
  background:#f4f7fb;
  color:#1f2937;
  overflow-x:hidden;
  max-width:100%;
  width:100%;
}
 
main{
  flex:1;
}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:min(1180px,92%);margin:0 auto}
 
.topbar{
  position:sticky;
  top:0;
  z-index:100;
  background:linear-gradient(90deg,#7ec8e3,#a7d8f0,#e0f4ff);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(0,0,0,0.05);
  box-shadow:0 6px 20px rgba(0,0,0,0.1);
  width:100%;
  max-width:100%;
  overflow:visible;
}
 
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:14px 0;
  position:relative
}
 
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  font-size:18px;
  flex-shrink:0;
  
}
 
.brand span {
  font-size:17px;
  white-space:nowrap;
  color:#1e3a8a;
  font-weight:700;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:calc(100vw - 120px);
}
 
.logo{
  width:40px;
  height:40px;
  object-fit:contain;
  flex-shrink:0;
}
 
.menu{
  display:flex;
  flex-wrap:nowrap;
  gap:2px;
  align-items:center;
  
}
 
.menu a{
  padding:8px 10px;
  border-radius:999px;
  font-size:15px;
  color:#1e3a8a;
  font-weight:500;
  transition:all .3s ease;
  white-space:nowrap;
}
 
.menu a:hover{
  background:rgba(30,58,138,0.1);
  color:#1e3a8a;
  transform:translateY(-2px);
}
 
.menu a.active{
  background:#1e3a8a;
  color:#ffffff;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
 
.menu-toggle{
  display:none;
  width:46px;
  height:46px;
  border:none;
  border-radius:12px;
  background:#163b73;
  cursor:pointer;
  padding:10px;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px
}
 
.menu-toggle span{
  display:block;
  width:22px;
  height:2.5px;
  background:#fff;
  border-radius:10px;
  transition:.25s ease
}
 
.menu-toggle.active span:nth-child(1){
  transform:translateY(7px) rotate(45deg)
}
.menu-toggle.active span:nth-child(2){
  opacity:0
}
.menu-toggle.active span:nth-child(3){
  transform:translateY(-8px) rotate(-45deg)
}
 
.hero{padding:40px 0}
.hero-box{
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:28px;
  align-items:center;
  background:linear-gradient(135deg,#dbeafe,#f0fdf4);
  border-radius:28px;
  padding:28px;
  box-shadow:0 16px 40px rgba(15,23,42,.08)
}
 
.hero h1{
  font-size:48px;
  line-height:1.05;
  margin:0 0 14px;
  color:#163b73
}
 
.hero h1 span{color:#f59e0b}
 
.hero p{
  font-size:17px;
  line-height:1.7;
  color:#4b5563
}
 
.hero-card{
  overflow:hidden;
  border-radius:22px;
  min-height:360px;
  box-shadow:0 12px 28px rgba(0,0,0,.12)
}
 
.hero-card img{
  width:100%;
  height:100%;
  object-fit:cover
}
 
.btn{
  display:inline-block;
  padding:12px 18px;
  border-radius:12px;
  border:0;
  cursor:pointer;
  font-weight:700;
  transition:.25s ease
}
 
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:#2f6f1c;color:#fff}
.btn-secondary{background:#f59e0b;color:#fff}
.btn-outline{background:#fff;border:1px solid #d1d5db}
 
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px
}
 
.pillars{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-top:18px
}
 
.pillar{
  background:#fff;
  padding:18px;
  border-radius:18px;
  text-align:center;
  border:1px solid #e5e7eb
}
 
.section{padding:26px 0}
.section-title{
  font-size:34px;
  margin:0 0 8px;
  color:#163b73;
  line-height:1.2
}
 
.section-subtitle{
  margin:0 0 22px;
  color:#6b7280;
  line-height:1.7
}
 
.grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px
}
 
.grid-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px
}
 
.card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  padding:22px;
  box-shadow:0 8px 26px rgba(15,23,42,.05)
}
 
.item-card{
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  height:100%
}
 
.item-card img{
  width:100%;
  height:220px;
  object-fit:cover
}
 
.item-body{padding:16px}

.item-body h3{
  margin-top:0;
  margin-bottom:10px;
  line-height:1.4;
  font-size:20px;
}

.item-body p{
  margin:0;
  line-height:1.7;
  color:#4b5563
}
 
.badge{
  display:inline-block;
  background:#ecfdf5;
  color:#2f6f1c;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700
}
 
.announce{
  display:grid;
  gap:18px
}
 
.announce-item{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:16px;
  background:#fff;
  border-radius:22px;
  padding:16px;
  border:1px solid #e5e7eb
}
 
.announce-thumb{
  width:120px;
  height:90px;
  border-radius:14px;
  object-fit:cover
}
 
.teacher-card{text-align:center}
.teacher-card img{
  height:260px;
  object-fit:cover;
  object-position:top center;
}
 
.footer{
  margin-top:auto;
  background:linear-gradient(135deg,#0f2f63,#163b73,#1e4b9b);
  color:#fff;
  padding:55px 0;
  position:relative;
  overflow:hidden;
}
 
.footer::before{
  content:"";
  position:absolute;
  top:-120px;
  right:-120px;
  width:320px;
  height:320px;
  border-radius:50%;
  background:rgba(255,255,255,.05);
}
 
.footer::after{
  content:"";
  position:absolute;
  bottom:-100px;
  left:-100px;
  width:260px;
  height:260px;
  border-radius:50%;
  background:rgba(255,255,255,.04);
}
 
.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:50px;
  position:relative;
  z-index:2;
}
 
.footer h3{
  margin-top:0;
  margin-bottom:15px;
  font-size:30px;
  font-weight:700;
}
 
.footer p{
  margin-bottom:10px;
  line-height:1.8;
  opacity:.95;
}
 
.footer strong{
  color:#fff;
}
 
.list{
  margin:0;
  padding-left:20px;
  line-height:1.8
}
 
.small{
  font-size:13px;
  color:#6b7280
}
 
.admin-layout{
  display:grid;
  grid-template-columns:270px 1fr;
  min-height:100vh
}
 
.sidebar{
  background:#163b73;
  color:#fff;
  padding:24px
}
 
.sidebar a{
  display:block;
  padding:12px 14px;
  border-radius:12px;
  margin-bottom:10px;
  background:rgba(255,255,255,.06)
}
 
.sidebar a.active,.sidebar a:hover{
  background:rgba(255,255,255,.15)
}
 
.main-admin{padding:26px}
 
.admin-card{
  background:#fff;
  padding:22px;
  border-radius:20px;
  border:1px solid #e5e7eb;
  box-shadow:0 8px 24px rgba(15,23,42,.05);
  margin-bottom:20px
}
 
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
 
.form-group{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-bottom:14px
}
 
.form-group.full{grid-column:1/-1}
 
input,textarea{
  width:100%;
  padding:12px 14px;
  border:1px solid #d1d5db;
  border-radius:12px;
  font:inherit
}
 
textarea{
  min-height:120px;
  resize:vertical
}
 
table{
  width:100%;
  border-collapse:collapse
}
 
th,td{
  padding:12px;
  border-bottom:1px solid #e5e7eb;
  text-align:left;
  vertical-align:top
}
 
.alert{
  background:#ecfdf5;
  border:1px solid #86efac;
  color:#166534;
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:20px
}
 
.danger{
  background:#fee2e2;
  border-color:#fca5a5;
  color:#991b1b
}
 
.login-wrap{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px
}
 
.login-card{
  width:min(450px,100%);
  background:#fff;
  padding:26px;
  border-radius:22px;
  box-shadow:0 18px 44px rgba(15,23,42,.08);
  border:1px solid #e5e7eb
}
 
/* =====================
   RESPONSIVE
===================== */
@media(max-width:980px){
  .hero-box,
  .grid-2,
  .footer-grid,
  .admin-layout,
  .form-grid{
    grid-template-columns:1fr
  }
 
  .grid-3,
  .pillars{
    grid-template-columns:repeat(2,1fr)
  }
 
  .announce-item{
    grid-template-columns:1fr
  }
 
  .announce-thumb{
    width:100%;
    height:220px
  }
 
  .hero h1{
    font-size:40px
  }
}
 
@media(max-width:768px){
  .nav{
    padding:12px 0
  }
 
  /* FIX: hapus max-width agar nama sekolah tidak terpotong */
  .brand{
    font-size:15px;
    flex-shrink:0;
  }

  .brand span{
    font-size:13px;
    white-space:nowrap;
  }
 
  .menu-toggle{
    display:flex
  }
 
  .menu{
    display:none;
    position:absolute;
    top:100%;
    left:0;
    right:0;
    width:100%;
    background:linear-gradient(180deg,#1e3a8a,#3b82f6);
    border:1px solid rgba(255,255,255,0.2);
    border-top:none;
    border-radius:0 0 18px 18px;
    padding:12px;
    box-shadow:0 16px 30px rgba(0,0,0,0.2);
    flex-direction:column;
    gap:8px;
  }
 
  .menu.show{
    display:flex
  }
 
  .menu a{
    color:#ffffff;
  }
 
  .menu a.active{
    background:#ffffff;
    color:#1e3a8a;
  }
 
  .hero{
    padding:24px 0
  }
 
  .hero-box{
    padding:18px;
    gap:18px;
    border-radius:20px
  }
 
  .hero h1{
    font-size:32px
  }
 
  .hero p{
    font-size:15px
  }
 
  .hero-card{
    min-height:240px
  }
 
  .section{
    padding:22px 0
  }
 
  .section-title{
    font-size:28px
  }
 
  .item-card img,
  .teacher-card img{
    height:260px;
    object-fit:cover;
    object-position:top center;
  }
 
  .card,
  .item-card,
  .announce-item{
    border-radius:18px
  }
 
  .footer{
    margin-top:28px
  }
}
 
@media(max-width:640px){
  .grid-3,
  .pillars{
    grid-template-columns:1fr
  }
 
  .container{
    width:min(94%,1180px)
  }
 
  .hero-actions{
    flex-direction:column
  }
 
  .hero-actions .btn{
    width:100%;
    text-align:center
  }
 
  .hero h1{
    font-size:28px
  }
 
  .section-title{
    font-size:24px
  }
 
  .announce-thumb{
    height:180px
  }
 
  .item-card img,
  .teacher-card img{
    height:260px;
    object-fit:cover;
    object-position:top center;
  }
 
  .item-body{
    padding:14px
  }
 
  .footer-grid{
    gap:10px
  }
 
  th,td{
    padding:10px 8px;
    font-size:14px
  }
}
 
/* =====================
   HERO PREMIUM
===================== */
.hero-premium{
  position:relative;
  min-height:680px;
  width:100%;
  max-width:100%;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  overflow:hidden;
  /* Animasi zoom diganti: gunakan scale pada pseudo-element agar tidak ada layout overflow */
}
 
.hero-premium::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    90deg,
    rgba(5,15,35,0.78) 0%,
    rgba(5,15,35,0.62) 42%,
    rgba(5,15,35,0.35) 100%
  );
  z-index:1;
}
 
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(30,64,175,0.18),
    rgba(0,0,0,0.28)
  );
  z-index:2;
}
 
.hero-premium-content{
  position:relative;
  z-index:3;
  color:#ffffff;
  max-width:900px;
  padding:120px 0;
}
 
.hero-welcome{
  margin:0 0 18px;
  font-size:42px;
  line-height:1.1;
  font-weight:400;
  letter-spacing:-1px;
  color:#ffffff;
}
 
.hero-premium h1{
  margin:0 0 18px;
  max-width:850px;
  font-size:64px;
  line-height:1.08;
  font-weight:800;
  letter-spacing:-2px;
  color:#ffffff;
}
 
.hero-premium h2{
  margin:0 0 34px;
  max-width:850px;
  font-size:42px;
  line-height:1.2;
  font-weight:400;
  color:#ffffff;
}
 
.btn-blue{
  background:#1473e6;
  color:#ffffff;
  padding:16px 28px;
  border-radius:4px;
  font-size:18px;
  font-weight:700;
  box-shadow:0 10px 25px rgba(20,115,230,0.35);
}
 
.btn-blue:hover{
  background:#0f5fc2;
  transform:translateY(-2px);
}
 
.btn-outline-light{
  background:rgba(255,255,255,0.12);
  color:#ffffff;
  padding:16px 28px;
  border-radius:4px;
  font-size:18px;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.45);
  backdrop-filter:blur(8px);
}
 
.btn-outline-light:hover{
  background:rgba(255,255,255,0.22);
  transform:translateY(-2px);
}
 
@media(max-width:980px){
  .hero-premium{
    min-height:600px;
  }
  .hero-premium-content{
    padding:90px 0;
  }
  .hero-welcome{
    font-size:34px;
  }
  .hero-premium h1{
    font-size:50px;
  }
  .hero-premium h2{
    font-size:32px;
  }
}
 
@media(max-width:640px){
  .hero-premium{
    min-height:560px;
    background-position:center;
  }
  .hero-premium::before{
    background:linear-gradient(
      90deg,
      rgba(5,15,35,0.82) 0%,
      rgba(5,15,35,0.65) 100%
    );
  }
  .hero-premium-content{
    padding:80px 0;
  }
  .hero-welcome{
    font-size:28px;
  }
  .hero-premium h1{
    font-size:38px;
    letter-spacing:-1px;
  }
  .hero-premium h2{
    font-size:24px;
  }
  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
  }
  .btn-blue,
  .btn-outline-light{
    width:100%;
    text-align:center;
    font-size:16px;
    padding:14px 20px;
  }
}
 
/* Zoom effect aman: menggunakan transform scale di dalam overflow:hidden
   TIDAK mengubah background-size sehingga tidak ada layout overflow */
@keyframes heroZoom{
  0%{
    transform:scale(1);
  }
  50%{
    transform:scale(1.08);
  }
  100%{
    transform:scale(1);
  }
}

/* Pseudo element yang di-zoom, bukan hero itu sendiri */
.hero-premium::after-zoom-bg{
  content:"";
  position:absolute;
  inset:0;
  background:inherit;
  animation:heroZoom 20s ease-in-out infinite;
  z-index:0;
}
 
.hero-premium{
  background-size:cover;
  background-position:center;
}
 
/* FOOTER RESPONSIVE */
@media(max-width:768px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
  .footer{
    text-align:center;
  }
}
 
.page-section{
  min-height:calc(100vh - 70px - 300px);
}
 
/* =====================
   GURU CARD - 9:16 PORTRAIT
===================== */
.guru-new-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
  margin-bottom:56px;
}
 
.guru-new-card{
  border-radius:16px;
  border:1px solid rgba(201,168,76,0.25);
  box-shadow:0 8px 32px rgba(10,30,66,0.12);
  background:#fff;
  overflow:hidden;
  text-align:center;
  transition:transform .2s,box-shadow .2s;
  display:flex;
  flex-direction:column;
}
 
.guru-new-card:hover{
  transform:translateY(-4px);
  box-shadow:0 16px 48px rgba(10,30,66,0.16);
}
 
.guru-img-wrap{
  width:100%;
  aspect-ratio:9/16;
  overflow:hidden;
}
 
.guru-img-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
}
 
.guru-new-body{
  padding:12px 16px 16px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
}
 
.guru-new-body h3{
  font-size:15px;
  font-weight:700;
  color:#0a1e42;
  margin-bottom:4px;
}
 
.guru-new-body p{
  font-size:13px;
  color:#6b7280;
  margin-bottom:12px;
}
 
.guru-home-photo-wrap{
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
}
.guru-home-photo-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
  transform:scale(1.1);
  transform-origin:top center;
}
 
@media(max-width:980px){
  .guru-new-grid{
    grid-template-columns:repeat(3,1fr);
  }
}
 
@media(max-width:480px){
  .guru-new-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
@media(max-width:768px){
  .hero-premium{
    min-height:60vh;
    width:100%;
    max-width:100%;
    background-attachment:scroll;
    background-size:cover !important;
    background-position:center center !important;
    animation:none !important;
    overflow:hidden !important;
    left:0 !important;
    right:0 !important;
    margin:0 !important;
  }

  .hero-premium-content{
    padding:40px 0;
  }

  /* Brand: teks boleh elipsis tapi tidak boleh overflow */
  .brand{
    min-width:0;
    flex:1;
    overflow:hidden;
  }
  .brand span{
    font-size:13px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:100%;
    display:block;
  }

  .nav{
    gap:8px;
  }
}
@media(max-width:768px){
  .ek-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .ek-card{
    border:none;
    border-radius:20px;
    box-shadow:
      0 0 0 1.5px rgba(201,168,76,0.5),
      0 8px 32px rgba(10,30,66,0.10);
    background:linear-gradient(#fff,#fff) padding-box,
               linear-gradient(135deg,#c9a84c,#f5e17a,#c9a84c) border-box;
    border:2px solid transparent;
  }

  .ek-card-img{
    border-radius:18px 18px 0 0;
  }
}
.gl-page {
  background: #f0f4f8 !important;
}
/* =====================
   GLOBAL OVERFLOW FIX - ROOT CAUSE PERMANENT
   Ini blok paling akhir, paling tinggi prioritasnya
===================== */

/* Kunci semua elemen agar tidak ada yang lebih lebar dari viewport */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden !important;
}

body {
  overflow-x: hidden !important;
  width: 100% !important;
}

/* Container tidak boleh overflow */
.container {
  max-width: 100%;
}

/* Topbar dan nav harus selalu muat di layar */
.topbar {
  max-width: 100% !important;
  overflow: visible !important;
}
.nav {
  max-width: 100% !important;
  overflow: visible !important;
}

/* Hero harus selalu full width tanpa horizontal scroll */
.hero-premium {
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Mobile: paksa semua section tidak overflow */
@media (max-width: 768px) {
  .container {
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100vw !important;
  }

  /* Semua section-level element */
  section,
  .section,
  .hero-premium,
  footer,
  .ft-root {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Topbar dipisah: overflow visible agar dropdown menu bisa muncul */
  .topbar {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: visible !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  /* Font hero lebih kecil di HP kecil */
  .hero-welcome {
    font-size: 20px !important;
  }
  .hero-premium h1 {
    font-size: 28px !important;
    letter-spacing: -0.5px !important;
  }
  .hero-premium h2 {
    font-size: 17px !important;
  }
}