body{
margin:0;
font-family:Arial, sans-serif;

background-image:url("../backgraund.jpg");
background-size:cover;
background-position:center;
background-repeat:no-repeat;
background-attachment:fixed;
}

.container{
max-width:1200px;
width:90%;
margin:auto;
padding:30px 0;
}

header{
background:#2b00ff86;
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 50px;
position:relative;
}

/* HEADER MENU */

header{
background:#7ec3c3;
display:flex;
justify-content:space-between;
align-items:center;
padding:10px 30px;
flex-wrap:wrap;
}

.menu-kiri,
.menu-kanan{
display:flex;
align-items:center;
flex-wrap:wrap;
}

.menu-kiri a,
.menu-kanan a{
text-decoration:none;
color:rgb(255, 255, 255);
margin:4px;
padding:6px 12px;
border-radius:4px;
font-weight:bold;
transition:0.2s;
}

.menu-kiri a:hover,
.menu-kanan a:hover{
background:#003366;
color:white;
}

/* TABLET */

@media (max-width: 992px){

header{
flex-direction:column;
gap:10px;
}

.menu-kiri,
.menu-kanan{
justify-content:center;
}

.logo-tengah{
margin:10px 0;
}

}

/* SMARTPHONE */

@media (max-width: 768px){

.menu-kiri,
.menu-kanan{
flex-direction:column;
width:100%;
text-align:center;
}

.menu-kiri a,
.menu-kanan a{
width:100%;
padding:8px;
}

header{
padding:10px;
}

.logo-tengah img{
width:60px;
}

}

.running-text{
background:#ff000072;
color:rgb(0, 0, 0);
overflow:hidden;
white-space:nowrap;
padding:10px 0;
}

.running-track span{
font-weight:bold;
font-size:16px;
}

@keyframes runText{
0%{
transform:translateX(100%);
}
100%{
transform:translateX(-100%);
}
}

.running-track{
display:flex;
gap:50px;
animation:runText 15s linear infinite;
}

.nama-sekolah{
background:#222d2d;
color:white;
text-align:center;
padding:20px;
}

.nama-sekolah h1{
font-family:Arial, sans-serif;
font-size:clamp(20px,4vw,42px);
margin:0;
letter-spacing:1px;
}

.slider{
width:100%;
height:400px;
overflow:hidden;
position:relative;
}

.slide{
width:100%;
height:100%;
object-fit:cover;
}

.judul-sekolah h1{
font-size:100px;
margin:0;
}

header a{
text-decoration:none;
color:black;
margin:0 10px;
font-weight:bold;
}

.nav-container{
display:flex;
justify-content:space-between;
align-items:center;
}

.logo-tengah img{
width:80px;
}

nav a{
color:rgb(0, 0, 0);
margin:10px;
text-decoration:none;
font-weight:bold;
}

.announcement-bar{
background:rgb(0, 0, 0);
color:white;
overflow:hidden;
white-space:nowrap;
}

.announcement-text{
display:inline-block;
padding:10px;
font-weight:bold;
animation:runningText 30s linear infinite;
font-family: Arial, sans-serif;
}

@keyframes runningText{
0%{transform:translateX(100%)}
100%{transform:translateX(-100%)}
}

.cards{
display:flex;
gap:20px;
flex-wrap:wrap;
}

.card{
background:white;
padding:20px;
flex:1;
box-shadow:0 2px 8px rgba(0,0,0,0.2);
}

.kepsek{
background:rgba(48, 97, 153, 0.568);
padding:40px;
}

.kepsek-container{
display:flex;
gap:30px;
align-items:center;
flex-wrap:wrap;
}

.kepsek img{
width:200px;
max-width:100%;
height:auto;
border-radius:10px;
display: grid;
place-items: center;
}

footer{
background:#3653d266;
color:white;
text-align:center;
padding:20px;
}

/* dropdown */

.dropdown{
display:inline-block;
position:relative;
}

.dropbtn{
background:none;
border:none;
color:white;
font-weight:bold;
cursor:pointer;
}

.dropdown-content{
display:none;
position:absolute;
background:white;
min-width:160px;
}

.dropdown-content a{
color:black;
padding:10px;
display:block;
}

.dropdown:hover .dropdown-content{
display:block;
}

/* guru */

.guru-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:20px;
}

.guru-card{
background:rgba(48, 97, 153, 0.568);
padding:20px;
text-align:center;
box-shadow:0 2px 8px rgba(0,0,0,0.2);
}

.guru-card img{
width:120px;
border-radius:50%;
}

/* galeri */

.galeri-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
gap:10px;
}

.galeri-grid a{
display:block;
overflow:hidden;
}

.galeri-grid img{
width:100%;
transition:0.3s;
cursor:pointer;
}

.statistik{
background:#f0f3f8;
padding:40px;
text-align:center;
}

