/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* added for team */

/* Team FINAL - text complet vizibil + closer spacing */
.gb-grid-wrapper {
  display: flex !important;
  flex-wrap: wrap;
  gap: 1.5rem !important;
  justify-content: flex-start !important;
  padding: 1rem !important;
  max-width: 1400px;
  margin: 0 auto;
}

.team {
  background: linear-gradient(145deg, #F8F9FA, #E9ECEF) !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
  overflow: hidden !important;
  flex: 1 1 280px !important;
  max-width: 320px !important;
  height: 480px !important;  /* Creștere pentru text full */
  display: flex !important;
  flex-direction: column !important;
}

.team img {
  width: 100% !important;
  height: 190px !important;  /* Ușor redus pentru mai mult text */
  object-fit: cover !important;
  object-position: center top !important;
}

/* Fallback imagine */
.team img[src=""],
.team img:not([src]) {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  height: 190px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2.8rem !important;
  color: white !important;
  font-weight: bold !important;
}

/* TITLU + SPECIALITATE - compact inline */
.team > p:first-of-type {
  margin: 0.6rem 1.2rem 0.1rem !important;  /* Foarte puțin spațiu */
}

.team > p:first-of-type strong {
  font-size: 1.08rem !important;
  color: #1e293b !important;
  display: inline !important;
}

.team > p:nth-of-type(2) {
  margin: 0 1.2rem 0.3rem !important;  /* CLOSE la titlu */
  color: #374151 !important;
  font-size: 0.86rem !important;
  font-weight: 500 !important;
  display: inline !important;
}

/* DETALII - CLOSER + TEXT COMPLET */
.expanded {
  margin-top: 0.2rem !important;  /* SUPER CLOSE */
  padding: 0.4rem 1.2rem 0.8rem !important;  /* Padding minim */
}

.expanded p {
  font-size: 0.8rem !important;
  color: #6b7280 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  /* ELIMINĂ line-clamp - TEXT COMPLET */
  display: block !important;
  overflow: visible !important;
  -webkit-line-clamp: unset !important;
  max-height: none !important;
}

/* Responsive */
@media only screen and (min-width: 1024px) {
  .team { flex: 1 1 22% !important; max-width: 300px !important; }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .team { flex: 1 1 45% !important; max-width: 380px !important; }
}

@media only screen and (max-width: 767px) {
  .gb-grid-wrapper { gap: 1rem !important; justify-content: center !important; }
  .team { flex: 1 1 95% !important; max-width: 400px !important; height: 380px !important; }
  .team img { height: 170px !important; }
  .expanded p { font-size: 0.82rem !important; }  /* Mic pe mobil */
  .expanded { display: block !important; }  /* Arată pe mobil */
}
