/* Company directory + company profile */

.jg-co-hero,
.jg-co-dir-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 12% 18%, rgba(245, 179, 1, 0.18), transparent 52%),
    radial-gradient(ellipse 55% 45% at 92% 8%, rgba(21, 94, 239, 0.35), transparent 50%),
    linear-gradient(155deg, #060a14 0%, #0c1b3d 48%, #155eef 100%);
}

.jg-co-hero::after,
.jg-co-dir-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

.jg-co-hero .container,
.jg-co-dir-hero .container {
  position: relative;
  z-index: 1;
}

.jg-co-dir-hero {
  padding: clamp(1.8rem, 4vw, 2.8rem) 0 2.2rem;
}

.jg-co-dir-hero h1 {
  color: #fff !important;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0 0 0.45rem;
}

.jg-co-dir-hero .lead {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 1.25rem;
  max-width: 38rem;
}

.jg-co-search {
  background: #fff;
  border-radius: 16px;
  padding: 0.45rem;
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  max-width: 640px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.jg-co-search .form-control {
  border: none !important;
  box-shadow: none !important;
  min-height: 48px !important;
  border-radius: 12px !important;
}

.jg-co-search .jg-btn {
  min-height: 48px;
  border-radius: 12px !important;
  white-space: nowrap;
}

.jg-co-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
}

.jg-co-crumbs a {
  color: rgba(255, 255, 255, 0.88) !important;
}

.jg-co-crumbs span {
  opacity: 0.5;
}

.jg-co-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 0.25rem;
}

.jg-co-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--jg-border);
  background: #fff;
  color: var(--jg-text) !important;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
}

.jg-co-chip:hover,
.jg-co-chip.is-active {
  border-color: rgba(21, 94, 239, 0.35);
  background: var(--jg-primary-light);
  color: var(--jg-primary) !important;
}

.jg-co-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.jg-co-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 1.05rem 1.05rem 0.95rem;
  text-decoration: none !important;
  color: inherit;
  min-height: 100%;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.jg-co-card:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 94, 239, 0.28);
  box-shadow: 0 14px 28px rgba(16, 24, 40, 0.08);
  color: inherit;
}

.jg-co-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.jg-co-card img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e8edf5;
  background: #f8fafc;
  flex-shrink: 0;
}

.jg-co-card h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.jg-co-card em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--jg-text-muted);
}

.jg-co-card p {
  margin: 0;
  color: var(--jg-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.jg-co-card-foot {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.jg-co-count {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: var(--jg-primary-light);
  color: var(--jg-primary);
  font-size: 0.72rem;
  font-weight: 800;
}

.jg-co-count.is-empty {
  background: #f2f4f7;
  color: #667085;
}

.jg-co-card-foot span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--jg-primary);
}

/* Profile hero */
.jg-co-hero {
  padding: clamp(1.6rem, 4vw, 2.6rem) 0 2rem;
}

.jg-co-hero-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.6rem;
  align-items: center;
}

.jg-co-logo {
  width: 92px;
  height: 92px;
  border-radius: 20px;
  object-fit: cover;
  background: #fff;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.jg-co-hero h1 {
  color: #fff !important;
  font-size: clamp(1.55rem, 3.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.45rem;
}

.jg-co-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.jg-co-meta i {
  color: var(--jg-accent, #f5b301);
  margin-right: 0.2rem;
}

.jg-co-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.jg-co-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.jg-co-stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
}

.jg-co-stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
}

.jg-co-stat span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.jg-co-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
  padding: 1.6rem 0 2.5rem;
}

.jg-co-panel {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 1.25rem 1.3rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  margin-bottom: 1.1rem;
}

.jg-co-panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.12rem;
  font-weight: 800;
}

.jg-co-about {
  color: var(--jg-text-muted);
  line-height: 1.7;
  margin: 0;
}

.jg-co-about.is-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jg-co-info {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jg-co-info li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef2f7;
}

.jg-co-info li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.jg-co-info i {
  color: var(--jg-primary);
  font-size: 1.1rem;
  margin-top: 0.1rem;
}

.jg-co-info strong {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--jg-text-muted);
}

.jg-co-info span,
.jg-co-info a {
  font-size: 0.9rem;
  font-weight: 600;
}

.jg-co-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.jg-co-share a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4f7fb;
  color: var(--jg-primary) !important;
  border: 1px solid #e8edf5;
}

.jg-co-share a:hover {
  background: var(--jg-primary);
  color: #fff !important;
}

.jg-co-similar {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.jg-co-similar a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none !important;
  color: inherit;
  padding: 0.35rem 0;
}

.jg-co-similar img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e8edf5;
}

.jg-co-similar strong {
  font-size: 0.85rem;
  font-weight: 800;
}

.jg-co-muted {
  color: var(--jg-text-muted);
  font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
  .jg-co-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .jg-co-grid,
  .jg-co-layout {
    grid-template-columns: 1fr 1fr;
  }

  .jg-co-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .jg-co-search {
    flex-direction: column;
  }

  .jg-co-hero-row {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .jg-co-meta,
  .jg-co-actions {
    justify-content: center;
  }

  .jg-co-grid {
    grid-template-columns: 1fr;
  }
}
