*{
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: #063b2e;
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: #063b2e;
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: #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 */
/* ========================================= */
/* Default desktop: hijau tua */
.menu > li > a{
font-size: 14px;
font-weight: bold;
letter-spacing: 0.5px;
color: #063b2e;
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 6px 15px rgba(0,0,0,0.2);
opacity:0;
visibility:hidden;
transition:opacity 0.3s ease; 
}

/* tampil saat hover */
.dropdown:hover .dropdown-menu{
opacity:1;
visibility:visible;
}

/* 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;
color:white;
}

.hero-text p{
font-size:50px;
font-weight: bold;
margin-top:10px;
letter-spacing:2px;
color:white;
}

/* ============================= */
/* PENGUMUMAN */
/* ============================= */
.pengumuman{
padding:100px 40px;
background:linear-gradient(to bottom,#f9f9f9,#eef5f3);
}

.judul-pengumuman{
padding:30px 20px;
font-size: 34px;
text-align:center;
color:#063b2e;
position:relative;
}

.judul-pengumuman::after{
content:"";
width:80px;
height:3px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
display:block;
margin:12px auto;
}

/* ============================= */
/* GRID */
/* ============================= */
.pengumuman-container{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
gap:30px;
}

/* ============================= */
/* CARD */
/* ============================= */
.pengumuman-card{
background:white;
padding:25px;
border-radius:12px;
box-shadow:0 5px 15px rgba(0,0,0,0.1);
position:relative;
transition:0.3s;
overflow:hidden;
}

/* GARIS KIRI BERDASARKAN KATEGORI */
.pengumuman-card::before{
content:"";
position:absolute;
left:0;
top:0;
width:5px;
height:100%;
}

/* WARNA KATEGORI */
.ppdb::before{ background:#3498db; }
.kegiatan::before{ background:#27ae60; }
.jadwal::before{ background:#f39c12; }
.umum::before{ background:#e74c3c; }

/* ============================= */
/* HOVER */
/* ============================= */
.pengumuman-card:hover{
transform:translateY(-8px);
box-shadow:0 10px 25px rgba(0,0,0,0.2);
}

/* ============================= */
/* ICON */
/* ============================= */
.icon{
width:50px;
height:50px;
border-radius:50%;
display:flex;
align-items:center;
justify-content:center;
margin-bottom:12px;
font-size:20px;
color:white;
}

/* WARNA ICON */
.ppdb .icon{ background:#3498db; }
.kegiatan .icon{ background:#27ae60; }
.jadwal .icon{ background:#f39c12; }
.umum .icon{ background:#e74c3c; }

/* ============================= */
/* TANGGAL */
/* ============================= */
.pengumuman-card .tanggal{
font-size:12px;
color:#888;
margin-bottom:10px;
}

/* ============================= */
/* JUDUL */
/* ============================= */
.pengumuman-card h3{
font-size:18px;
color:#063b2e;
margin-bottom:10px;
}

/* ============================= */
/* ISI */
/* ============================= */
.pengumuman-card p{
font-size:14px;
line-height:1.6;
color:#333;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */
@media (max-width:768px){
.pengumuman{
padding:80px 20px;
}

.judul-pengumuman{
font-size:28px;
}

.pengumuman-card{
padding:20px;
}
}

/* ============================= */
/* 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;
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{
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 #0a2d23;
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: 15px !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 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;
}

.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;
}

}