@import url('https://fonts.cdnfonts.com/css/myriad-pro');

body, html {
  font-family: 'Myriad Pro', sans-serif !important;
}

.section-title,
.team-title {
  font-size: 2rem;
  font-weight: 600;
  color: #bf9669;
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid #2e3d33;
  padding-bottom: 0.3em;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -1px;
}


.team-section {
  background: linear-gradient(90deg, #f7f9fb 60%, #bf966922 100%);
  padding: 7rem 1.5rem 4rem;
  color: #2e3d33;
}

.team-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #2e3d33;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 18px #2e3d3320;
}

.team-member {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 2px solid #2e3d33;
}

.team-text {
  flex: 1;
  color: #2e3d33;
}

.team-text h3 {
  font-weight: 600;
  font-size: 1.17rem;
  margin-bottom: 0.5rem;
}

.team-text h4 {
  font-weight: 600;
  font-size: 1.17rem;
  color: #bf9669;
  margin-bottom: 1.2rem;
}

.team-text p {
  font-weight: 300;
  font-size: 1.17rem;
  line-height: 1.6;
  color: #2e3d33;
}

.team-image {
  flex: 0 0 300px;
  max-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2e3d33;
  box-shadow: 0 4px 18px rgba(46, 61, 51, 0.2);
  background: #f5f7fa; /* Svjetla pozadina ako nema slike */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.bio-section {
  background: linear-gradient(90deg, #f7f9fb 60%, #bf966922 100%);
  padding: 7rem 1.5rem 4rem;
  color: #2e3d33;
}

.bio-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff; /* bijela pozadina */
  border-radius: 16px;
  border: 2px solid #2e3d33; /* glavni obrub */
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 18px rgba(46, 61, 51, 0.13);
}

.bio-title {
  font-size: 2rem;
  font-weight: 600;
  color: #bf9669;
  text-align: center;
  margin-bottom: 3rem;
  border-bottom: 2px solid #2e3d33;
  padding-bottom: 0.3em;
  max-width: fit-content;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -1px;
}

.bio-member {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2.2rem;
  border-bottom: 2px solid #2e3d33;
}

.bio-member:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.bio-member.reverse {
  flex-direction: row-reverse;
}

.bio-image {
  flex: 0 0 260px;
  max-width: 260px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(46, 61, 51, 0.18);
  border: 2px solid #2e3d33;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.bio-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

.bio-text {
  flex: 1;
  color: #2e3d33;
}

.bio-text h3 {
  font-size: 1.17rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.bio-text p {
  font-size: 1.17rem;
  font-weight: 300;
  line-height: 1.2;
  white-space: pre-line;
  margin-bottom: 0;
  color: #2e3d33;
}

/* Responsive prilagodba */

@media (max-width: 700px) {
  .approach-inner,
  .team-inner,
  .bio-inner,
  .purpose-inner,
  .unique-inner,
  .container {
    max-width: 100%;
    width: 100%;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }
  
  .section-title, .team-title{
    font-size: 1.6rem !important;
  }
  .team-member {
    flex-direction: column !important;
    text-align: center;
  }
  .team-image {
    order: 0 !important;
    max-width: 250px;
    min-height: 180px;
    margin: 0 auto 1.5rem;
  }

  .team-text{
    order: 1 !important;
    width: 100%;
  }
  .team-text h3 {
    font-size: 1.2rem;
  }
  .team-text h4 {
    font-size: 1.1rem;
  }
  .team-text p {
    font-size: 1.1rem;
  }
  .bio-member,
  .bio-member.reverse {
    flex-direction: column !important;
    text-align: center;
    gap: 1.2rem;
    padding-bottom: 1.2rem;
  }
  .bio-image {
    max-width: 200px;
    min-height: 120px;
    margin: 0 auto 1rem;
  }
  .bio-text h3 {
    font-size: 1.08rem;
  }
  .bio-text p {
    font-size: 1rem;
  }
}
