body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
  background-color: #f4f6f8;
}

header {
  background: rgb(7, 33, 82);
  color: white;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

header .logo-title {
  display: flex;
  align-items: center;
}

header img.logo {
  height: 100px;
  margin-right: 20px;
  background: transparent;
}

header h1 {
  margin: 0;
  font-size: 2.2em;
  font-weight: bold;
  color: #ffffff;
}

header nav {
  margin: 0;
}

header nav a {
  color: #cfe6ff;
  text-decoration: none;
  margin-left: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

header nav a:hover {
  color: #ffcc00;
}

main {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
  color: rgb(7, 33, 82);
  margin-bottom: 10px;
  border-bottom: 2px solid rgb(7, 33, 82);
  padding-bottom: 5px;
}

.seminar-list {
  list-style: none;
  padding-left: 0;
}

.seminar-list li {
  margin-bottom: 25px;
  padding: 15px;
  border-left: 4px solid rgb(7, 33, 82);
  background: #f9fbfd;
  border-radius: 6px;
}

.seminar-list .date {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}

.seminar-list .author,
.seminar-list .title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 5px;
  color: #001a40;
}

.seminar-list .abstract {
  text-align: justify;
  font-size: 1em;
}

.seminar-list .abstract a {
  font-size: 1em;
  color: rgb(7, 33, 82);
  text-decoration: underline;
}

.seminar-list .abstract a:hover {
  color: #ffcc00;
}

form {
  display: flex;
  flex-direction: column;
}

form label {
  margin-top: 10px;
  font-weight: bold;
}

form input[type="text"],
form input[type="email"],
form textarea {
  font-size: 1.2em;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
}

form textarea {
  resize: vertical;
}

form button {
  margin-top: 15px;
  padding: 12px 15px;
  font-size: 1.2em;
  border: none;
  border-radius: 6px;
  background-color: rgb(7, 33, 82);
  color: white;
  cursor: pointer;
  transition: background-color 0.3s;
}

form button:hover {
  background-color: rgb(5, 25, 60);
}

select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0.4rem 0 1rem;
  padding: 0.7rem;
  border: 1px solid #b8c1cc;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font: inherit;
}

.notice {
  margin: 1rem 0 1.25rem;
  padding: 0.8rem 1rem;
  border-left: 4px solid #2f6fb0;
  border-radius: 4px;
  background: #eef6ff;
}

.notice p {
  margin: 0.35rem 0;
}

.status-message {
  color: #4b5563;
  font-weight: 600;
}

.error-message {
  color: #8b1e1e;
}

.button-link {
  display: inline-block;
  margin: 0.5rem 0 1.25rem;
  padding: 0.7rem 1rem;
  border-radius: 6px;
  background: rgb(7, 33, 82);
  color: white;
  font-weight: 600;
  text-decoration: none;
}

.button-link:hover {
  background: rgb(5, 25, 60);
}

.button-link.disabled {
  pointer-events: none;
  opacity: 0.55;
}

.seminar-list .institution {
  margin-top: -0.2rem;
  color: #52606d;
}

.seminar-list .abstract {
  white-space: pre-line;
}

.seminar-list .submission-actions {
  margin-top: 0.9rem;
  font-size: 0.9em;
}

.available-seminar {
  border-left-color: #5d7896 !important;
}

footer {
  text-align: center;
  margin: 40px 0 10px;
  font-size: 0.85em;
  color: #777;
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  header .logo-title {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  header nav {
    margin-top: 10px;
  }
  header nav a {
    display: block;
    margin: 5px 0;
  }
  header img.logo {
    height: 70px;
    margin-right: 0;
    margin-bottom: 10px;
  }
  header h1 {
    font-size: 1.8em;
    text-align: center;
  }
  main {
    margin: 15px;
    padding: 15px;
  }
}

.academic-year {
  margin-top: 1.5rem;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;
}

.academic-year summary {
  padding: 1rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f4f4f4;
  user-select: none;
}

.academic-year summary:hover {
  background-color: #e9e9e9;
}

.academic-year[open] summary {
  border-bottom: 1px solid #d5d5d5;
}

.academic-year .seminar-list {
  padding: 0 1.25rem;
}

.seminar {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.seminar:last-child {
  border-bottom: none;
}

.seminar h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.seminar p {
  margin: 0.4rem 0;
}
