*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI;
}

html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    scroll-behavior:smooth;
}

body{
    position: relative;
}

/* ============================= */
/* HERO SLIDER */
/* ============================= */
.hero{
height:100vh;
position:relative;
overflow:hidden;

display:flex;
justify-content:center;
align-items:center;
text-align:center;
color:white;
}

/* CONTAINER SLIDE */
.slides{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
}

/* TIAP SLIDE */
.slide{
position:absolute;
width:100%;
height:100%;

background-size:cover;
background-position:center;
background-repeat:no-repeat;

opacity:0;
transition:opacity 1s ease-in-out, transform 6s ease;

/* TAMBAHAN */
transform:scale(1);
}

/* AKTIF */
.slide.active{
opacity:1;
transform:scale(1);
}

/* OVERLAY */
.hero::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.45);
z-index:1;
}

/* ANIMASI TEXT */
.hero-text{
position:relative;
z-index:2;
text-align:center;
transition:all 0.6s ease;
opacity:1;
transform:translateY(0);
padding:0 20px;
}

/* saat discroll */
.hero-text.hide{
opacity:0;
transform:translateY(-50px);
}

.hero-text h1{
font-size:82px;
font-family:'Segoe UI', sans-serif;
font-weight:900;
text-transform:uppercase;
letter-spacing:1px;
color:white;
line-height:1.05;
margin-bottom:10px;
}

.hero-text p{
font-size:34px;
font-family:'Segoe UI', sans-serif;
font-weight:700;
text-transform:uppercase;
letter-spacing:1px;
color:#d4a017;
}

/* ============================= */
/* TABLET */
/* ============================= */
@media(max-width:992px){

.hero-text h1{
font-size:58px;
}

.hero-text p{
font-size:24px;
}
}

/* ============================= */
/* MOBILE */
/* ============================= */
@media(max-width:768px){

.hero{
height:100vh;
}

.slide{
background-size:cover;
background-position:center top;
background-repeat:no-repeat;
}

.hero-text h1{
font-size:34px;
line-height:1.2;
}

.hero-text p{
font-size:16px;
letter-spacing:1px;
}
}

/* ============================= */
/* MOBILE KECIL */
/* ============================= */
@media(max-width:480px){

.slide{
background-size:cover;
background-position:center top;
}

.hero-text h1{
font-size:28px;
}

.hero-text p{
font-size:14px;
}
}

/* HEADER */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* Animasi naik turun */
    transition: transform 0.4s ease;
}

header.hide{
    transform: translateY(-100%);
}

/* ============================= */
/* NAVBAR DESKTOP */
/* ============================= */
.navbar{
display:flex;
justify-content:space-between;
align-items:center;
padding-top:18px;
padding-bottom:18px;
padding-left:10px;
padding-right:40px;
background:transparent;
transition:
background 0.3s ease,
padding 0.3s ease,
box-shadow 0.3s ease;
border-bottom:1px solid white;
}

/* Navbar saat di-scroll (desktop) */
.navbar.scrolled{
background: radial-gradient(
circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%
) !important;
box-shadow:0 10px 30px rgba(0,0,0,0.12);
border-bottom:1px solid rgba(255,255,255,0.15);
}

@media screen and (max-width: 768px){
.navbar.scrolled{
background-color: #ffffff !important;
background-image: none !important;
border-bottom: 1px solid #e5e5e5 !important;
box-shadow: none !important;
}
}

/* ============================= */
/* LOGO */
/* ============================= */
.logo{
color: white;
font-size: 22px;
font-weight: bold;
}

.logo-area{
display: flex;
align-items: center;
gap: 10px;
margin-left: 0;
}

.logo-img{
width: 55px;
height: 55px;
}

.logo-text{
font-size: 20px;
font-weight: bold;
color: white; /* putih di desktop */
transition: 0.3s;
}

