:root{
  --teal:#015655;
  --aqua:#00CEA6;
  --amber:#F4B04D;
  --midnight:#063B3F;
  --sky:#E1EFF6;
  --ink:#1F2A2A;
  --grey:#5A6B6B;
  --line:#D8E4E4;
}

*{box-sizing:border-box}
body{font-family:'Work Sans',system-ui,sans-serif;color:var(--ink);background:#fff;line-height:1.55}
h1,h2,h3{font-family:'Merriweather',Georgia,serif}
.wrap{max-width:1160px;margin:0 auto;padding:0 32px}
.band{width:100%}
.pad{padding:52px 0}
.altbg{background:var(--sky)}
a{color:inherit;text-decoration:none}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  border:2px solid transparent;
  border-radius:10px;
  font-size:15.5px;
  font-weight:650;
}
.btn-amber{background:var(--amber);color:#3a2a05}

.eyebrow{
  font-size:12.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:700;
  color:var(--aqua);
}

/* HERO */
.phero{
  padding:52px 0 46px;
  background:linear-gradient(120deg,#015655,#02403f);
  color:#fff;
  text-align:center;
}
.phero h1{
  max-width:850px;
  margin:5px auto 0;
  color:#fff;
  font-size:36px;
  line-height:1.15;
  font-weight:900;
}
.phero p{
  max-width:64ch;
  margin:14px auto 0;
  color:#d8efe9;
  font-size:18px;
}
.reassure{
  max-width:70ch;
  margin:22px auto 0;
  padding:14px 20px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#eaf5f2;
  font-size:14.5px;
}

/* CATEGORIES */
.cathead{margin-bottom:26px}
.cathead h2{
  margin:0;
  color:var(--teal);
  font-size:26px;
  font-weight:900;
}
.cathead p{
  margin:4px 0 0;
  color:var(--grey);
  font-size:15.5px;
}

.pgrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.pcard{
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
  transition:.2s;
}
.pcard:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(1,86,85,.13);
}
.pcard.feat{border-color:var(--amber)}

.pphoto{
  position:relative;
  height:190px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--sky);
  color:#8fb0ab;
}
.pphoto img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.pphoto .av{
  width:80px;
  height:80px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px dashed var(--line);
  border-radius:50%;
  background:#fff;
  color:#8aa5a2;
  font-size:26px;
  font-weight:800;
}
.ptag{
  position:absolute;
  top:12px;
  left:12px;
  max-width:calc(100% - 24px);
  overflow:hidden;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(1,86,85,.92);
  color:#fff;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.05em;
  text-overflow:ellipsis;
  text-transform:uppercase;
  white-space:nowrap;
}

