#sidebar a.nav-link {
  transition: color 0.2s, background 0.2s;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
}

h2 {
  border-bottom: 2px solid #007bff;
  padding-bottom: 0.3rem;
  margin-bottom: 1.5rem;
}

#sidebar {
  min-height: 100vh;
  padding: 1rem;
  top: 0;
  left: 0;
  z-index: 1030;
  overflow-y: auto;
}

#sidebar .nav-link .menu-icon {
  font-size: 1.2em;
  margin-right: 1.2em;
  vertical-align: middle;
  color: inherit;
}

#sidebar a.nav-link.active {
  background-color: #007bff;
  color: white;
  border-radius: 5px;
}

.nav a.nav-link:hover {
  color: #007bff !important;
  background-color: transparent;
}

#sidebar .nav .nav-item {
  margin-bottom: 0.7em;
}

section {
  scroll-margin-top: 25px;
}

img.logo {
  height: 40px;
  margin-right: 10px;
}

img.logo {
  height: 40px;
  margin-right: 10px;
}

.badge-container {
  width: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 1 2px 6px rgba(0, 0, 0, 0.08);
  padding: 5px;
  height: auto;
  min-height: 150px; 
}

.badge-img {
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
  max-width: 100%;
  height: auto;
}

.badge-img:hover {
  transform: scale(1.05);
}

.container #about,#experience p {
  text-align: justify;
}

 #linkedin:hover {
  background-color: rgba(var(--bs-dark-rgb), var(--bs-bg-opacity)) !important;
  border-color: #007bff !important;
  color: #f8f9fa !important;
  transform: scale(1.05);
}

#btn-scroll-top {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 1rem;
}

#certificateImage {
  pointer-events: none;
  user-select: none;
}

.btn-close-white {
  filter: invert(1) brightness(150%);
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.btn-close-white:hover {
  opacity: 1;
}

@media (max-width: 576px) {
  #courses-list .col-6,
  #certification-list .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .badge-img {
    max-width: 50%;
  }
}
