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

.container {
  flex: 1;
}

/* Navbar */
.navbar {
  height: 5rem;
  background-color: white;
}

.nav-link {
  color: #1a3566;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, #f4fcfd, #e6f4fb);
  border-top: 1px solid #d5ecf5;
  padding: 1.35rem 1rem 0.75rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-title {
  margin: 0;
  font-weight: 800;
  color: #1a3566;
}

.footer-tagline {
  margin: 0.25rem 0 0;
  color: #56708e;
  font-size: 0.92rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-socials a {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  color: #1a3566;
  border: 1px solid #d8ebf3;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.footer-socials a:hover {
  background-color: #13b5c7;
  color: #ffffff;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0.9rem auto 0;
  padding-top: 0.65rem;
  border-top: 1px solid #d5ecf5;
  text-align: center;
  color: #5b7290;
}

/* 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-size: 400 !important;
}

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

/* Card effect */
.card-img-overlay {
  opacity: 0;
}

.card-img-overlay:hover {
  opacity: 0.2;
  background-color: white;
}

/* New-page */
.add-btn {
  background-color: #13b5c7 !important;
  border: none !important;
  color: white !important;
}

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

/* Edit-page */
.edit-btn {
  background-color: #1a3566 !important;
  border: none !important;
  color: white !important;
}

.edit-btn:hover {
  background-color: #142a54 !important;
}

/* Show-page */
.show-img {
  height: 30vh;
}

.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.show-card {
  padding-right: 0;
  padding-left: 0;
}

/* Back navigation */
.page-back-wrap {
  margin-top: 0.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: #1a3566;
  font-weight: 600;
  transition: color 0.2s ease;
}

.back-link i {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #e8f7f9;
  color: #13b5c7;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

/* Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
  /* Navbar */
  .navbar {
    height: auto;
    padding: 0.5rem 0;
  }

  .navbar .search-input {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .navbar .d-flex {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .navbar .d-flex .form-control {
    margin-right: 0 !important;
    margin-bottom: 0.4rem;
  }

  .navbar .d-flex .search-btn {
    width: 100%;
  }

  .navbar-nav {
    padding: 0.5rem 0;
  }

  /* Footer */
  .site-footer {
    padding: 1rem 0.85rem 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    gap: 0.75rem;
  }

  /* Cards */
  .listing-card {
    margin-bottom: 1.5rem;
  }

  .card-img-top {
    border-radius: 0.75rem !important;
  }

  /* Show page */
  .show-img {
    height: auto;
    max-height: 50vh;
  }

  .btns .btn {
    flex: 1;
    min-width: 80px;
  }

  /* Review cards */
  .row .card.col-5 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0 !important;
  }
}

/* Medium devices (tablets, 576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
  .navbar {
    height: auto;
  }

  .navbar .d-flex {
    flex-direction: row;
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .show-img {
    height: auto;
    max-height: 50vh;
  }

  .row .card.col-5 {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: 0 !important;
  }
}

/* Tablet landscape (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .show-img {
    height: 35vh;
  }

  .row .card.col-5 {
    width: 48% !important;
  }
}
