/* style.css */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}

body{
  font-family:'Poppins', sans-serif;
  color:#333;
  background:#f5f7fb;
}

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* HEADER */

.header{
  position:fixed;
  width:100%;
  top:0;
  left:0;
  background:#ffffff;
  box-shadow:0 2px 10px rgba(0,0,0,0.08);
  z-index:999;
}

.nav-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
}

/* ==========================
   LOGO SEKOLAH
========================== */

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:45px;
    height:45px;
}

.logo h2{
  color:#0056b3;
  font-size:24px;
}

.nav-links{
  display:flex;
  gap:25px;
  list-style:none;
}

.nav-links a{
  text-decoration:none;
  color:#333;
  font-weight:500;
  transition:0.3s;
}

.nav-links a:hover{
  color:#0056b3;
}

.menu-toggle{
  display:none;
  font-size:28px;
  cursor:pointer;
}

/* DROPDOWN */

.nav-links li{

    position:relative;

}

.dropdown-menu{

    display:none;

    position:absolute;

    top:100%;

    left:0;

    background:#fff;

    min-width:220px;

    list-style:none;

    border-radius:8px;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    overflow:hidden;

    z-index:999;

}

.dropdown-menu li{

    width:100%;

}

.dropdown-menu li a{

    display:block;

    padding:12px 18px;

    color:#333;

    text-decoration:none;

    transition:.3s;

}

.dropdown-menu li a:hover{

    background:#0056b3;

    color:#fff;

}

.dropdown{
    position:relative;
}

.dropdown-menu{

    display:none;

    position:absolute;

    top:100%;

    left:0;

    min-width:220px;

    background:#fff;

    list-style:none;

    border-radius:8px;

    box-shadow:0 5px 15px rgba(0,0,0,.15);

    overflow:hidden;

    z-index:999;

}

.dropdown.active .dropdown-menu{

    display:block;

}

.dropdown-menu li a{

    display:block;

    padding:12px 18px;

    color:#333;

    text-decoration:none;

}

.dropdown-menu li a:hover{

    background:#0056b3;

    color:#fff;

}

}
@media(max-width:768px){

.dropdown-menu{

position:static;

display:none;

box-shadow:none;

border-radius:0;

background:#f5f5f5;

}

.dropdown:hover .dropdown-menu{

display:block;

}

}

/* HERO */

.hero{
  margin-top:80px;
  position:relative;
  height:100vh;
  overflow:hidden;
}

.slider{
  width:100%;
  height:100%;
  position:relative;
}

.slide{
  position:absolute;
  width:100%;
  height:100%;
  opacity:0;
  transition:1s ease;
}

.slide.active{
  opacity:1;
}

.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.overlay{
  position:absolute;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.5);
  top:0;
}

.slide-content{
  position:absolute;
  top:50%;
  left:10%;
  transform:translateY(-50%);
  color:white;
  max-width:600px;
}

.slide-content h1{
  font-size:52px;
  margin-bottom:20px;
}

.slide-content p{
  font-size:18px;
  margin-bottom:25px;
}

.btn{
  display:inline-block;
  background:#0056b3;
  color:white;
  padding:14px 28px;
  text-decoration:none;
  border-radius:8px;
  transition:0.3s;
}

.btn:hover{
  background:#003f82;
}

.btn-large{
  font-size:18px;
}

/* SECTION */

.section{
  padding:90px 0;
}

.section-title{
  text-align:center;
  margin-bottom:50px;
}

.section-title h2{
  font-size:38px;
  color:#0056b3;
  margin-bottom:10px;
}

/* PROFILE */

.profile-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(250px,1fr));
  gap:25px;
}

.profile-card{
  background:white;
  padding:30px;
  border-radius:16px;
  box-shadow:0 5px 15px rgba(0,0,0,0.08);
}

.profile-card h3{
  margin-bottom:15px;
  color:#0056b3;
}

/* BERITA */

.berita-section{
  background:#eef4ff;
}

.berita-wrapper{
  position:relative;
  display:flex;
  align-items:center;
}

.berita-carousel{
  display:flex;
  gap:20px;
  overflow:hidden;
  scroll-behavior:smooth;
}

.berita-card{
  min-width:320px;
  background:white;
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
}

.berita-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.berita-content{
  padding:20px;
}

.berita-content h3{
  margin-bottom:10px;
}

.carousel-btn{
  background:#0056b3;
  color:white;
  border:none;
  width:45px;
  height:45px;
  border-radius:50%;
  cursor:pointer;
  font-size:18px;
  margin:0 10px;
}

/* TENTANG */

.tentang-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.tentang img{
  width:100%;
  border-radius:20px;
}

.tentang-content h2{
  font-size:38px;
  color:#0056b3;
  margin-bottom:20px;
}

.tentang-content p{
  margin-bottom:15px;
  line-height:1.8;
}

/* SPMB */

.spmb{
  background:#0056b3;
  color:white;
  text-align:center;
}

.spmb-box h2{
  font-size:42px;
  margin-bottom:20px;
}

.spmb-box p{
  margin-bottom:30px;
  font-size:18px;
}

/* FOOTER */

.footer{
  background:#002855;
  color:white;
  text-align:center;
  padding:25px 0;
}

/* RESPONSIVE */

@media(max-width:992px){

  .slide-content h1{
    font-size:40px;
  }

  .tentang-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:768px){

  nav{
    position:absolute;
    top:80px;
    right:-100%;
    background:white;
    width:250px;
    height:100vh;
    transition:0.4s;
    box-shadow:-2px 0 10px rgba(0,0,0,0.1);
  }

  nav.active{
    right:0;
  }

  .nav-links{
    flex-direction:column;
    padding:40px 20px;
  }

  .menu-toggle{
    display:block;
  }

  .slide-content{
    left:5%;
    right:5%;
  }

  .slide-content h1{
    font-size:32px;
  }

  .slide-content p{
    font-size:16px;
  }

  .section-title h2{
    font-size:30px;
  }

  .spmb-box h2{
    font-size:30px;
  }


}