.logo-link{
display: flex;
align-items: center;
gap: 10px;
text-decoration: none;
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */
@media screen and (max-width: 768px){

.navbar{
position: relative;
justify-content: center;
padding: 14px 20px;
background: #ffffff !important;
border-bottom: 1px solid #e5e5e5;
min-height: 80px;
box-shadow: none !important;
}

/* Walaupun JS menambahkan .scrolled, tetap putih (HANYA UNTUK MOBILE) */
@media screen and (max-width: 768px){
.navbar.scrolled{
background: #ffffff !important;
border-bottom: 1px solid #e5e5e5 !important;
box-shadow: none !important;
}
}

/* Logo dan nama sekolah di mobile */
.logo-area{
margin: 0 auto;
justify-content: center;
}

.logo-link{
justify-content: center;
}

/* Warna nama sekolah di mobile */
.logo-text{
color: #063b2e !important;
font-size: 18px;
}

/* Ukuran logo di mobile */
.logo-img{
width: 42px;
height: 42px;
}
}

/* ============================= */
/* MOBILE KECIL */
/* ============================= */
@media screen and (max-width: 480px){
    
.logo-img{
width: 36px;
height: 36px;
}

.logo-text{
font-size: 15px;
}
}

/* ============================= */
/* MENU */
/* ============================= */
.menu{
list-style: none;
display: flex;
gap: 35px;
}

.menu li{
position: relative;
padding-bottom: 10px;
transition: 0.3s;
}

/* ========================================= */
/* MENU DESKTOP */
/* ========================================= */
.menu > li > a{
font-size: 14px;
font-weight: bold;
letter-spacing: 0.5px;
color: white;
text-decoration: none;
transition: color 0.3s ease;
position: relative;
}

.menu > li > a:hover{
color: #f4c542;
}

.menu li.active > a{
color: #f4c542;
}

/* Ubah warna menu menjadi gelap di mobile */
@media screen and (max-width: 768px){
.menu > li > a{
color: #222;
}
}

/* ============================= */
/* DROPDOWN */
/* ============================= */
.dropdown{
position: relative;
}

/* Menu dropdown desktop */
.dropdown-menu{
position: absolute;
top: 100%;
left: 0;
background: white;
list-style: none;
min-width: 240px;
border-radius: 6px;
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
opacity: 0;
visibility: hidden;
transform: translateY(10px);
transition: opacity 0.3s ease;
}

/* Tampil saat hover */
.dropdown:hover .dropdown-menu{
opacity: 1;
visibility: visible;
transform: translateY(0);
}

/* Item dropdown desktop */
.dropdown-menu li a{
display: block;
padding: 12px 16px;
color: black;
text-decoration: none;
font-size: 13px;
font-weight: 600;
transition: 0.25s;
}

/* Hover dropdown */
.dropdown-menu li a:hover{
color: #f4c542;
background: #f9f9f9;
}

/* ========================================= */
/* MENU MOBILE (HAMBURGER) */
/* ========================================= */
@media screen and (max-width: 768px){

/* Menu utama dalam sidebar */
.menu > li > a{
font-size: 12px !important;
font-weight: 700;
padding: 14px 25px;
letter-spacing: 0.2px;
color: #222;
}

/* Submenu dalam sidebar */
.dropdown-menu li a{
font-size: 11px !important;
font-weight: 600;
padding: 10px 40px;
color: #444;
}
}

/* ========================================= */
/* MOBILE KECIL */
/* ========================================= */
@media screen and (max-width: 480px){

.menu > li > a{
font-size: 11px !important;
padding: 12px 20px;
}

.dropdown-menu li a{
font-size: 10px !important;
padding: 9px 35px;
}
}

/* HERO TEXT */
.hero-text h1{
font-size:58px;
font-weight:800;
color:white;
line-height:1.2;
margin-bottom:15px;
text-shadow:0 5px 20px rgba(0,0,0,0.3);
}

.hero-text p{
font-size:34px;
color:#f4c542;
margin-bottom:15px;
letter-spacing:2px;
}

/* SAMBUTAN */
.sambutan{
padding:80px 20px;
text-align:center;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
}

#sambutan {
scroll-margin-top: 50px;
}

.sambutan h2{
font-size:26px;
margin-bottom:30px;
color:white;
}

.sambutan h2::after {
content:"";
width:70px;
height:3px;
background:white;
display:block;
margin:10px auto;
}

