/* Team Section Styles (clean, centered for desktop) */

.team-section {
  width: 100%;
  max-width: 1010px;
  box-sizing: border-box;
  position: relative;
  height: auto;
}

.team-flex {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  width: 100%;
}


.team-members {
  display: flex;
  flex: 2 1 0;
  gap: 1rem;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.member-card {
  background: hsl(38, 100%, 90%);
  padding: 1.2rem 1rem 1.5rem 1rem;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  flex: 1 1 0;
  min-width: 0;
  width: calc((100% - 2rem) / 3);
  display: flex;
  flex-direction: column;   
  align-items: center;
  margin: 0;
}

/* Card media with expandable control */
.card-media {
  position: relative;
  margin-left: -4px;
  width: auto;
  border-radius: 12px;
  margin-bottom: 0.75rem;
}

.card-media img {
  display: block;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #eaddbf;
}




.expand-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(104, 55, 55);
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Modal for expanded images */
.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  backdrop-filter: blur(2px);
}

.image-modal.open {
  display: flex;
  animation: fadeIn 200ms ease;
}

.image-modal__content {
  position: relative;
  width: auto;
  height: 80%;
  animation: scaleIn 200ms ease;
}

.image-modal__content img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.image-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(104, 55, 55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}


@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


.divide {
    display: flex; 
    margin-top: 600px;
}
.interview-box h2 {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
  color: #683737;
  font-weight: bold;
  text-align: center;
  
}

.member-img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.8rem;
  border: 3px solid #eaddbf;
  background: #eaddbf;
}

.member-linkedin {
  width: 36px;
  height: 36px;
  border-radius: 20%;
  margin-top: 0.5rem;
}

.member-card h3 {
  margin: 0 0 0.2rem 0;
  font-size: 1.2rem;
  color: #683737;
  font-weight: bold;
  text-align: center;
}

.member-card h4 {
  margin: 0.7rem 0 0.5rem 0;
  font-size: 1rem;
  color: #683737;
  text-align: center;
}

.member-card p {
  font-size: 0.97em;
  text-align: center;
  margin: 0.7em 0 0 0;
  color: #683737;
}

.member-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.7rem;
  display: flex;
  justify-content: center;
}

.member-card ul li {
  background: #683737;
  color: #ffffff;
  border-radius: 7px;
  padding: 2px 9px;
  font-size: 0.95em;
  margin-left: 2px;
}

  .expand-btn {
    font-size: 1.3rem;
  }

/* Desktop specific overrides */
@media (min-width: 1010px) {
  .team-section {
    width: 1010px;
    margin: 40px auto 0 auto;
  }
  .interview-box {
    margin: 80px 0 0 0;
  }

  .image-modal__close:hover {
  background: #361f1f;
}
.expand-btn:hover {
  background: #361f1f;
}

  .team-flex {
    flex-direction: row;
    position: relative;
  }

  .team-members .member-card:first-child {
    margin-left: clamp(8px, 1vw, 16px);
  }

  .team-members .member-card:last-child {
    margin-right: clamp(8px, 1vw, 16px);
  }

  .member-card {
    border: 3px solid #eaddbf;
  }
}

/* Mobile styles */
@media (max-width: 1009px) {
  .team-section {
    padding: 0 0.5em 24px 0.5em;
    width: 100%;
    max-width: 100vw;
  }

  .member-card {
    height: 300px;
  }
  
  .card-media img {
    height: 150px;
  }
  

  .mobilehide {
    display: none;
  }

  .team-flex {
    flex-direction: column;
    top: 40px;
    gap: 1.2rem;
  }

  #team-flex-2 {
    top: 320px;
    margin-top: 0;
  }

   .interview-box {
    padding: 0px;
    width: clamp(100%, 100%, 100%);
    border-right: none;
    border-left: none;
    margin-left:0px;
    margin-right:0px;
  }
  

  .team-members {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 1.2rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 0 0.5em 24px 0.5em;
  }

  .member-card {
    width: 100%;
    max-width: 98vw;
    min-width: 0;
    border-top: 3px solid #eaddbf;
    border-bottom: 3px solid #eaddbf;
    border-left: none;
    border-right: none;
    border-radius: 8px;
    padding: 1em 0.5em 1.2em 0.5em;
    margin: 0.7em 0 0 0;
  }

  .member-img {
    width: 100px;
    height: 100px;
  }

  .team-intro {
    max-width: 100%;
    padding: 1.2em 0.7em;
    margin-bottom: 1.5rem;
  }
}

