body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
  margin: 0;
  color: #333;
}

h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #222;
}

.courses {
  padding: 10%;
  padding-top: 0px;
  padding-bottom: 50px;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 20px;
}

.year-block {
  border: 2px solid #003366;
  border-radius: 8px;
  padding: 20px;
  background: #f4f8fc;
}

.year-block h2 {
  text-align: center;
  text-transform: uppercase;
  color: #003366;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
}

.year-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.term {
  background: white;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.term a {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 6px 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.term a[href^="#1-"],
.term a[href^="#2-"],
.term a[href^="#3-"],
.term a[href^="#4-"] {
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 5px;
  font-weight: bold;
  background: #003366;
  color: white;
  text-transform: uppercase;
  border-left: 6px solid #cda757;
  margin-top: 10px;
}

.term a[href^="#1-"]:hover,
.term a[href^="#2-"]:hover,
.term a[href^="#3-"]:hover,
.term a[href^="#4-"]:hover {
  background: #cda757;
  color: white;
  border-left: 6px solid #003366;
  transition: background 0.2s ease;
}

.term a:hover {
  background: #e6eefb;
}

.course-section {
  background-color: #fff;
  border: 1px solid #ccc;
  margin-top: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.course-header {
  background-color: #122348;
  color: #fff;
  padding: 10px;
  font-weight: bold;
  font-size: 18px;
}

.course-content {
  padding: 15px;
  line-height: 1.6;
  color: #222;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.course-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #ddd;
}

.course-table td:first-child {
  font-weight: bold;
  width: 180px;
}

@media (max-width: 600px) {
  .course-table td:first-child {
    width: 120px;
  }
}