/* Homepage company-card redesign. Loaded last. */

.enriched-home .company-showcase-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch;
}

.enriched-home .company-showcase-card{
  display:grid!important;
  grid-template-rows:168px minmax(0,1fr) 146px auto;
  min-width:0;
  height:100%!important;
  overflow:hidden;
  border:1px solid rgba(207,168,91,.42)!important;
  border-radius:12px!important;
  background:#08283d!important;
  box-shadow:0 18px 42px rgba(0,0,0,.16)!important;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important;
}

.enriched-home .company-showcase-card:hover{
  transform:translateY(-4px);
  border-color:rgba(224,187,113,.68)!important;
  box-shadow:0 24px 52px rgba(0,0,0,.22)!important;
}

.company-showcase-logo{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:168px;
  padding:30px 34px;
  background:linear-gradient(180deg,#ffffff 0%,#f6f7f5 100%);
  border-bottom:1px solid rgba(15,39,54,.09);
}
.company-showcase-logo img{
  display:block;
  width:auto!important;
  height:auto!important;
  max-width:72%!important;
  max-height:84px!important;
  object-fit:contain!important;
  margin:auto!important;
}

.company-showcase-content{
  display:grid;
  grid-template-rows:72px 44px 42px 132px 28px;
  padding:22px 22px 16px;
  min-width:0;
}
.company-showcase-name{
  display:flex;
  align-items:flex-start;
  min-width:0;
}
.company-showcase-name h3{
  margin:0!important;
  color:#f7fbfd!important;
  font-size:21px!important;
  font-weight:750!important;
  line-height:1.22!important;
  letter-spacing:-.015em!important;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.company-showcase-role{
  color:#e1b86a;
  font-size:14px;
  font-weight:750;
  line-height:1.45;
  display:flex;
  align-items:flex-start;
  overflow:hidden;
}
.company-showcase-meta{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:4px 10px;
  color:#95aebc;
  font-size:11.5px;
  line-height:1.5;
}
.company-showcase-meta span+span:before{
  content:"•";
  margin-inline-end:10px;
  color:#cba45b;
}
.company-showcase-summary{
  margin:0!important;
  color:#c0d0d8!important;
  font-size:13px!important;
  line-height:1.66!important;
  display:-webkit-box;
  -webkit-line-clamp:5;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.company-showcase-more{
  align-self:end;
  justify-self:start;
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#e4bd73!important;
  font-size:12.5px;
  font-weight:750;
  text-decoration:none!important;
  border-bottom:1px solid rgba(228,189,115,.42);
  padding-bottom:2px;
}
.company-showcase-more:hover{
  color:#f0d69b!important;
  border-bottom-color:#f0d69b;
}

.company-showcase-gallery{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
  padding:0 12px 12px;
  min-height:146px;
}
.company-showcase-gallery figure{
  position:relative;
  margin:0;
  min-width:0;
  overflow:hidden;
  border-radius:8px;
  background:#0f3a55;
  border:1px solid rgba(255,255,255,.08);
}
.company-showcase-gallery img{
  display:block;
  width:100%!important;
  height:100%!important;
  min-height:134px;
  object-fit:cover!important;
  transition:transform .3s ease,filter .3s ease;
}
.company-showcase-card:hover .company-showcase-gallery img{transform:scale(1.025);}

.company-showcase-sector{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:10px 18px 12px;
  border-top:1px solid rgba(255,255,255,.10);
  background:rgba(3,20,31,.34);
}
.company-showcase-sector span{
  color:#9cb0bc;
  font-size:10px;
  font-weight:800;
  line-height:1.45;
  letter-spacing:.075em;
  text-transform:uppercase;
}

/* Premium light theme */
html[data-theme="light"] .enriched-home .company-showcase-card{
  background:#fff!important;
  border-color:rgba(190,145,61,.42)!important;
  box-shadow:0 18px 44px rgba(27,53,68,.09)!important;
}
html[data-theme="light"] .enriched-home .company-showcase-card:hover{
  border-color:rgba(181,132,42,.68)!important;
  box-shadow:0 23px 52px rgba(27,53,68,.13)!important;
}
html[data-theme="light"] .company-showcase-logo{
  background:linear-gradient(180deg,#fff 0%,#fbfbf8 100%);
  border-bottom-color:rgba(16,37,54,.08);
}
html[data-theme="light"] .company-showcase-name h3{color:#102536!important;}
html[data-theme="light"] .company-showcase-role{color:#9b6b16;}
html[data-theme="light"] .company-showcase-meta{color:#71858f;}
html[data-theme="light"] .company-showcase-meta span+span:before{color:#b88a35;}
html[data-theme="light"] .company-showcase-summary{color:#536975!important;}
html[data-theme="light"] .company-showcase-more{color:#8f6418!important;border-bottom-color:rgba(143,100,24,.35);}
html[data-theme="light"] .company-showcase-more:hover{color:#6f4b0f!important;border-bottom-color:#8f6418;}
html[data-theme="light"] .company-showcase-gallery figure{
  background:#eaf0f2;
  border-color:rgba(16,37,54,.08);
}
html[data-theme="light"] .company-showcase-sector{
  background:#f8f7f2;
  border-top-color:rgba(16,37,54,.09);
}
html[data-theme="light"] .company-showcase-sector span{color:#627985;}

/* Arabic readability with GE SS Two */
html[dir="rtl"] .company-showcase-name h3{
  font-size:22px!important;
  line-height:1.48!important;
  letter-spacing:0!important;
  font-weight:700!important;
}
html[dir="rtl"] .company-showcase-role{
  font-size:15px;
  line-height:1.75;
}
html[dir="rtl"] .company-showcase-meta{
  font-size:12.5px;
  line-height:1.75;
}
html[dir="rtl"] .company-showcase-summary{
  font-size:13.5px!important;
  line-height:1.9!important;
  -webkit-line-clamp:5;
}
html[dir="rtl"] .company-showcase-more{
  font-size:13px;
  line-height:1.7;
}
html[dir="rtl"] .company-showcase-sector span{
  font-size:11px;
  line-height:1.75;
  letter-spacing:0;
  text-transform:none;
}
html[dir="rtl"] .company-showcase-meta span+span:before{
  margin-inline-end:0;
  margin-inline-start:10px;
}

@media(max-width:1100px){
  .enriched-home .company-showcase-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .company-showcase-content{grid-template-rows:70px 42px 40px 124px 28px;}
}

@media(max-width:760px){
  .enriched-home .company-showcase-grid{grid-template-columns:1fr!important;gap:16px!important;}
  .enriched-home .company-showcase-card{grid-template-rows:150px auto 142px auto;}
  .company-showcase-logo{min-height:150px;padding:24px 30px;}
  .company-showcase-logo img{max-width:65%!important;max-height:76px!important;}
  .company-showcase-content{grid-template-rows:auto auto auto auto auto;gap:10px;padding:20px 19px 16px;}
  .company-showcase-name{min-height:0;}
  .company-showcase-name h3{font-size:20px!important;}
  .company-showcase-role{min-height:0;}
  .company-showcase-meta{min-height:0;}
  .company-showcase-summary{min-height:0;-webkit-line-clamp:6;font-size:13px!important;line-height:1.72!important;}
  .company-showcase-gallery{min-height:142px;padding:0 10px 10px;}
  .company-showcase-gallery img{min-height:132px;}
  html[dir="rtl"] .company-showcase-name h3{font-size:21px!important;}
  html[dir="rtl"] .company-showcase-summary{font-size:13.5px!important;line-height:1.9!important;}
}

@media(max-width:460px){
  .company-showcase-logo img{max-width:74%!important;}
  .company-showcase-gallery{grid-template-columns:1fr 1fr;gap:5px;}
  .company-showcase-gallery img{min-height:116px;}
  .company-showcase-sector{padding-inline:15px;}
}
