.Ecam_cat {
  text-align: center;
}
.sec-popularexams {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card {
  flex: 1 1 200px; /* adjust the width of each card here */
  margin: 5px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  transition: all 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-inner p {
  font-size: 10px;
  font-weight: bold;
  margin-bottom: 5px;
}

.eximg-group {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.eximg-box {
  width: 100px;
  height: 110px;
  border-radius: 50%;
  background-color: #fff;
  padding: 10px;
  display: inline-block;
  margin-bottom: 10px;
}

.eximg-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Media queries */
@media (max-width: 768px) {
  .card {
    flex: 1 1 150px; /* adjust the width of each card here */
  }
}

@media (max-width: 480px) {
  .card {
    flex: 1 1 100px; /* adjust the width of each card here */
  }
  .eximg-box {
    width: 80px;
    height: 80px;
  }
  .eximg-box img {
    width: 100%;
    height: 100%;
  }
}

/* test */

body {
  font-family: "Arial", sans-serif;
  background-color: #f2f2f2;
}

.container {
  margin-top: 30px;
}

h2,
h3 {
  font-weight: bold;
  color: #333;
}

.card {
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 15px;
  font-weight: bold;
}

.card-body {
  padding: 20px;
}

.text-center {
  text-align: center;
}

p {
  margin: 0;
  font-size: 16px;
  color: #555;
}

@media (max-width: 768px) {
  .row {
    display: block;
  }

  .col-md-4 {
    width: 100%;
    margin-bottom: 10px;
  }
}
