*{
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;
}

/* BACKGROUND */
.hero{
height:100vh;
background-size:cover;
background-position:center;
display:flex;
justify-content:center;
align-items:center;
text-align:center;
color:white;
}

/* HEADER */
header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    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; /* 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-color: #0a2d23 !important;
    background-image: radial-gradient(
        circle at top right,
        #2d6a4f 0%,
        #0a2d23 45%,
        #041b15 100%
    ) !important;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

@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: #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;
}

/* CONTENT */
.sejarah-content {
  padding:115px 40px;
  background: #f5f7fa;
}

.container {
  max-width: 900px;
  margin: auto;
}

.sejarah-content h2 {
  font-size:26px;
  margin-bottom: 20px;
  color: #0a2d23;
  text-align: center;
}

.sejarah-content h2::after {
content:"";
width:70px;
height:3px;
background: radial-gradient(circle at top right,
#2d6a4f 0%,
#0a2d23 45%,
#041b15 100%);
display:block;
margin:10px auto;
}

.sejarah-content p {
font-size: 18px;
margin-bottom: 20px;
line-height: 1.8;
text-align: justify;
color: #333;
}

/* ============================= */
/* 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: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;
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 di kiri */
.hamburger{
display:block;
position:absolute;
left:20px;
top:50%;
transform:translateY(-50%);
font-size:24px;
z-index:3001;
color:black;
background:none;
border:none;
}

.hamburger:hover{
transform:translateY(-50%) scale(1.05);
}

/* SAAT ACTIVE */
.hamburger.active{
color:black;
}

/* Logo dan nama sekolah di tengah */
.logo-area{
margin: 0 auto;
justify-content: center;
}

.logo-link{
justify-content: center;
}

.logo-img{
width: 42px;
height: 42px;
}

.logo-text{
font-size: 18px;
white-space: nowrap;
}

/* ========================================= */
/* 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;
}

.hamburger{
font-size: 22px;
left: 15px;
}

.hamburger.active{
font-size: 22px;
}

.hero-text h1{
font-size: 28px;
}

.hero-text p{
font-size: 14px;
}
}

/* ========================================= */
/* FIX LOGO NAVBAR MOBILE - SEJARAH.PHP */
/* ========================================= */
@media screen and (max-width: 768px){
.logo-area{
position: absolute !important;
top: 0 !important;
left: 50% !important;
transform: translateX(calc(-50% - 42px)) !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: 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;
}
}

/* ========================================= */
/* MOBILE KECIL */
/* ========================================= */
@media screen and (max-width: 480px){
.logo-area{
transform: translateX(calc(-50% - 36px)) !important;
}

.logo-img{
width: 36px !important;
height: 36px !important;
}

.logo-text{
font-size: 15px !important;
}
}

/* ========================================= */
/* FINAL FIX SEJARAH.CSS
/* ========================================= */
html,
body{
overflow-x: hidden !important;
}

.footer-sosmed{
width: 100%;
max-width: 450px;
}

/* ========================================= */
/* MOBILE & TABLET */
/* ========================================= */
@media screen and (max-width: 768px){
.navbar{
position: relative !important;
display: flex !important;
justify-content: center !important;
align-items: center !important;
height: 80px !important;
min-height: 80px !important;
padding: 0 20px !important;
background: #ffffff !important;
border-bottom: 1px solid #e5e5e5 !important;
box-shadow: none !important;
overflow: hidden !important;
}

.hamburger{
display: block !important;
position: absolute !important;
left: 20px !important;
top: 50% !important;
transform: translateY(-50%) !important;
font-size: 24px !important;
color: #000 !important;
margin: 0 !important;
padding: 0 !important;
z-index: 3001 !important;
background: none !important;
border: none !important;
}

.hamburger:hover{
transform: translateY(-50%) scale(1.05) !important;
}

.hamburger.active{
color: #000 !important;
font-size: 24px !important;
}

.logo-area{
position: absolute !important;
top: 0 !important;
left: 50% !important;
transform: translateX(-50%) !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: 22px !important;
}

.hamburger.active{
font-size: 22px !important;
}
}

/* ========================================= */
/* FINAL FIX DESKTOP NAVBAR SCROLL */
/* ========================================= */
.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) !important;
border-bottom: 1px solid rgba(255,255,255,0.2) !important;
}

/* ========================================= */
/* MOBILE: navbar tetap putih saat scroll */
/* ========================================= */
@media screen and (max-width: 768px){
.navbar.scrolled{
background: #ffffff !important;
border-bottom: 1px solid #e5e5e5 !important;
box-shadow: none !important;
}
}

/* ============================= */
/* 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;
}

}