* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Quicksand', sans-serif;
}

h2,
h3 {
  color: #0020a2;
}

/* header */
header {
  display: inline;
}

nav a {
  font-size: 18px;

  font-weight: 400;
  text-decoration: none;

  color: white;
}

nav a:hover {
  font-weight: bold;
}

nav li {
  display: inline;
  list-style-type: none;
  margin-right: 20px;
}

nav {
  background-color: #0020a2;
  padding: 10px;
  position: sticky;
  top: 0;
}

.jumbotron {
  background-color: #2a2dff;
  padding: 60px;
  color: white;
  text-align: center;
  font-size: 24px;
}

/* main content */
main {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 25px;
}

.content {
  flex: 1;
  display: flex;
  width: 10 0%;
  flex-direction: column;
  gap: 20px;
}

.card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;

  padding: 30px 40px;
  /* margin: 20px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  max-width: 80%;
  justify-content: center;
}

/* card jurusan */
.card-jurusan {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 20px 10px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.card-jurusan:hover {
  box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.2);
}

.card-jurusan p,
.card-idn p {
  text-align: center;
  font-size: 14px;
  color: #0020a2;
}

.card-jurusan h3,
.card-idn h3 {
  text-align: center;
  font-size: 18px;
  color: #0020a2;
}

.card-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.card-jurusan img {
  max-width: 100px;
  height: auto;
  margin: 15px 0;
}

/* card idn */
.card-idn {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.card-idn:hover {
  box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.2);
}

.idn-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

/* content samping */
aside {
  width: 25%;
  min-width: 280px;
}

.profile-card {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
  margin-top: 20px;
}

.profile-card header {
  text-align: center;
}

.profile-card figure {
  margin: 0;
  padding: 10px 0;
}

.profile-card figure img {
  max-width: 150px;
  height: auto;
  margin-top: 15px;
}

.profile-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.profile-card table th,
.profile-card table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

/* footer */
footer {
  padding: 20px;
  color: white;
  background-color: #0020a2;

  text-align: center;
  font-weight: bold;
  margin-top: 50px;
}

footer a {
  color: #898fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  aside {
    width: 100%;
    min-width: auto;
  }

  .card-list {
    flex-direction: column;
    align-items: center;
  }

  .idn-list {
    grid-template-columns: repeat(1, 1fr);
  }

  .card h2 {
    text-align: center;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 16px;
  }

  .jumbotron {
    font-size: 18px;
    padding: 40px;
  }

  .card {
    padding: 20px;
  }

  .card-jurusan,
  .card-idn {
    min-width: auto;
    padding: 15px;
  }

  .profile-card table th,
  .profile-card table td {
    font-size: 12px;
    padding: 8px;
  }
}
