/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}



/* Education Section */
.edu-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
}

.edu-container {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.edu-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  flex: 1 1 calc(33.333% - 30px);
  max-width: 350px;
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;       /* ✅ fills the width, crops if needed */
  object-position: top;    /* ✅ keeps the top part visible (heads/faces) */
}
.edu-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #2d2d62;
  margin: 20px 15px 10px;
}

.edu-card p {
  font-size: 15px;
  color: #333;
  padding: 0 20px 25px;
  line-height: 1.6;
}

.edu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 992px) {
  .edu-card {
    flex: 1 1 calc(50% - 30px);
  }
}

@media (max-width: 600px) {
  .edu-card {
    flex: 1 1 100%;
  }
}
