.experts{
    color: var(--dark);
}

.experts h1{
    text-align: center;
    font-size: 50px;
    font-weight: 500;
    margin-bottom: 5rem;
}

.experts .profile{
    width: 50%;
    align-items: flex-start;
}

.experts .pic{
    width: 100%;
}

.experts .pic img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2rem;
}

.experts .info{
    width: 70%;
    padding-left: 2rem;
}

.experts .icon{
    width: 70px;   
}

.experts h2{
    font-size: 30px;
    font-weight: 500;
    margin: 2rem 0;
}

.experts h3{
    font-size: 25px;
    font-weight: 300;
    margin: 2rem 0;
}


/*  Responsive */

@media screen and (max-width: 1200px){
    .experts .profiles{
        flex-direction: column;
    }
    .experts .profile{
        width: 100%;
    }
    .experts .profile:first-child{
        margin-bottom: 2rem;
    }
    .experts .pic{
        width: 45%;
    }
    .experts .profile:last-child{
        flex-direction: row-reverse;
    }
    .experts .info{
        padding-left: 3rem;
        width: 35%;
    }
    .experts .profile:last-child .info{
        margin-right: 5rem;
    }
    .experts h2{
        font-size: 35px;
    }
    .experts h3{
        font-size: 30px;
    }

}

@media screen and (max-width: 640px){
    .experts{
        margin-top: 5rem;
    }
    .experts h1{
        margin-bottom: 2rem;
        text-align: start;
        font-size: 40px;
    }
    .experts .profile:last-child{
        flex-direction: column;
    }
    .experts .profile{
        flex-direction: column;
    }
    .experts .pic{
        width: 100%;
    }
    .experts .info{
        width: 250px;
        padding: 0;
        padding-top: 2rem;
    }
    .experts .profile:last-child .info{
        margin: 0;
    }
    .experts .profile:first-child{
        margin: 0;
    }
}
/* --- Journal section responsive layout --- */
.experts .profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}

.experts .profile {
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  flex: 1 1 calc(50% - 40px); /* two columns */
  box-sizing: border-box;
}

.experts .profile .pic {
  flex: 0 0 46%;
  max-width: 46%;
  border-radius: 24px;
  overflow: hidden;
}

.experts .profile .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.experts .profile .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experts .profile .info h2.text {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(20px, 2vw, 28px);
}

.experts .profile .info h3 {
  margin: 0 0 12px 0;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
}

.experts .profile .info button {
  margin-top: auto;
  align-self: flex-start;
  background: #b388ff;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.25s ease;
}

.experts .profile .info button:hover {
  background: #9c6eff;
}

/* --- Tablet: reduce gap --- */
@media (max-width: 1024px) {
  .experts .profiles {
    gap: 24px;
  }
}

/* --- Mobile: stack vertically --- */
@media (max-width: 768px) {
  .experts .profile {
    flex: 1 1 100%;
    flex-direction: column;
    padding: 20px;
  }
  .experts .profile .pic {
    max-width: 100%;
    flex-basis: auto;
    height: 200px; /* fixed height for uniformity */
  }
  .experts .profile .pic img {
    height: 100%;
  }
}
