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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #334155;
  background-color: #f8fafc;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px;
}

/* --- Header --- */
header {
  text-align: center;
  padding: 28px 20px;
  background: #1e293b;
  color: #ffffff;
  border-radius: 12px;
  margin-bottom: 16px;
}

header h1 {
  font-size: 1.75rem;
  margin-bottom: 6px;
}

header p {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* --- Navigasi --- */
nav {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  margin-bottom: 20px;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: #f1f5f9;
  color: #0284c7;
}

/* --- Bagian / Section Utama --- */
main section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

main section h2 {
  font-size: 1.3rem;
  color: #0f172a;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* --- Section Tentang Saya --- */
#tentang-saya::after {
  content: "";
  display: table;
  clear: both;
}

#tentang-saya img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  object-position: 48% 22%;
  border-radius: 50%;
  float: left;
  margin: 0 20px 12px 0;
  border: 3px solid #e2e8f0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

#tentang-saya p {
  font-size: 1rem;
  line-height: 1.75;
  color: #475569;
}

/* --- Tabel Mata Kuliah --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

caption {
  text-align: left;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 8px;
  font-style: italic;
}

th,
td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
}

th {
  background-color: #f8fafc;
  color: #334155;
  font-weight: 600;
}

tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

tbody tr:hover {
  background-color: #f1f5f9;
}

th:first-child,
td:first-child,
th:last-child,
td:last-child {
  text-align: center;
  width: 60px;
}

/* --- Kontak dan Tautan --- */
#kontak h3 {
  font-size: 1rem;
  font-weight: normal;
  margin-bottom: 10px;
  color: #475569;
}

#kontak p {
  font-size: 1rem;
  color: #475569;
}

#kontak a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
}

#kontak a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 16px 0;
  color: #94a3b8;
  font-size: 0.85rem;
}

/* --- Tampilan Mobile / Layar Kecil --- */
@media (max-width: 600px) {
  #tentang-saya img {
    float: none;
    display: block;
    margin: 0 auto 16px auto;
  }

  #tentang-saya {
    text-align: center;
  }

  header h1 {
    font-size: 1.45rem;
  }
}