/* ════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d2d;
  background: #ffffff;
  display: flex;
  min-height: 100vh;
}

a {
  color: #5b7fa6;
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════
   SIDEBAR
════════════════════════════════════════════ */
.sidebar {
  width: 260px;
  min-width: 260px;
  background: #f9f9f9;
  border-right: 1px solid #e8e8e8;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-inner {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: none; /*2px solid #ccc;*/
  margin-bottom: 14px;
  background: #e8e8e8;
}

.sidebar-name {
  font-size: 1rem;
  font-weight: bold;
  color: #2d2d2d;
  margin-bottom: 4px;
  line-height: 1.4;
}

.sidebar-title {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 2px;
}

.sidebar-institution {
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 4px;
}

.sidebar-location {
  font-size: 0.77rem;
  color: #999;
}

.sidebar-location i { margin-right: 3px; font-size: 0.72rem; }

.sidebar-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  width: 100%;
  margin: 18px 0;
}

.social-links {
  list-style: none;
  width: 100%;
  text-align: left;
}

.social-links li { margin-bottom: 9px; }

.social-links a {
  font-family: 'Arial', sans-serif;
  font-size: 0.84rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.social-links a:hover {
  color: #5b7fa6;
  text-decoration: none;
}

.social-links i {
  width: 15px;
  text-align: center;
  font-size: 0.95rem;
  color: #888;
}

/* ════════════════════════════════════════════
   TOP NAV
════════════════════════════════════════════ */
.topnav {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  z-index: 50;
  display: flex;
  align-items: center;
  padding: 0 48px;
  gap: 0;
}

.topnav a {
  font-family: 'Arial', sans-serif;
  font-size: 0.84rem;
  color: #555;
  letter-spacing: 0.4px;
  padding: 14px 16px;
  display: block;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  text-decoration: none;
}

.topnav a:hover,
.topnav a.active {
  color: #2d2d2d;
  border-bottom-color: #2d2d2d;
}

/* ════════════════════════════════════════════
   MAIN CONTENT
════════════════════════════════════════════ */
.main-content {
  margin-left: 260px;
  width: calc(100% - 260px);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-body {
  padding: 52px 64px;
  max-width: 1100px;
}

/* ════════════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════════ */
.page-title {
  font-size: 1.9rem;
  color: #2d2d2d;
  font-weight: normal;
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.section-heading {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #999;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8e8e8;
}

.page-body p {
  margin-bottom: 14px;
  color: #333;
}

.light { color: #777; font-size: 0.9rem; }

/* ════════════════════════════════════════════
   HOME
════════════════════════════════════════════ */
.banner-wrapper {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 36px;
}

.banner-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.banner-wrapper:hover .banner-caption {
  opacity: 1;
}

.banner-img {
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  display: block;
}

/* ════════════════════════════════════════════
   PUBLICATIONS
════════════════════════════════════════════ */
.pub-list {
  list-style: none;
  padding: 0;
}

.pub-item {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.pub-item:last-child { border-bottom: none; }

.pub-title {
  color: #2d2d2d;
}

.pub-meta {
  color: #555;
  font-size: 0.9rem;
  margin-top: 2px;
}

.pub-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.pub-links a {
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: #5b7fa6;
  border: 1px solid #c5d5e8;
  padding: 2px 9px;
  border-radius: 3px;
  transition: background 0.15s;
}

.pub-links a:hover {
  background: #edf2f8;
  text-decoration: none;
}

/* ════════════════════════════════════════════
   EDUCATION
════════════════════════════════════════════ */
.edu-list {
  list-style: none;
  padding: 0;
}

.edu-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.edu-list li:last-child { border-bottom: none; }

/* ════════════════════════════════════════════
   COURSES
════════════════════════════════════════════ */
.course-list {
  list-style: none;
  padding: 0;
}

.course-item {
  padding: 12px 0;
  /*border-bottom: 1px solid #f0f0f0;*/
  font-size: 0.95rem;
  line-height: 1.2;
}

.course-item:last-child { border-bottom: none; }

/* ════════════════════════════════════════════
   CV BUTTON
════════════════════════════════════════════ */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  background: #2d2d2d;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-download:hover {
  background: #444;
  text-decoration: none;
}

/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.site-footer {
  padding: 24px 64px;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  color: #bbb;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}

/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */
@media (max-width: 900px) {
  body { flex-direction: column; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
  }
  .main-content {
    margin-left: 0;
    width: 100%;  /* adicione esta linha */
  }
  .topnav { padding: 0 16px; flex-wrap: wrap; }
  .page-body { padding: 32px 24px; }
  .site-footer { padding: 20px 24px; }
}

/* ════════════════════════════════════════════
   CAROUSEL
════════════════════════════════════════════ */
.carousel {
  position: relative;
  width: 100%;
  margin-bottom: 36px;
}

.carousel-slide {
  display: none;
  position: relative;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 4px;
  display: block;
}

.carousel-caption {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-family: 'Arial', sans-serif;
  font-size: 0.78rem;
  padding: 4px 14px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.carousel:hover .carousel-caption {
  opacity: 1;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 4px 14px;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.2s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

.carousel-dots {
  text-align: center;
  padding: 10px 0 4px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: #555;
}