body{
  font-family: "Plus Jakarta Sans" !important;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  flex: 1;
}

/* .navbar{
  height: 5rem;
  z-index: 1;
  background-color: #fff;
}

.nav-link{
  color: #222222 !important;
} */

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  padding: 0.8rem 2rem;
  z-index: 10000000000000000000000000000000000;
}

.navbar-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #fe424d !important;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  margin: 0 0.8rem;
  color: #495057 !important;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fe424d !important;
}

.search-bar input {
  border-radius: 2rem;
  border: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
  min-width: 250px;
}

.search-bar button {
  border-radius: 50%;
  margin-left: -2.5rem;
  background: #fe424d;
  border: none;
  color: #fff;
}


/* footer */
.f-info-links a {
  text-decoration: none;
  color: #222222;
}
.f-info-links a:hover {
  text-decoration: underline;
  color: blue;
}

/* cards */
.listing-card {
  border: none !important;
  margin-bottom: 2rem;
}

.card-img-top {
  /* border-radius: 1rem !important; */
  width: 100% !important;
  object-fit: cover !important;
}

.card-body {
  padding: 0 !important;
}

.card-text p {
  font-weight: 400;
}

.listing-link {
  text-decoration: none;
}

/* General reset */
.index-body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background-color: #f9fafb;
  color: #212529;
}

/* Blog cards */
/* Section Titles */
.section-title {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #212529;
  border-left: 5px solid #fe424d;
  padding-left: 0.75rem;
}

/* Blog cards (smaller, compact) */
.listing-card {
  border: none;
  border-radius: 0.8rem;
  overflow: hidden;
  transition: all 0.3s ease;
  background: #fff;
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card-img-top {
  height: 150px;       /* reduced height */
  object-fit: cover;
}

.card-body {
  padding: 0.75rem !important;
}

.card-title {
  font-size: 1rem;     /* smaller title */
  margin-bottom: 0.3rem;
}

.card-text {
  font-size: 0.85rem;  /* smaller text */
  color: #6c757d;
}

.listing-card {
  border: none !important;
  /* border-radius: 1rem; */
  transition: all 0.3s ease;
  background: #fff;
}

.listing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Image handling */
.img-container {
  position: relative;
  /* border-radius: 1rem 1rem 0 0; */
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.img-container:hover .card-img-top {
  transform: scale(1.05);
}

/* Overlay effect */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(254, 66, 77, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-text {
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.img-container:hover .overlay {
  opacity: 1;
}

/* Card body */
.card-body {
  padding: 1rem !important;
}

.card-title {
  font-size: 1.2rem;
  line-height: 1.4;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6c757d;
}

/* Links */
.listing-link {
  text-decoration: none;
  color: inherit;
}

/* Add new blog button */
.add-btn {
  background-color: #fe424d !important;
  border: none !important;
  color: #fff !important;
  padding: 0.6rem 1.2rem;
  /* border-radius: 0.5rem; */
  transition: background 0.3s ease;
}

.add-btn:hover {
  background-color: #e73c46 !important;
}

/* Show page image */
.show-img {
  height: 40vh;
  width: 100%;
  object-fit: cover;
  /* border-radius: 1rem; */
}

.like-btn {
  transition: transform 0.2s ease-in-out;
}
.like-btn:hover {
  transform: scale(1.1);
}

.blog-card {
  transition: transform 0.3s ease;
}

.like-btn.pop {
  animation: popHeart 0.3s forwards;
}

.blog-card {
  transition: transform 0.3s ease;
}

.like-btn.pop {
  animation: popHeart 0.3s forwards;
}

@keyframes popHeart {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.like-btn.liked {
  cursor: default;
  color: red; /* filled heart when liked */
  font-weight: bold;
}
