
.papertitle {
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.name {
  padding-top: 20px;
  margin: 0;
  font-size: var(--text-xlarge);
  font-weight: 700;
}

/* Category headers */
.project-category h2 {
  font-size: 1.4em;
  margin: 0;
  font-weight: 700;
  color: #222;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
}

.hero-section {
  width: 100%;
  display: flex;
  gap: 2.5%;
  flex-wrap: wrap;
  align-items: stretch;
}

.hero-content {
  flex: 1;
  min-width: 250px;
  padding: 2.5%;
}

.hero-image {
  flex: 0 0 40%;
  padding: 2.5%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.section-header {
  padding: 20px;
}

.miscellaneous-section {
  width: 100%;
}

.footer-section {
  padding: 20px;
  text-align: right;
  font-size: small;
}

/* Top navigation bar */
.top-navbar {
  position: sticky;
  top: 0;
  background: #e9f7f5;
  border: 2px solid var(--accent-color, #2b7a78);
  border-radius: 8px;
  z-index: 100;
  padding: 8px 18px;
  box-shadow: 0 6px 18px rgba(43,122,120,0.06);
  margin: 12px 0;
}
.navbar-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
}
.navbar-portfolio {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.navbar-portfolio a {
  color: var(--color-link);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 650;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s, transform 0.06s;
}
.navbar-portfolio a:hover {
  color: var(--color-link-hover);
  background: rgba(43,122,120,0.06);
  transform: translateY(-1px);
}
.navbar-portfolio a + a::before {
  content: '';
  display: inline-block;
  width: 1px;
  height: 16px;
  background: rgba(43,122,120,0.18);
  margin: 0 10px 0 10px;
  vertical-align: middle;
  border-radius: 1px;
}
@media (max-width: 768px) {
  .top-navbar { margin: 8px 0; padding: 8px 12px; }
  .navbar-content { justify-content: center; gap: 10px; }
  .navbar-portfolio {gap: 8px;}
  .navbar-portfolio a {font-size: 0.9rem;}
  .navbar-portfolio a + a::before {display: none;}
}

/* Contact section styles */
.contact-section { border-top: 1px solid #eee; padding: 28px 0; background: #fff; }
.contact-section > div {
  margin-left: auto;
  margin-right: 0;
  text-align: right;
}
.contact-section .contact-links {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-link);
}
.contact-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  fill: currentColor;
  transition: transform 0.12s, color 0.12s;
}
.contact-icon:hover {
  color: var(--accent-color, #2b7a78);
  transform: translateY(-3px);
}

/* Other Pages section wrapper */
.other-pages-section {
  border-top: 1px solid #eee;
  padding: 40px 20px;
  background: #fff;
  margin-top: 40px;
}
.other-pages-container {
  max-width: 1100px;
  margin: 0 auto;
}
.other-pages-title {
  text-align: center;
  margin-bottom: 30px;
}
.other-pages-title h2 {
  font-size: 1.8em;
  margin: 0 0 10px 0;
  color: #333;
}
.other-pages-title p {
  color: #666;
  font-size: 1.05em;
  margin: 0;
}

/* Portfolio section styling */
.portfolio-title {
  font-size: 2.4em;
  font-weight: 700;
  margin: 0;
  padding-bottom: 10px;
}

.portfolio-hint {
  font-size: 0.95em;
  color: #666;
  font-style: italic;
  margin: 5px 0 0 0;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 9999;
  border-radius: 4px;
}

/* Hover control button */
.hover-controls {
  margin-top: 8px;
}
.hover-toggle {
  background: #fff;
  border: 1px solid #ddd;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95em;
}
.hover-toggle:hover,
.hover-toggle:focus {
  background: #f5f5f5;
  outline: none;
}

/* News section styling (compact list) */
.news-section {
  width: 100%;
  margin: 24px 0 12px 0;
  padding: 0 20px;
  background: transparent;
}

.news-section h2 {
  margin: 0 0 12px 0;
  font-size: 1.4em;
  color: #333;
}

.news-item {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  margin: 0;
  background: transparent;
  border-radius: 0;
  border-left: none;
  border-bottom: 1px solid #eee;
}

.news-item:hover {
  background: rgba(0,0,0,0.02);
}

.news-date {
  flex-shrink: 0;
  font-weight: 600;
  color: #444;
  min-width: 110px;
  font-size: 0.9em;
}

.news-content h3 {
  margin: 0;
  font-size: 1.02em;
  line-height: 1.4;
}

.news-content p {
  margin: 2px 0 0 0;
  color: #666;
  font-size: 0.92em;
}

@media (max-width: 768px) {
  .news-date {
    min-width: 90px;
    font-size: 0.85em;
  }
  .news-content h3 {
    font-size: 1em;
  }
  .news-content p {
    font-size: 0.9em;
  }
}

/* Links section - full width centered */
.links-section {
  width: 100%;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
  padding: 30px 0;
  margin: 20px 0;
  text-align: center;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

/* Hero section link styling */
.hero-links {
  text-align: center;
  margin: 0 0 12px 0;
  font-size: 1em;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 0 20px;
}

.hero-links a {
  display: inline;
  transition: all 0.2s ease;
}

.hero-links a:hover {
  text-decoration: underline;
  font-weight: 600;
  transform: scale(1.02);
}

.hero-portfolio-links {
  text-align: center;
  margin: 0;
  font-size: 0.95em;
  font-style: italic;
  color: #666;
  padding: 0 20px;
}

.hero-portfolio-links a {
  display: inline;
  transition: all 0.2s ease;
  font-size: 1.25em;
  font-weight: 500;
}

.hero-portfolio-links a:hover {
  text-decoration: underline;
  color: var(--color-link);
  font-weight: 600;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
  }

  .hero-image {
    flex: 1;
    width: 100%;
  }
}