/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

/* Header */
.atas {
    background-color: #023246;
    color: black;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding-top: 25px ; /* Padding atas dan bawah */
    padding-bottom: 15px;
    
    font-size: 1.3rem;
  }
  
  .atas nav {
    display: flex;
    align-items: center;
  }
  
  
  .atas nav ul {
    list-style-type: none;
    display: flex;
    margin-left: auto; /* Moves the list to the right */
  }
  
  .atas nav ul li {
    margin-right: 50px;
  }
  
  .atas nav ul li a {
      font-family: 'Poppins', sans-serif;
      font-size: 1.1rem;
      font-weight: 500;
      color: #E1E8F0;
      text-decoration: none;
      text-transform: uppercase;
      padding-bottom: 8px; /* Menambahkan jarak antara teks dan underline */
      position: relative;
  }
  
  
  
  .atas nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0; /* Tepat di bawah teks */
    height: 4px; /* Ketebalan underline */
    background-color: #E1E8F0; /* Warna underline */
    transform: scaleX(0); /* Mulai dengan tidak terlihat */
    transition: transform 0.3s ease;
  }
  
  .atas nav ul li a:hover::after {
    transform: scaleX(1); /* Memunculkan underline saat hover */
  }
  
  .atas nav ul li a:hover {
    color: #A9D4F1;
  }
  
  .tengah1 {
    font-weight: bold; /* Teks tebal */
    display: inline-block; /* Allows for margin and padding */
    position: relative; /* For positioning the pseudo-element */
    color: #287094; /* Link color */
    transition: color 0.3s ease; /* Smooth color transition */
  }
  
  .tengah1 a {
    text-decoration: none; /* No underline initially */
    color: #287094; /* Sesuaikan dengan palet warna */
    position: relative; /* Position relative for child elements */
  }
  
  .tengah1 a:hover {
    color: #003366; /* Ubah warna saat hover */
  }
  
  .tengah1 a span {
    position: relative; /* Positioning relative to the span */
  }
  
  .tengah1 a span::after {
    content: ""; /* Create an empty content */
    display: block; /* Block-level element */
    width: 100%; /* Full width of the text */
    height: 2px; /* Thickness of the underline */
    background-color: #287094; /* Color of the underline */
    position: absolute; /* Positioning relative to the span */
    bottom: -5px; /* Position it below the text */
    left: 0; /* Align to the left */
    transform: scaleX(0); /* Start with a scale of 0 (invisible) */
    transition: transform 0.3s ease; /* Smooth scaling */
  }
  
  .tengah1 a:hover span::after {
    transform: scaleX(1); /* Scale to full width on hover */
  }
  
  footer {
    font-family: Montserrat; /* Font footer */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Bayangan halus */
    padding: 20px; /* Tambahkan padding untuk jarak dalam */
    background-color: #f6f6f6; /* Tambahkan latar belakang untuk kontras */
  }

/* Gallery Section */
.gallery {
    margin-top: 50px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery h2 {
    color: #287094;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr)); /* Dua kolom dengan lebar lebih besar */
    gap: 20px;
}

.gallery-item {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto; /* Ganti menjadi auto agar gambar tidak mengisi tinggi penuh */
    display: block;
    object-fit: cover;
}

.gallery-item p {
    padding: 10px;
    font-size: 1em;
    color: #666;
    margin: 0;
    background-color: #fff;
    border-top: 1px solid #ddd;
}

.gallery-item img:empty::before {
    content: "No Image Available";
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    color: #aaa;
    font-size: 14px;
}

/* Konten utama agar mengambil ruang sisa */
.main-container {
    flex: 1;
    padding: 20px;
}

/* Styling untuk footer */