.pbody{
  min-height:205px;
  display:flex;
  flex:1;
  flex-direction:column;
  padding:20px 22px 22px;
}
.pbody h3{
  margin:0;
  color:var(--teal);
  font-size:18px;
  font-weight:900;
}
.pbody .spec{
  margin:4px 0 10px;
  color:var(--grey);
  font-size:13.5px;
}
.pbody p{
  margin:0;
  flex:1;
  color:var(--ink);
  font-size:14px;
}
.pbody .go{
  margin-top:14px;
  color:var(--teal);
  font-size:14px;
  font-weight:700;
}
.pcard.feat .go{color:#9a6a15}

/* JOIN */
.partners-join{padding:20px 0 56px}
.dp{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  flex-wrap:wrap;
  padding:34px 38px;
  border-radius:18px;
  background:var(--midnight);
  color:#fff;
}
.dp h3{margin:0;color:#fff;font-size:23px;font-weight:900}
.dp p{max-width:60ch;margin:6px 0 0;color:#cfe0dd;font-size:15px}

.partners-empty{text-align:center;color:var(--grey)}

@media(max-width:900px){
  .pgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  .wrap{padding:0 20px}
  .pad{padding:42px 0}
  .phero{padding:42px 0 38px}
  .phero h1{font-size:30px}
  .phero p{font-size:16px}
  .pgrid{grid-template-columns:1fr}
  .pphoto{height:210px}
  .pbody{min-height:0}
  .dp{padding:26px 24px}
}


/* Partner images fit their card frame */
.pphoto img{
  object-fit:contain!important;
  object-position:center center;
  background:#fff;
}


/* partner list: keep each uploaded image inside its own card frame */
.pphoto img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  object-fit:contain!important;
  object-position:center center!important;
  background:#fff;
}

/* Imaginea partenerului ocupă complet zona foto a cardului */
.pgrid .pcard .pphoto > img{
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  max-height:none!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
}


/* =========================================================
   PARTENERI — 3 tipuri distincte, după modelul de index
   ========================================================= */

/* 1. Specialiști & colaboratori */
#partnersSpecialist{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

/* 2. Parteneri tehnologici & soluții digitale */
.techgrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.tbox{
  min-width:0;
  min-height:178px;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

a.tbox:hover{
  transform:translateY(-2px);
  border-color:#B9D6D2;
  box-shadow:0 12px 28px rgba(1,86,85,.10);
}

.tech-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.tech-copy strong{
  color:var(--teal);
  font-family:'Merriweather',Georgia,serif;
  font-size:17px;
  font-weight:900;
}

.tech-copy .role{
  color:var(--grey);
  font-size:13.5px;
  line-height:1.45;
}

.tech-logo{
  width:100%;
  height:54px;
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}

.tech-logo img{
  width:100%;
  height:100%;
  max-width:210px;
  object-fit:contain;
  object-position:center;
}

.tech-logo-placeholder{
  color:#A49475;
  font-size:12px;
  font-style:italic;
}

.tech-link{
  color:var(--teal);
  font-size:12.5px;
  font-weight:700;
}

/* 3. Parteneri & comunități de business */
.lgrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.lbox{
  min-width:0;
  min-height:132px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:14px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  text-align:center;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

a.lbox:hover{
  transform:translateY(-2px);
  border-color:#B9D6D2;
  box-shadow:0 10px 24px rgba(1,86,85,.09);
}

.business-logo{
  width:100%;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.business-logo img{
  width:100%;
  height:100%;
  max-width:170px;
  object-fit:contain;
  object-position:center;
}

.business-logo-placeholder{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:var(--sky);
  color:var(--teal);
  font-weight:800;
}

.lbox strong{
  color:var(--teal);
  font-size:13.5px;
  line-height:1.25;
}

.business-link{
  color:var(--grey);
  font-size:11.5px;
  font-weight:650;
}

/* Logo-urile NU se cropează. Regula veche de cover rămâne doar pentru specialiști. */
.techgrid img,
.lgrid img{
  object-fit:contain!important;
}

@media(max-width:900px){
  .techgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:620px){
  #partnersSpecialist,
  .techgrid,
  .lgrid{
    grid-template-columns:1fr;
  }

  .tbox{
    min-height:0;
  }

  .lbox{
    min-height:118px;
  }
}


/* Search listă — același design ca în Blog */
.partner-search-band,
.services-search-band{
  background:#fff;
}
.list-search{
  position:relative;
  display:flex;
  align-items:center;
  max-width:620px;
  margin-top:26px;
}
.partner-search-band .list-search,
.services-search-band .list-search{
  margin-bottom:0;
}
.list-search-icon{
  position:absolute;
  left:16px;
  top:50%;
  transform:translateY(-52%);
  color:var(--teal);
  width:20px;
  height:20px;
  pointer-events:none;
}
.list-search-icon svg{
  display:block;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
}
.list-search input[type="search"]{
  width:100%;
  height:48px;
  border:1.5px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  font-size:15px;
  padding:0 46px 0 48px;
  outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.list-search input[type="search"]::placeholder{color:#819292;}
.list-search input[type="search"]:focus{
  border-color:var(--aqua);
  box-shadow:0 0 0 4px rgba(0,206,166,.12);
}
.list-search input[type="search"]::-webkit-search-cancel-button{display:none;}
.list-search-clear{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:var(--grey);
  font-size:24px;
  line-height:28px;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transition:.15s;
}
.list-search-clear:hover{background:var(--sky);color:var(--teal);}
.list-search-clear.is-visible{opacity:1;pointer-events:auto;}

/* Link pe nume spre profil, restul cardului spre website extern. */
.compact-external-card{cursor:pointer;}
.compact-external-card:hover{transform:translateY(-2px);border-color:#B9D6D2;box-shadow:0 12px 28px rgba(1,86,85,.10);}
.compact-profile-name{display:inline;color:var(--teal);font-family:'Merriweather',Georgia,serif;font-weight:900;text-decoration:none;position:relative;z-index:2;}
.tech-copy .compact-profile-name{font-size:17px;}
.lbox .compact-profile-name{font-size:13.5px;line-height:1.25;}
.compact-profile-name:hover{text-decoration:underline;}
.compact-profile-name:focus-visible,.compact-external-card:focus-visible{outline:2px solid var(--aqua);outline-offset:3px;}
