/*index page-hcard-grid - BUTTON HOVER FIXED */
.hcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  padding: 20px 0;
}

.hcard {
  padding: 20px;
  border: 1px solid #e1e5e9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border-color: #0056b3;
}

.hcard-content {
  display: flex;
  flex-direction: row;
  gap: 16px;
  text-align: left;
}

.hcard-image-text {
  display: flex;
  flex-direction: row;
  gap: 16px;
  width: 100%;
}

.hcard-image-container {
  flex-shrink: 0;
  padding: 4px 0;
}

.hcard-image {
  object-fit: cover;
  background: #f8f9fa;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease;
}

.hcard:hover .hcard-image {
  transform: scale(1.05);
}

.hcard-text-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.hcard-name {
  padding: 4px 0;
  height: 72px;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.95rem;
  margin: 0;
}

.hcard-shortdetails {
  display: flex;
  flex-direction: column;
  justify-content: left;
  color: #6c757d;
  padding: 4px 0;
  gap: 4px;
}

.hcard-shortdetails p {
  margin: 0;
  padding: 2px 0;
  font-size: 0.85rem;
  line-height: 1.3;
  border-bottom: 1px solid #f8f9fa;
}

.hcard-shortdetails p:last-child {
  border-bottom: none;
}

.hcard .btn-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  margin-top: auto;
  border-top: 1px solid #f1f3f4;
}

/* BASE BUTTON STYLES */
.hcard .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  border: 1px solid;
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  min-width: 80px;
  text-align: center;
  flex: 1;
}

/* QUOTE BUTTON */
.hcard .quote-btn {
  border-color: #28a745;
  color: #28a745;
  background-color: #ffffff;
}

.hcard .quote-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #28a745;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.hcard .quote-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.hcard .quote-btn:hover::before {
  transform: scaleX(1);
}

/* VIEW BUTTON */
.hcard .view-btn {
  border-color: #0056b3;
  color: #0056b3;
  background-color: #ffffff;
  text-align: center;
}

.hcard .view-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0056b3;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: -1;
}

.hcard .view-btn:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 86, 179, 0.2);
}

.hcard .view-btn:hover::before {
  transform: scaleX(1);
}

/* FOCUS STATES */
.hcard .btn:focus {
  outline: none;
  box-shadow: none; /* Completely remove focus indicator */
}

.hcard .btn:active {
  transform: translateY(0);
}

/* DISABLED STATE */
.hcard .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.hcard .btn:disabled:hover::before {
  transform: scaleX(0);
}

.hcard .btn:disabled:hover {
  color: inherit;
  background-color: #ffffff;
}

/* Responsive design */
@media (max-width: 768px) {
  .hcard-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  
  .hcard {
    padding: 16px;
    gap: 12px;
  }
  
  .hcard-image-text {
    gap: 12px;
  }
  
  .hcard-image {
    width: 80px;
    height: 80px;
  }
  
  .hcard-name {
    height: 60px;
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .hcard .btn-container {
    gap: 8px;
  }
  
  .hcard .btn {
    padding: 8px 12px;
    font-size: 0.7rem;
    min-width: 70px;
  }
}

@media (max-width: 480px) {
  .hcard-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .hcard-image-text {
    flex-direction: column;
    text-align: center;
  }
  
  .hcard-image-container {
    align-self: center;
  }
  
  .hcard-image {
    width: 120px;
    height: 120px;
  }
  
  .hcard-text-container {
    text-align: center;
  }
  
  .hcard .btn-container {
    flex-direction: column;
  }
  
  .hcard .btn {
    width: 100%;
  }
}