*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Segoe UI;
}

html, body{
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

body{
    position: relative;
}

/* HEADER */
header{
position:fixed;
top:0;
left:0;
width:100%;
z-index:1000;
}

/* ============================= */
/* 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; /* transparan di desktop */
transition: background 0.3s ease, padding 0.3s ease, color 0.3s ease;
border-bottom: 1px solid rgba(10, 45, 35, 0.15);
}

/* Navbar saat di-scroll (desktop) */
.navbar.scrolled{
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* ============================= */
/* LOGO */
/* ============================= */
.logo{
    color: #0a2d23;
    font-size: 22px;
    font-weight: bold;
}

.logo-area{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 0;
}

.logo-img{
    width: 55px;
    height: 55px;
}

/* Default desktop: hijau tua */
.logo-text{
    font-size: 20px;
    font-weight: bold;
    color: #0a2d23;
    transition: 0.3s;
}

.logo-link{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* Saat navbar di-scroll: teks menjadi putih */
.navbar.scrolled .logo,
.navbar.scrolled .logo-text{
    color: white;
}

/* ============================= */
/* RESPONSIVE MOBILE */
/* ============================= */
@media screen and (max-width: 768px){

    /* Navbar selalu putih dan menyatu dengan canvas menu */
    .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 */
    .navbar.scrolled{
        background: #ffffff !important;
        border-bottom: 1px solid #e5e5e5;
        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 selalu hijau tua */
    .logo-text{
        color: #0a2d23 !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 */
/* ========================================= */
/* Default desktop: hijau tua */
.menu > li > a{
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: #0a2d23;
    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 putih saat navbar di-scroll */
.navbar.scrolled .menu > li > a{
    color: white;
}

/* Ubah warna menu menjadi gelap di mobile */
@media screen and (max-width: 768px){
    .menu > li > a{
        color: #222 !important;
    }
}

/* ============================= */
/* DROPDOWN */
/* ============================= */
.dropdown{
position:relative;
}

/* menu dropdown */
.dropdown-menu{
position:absolute;
top:100%;
left:0;
background:white;
list-style:none;
min-width:240px;
border-radius:6px;
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
opacity:0;
visibility:hidden;
transform:translateY(15px);
transition:all 0.3s ease;
}

/* tampil saat hover */
.dropdown:hover .dropdown-menu{
opacity:1;
visibility:visible;
transform:translateY(0);
}

/* item dropdown */
.dropdown-menu li a{
display:block;
padding:12px 16px;
color:black;
text-decoration:none;
font-size:13px;
font-weight:600;
transition:0.25s;
}

/* hover item */
.dropdown-menu li a:hover{
color: #f4c542;
background: #f9f9f9;
}

/* HERO TEXT */
.hero-text h1{
font-size:60px;
letter-spacing:2px;
}

.hero-text p{
font-size:20px;
margin-top:10px;
}

/* ============================= */
/* SECTION */
/* ============================= */
.section-guru{
background:white;
padding:80px 0 40px;
}

.section-tendik{
background:white;
padding:40px 0 80px;
}

/* ============================= */
/* JUDUL */
/* ============================= */
.judul{
font-size:34px;
text-align:center;
margin-bottom:30px;
color:#0a2d23;
position:relative;
padding:30px 40px;
}

.judul::after{
content:"";
width:70px;
height:3px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
display:block;
margin:10px auto 0;
}

.judul-tendik{
font-size:34px;
text-align:center;
margin-bottom:30px;
color:#0a2d23;
position:relative;
padding:30px 40px;
}

.judul-tendik::after{
content:"";
width:70px;
height:3px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
display:block;
margin:10px auto 0;
}

/* ============================= */
/* GRID GURU */
/* ============================= */
.guru-container.top{
display:grid;
grid-template-columns: repeat(4,1fr);
gap:25px;
justify-content: center;
padding:0 50px 25px;
}

.guru-container.bottom{
display:grid;
grid-template-columns:repeat(5, 1fr);
gap:25px;
justify-content: center;
padding:0 50px 25px;
}

.divider{
width:80%;
height:4px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
margin:40px auto;
border:none;
border-radius:10px;
}

/* ============================= */
/* GRID TENDIK */
/* ============================= */
.tendik-container{
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 25px;
justify-content: center;
padding: 0 50px 25px;
}

/* ============================= */
/* CARD (GURU & TENDIK SAMA) */
/* ============================= */
.guru-card,
.tendik-card{
background:white;
border-radius:12px;
text-align:center;
padding:20px;
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
transition:0.3s;
}

.guru-card:hover,
.tendik-card:hover{
box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

/* ============================= */
/* FOTO */
/* ============================= */
.guru-card img,
.tendik-card img{
width:120px;
height:120px;
border-radius:50%;
object-fit:cover;
margin-bottom:15px;
border:4px solid #0a2d23;
}

/* ============================= */
/* TEXT */
/* ============================= */
.guru-card h3,
.tendik-card h3{
margin:5px 0;
color:#0a2d23;
}

.guru-card p,
.tendik-card p{
font-size:14px;
color:gray;
}

@media screen and (max-width: 1200px){

/* Semua guru menjadi 3 kolom */
.guru-container.top,
.guru-container.bottom{
grid-template-columns: repeat(3, 1fr);
padding: 0 30px 25px;
gap: 25px;
}

/* Tendik tetap 2 kolom */
.tendik-container{
grid-template-columns: repeat(2, 1fr);
padding: 0 30px 25px;
}
}

/* Tablet */
@media screen and (max-width: 992px){

/* Guru menjadi 2 kolom */
.guru-container.top,
.guru-container.bottom{
grid-template-columns: repeat(2, 1fr);
padding: 0 25px 25px;
gap: 25px;
}

/* Tendik juga 2 kolom */
.tendik-container{
grid-template-columns: repeat(2, 1fr);
padding: 0 25px 25px;
gap: 25px;
}

/* Card dibuat seragam */
.guru-card,
.tendik-card{
width: 100%;
max-width: 320px;
margin: 0 auto;
}
}

/* Mobile */
@media screen and (max-width: 768px){

/* Judul lebih kecil */
.judul,
.judul-tendik{
font-size: 28px;
padding: 20px;
margin-bottom: 20px;
}

/* Semua grid menjadi 1 kolom */
.guru-container.top,
.guru-container.bottom,
.tendik-container{
grid-template-columns: 1fr;
padding: 0 20px 25px;
gap: 25px;
}

/* Card di tengah */
.guru-card,
.tendik-card{
width: 100%;
max-width: 340px;
margin: 0 auto;
padding: 20px;
}

/* Foto sedikit lebih kecil */
.guru-card img,
.tendik-card img{
width: 110px;
height: 110px;
}

/* Divider lebih pendek */
.divider{
width: 90%;
margin: 30px auto;
}
}

/* Mobile kecil */
@media screen and (max-width: 480px){

.judul,
.judul-tendik{
font-size: 22px;
padding: 15px;
}

.guru-container.top,
.guru-container.bottom,
.tendik-container{
padding: 0 15px 20px;
gap: 20px;
}

.guru-card,
.tendik-card{
max-width: 100%;
border-radius: 10px;
}

.guru-card img,
.tendik-card img{
width: 100px;
height: 100px;
}

.guru-card h3,
.tendik-card h3{
font-size: 18px;
}

.guru-card p,
.tendik-card p{
font-size: 13px;
}
}

/* ============================= */
/* 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 (255,255,255,0.85);
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;
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{
position: relative;
justify-content: center;
padding: 14px 20px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
border-bottom: 1px solid #063b2e;
min-height: 80px;
}

.hamburger{
display: block;
position: absolute;
left: 20px;
top: 50%;
transform: translateY(-50%);
z-index: 3001;
color: black;
}

.hamburger:hover{
transform: translateY(-50%) scale(1.05);
}

.hamburger.active{
color: black;
font-size: 18px;
}

.logo-area{
margin: 0 auto;
justify-content: center;
}

.logo-link{
justify-content: center;
}

.logo-img{
width: 42px;
height: 42px;
}

.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 CANVAS DARI ATAS (TINGGI OTOMATIS) */
/* ========================================= */
.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;             
}

.menu.active{
transform: translateY(0);
opacity: 1;
visibility: visible;
}

.menu li{
width: 100%;
padding: 0;
border-bottom: 1px solid #e5e5e5;
}

.menu li:last-child{
border-bottom: none;
}

.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 text */
.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 !important;
}

.hamburger{
font-size: 18px;
left: 15px;
}

.hamburger.active{
font-size: 18px;
 }

.hero-text h1{
font-size: 28px;
}

.hero-text p{
font-size: 14px;
}
}

/* ============================= */
/* NOTIFIKASI BERHASIL */
/* ============================= */
.notif-success{
position:fixed;
top:90px;
right:20px;
background:white;
color:#0a2d23;
padding:14px 18px;
border-left:5px solid #2d6a4f;
border-radius:12px;
box-shadow:
0 10px 30px rgba(0,0,0,0.12);
font-weight:600;
font-size:14px;
z-index:99999;
animation:
slideNotif 0.4s ease;
max-width:320px;
width:calc(100% - 40px);
}

/* animasi muncul */
@keyframes slideNotif{
from{
opacity:0;
transform:
translateY(-15px)
translateX(20px);
}
to{
opacity:1;
transform:
translateY(0)
translateX(0);
}
}

/* MOBILE */
@media(max-width:768px){
.notif-success{
top:85px;
left:20px;
right:20px;
max-width:none;
width:auto;
font-size:13px;
padding:12px 15px;
}
}

/* ============================= */
/* SAMAKAN FOOTER DENGAN INDEX */
/* ============================= */

.footer{
padding-top:70px !important;
}


.footer-container{
width:100%;
padding:0 40px 50px !important;
}


.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;
}


.footer-about p{
line-height:1.8;
color:white;
margin-bottom:25px;
max-width:500px;
}


.footer-sosmed{
display:flex;
gap:15px;
padding-top:20px;
margin-top:20px;
border-top:1px dashed white;
width:100%;
max-width:450px;
}


.footer-bottom{
text-align:center;
padding:18px;
border-top:1px solid white;
font-size:14px;
color:white;
}



/* MOBILE */
@media(max-width:900px){

.footer-container{
text-align:center;
}


.footer-logo{
justify-content:center;
}


.footer-sosmed{
justify-content:center;
}


.footer-about p{
margin:auto;
}

}


/* MOBILE KECIL */
@media(max-width:600px){


.footer{
padding-top:40px !important;
}


.footer-container{
padding:0 20px 30px !important;
}


.footer-logo{
flex-direction:column;
justify-content:center;
align-items:center;
gap:8px;
}


.footer-logo img{
width:45px;
height:45px;
}


.footer-logo h3{
font-size:17px;
}


.footer-about p{
font-size:13px;
line-height:1.7;
max-width:300px;
margin:0 auto 20px;
}


.footer-sosmed{
justify-content:center;
gap:12px;
max-width:100%;
}


.footer-sosmed a{
width:40px;
height:40px;
font-size:16px;
}


.footer-bottom{
font-size:12px;
padding:15px 10px;
}

}