.foto-kepsek{
width:40%;
max-width:400px;
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.teks-sambutan{
max-width:1000px;
margin:30px auto;
margin-bottom: 10px;
font-size:16px;
font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height:1.8;
color:white;
}

/* ============================= */
/* VISI MISI */
/* ============================= */
.visi-misi{
padding:80px 40px;
background:white;
}

.judul-visi{
text-align:center;
font-size:26px;
color:#063b2e;
margin-bottom:60px;
position:relative;
}

.judul-visi::after{
content:"";
width:70px;
height:3px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
display:block;
margin:10px auto;
}

.visi-misi-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.visi-box,
.misi-box{
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
padding:50px;
border-radius:10px;
color:white;
}

.visi-box:hover,
.misi-box:hover{
box-shadow: 0 0 25px rgba(45,106,79,0.35);
}

.visi-icon{
font-size:35px;
margin-bottom:15px;
color:white;
}

.visi-box h3,
.misi-box h3{
font-size:24px;
margin-bottom:15px;
color: white;
}

.visi-box p{
line-height:1.8;
color: white;
font-size: 16px;
}

.misi-box ul{
padding-left:20px;
line-height:1.8;
color: white;
font-size: 16px;
}

#visi-misi {
  scroll-margin-top: 50px;
}

/* RESPONSIVE */
@media(max-width:900px){

.visi-misi-container{
grid-template-columns:1fr;
}
}

/* ============================= */
/* EKSTRAKURIKULER */
/* ============================= */
.ekskul{
padding:80px 40px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
}

#ekskul {
scroll-margin-top: 50px;
}

.judul-ekskul{
text-align:center;
font-size:26px;
color:white;
margin-bottom:60px;
position:relative;
}

.judul-ekskul::after{
content:"";
width:70px;
height:3px;
background:white;
display:block;
margin:10px auto;
}

.ekskul-container{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:30px;
}

.ekskul-card{
background:white;
padding:40px;
border-radius:10px;
text-align:center;
}

.ekskul-card:hover{
box-shadow: 0 0 30px rgba(45,106,79,0.45);
transition: 0.3s;
}

/* icon */
.ekskul-card i{
font-size:40px;
color:#063b2e;
margin-bottom:15px;
transition:0.3s;
}

.ekskul-card h3{
font-size:20px;
color:#063b2e;
margin-bottom:10px;
}

.ekskul-card p{
font-size:14px;
color:#063b2e;
line-height:1.6;
}

.ekskul-card:hover i{
transform: scale(1.1);
}

/* RESPONSIVE */
@media(max-width:900px){
.ekskul-container{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.ekskul-container{
grid-template-columns:1fr;
}
}

/* ============================= */
/* HUBUNGI KAMI */
/* ============================= */
.hubungi{
padding:80px 40px;
background:white;
}

#hubungi {
  scroll-margin-top: 50px;
}

.judul-hubungi{
text-align:center;
font-size:26px;
color:#063b2e;
margin-bottom:50px;
position:relative;
}

.judul-hubungi::after{
content:"";
width:70px;
height:3px;
background:#063b2e;
display:block;
margin:10px auto;
}

/* GRID UTAMA */
.hubungi-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:50px;
align-items:start;
}

.hubungi-kiri h3 {
color:#063b2e;
}

/* DENAH LOKASI */
.maps{
border-radius:8px;
overflow:hidden;
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
margin-bottom:10px;
}

.maps iframe{
width:100%;
height:400px;
border:0;
}

/* KOTAK SARAN */
.kotak-saran h3{
margin-bottom:5px;
color:#063b2e;
}

.kotak-saran form{
display:flex;
flex-direction:column;
gap:15px;
width:100%;
}

.kotak-saran input,
.kotak-saran textarea{
padding:12px;
border:1px solid #063b2e;
font-size:14px;
width:100%;
box-sizing:border-box;
}

/* tombol kirim */
.kotak-saran button{
padding:12px 22px;
background: transparent;
border:1px solid #0a2d23;
color:#0a2d23;
font-size:15px;
font-weight:600;
cursor:pointer;
width:170px;
transition:
all 0.3s ease,
transform 0.25s ease,
box-shadow 0.3s ease;
}

.kotak-saran button:hover{
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
color:white;
border-color:transparent;
box-shadow:0 0 20px rgba(45,106,79,0.35);
}

/* KONTAK */
.hubungi-kanan{
gap:50px;
}

.hubungi-kanan h3{
margin-bottom:25px;
color:#063b2e;
}

