body {
  background: linear-gradient(to bottom, #d9d9d9, #ffffff);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding-top: 100px; 
}

.navbar-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.navbar-logos {
  display: flex;
  align-items: center;
  justify-content: center; 
  gap: 20px;
}

.navbar-left img {
  height: 70px;
}

.navbar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.navbar-center img {
  height: 65px;
}

.navbar-right {
  display: flex;
  align-items: center;
}

.navbar-right .search-box input {
  width: 180px;
}

.serch-button {
  border-radius: 999px;
  background-color: #162667;
  padding: 10px 16px;
  border: none;
  color: #ffffff;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease;
}

.serch-button:hover {
  background-color: #0f1c4f;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

footer img {
  height: 50px;
}

.center {
  margin: 0 auto;
}

.horizontal-grid-container {
  width: 90vw;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 1rem 0;
  scroll-behavior: smooth;
}

.horizontal-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(4, 1fr);
  gap: 1rem;
}

.horizontal-grid .card {
  width: 180px;
  flex-shrink: 0;
  display: grid;
}

.horizontal-grid .card h6 {
  color: #162667;      
  font-weight: 700;    
  font-family: 'PT Serif', serif; 
}

.card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card.highlight {
  box-shadow: 0 0 15px 4px rgba(22, 38, 103, 0.7);
  transform: scale(1.05);
}

.card.found {
  box-shadow: 0 0 25px 6px #162667;
  transform: scale(1.1);
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 25px 6px #162667;
  }
  to {
    box-shadow: 0 0 40px 10px #2a3aa5;
  }
}

.no-results {
  display: none;
  text-align: center;
  color: #162667;
  font-weight: bold;
  margin-top: 1rem;
}

.lazy-img {
  opacity: 0;
  transition: opacity 0.5s ease-in;
  filter: blur(5px);
}
.lazy-img.loaded {
  opacity: 1;
  filter: blur(0);
}

.highlighted-card {
  transform: scale(1.5);
  transition: transform 0.5s ease;
  z-index: 10;
  position: relative;
}

.hovered-card {
  transform: scale(1.5);          
  z-index: 20;                     
  position: relative;              
  box-shadow: 0 15px 30px rgba(0,0,0,0.4); 
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}



@media (max-width: 768px) {
  .navbar-fixed {
    flex-direction: column;
    height: auto;
    padding: 10px 1rem;
  }


  .navbar-logos {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    padding: 0 10px;
    margin-bottom: 10px;
  }

  .navbar-left img {
    height: 50px;
  }

  .navbar-center {
    position: static; 
    transform: none;  
  }

  .navbar-center img {
    height: 50px;
  }

 
  .navbar-right {
    width: 100%;
    display: flex;
    justify-content: center; 
    margin-top: 10px;        
  }

  .navbar-right .search-box {
    display: flex;
    flex-direction: row;     
    width: 90%;               
    max-width: 400px;         
    gap: 5px;                
  }

  .navbar-right .search-box input {
    flex: 1;                
    min-width: 0;
  }

  .navbar-right .search-box button {
    flex-shrink: 0;           
  }
}
