.topbar {
  position: relative;
  width: 100%;
  z-index: 1030;
  background-color: #0d6efd;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}
.topbar a {
  color: #fff;
  font-weight: 500;
  margin-left: 0.3rem;
  text-decoration: underline;
}

.navbar.sticky-nav {
  position: relative;
  width: 100%;
  z-index: 1020;
  background-color: #fff;
  transition: all 0.3s ease;
}

.navbar.sticky-nav.fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.nav-open .navbar-collapse {
  display: none !important;
}
body {
  margin: 0;
  padding-top: 0;
  transition: padding-top 0.3s ease;
}

/* Modern Tabs */
.modern-tabs {
  border-bottom: 2px solid #e0e0e0;
}
.modern-tabs .nav-link {
  color: #555;
  font-weight: 500;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color 0.3s;
  border: none;
  background: none;
}
.modern-tabs .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 3px;
  background-color: #0d6efd;
  transition: width 0.3s;
  border-radius: 2px;
}
.modern-tabs .nav-link:hover::after,
.modern-tabs .nav-link.active::after {
  width: 100%;
}
.modern-tabs .nav-link.active {
  color: #0d6efd;
}

  .grid {
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
  }
  .grid-item {
    width: calc(33.333% - 10px);
    margin-bottom: 10px;
    box-sizing: border-box;
    float: left;
  }
  .grid-item img, .grid-item video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
  }
  @media (max-width: 768px) {
    .grid-item {
      width: calc(50% - 10px);
    }
  }
  @media (max-width: 480px) {
    .grid-item {
      width: 100%;
    }
    .sticky-nav.navbar {
      padding-top: 0 !important;
      padding-bottom: 0 !important;
    }
  }

  .video-cover {
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.video-cover img {
  width: 100%;
  display: block;
  border-radius: 4px;
}

.video-cover i.bi-play-circle-fill {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}
#modalVideo {
  max-width: 100vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  background: black;
  display: block;
  margin: 0 auto;
}