.kontak-item{
display:flex;
gap:15px;
margin-bottom:25px;
align-items:flex-start;
}

.kontak-item i{
font-size:20px;
color:#063b2e;
width:30px;
}

.kontak-item p{
color: #063b2e;
font-weight:bold;
margin-bottom:3px;
}

.kontak-item a{
color:#063b2e;
text-decoration:none;
}

.kontak-item a:hover{
color:#f4c542;
transition:
color 0.3s ease,
letter-spacing 0.3s ease;
}

.kontak-item span{
color:#063b2e;
}

/* RESPONSIVE */
@media(max-width:900px){

.hubungi-container{
grid-template-columns:1fr;
}

.kotak-saran form{
max-width:100%;
}
}

/* ============================= */
/* FOOTER */
/* ============================= */
.footer{
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
color:white;
padding-top:70px;
}

/* CONTAINER */
.footer-container{
width:100%;
padding:0 40px 50px;
}

/* LOGO */
.footer-logo{
display:flex;
align-items:center;
gap:12px;
margin-bottom:20px;
}

.footer-logo img{
width:50px;
height:50px;
}

.footer-logo h3{
font-size:24px;
font-weight:bold;
}

/* TEXT */
.footer-about p{
line-height:1.8;
color:white;
margin-bottom:25px;
max-width:500px;
}

/* SOSMED BULAT */
.footer-sosmed{
display:flex;
gap:15px;
padding-top:20px;
margin-top:20px;
border-top:1px dashed white;
width:100%;
max-width:450px;
}

.footer-sosmed a{
width:45px;
height:45px;
display:flex;
align-items:center;
justify-content:center;
border:1px solid white;
border-radius:50%;
color:white;
font-size:18px;
transition:0.3s;
}

/* FACEBOOK */
.footer-sosmed a:nth-child(1):hover{
color:#1877F2;
border-color:#1877F2;
}

/* INSTAGRAM */
.footer-sosmed a:nth-child(2):hover{
color:#E4405F;
border-color:#E4405F;
}

/* YOUTUBE */
.footer-sosmed a:nth-child(3):hover{
color:#FF0000;
border-color:#FF0000;
}

/* COPYRIGHT */
.footer-bottom{
text-align:center;
padding:18px;
border-top:1px solid white;
font-size:14px;
color:white;
}

/* RESPONSIVE */
@media(max-width:900px){
.footer-container{
text-align:center;
}

.footer-logo{
justify-content:center;
}

.footer-sosmed{
justify-content:center;
}

.footer-about p{
margin:auto;
}
}

/* ========================================= */
/* HAMBURGER MENU */
/* ========================================= */
.hamburger{
display: none;
background: none;
border: none;
color: black;
font-size: 18px;
font-weight: bold;
cursor: pointer;
z-index: 3001;
transition: 0.3s;
padding: 0;
line-height: 1;
font-family: Arial, sans-serif;
}

.hamburger:hover{
transform: scale(1.1);
}

