html, body, main, header, footer {
  padding: 0px;
  margin: 0px;
}

div#app {
  display: flex;
  min-height: calc(100vh - 120px);
  gap: 0;
}

.header-container {
  background: linear-gradient(135deg, #1a3c6e 0%, #2c6fce 100%);
  padding: 28px 40px;
  color: #fff;
}

#page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
}

#page-subtitle {
  margin: 4px 0 0 0;
  font-size: 13px;
  opacity: 0.75;
  letter-spacing: 1px;
}

#sidebar {
  width: 300px;
  min-width: 300px;
  background: #f0f3f8;
  padding: 24px 18px;
  box-sizing: border-box;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

#profile-card {
  text-align: center;
}

#photo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

#profile-name {
  margin: 8px 0 4px 0;
  font-size: 22px;
  color: #1a1a1a;
}

#profile-degree {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #2c6fce;
  font-weight: 500;
}

#profile-divider {
  width: 40px;
  height: 2px;
  background: #2c6fce;
  margin: 0 auto 14px auto;
}

#profile-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.profile-info-item {
  font-size: 13px;
  color: #555;
  padding: 4px 0;
  line-height: 1.6;
}

.info-label {
  color: #888;
}

.info-value {
  color: #333;
  font-weight: 500;
}

#contact-title,
#skills-title {
  font-size: 15px;
  color: #1a3c6e;
  margin: 0 0 10px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e8ecf2;
}

#contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #555;
  padding: 5px 0;
  gap: 8px;
}

.contact-icon {
  flex-shrink: 0;
  font-size: 14px;
}

.contact-value {
  word-break: break-all;
}

#skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-item {
  font-size: 13px;
  color: #555;
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.skill-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: #2c6fce;
  border-radius: 50%;
}

#main-content {
  flex: 1;
  padding: 24px 28px;
  background: #fafbfc;
  overflow-y: auto;
}

.content-card {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.section-title {
  font-size: 17px;
  color: #1a3c6e;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #2c6fce;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 40px;
  height: 2px;
  background: #1a3c6e;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  position: relative;
}

.timeline-item + .timeline-item {
  border-top: 1px dashed #e8ecf2;
  margin-top: 4px;
  padding-top: 12px;
}

.timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2c6fce;
  margin-top: 5px;
  border: 2px solid #e0e7f5;
}

.timeline-content {
  flex: 1;
}

.timeline-date {
  font-size: 12px;
  color: #2c6fce;
  font-weight: 600;
}

.timeline-title {
  margin: 2px 0 2px 0;
  font-size: 14px;
  color: #1a1a1a;
  font-weight: 600;
}

.timeline-desc {
  margin: 1px 0 0 0;
  font-size: 13px;
  color: #777;
}

#courses-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-tag {
  display: inline-block;
  padding: 5px 14px;
  background: #eef3fb;
  color: #2c6fce;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

#self-eval-text {
  margin: 0;
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 767px) {
  div#app {
    flex-direction: column;
  }

  #sidebar {
    width: 100%;
    min-width: unset;
    padding: 16px 12px;
  }

  #main-content {
    padding: 16px 12px;
  }

  .header-container {
    padding: 20px 16px;
  }

  #page-title {
    font-size: 22px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }
}
