html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body styles */
body {
  font-family: "Verdana", sans-serif;
  background-image: url("https://lpkia.ac.id/wp-content/uploads/2020/03/FOTO-UTAMAIMG_6680-scaled-e1583999911646-1280x580.jpg"); /* Replace with your image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Header styles */
header {
  background: linear-gradient(to right, #161d6f, #0b2f9f);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
}

#logo {
  position: absolute;
  top: 20px;
  left: 20px;
  height: 30px;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin: 0 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  padding-bottom: 5px; /* To create space for the border */
  position: relative; /* Needed to position the border effect */
  display: inline-block;
  transition: color 0.3s ease; /* Smooth color change */
}

/* Border-bottom effect */
nav ul li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  background-color: yellow; /* The underline color */
  left: 0;
  bottom: 0;
  transition: width 0.3s ease; /* Smooth width transition */
}

/* On hover, extend the border-bottom */
nav ul li a:hover::after {
  width: 100%; /* Expands to full width on hover */
}

/* Change text color on hover */
nav ul li a:hover {
  color: red;
}

/* Main content styles */
main {
  max-width: 800px;
  margin: 70px auto 20px;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Section styles */
section {
  margin-bottom: 30px;
}

h1 {
  text-align: center;
}

h3 {
  border-bottom: 2px solid #dbd3d3;
  padding-bottom: 5px;
  margin-bottom: 5px;
}

.header-top {
  color: blue;
}

.visi {
  text-align: center;
  margin-top: 50px;
  color: red;
  font-weight: 800;
}

.prodi {
  margin-bottom: 10px;
}

.prodi h4 {
  margin-bottom: 5px;
}

ol {
  margin: 0 20px;
}

ul {
  margin: 0 15px;
}

/* Table styles */
table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #dee2e6;
}

th {
  background-color: #024caa;
  color: white;
}

figure {
  overflow: hidden;
}

figure img {
  object-fit: cover;
}

figure img:hover {
  transition: ease-in-out 300;
}

#container-galeri {
  display: flex;
  flex-direction: column;
}

.galeri {
  margin-bottom: 10px;
}

/* Form styles */
form {
  display: flex;
  flex-direction: column;
}

form label {
  margin: 10px 0 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="nim"] {
  padding: 10px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  transition: border-color 0.3s;
}

form input[type="text"]:focus,
form input[type="email"]:focus,
form input[type="nim"]:focus {
  border-color: #007bff;
  outline: none;
}

form input[type="submit"] {
  margin-top: 10px;
}

address a {
  text-decoration: none;
  padding: 2px 5px;
  border-radius: 60px;
  color: white;
  font-size: small;
  font-weight: 800;
  background-color: #0056b3;
  transition: ease-in-out 0.3s;
}

address a:hover {
  color: red;
  background-color: yellow;
}

/* Footer styles */
footer {
  text-align: center;
  padding: 15px 0;
  background: #343a40;
  color: white;
  margin-top: 20px;
}