/* ========================================= */
/* RESPONSIVE MOBILE */
/* ========================================= */
@media screen and (max-width: 768px){
/* NAVBAR */
.navbar{
position:relative;
display:flex;
justify-content:center;
align-items:center;
padding:14px 20px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
border-bottom:1px solid black;
min-height:80px;
}

/* HAMBURGER */
.hamburger{
display:block;
position:absolute;
left:20px;
top:50%;
transform:translateY(-50%);
font-size: 18px;
z-index:3001;
color:black;
background:none;
border:none;
}

.hamburger:hover{
transform:translateY(-50%) scale(1.05);
}

/* SAAT ACTIVE */
.hamburger.active{
color:black;
}

/* ========================================= */
/* MENU CANVAS */
/* ========================================= */
.menu{
display:flex !important;
flex-direction:column;
position:fixed;
top:80px;
left:0;
width:100%;
transform:translateY(-100%);
opacity:0;
visibility:hidden;
height:auto;
max-height:calc(100vh - 80px);
background:#ffffff;
padding:0;
margin:0;
gap:0;
list-style:none;
overflow-y:auto;
box-shadow:0 6px 20px rgba(0,0,0,0.15);
transition:
transform 0.35s ease,
opacity 0.35s ease;
z-index:2999;
}

/* ACTIVE */
.menu.active{
transform:translateY(0);
opacity:1;
visibility:visible;
}

/* ITEM MENU */
.menu li{
width:100%;
padding:0;
border-bottom:1px solid #e5e5e5;
}

.menu li:last-child{
border-bottom:none;
}

/* LINK MENU */
.menu > li > a{
display:block;
color:#222;
font-size:12px !important;
font-weight:700;
padding:16px 20px;
letter-spacing:0.2px;
text-decoration:none;
}

.menu > li > a:hover{
background:#f7f7f7;
color:#f4c542;
}

/* ========================================= */
/* DROPDOWN MOBILE */
/* ========================================= */
.dropdown-menu{
position:static;
opacity:1;
visibility:visible;
transform:none;
display:none;
background:#f9f9f9;
box-shadow:none;
border-radius:0;
min-width:100%;
}

.dropdown.active .dropdown-menu{
display:block;
}

.dropdown-menu li a{
padding:10px 40px;
font-size:11px !important;
font-weight:600;
color:#444;
}

.dropdown-menu li a:hover{
color:#f4c542;
background:#f7f7f7;
}

/* HERO */
.hero-text h1{
font-size:34px;
line-height:1.2;
}

.hero-text p{
font-size:16px;
letter-spacing:1px;
}
}

/* ========================================= */
/* MOBILE KECIL */
/* ========================================= */
@media screen and (max-width: 480px){
.logo-img{
width: 36px;
height: 36px;
}

.logo-text{
font-size: 15px;
}

.hamburger{
font-size: 18px;
left: 15px;
}

.hero-text h1{
font-size: 28px;
}

.hero-text p{
font-size: 14px;
}
}

/* ========================================= */
/* FINAL SOLUTION: CSS GRID FOR MOBILE NAVBAR */
/* ========================================= */
@media screen and (max-width: 768px){
.navbar{
position: relative !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
height: 80px !important;
padding: 0 !important;
background: #ffffff !important;
border-bottom: 1px solid #e5e5e5 !important;
box-shadow: none !important;
}

.hamburger{
display: block !important;
position: absolute !important;
left: 20px !important;
top: 50% !important;
transform: translateY(-50%) !important;
font-size: 18px !important;
color: #000 !important;
margin: 0 !important;
z-index: 3001 !important;
}

.logo-area{
position: absolute !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
height: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
margin: 0 !important;
padding: 0 !important;
pointer-events: none !important;
z-index: 2000 !important;
}

.logo-link{
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 10px !important;
text-decoration: none !important;
white-space: nowrap !important;
pointer-events: auto !important;
}

.logo-img{
width: 42px !important;
height: 42px !important;
flex-shrink: 0 !important;
}

.logo-text{
font-size: 18px !important;
font-weight: 700 !important;
color: black !important;
line-height: 1 !important;
white-space: nowrap !important;
text-align: center !important;
}

.menu{
top: 80px !important;
}
}

/* Mobile kecil */
@media screen and (max-width: 480px){
.logo-img{
width: 36px !important;
height: 36px !important;
}

.logo-text{
font-size: 15px !important;
}

.hamburger{
left: 15px !important;
font-size: 18px !important;
}
}

/* ============================= */
/* FIX FOOTER MOBILE RESPONSIVE */
/* ============================= */

@media screen and (max-width:600px){

.footer{
padding-top:40px;
}


.footer-container{
padding:0 20px 30px;
}


/* LOGO FOOTER */
.footer-logo{
display:flex;
flex-direction:column;
justify-content:center;
align-items:center;
gap:8px;
text-align:center;
}


.footer-logo img{
width:45px;
height:45px;
}


.footer-logo h3{
font-size:17px;
font-weight:700;
margin:0;
white-space:nowrap;
}


/* DESKRIPSI */
.footer-about p{
font-size:13px;
line-height:1.7;
max-width:300px;
margin:0 auto 20px;
}


/* SOSMED */
.footer-sosmed{
justify-content:center;
gap:12px;
max-width:100%;
}


.footer-sosmed a{
width:40px;
height:40px;
font-size:16px;
}


/* COPYRIGHT */
.footer-bottom{
font-size:12px;
padding:15px 10px;
}

}