.interviews-section {
  margin: 40px 0 0 0;
  top: -75px;
  max-width: 100vw;
  box-sizing: border-box;
  position: relative;
  min-height: 800px;
  padding: 2rem 1rem;
}

.interviews-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: absolute;
  width: 100vw;
  left: 0;
  top: clamp(160px, 8vw, 60px);
}

.interview-box {
  background: hsl(38, 100%, 90%);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  border: 3px solid #eaddbf;
  /* max-width: 900px; */
  width: 90%;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.divide {
    display: flex; 
    margin-top: 600px;
}
.interview-box h2 {
  margin: 0 0 1rem 0;
  font-size: 2.2rem;
  color: #683737;
  font-weight: bold;
  text-align: center;
  
}

.interview-button {
  height: 70px;
  position: relative;
  width: 200px;
  padding: 6px;
  text-decoration: none;
  color: #ffffff !important;
  background-color: #683737;
  border-radius: 15px;
  text-align: center;
  font-size: 1.1rem;
  top: -13px;
  font-weight: bold;
  line-height: 30px;    
  box-sizing: border-box;
}

.interview-button:hover {
  text-decoration: none !important;
  color: #ffffff !important;
  background-color: #361f1f;
}

@media screen and (min-width: 1010px) {
  .interview-box h2 {
    border-bottom: 3px solid #683737;
    padding-bottom: 1rem;
  }
  .interview-box {
    max-width: 900px;
  }
  
}

.interview-box h3 {
  margin: 0 0 1.5rem 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #683737;
  text-align: left;
  font-style: italic;
}

.interview-box h4 {
  margin: 2rem 0 1rem 0;
  font-size: 1.3rem;
  color: #683737;
  font-weight: bold;
}

.interview-box p {
  margin: 0 0 1.5rem 0;
  font-size: 1.6rem;
  color: #683737;
  line-height: 1.6;
  text-align: justify;
}

.interview-content {
  margin-top: 2rem;
}

.interview-box ul {
  margin: 1rem 0 2rem 2rem;
  color: #683737;
}

.interview-box li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.interview-box blockquote {
  background: rgba(104, 55, 55, 0.1);
  border-left: 5px solid #683737;
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  font-style: italic;
  font-size: 1.15rem;
  color: #683737;
  border-radius: 0 10px 10px 0;
}

/* Mobile responsive design */
@media (max-width: 1009px) {
  .interviews-container {
    top: clamp(100px, 6vw, 40px);
  }

  .body {
    padding: 0;
    margin: 0;
  }

  .interview-button {
    left: 5%;
  }
  
  .interview-box {
    padding: 0;
    width: clamp(100%, 100%, 100%);
    border-right: none;
    border-left: none;
  }
  
  .interview-box h2 {
    padding: 10px 5%;
    font-size: 1.6rem;
    text-align: left;
  }
  
  .interview-box h3 {
    padding: 0 5%;
    font-size: 1.3rem;
    text-align: left;
  }
  
  .interview-box h4 {
    padding: 0 5%;
    font-size: 1.4rem;
    text-align: left;
  }
  
  .interview-box p {
    padding: 0 5%;
    font-size: 1.55rem;
    text-align: left;
  }
  
  .interview-box blockquote {
    padding: 0 5%;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
  }
}
