body {
  font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
    "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  justify-content: space-between;
  align-items: center;
  background: #f5f8fa;
  padding: 16px 40px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 32px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.navbar.navbar-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-100%);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 16px;
}

.nav-btn {
  background: #1976d2;
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  outline: none;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
}

.nav-btn:hover,
.nav-btn:focus {
  background: #1565c0;
  color: #e3f2fd;
}

.hamburger {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  position: fixed;
  top: 16px;
  right: 40px;
  z-index: 1100;
  background: #1976d2;
  color: #fff;
  padding: 8px 20px;
  border-radius: 24px;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 1px 4px rgba(25, 118, 210, 0.08);
}

.hamburger.hamburger-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-offset {
  height: 5.5rem;
}

main {
  width: 50%;
  margin: auto;
  padding: 0 1em;
  box-sizing: border-box;
  min-width: 300px;
  max-width: 900px;
}

/* MOBILE STYLES */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
  }

  .navbar.navbar-hidden {
    transform: translateY(-100%);
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    gap: 12px; /* matching here */
    width: 100%;
  }

  .nav-left {
    margin-bottom: 12px; /*match gap above*/
  }

  .hamburger {
    right: 16px;
    top: 16px;
  }

  .header-offset {
    height: 4.5rem;
  }

  main {
    width: 90%;
    max-width: 700px;
    min-width: auto;
  }
}

h1 {
  margin: 0;
}

main {
  width: 100%;
  max-width: 700px;
  min-width: 300px;
  margin: auto;
  padding: 0 1em;
  box-sizing: border-box;
}

.cv-inner-section {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 1.5em;
  margin-bottom: 1.5em;
  font-family: "Segoe UI", Arial, sans-serif;
}

.cv-inner-extra {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid #e0e0e0;
}

.cv-inner-section-title {
  font-weight: bold;
  font-size: 1.1em;
  color: #1a237e;
}

.cv-inner-section-place {
  font-size: 1.05em;
  color: #333;
}

.cv-inner-section-date {
  font-size: 0.95em;
  color: #607d8b;
  white-space: nowrap;
}

.cv-inner-section-description {
  font-size: 1em;
  color: #333;
  line-height: 1.5;
}