.stat-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
gap:20px;
margin-top:20px;
}

.stat-box{
background:white;
padding:30px;
box-shadow:0 2px 8px rgba(0,0,0,0.2);
}

.stat-box h3{
font-size:40px;
color:#003366;
margin:0;
}

.galeri-grid img:hover{
transform:scale(1.1);
}

.btn-daftar{
display:inline-block;
margin-top:10px;
background:#e53935;
color:white;
padding:10px 15px;
text-decoration:none;
border-radius:5px;
font-weight:bold;
}

.btn-daftar:hover{
background:#c62828;
}

.social-media{
margin-bottom:15px;
}

.social-media a{
color:white;
margin:0 10px;
text-decoration:none;
font-weight:bold;
}

.social-media a:hover{
text-decoration:underline;
}

.social-media a{
margin:0 10px;
color:white;
text-decoration:none;
font-weight:bold;
}

.social-media a:hover{
text-decoration:underline;
}

.social-icons{
margin:15px 0;
}

.social-icons a{
color:white;
font-size:24px;
margin:0 10px;
transition:0.3s;
}

.social-icons a:hover{
color:#ffcc00;
transform:scale(1.2);
}

.berita-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

.berita-card{
background:rgba(242, 242, 242, 0.348);
box-shadow:0 2px 8px rgba(0,0,0,0.2);
padding:15px;
}

.berita-card img{
width:100%;
height:260px;
object-fit:cover;
border-radius:6px;
}

.berita-detail img{
width:100%;
max-height:450px;
object-fit:cover;
border-radius:6px;
margin-bottom:20px;
}

.berita-card h3{
margin-top:10px;
color:#003366;
}

.berita-card a{
display:inline-block;
margin-top:10px;
color:#003366;
font-weight:bold;
text-decoration:none;
}

.berita-card a:hover{
text-decoration:underline;
}

.lihat-berita{
text-align:center;
margin-top:20px;
}

.btn-berita{
background:#003366;
color:white;
padding:10px 20px;
text-decoration:none;
border-radius:5px;
}

@media (max-width:768px){

.nama-sekolah h1{
font-size:22px;
}

}

/* Tablet */

@media (max-width: 992px){

.nav-container{
flex-direction:column;
align-items:flex-start;
}

.cards{
flex-direction:column;
}

.kepsek-container{
flex-direction:column;
text-align:center;
}
}

/* Smartphone */

@media (max-width: 768px){

nav{
display:flex;
flex-direction:column;
width:100%;
}

nav a{
margin:5px 0;
}

.slider{
height:250px;
}

.slide{
height:250px;
}

.logo-area h2{
font-size:18px;
}

}

/* HP kecil */

@media (max-width: 480px){

.slider{
height:200px;
}

.slide{
height:200px;
}

.stat-grid{
grid-template-columns:1fr;
}
}

/* GOOGLE MAP */

.maps{
background:#7ec3c3;
padding:30px;
text-align:center;
}

.maps h2{
display:inline-block;
border:3px solid black;
padding:15px;
}

/* FOOTER */

footer{
background:#7ec3c3;
text-align:center;
padding:30px;
}

footer img{
width:10%;
height: 10%;
}

.kepsek-text{
width:100%;
word-wrap:break-word;
}

.container h1{
text-align:center;
margin-bottom:30px;
}

/* NAVIGATION BUTTON */

header a{
text-decoration:none;
color:black;
margin:0 5px;
font-weight:bold;
padding:10px 18px;
border-radius:6px;
transition:0.3s;
}

/* MENU HEADER TOMBOL LEBIH KECIL */

header a{
text-decoration:none;
color:black;
margin:0 4px;
font-weight:bold;
padding:6px 12px;
border-radius:4px;
transition:0.2s;
}

/* efek saat mouse diarahkan */

header a:hover{
background:#003366;
color:white;
}

/* efek saat diklik */

header a:active{
transform:scale(0.96);
}

.active{
background:#517f7f;
color:rgb(255, 255, 255);
}

/* CHAT PENGUNJUNG */

.chat-box{
background:white;
padding:20px;
box-shadow:0 2px 8px rgba(0,0,0,0.2);
border-radius:6px;
}

.chat-messages{
max-height:300px;
overflow-y:auto;
margin-bottom:15px;
display:flex;
flex-direction:column-reverse;
}

.chat-message{
background:#f0f3f8;
padding:10px;
margin-bottom:10px;
border-radius:5px;
}

.chat-input input,
.chat-input textarea{
width:100%;
padding:8px;
margin-bottom:10px;
border:1px solid #ccc;
border-radius:4px;
}

.chat-input button{
background:#003366;
color:white;
border:none;
padding:10px 15px;
border-radius:5px;
cursor:pointer;
}

.chat-input button:hover{
background:#001f4d;
}