html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #f9f9f9;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body > .container {
  flex: 1 0 auto;
}

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

footer {
  flex-shrink: 0;
  background-color: #0d0d0d;
  color: #fff;
  padding: 2rem 0;
}

footer a,
footer li,
footer p,
footer h5,
footer small {
  color: #fff !important;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
  border-bottom: 1px solid #dee2e6;
}

.navbar-brand {
  color: #0d6efd !important;
}

.navbar-nav .nav-link {
  color: #212529;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  font-weight: 600;
  color: #0d6efd;
}

#logo {
  width: 6rem;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  border-radius: 0.5rem;
}

.btn-outline-primary {
  color: #0d6efd;
  border-color: #0d6efd;
  border-radius: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline-primary:hover {
  background-color: #0d6efd;
  color: white;
}

.btn-outline-secondary {
  color: #343a40;
  border-color: #343a40;
  border-radius: 0.5rem;
  transition: background-color 0.3s, color 0.3s;
}

.btn-outline-secondary:hover {
  background-color: #343a40;
  color: white;
}

#detail-image {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

section.py-5.bg-light.text-center.border-bottom {
  /* Hero Section Styles */
  background-color: #f8f9fa;
}

.card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);}

.card-img-top {
  height: 180px;
  object-fit: cover;
}

.card-text.text-truncate {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#cards-container .col {
  margin-bottom: 1.5rem;
}

.text-center.mt-4 {
  margin-top: 2rem !important;
}

/* Add smooth scrolling pop-out effect */
.pop-out {
  animation: popOut 1s ease forwards;
}

.pop-out {
  animation: pop 1s ease;
}

@keyframes pop {
  0% { transform: scale(1); background-color: rgba(255, 255, 0, 0.2); }
  50% { transform: scale(1.02); background-color: rgba(255, 255, 0, 0.4); }
  100% { transform: scale(1); background-color: transparent; }
}


/* Sticky sidebar styling */
.position-sticky {
  top: 2rem;
}

/* Recent posts list */
#recent-posts a {
  color: inherit;
}

#recent-posts img {
  border-radius: 6px;
  margin-right: 12px;
  width: 80px;
  height: 60px;
  object-fit: cover;
}

/* Hero Section Background Image */
section.hero {
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  padding: 5rem 0;
}
.navbar-nav .nav-link {
  color: #212529;
}