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

/* profile section  */

.profile-sec {
  background-color: #fff;
  padding: 20px 0px 40px 0px;
}

.profile-sec-container {
  margin: 0 auto;
  max-width: 95%;
  padding: 10px;
  display: flex;
  gap: 20px;
}

.profile-sec-container .filter-container {
  background-color: #f1f1f1;
  width: 400px;
  min-width: 400px;
  padding: 18px;
  border-radius: 6px;
}

.profile-sec-container .filter-container h2 {
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  font-family: "EB Garamond", serif;
}

/* Result Container  */

.profile-sec-container .result-container {
  width: 100%;
}

.profile-sec-container .result-container .result-wrapper h2 {
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}

/* results  */
.profile-sec-container .result-wrapper .results {
  border: 1px solid #dadada;
  padding: 28px;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.profile-sec-container .result-wrapper .results .profile {
  display: flex;
  gap: 20px;
  margin-bottom: 2rem;
}

.profile-sec-container .result-wrapper .results .profile img {
  margin-right: 20px;
  vertical-align: top;
  height: 300px;
  width: 300px;
  max-width: 300px;
  display: inline-block;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
}

.profile-sec-container .result-wrapper .results .profile .details {
  width: 100%;
}

.profile-sec-container .result-wrapper .results .profile .name {
  font-size: 36px;
  line-height:38px;
  text-decoration: none;
  color: #8224e3;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.profile-sec-container .result-wrapper .results .profile button {
  padding: 8px;
  min-width: 132px;
  width: 132px;
  background-color: #8224e3;
  color: #ffffff;
  border: none;
  border-radius: 4px;
}

.profile-sec-container .result-wrapper .results .profile .position {
  font-size: 20px;
  margin-bottom: 1.6rem;
  font-weight: 500;
  font-style: italic;
}

.profile-sec-container .result-wrapper .results .profile .other-details {
  display: flex;
  align-items: center;
  color: #444444;
  font-size: 20px;
}

.profile-sec-container .result-wrapper .results .profile .other-details svg {
  width: 20px;
  height: 20px;
  fill: #444444;
  margin-right: 8px;
}

.profile-sec-container .result-wrapper .results .profile .other-details label {
  font-weight: 600;
  margin-right: 8px;
}

.profile-sec-container .result-wrapper .results .profile .other-details span a {
  color: #8224e3;
}

/* Afflilations */
.profile-sec-container .result-wrapper .results .Afflilations {
  margin-bottom: 2rem;
}

.profile-sec-container .result-wrapper .results .Afflilations h4 {
  color: #334155;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.profile-sec-container .result-wrapper .results .Afflilations h4 span {
  background-color: #fff;
  position: relative;
  z-index: 10;
  padding: 0px 14px;
  font-weight: 600;
}

.profile-sec-container .result-wrapper .results .Afflilations h4::after {
  content: "";
  border-bottom: 1px solid #000;
  width: 100%;
  display: block;
  position: absolute;
  top: 50%;
  z-index: 0;
}

.profile-sec-container .result-wrapper .results .Afflilations .details {
  font-weight: 400;
  font-size: 20px;
  color: #334155;
}

.profile-sec-container .result-wrapper .results .Afflilations .details label {
  font-weight: 700;
}

/* Focus Areas */
.profile-sec-container .result-wrapper .results .focus-areas {
  margin-bottom: 2rem;
}

.profile-sec-container .result-wrapper .results .focus-areas h4 {
  color: #334155;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.profile-sec-container .result-wrapper .results .focus-areas h4 span {
  background-color: #fff;
  position: relative;
  z-index: 10;
  padding: 0px 14px;
  font-weight: 600;
}

.profile-sec-container .result-wrapper .results .focus-areas h4::after {
  content: "";
  border-bottom: 1px solid #000;
  width: 100%;
  display: block;
  position: absolute;
  top: 50%;
  z-index: 0;
}

.profile-sec-container .result-wrapper .results .focus-areas .details {
  font-weight: 400;
  font-size: 20px;
  color: #334155;
}

/* profile-details */
.profile-sec-container .result-wrapper .results .profile-details {
  margin-bottom: 2rem;
}

.profile-sec-container .result-wrapper .results .profile-details h4 {
  color: #334155;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 10;
}

.profile-sec-container .result-wrapper .results .profile-details h4 span {
  background-color: #fff;
  position: relative;
  z-index: 10;
  padding: 0px 14px;
  font-weight: 600;
}

.profile-sec-container .result-wrapper .results .profile-details h4::after {
  content: "";
  border-bottom: 1px solid #000;
  width: 100%;
  display: block;
  position: absolute;
  top: 50%;
  z-index: 0;
}

.profile-sec-container .result-wrapper .results .profile-details .details {
  font-weight: 400;
  font-size: 20px;
  color: #334155;
}

.profile-sec-container .result-wrapper .results .profile-details .details a {
  color: #8224e3;
}

.profile-sec-container .result-wrapper .video-player {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 0;
  padding-bottom: 56.23%;
  overflow: hidden;
}

.profile-sec-container .result-wrapper .video-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1300px) {
  .profile-sec-container .result-wrapper .results .profile img {
    height: 250px;
    width: 250px;
  }

  .profile-sec-container .result-wrapper .results .profile .name {
    font-size: 30px;
  }
}

@media (max-width: 1130px) {
  .profile-sec-container .result-wrapper .results .profile {
    flex-direction: column;
  }

  .profile-sec-container .result-wrapper .results .profile img {
    margin: auto;
  }
}

@media (max-width: 900px) {
  .profile-sec-container {
    flex-direction: column;
  }

  .profile-sec-container {
    gap: 34px;
  }
}

@media (max-width: 800px) {
  .profile-sec-container .result-wrapper .results .profile .name {
    flex-direction: column;
	align-items:start;
  }
	.profile-sec-container .result-wrapper .results .profile button {
		width: 100%;
	}
}


/* Modal  */
.profile-sec-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.profile-sec-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 48px 20px 30px 20px;
  text-align: center;
  width: 100%;
  max-width: 700px; /* wider modal */
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  animation: profileSecModalAnimation 0.3s ease;
}

/* Profile image inside modal */
.profile-sec-modal-content img {
  max-width: 100%;
  max-height: 350px; /* prevent it from being too tall */
  width: auto;
  height: auto;
  margin-bottom: 20px;
  border-radius: 12px; /* use 50% if you want it circular */
  object-fit: contain;
}

/* Name and text */
.profile-sec-modal-content h3 {
  font-size: 1.5rem;
  margin: 10px 0;
  color: #222;
}

.profile-sec-modal-content p {
  font-size: 1rem;
  color: #555;
  margin: 5px 0;
}

/* Close button */
.profile-sec-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
  transition: color 0.2s;
}
.profile-sec-close:hover {
  color: #000;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .profile-sec-modal-content {
    max-width: 90%;
    padding: 48px 20px 20px 20px;
  }
  .profile-sec-modal-content img {
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .profile-sec-modal-content {
    padding: 48px 15px 15px 15px;
  }
  .profile-sec-modal-content img {
    max-height: 200px;
  }
  .profile-sec-modal-content h3 {
    font-size: 1.2rem;
  }
  .profile-sec-modal-content p {
    font-size: 0.9rem;
  }
}

/* Small fade animation */
@keyframes profileSecModalAnimation {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Close animation */
@keyframes profileSecModalCloseAnimation {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Add this when closing */
.profile-sec-modal.closing .profile-sec-modal-content {
  animation: profileSecModalCloseAnimation 0.3s ease forwards;
}
