/* =========================
   General Layout
   ========================= */
.legacy-dashboard-wrapper {
  padding: 60px 20px;
  max-width: 1200px;
  margin: auto;
}

.legacy-dashboard-title {
  text-align: center;
  font-size: 3rem;
  color: #000 !important;
  margin-bottom: 40px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  
}

/* =========================
   Search Form Styles
   ========================= */
.legacy-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.legacy-search-form input {
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 4px;
  flex: 0!important;
  min-width: 180px;
  box-sizing: border-box;
  height: 38px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.legacy-search-form button[type="submit"] {
  background-color: #000000;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 100px!important;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  height: 40px;
  line-height: 1;
  white-space: nowrap;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size:14px!important;
}



/* Reset Button */
.legacy-search-form .legacy-reset {
  background-color: #ECECEC;
  color: #000000;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  display: block !important;
  text-align: center;
  box-sizing: border-box;
  border: none;
  margin-top: 0px;
  margin-left: 0;
  margin-right: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}



/* =========================
   No Results Message
   ========================= */
.legacy-no-results {
  font-size: 1.2rem;
  font-weight: 500;
  color: #555;
  text-align: left;
  max-width: 600px;
  margin: 40px auto 0;
  line-height: 1.5;
  word-break: break-word;
}

/* =========================
   Legacy Grid
   ========================= */
.legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .legacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .legacy-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Legacy Card
   ========================= */
.legacy-card {
  background: #fff;
  border-radius: 10px;
  /* 👈 Forces a perfect square */
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.2s ease;
}

.legacy-card:hover {
  transform: translateY(-5px);
}

.legacy-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.legacy-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1; /* optional here, just for clarity */
  background-color: #ffffff; /* move grey here instead */
  display: block;
}


.legacy-placeholder {
  font-size: 1.5rem;
  color: #aaa;
}

.legacy-icon {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fdd228;
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 10;


}



.legacy-card-name {
  padding: 12px 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;

  
}

/* =========================
   Responsive Overrides
   ========================= */
@media (max-width: 768px) {
  .legacy-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .legacy-search-form input,
  .legacy-search-form button[type="submit"],
  .legacy-search-form .legacy-reset {
    width: 100%;
  }
  .legacy-search-form .legacy-reset {
 
    margin-top: 0px;
    
  }

  
}

@media (min-width: 768px) {
  .legacy-search-form button[type="submit"] {
    width: auto;
    align-self: center;
    margin-left: auto;
  }
}





