/* General styles */
body {
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 0;
}

.section {
  padding: 2rem 0;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
}

.col-sm-6,
.col-md-4 {
  flex: 1 1 calc(100% - 2rem);
}

@media (min-width: 576px) {
  .col-sm-6 {
    flex: 1 1 calc(50% - 2rem);
  }
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 1 1 calc(33.333% - 2rem);
  }
}

.card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  justify-content: space-between;
}

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}

.read-more {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: #005a9c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.read-more:hover,
.read-more:focus {
  background: #004b82;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  padding: 1rem;
  justify-content: center;
  align-items: center;
  outline: none;
  transition: opacity 0.3s ease-in-out;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  position: relative;
  margin: 60px auto;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-photo {
  width: 60px;
  height: 60px !important;
  border-radius: 50%;
  object-fit: cover;
}

.modal-degree {
  font-style: italic;
  color: #555;
}

.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0.5rem;
}

.close-modal:hover,
.close-modal:focus {
  color: #000;
}

@keyframes fadeIn {
  from { transform: translateY(-10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1rem;
  }

  .close-modal {
    top: 0.25rem;
    right: 0.5rem;
    font-size: 2rem;
  }
}
