/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 90%;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

.guru-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}
.guru-list1 {
    display: flex;
      flex-wrap: wrap;
      gap: 10px;
      max-width: 90%; /* Maksimal 4 foto ke kiri */
}


.guru-item {
    text-align: center;
    margin: 10px;
    flex: 1 1 200px; /* Flexbox untuk responsif */
    max-width: 200px;

}
.gallery {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      max-width: 640; /* Maksimal 4 foto ke kiri */
    }
.gallery-item {
      width: 200px;
      height: 200px;
      overflow: hidden;
      position: relative;
      box-sizing: border-box;
    }
 .gallery-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.3s ease;
    }

    .gallery-item:hover img {
      transform: scale(1.1);
    }   

.guru-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    
}
.guru-img:hover img {
 overflow: hidden;   
 transform:scale(1.1);
 transition: transform 0.3s ease
}

.guru-item p {
    margin-top: 10px;
    font-size: 16px;
}
.title {
      font-size: 12px;
      font-weight: bold;
      text-align:center;
      margin: 0;
      color: #333;
    }

    .description {
      font-size: 12px;
      margin: 5px 0 0;
      color: #666;
      text-align: center;
	  	
    }

/* Responsive Styles */
@media (max-width: 768px) {
    .guru-item {
        flex: 1 1 150px; /* Ukuran lebih kecil untuk layar kecil */
        max-width: 150px;
    }

    .guru-item p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .guru-item {
        flex: 1 1 100px; /* Ukuran lebih kecil untuk smartphone */
        max-width: 100px;
    }

    .guru-item p {
        font-size: 12px;
    }
}

/* HERO */
.hero img{
    width:100%;
    height:480px;
    object-fit:cover;
    }
    
    .overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.5);
    display:flex;
    align-items:center;
    }
    
    .caption{
    color:#fff;
    max-width:600px;
    margin-left:10%;
    }
    
    .caption h2{
    font-size:40px;
    margin-bottom:10px;
    }
    
    .caption a{
    background:#2563eb;
    color:white;
    padding:10px 25px;
    border-radius:5px;
    display:inline-block;
    margin-top:10px;
    }
    
    /* TEXT BERJALAN */
    .running-text{
    background:#2563eb;
    color:white;
    padding:8px;
    margin-bottom:20px;
    }
    
    /* LAYOUT */
    .container-home{
    display:flex;
    gap:20px;
    max-width:1200px;
    margin:auto;
    }
    
    .content-left{flex:3;}
    .content-right{flex:1;}
    
    /* BOX */
    .box{
    background:#fff;
    padding:20px;
    margin-bottom:25px;
    border-radius:8px;
    box-shadow:0 0 10px rgba(0,0,0,.05);
    }
    
    .box h3{
    border-left:5px solid #2563eb;
    padding-left:10px;
    margin-bottom:15px;
    }
    
    /* PENGUMUMAN */
    .announce-item{
    padding:10px 0;
    border-bottom:1px solid #ddd;
    }
    
    /* ARTIKEL */
    .article-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:15px;
    }
    
    .article-card{
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 0 5px rgba(0,0,0,.1);
    }
    
    .article-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    }
    
    .article-body{
    padding:12px;
    }
    
    .more-btn{
    display:inline-block;
    margin-top:10px;
    background:#2563eb;
    color:white;
    padding:8px 20px;
    border-radius:5px;
    }

    .card-hover{
        transition: .3s ease;
        }
        
        .card-hover:hover{
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0,0,0,.12);
        }
        
        .item-hover{
        transition: .25s ease;
        }
        
        .item-hover:hover{
        transform: translateX(4px);
        }

        /* SIDEBAR */
.widget-box{
    background:#fff;
    border-radius:16px;
    padding:22px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    margin-bottom:25px;
    transition:.3s;
    }
    
    .widget-box:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(0,0,0,.12);
    }
    
    .widget-title{
    font-size:18px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
    }
    
    .widget-title i{
    color:#2563eb;
    font-size:18px;
    }
    
    .badge-populer{
    background:#ef4444;
    color:#fff;
    font-size:11px;
    padding:3px 10px;
    border-radius:20px;
    margin-left:auto;
    }
    
    /* Animasi Halus */
    .widget-box *{
    transition:.25s ease;
    }
    