.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.card {
  position: relative; overflow: hidden; width: 180px; height: 220px; 
  border: none; border-radius: 20px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); 
  display: flex; flex-direction: column; align-items: center; justify-content: center; 
  text-decoration: none; color: #333; font-size: 1rem; transition: transform 0.2s, box-shadow 0.2s; 
  padding: 15px; box-sizing: border-box; text-align: center; background-size: 200% 200%; 
  animation: gradientAnimation 8s ease infinite;
}
@keyframes gradientAnimation { 0% { background-position: 0% 50%; } 
  50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; }
}
.card:active::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; 
  background: rgba(255, 255, 255, 0.3); border-radius: 50%; transform: translate(-50%, -50%); 
  animation: ripple 0.6s linear;
}
@keyframes ripple { to { width: 200%; height: 200%; opacity: 0; } }
.card:active { animation: clickAnimation 0.3s cubic-bezier(.68,-0.55,.27,1.55); }
@keyframes clickAnimation { 0% { transform: scale(1); } 50% { transform: scale(0.95); } 100% { transform: scale(1); } }
.card.electric { background: linear-gradient(135deg, #66c2ff, #3385ff); }
.card.software { background: linear-gradient(135deg, #b39ddb, #9575cd); }
.card.chemical { background: linear-gradient(135deg, #ffeedd, #ffcbb3); }
.card.management { background: linear-gradient(135deg, #f5d7c3, #f8cfa3); }
.card.english { background: linear-gradient(135deg, #c3f9d3, #e0ffb3); }
.card.herbal { background: linear-gradient(135deg, #81c784, #66bb6a); }
.card.industries { background: linear-gradient(135deg, #90a4ae, #78909c); }
.card.datamining { background: linear-gradient(135deg, #ffb74d, #ff9800); }
.card:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); }
.card img { width: 60px; height: 60px; margin-bottom: 10px; }
@media (max-width: 768px) { .card { width: 45%; height: 150px; } }
.imgBig{border-radius: 6px; width: 100%; height: auto;}