.company-detail-page {
  min-height: 650px;
  color: #263445;
  background: #f4f6f8;
}

.company-card {
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 13px rgba(28, 47, 65, 0.04);
}

.company-card {
  margin-bottom: 20px;
  padding: 24px;
}

.company-card__title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 750;
}

.company-muted {
  color: #718096;
}

.company-link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  color: #00a84b;
  background: none;
  font-weight: 600;
}

.company-link-btn:hover {
  color: #008b3f;
}

/* Hero */
.company-hero {
  padding-bottom: 0;
}

.company-hero__main {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 20px;
}

.company-hero__logo {
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #e2e8ee;
  border-radius: 12px;
  background: #fff;
}

.company-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-hero__info {
  min-width: 0;
}

.company-hero__info h1 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.35;
}

.company-verified {
  margin-left: 6px;
  color: #00b14f;
  font-size: 18px;
}

.company-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  color: #4b596c;
}

.company-hero__meta a,
.company-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4b596c;
}

.company-hero__meta a:hover {
  color: #00a84b;
}

.company-hero__meta i {
  color: #8a97a8;
}

.company-tabs {
  display: flex;
  gap: 28px;
  border-top: 1px solid #edf0f2;
}

.company-tabs a {
  padding: 14px 0 12px;
  border-bottom: 3px solid transparent;
  color: #667488;
  font-weight: 600;
  white-space: nowrap;
}

.company-tabs a:hover,
.company-tabs a.active {
  border-bottom-color: #00b14f;
  color: #008b3f;
}

#tong-quan,
#tin-tuyen-dung {
  scroll-margin-top: 90px;
}

/* Giới thiệu */
.company-about__content {
  max-height: 192px;
  overflow: hidden;
  position: relative;
  color: #3a4859;
  line-height: 1.75;
}

.company-about:not(.is-expanded) .company-about__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 48px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

.company-about.is-expanded .company-about__content {
  max-height: none;
}

.company-about__content:has(+ [hidden])::after {
  display: none;
}

.company-about .company-link-btn {
  margin-top: 10px;
}

/* Tìm việc trong công ty */
.company-job-search {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 18px;
}

.company-job-search__field {
  position: relative;
}

.company-job-search__field i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #8a97a8;
  transform: translateY(-50%);
  pointer-events: none;
}

.company-job-search__field input,
.company-job-search__field select {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 38px;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  color: #263445;
  background-color: #fff;
  outline: none;
}

.company-job-search__field input:focus,
.company-job-search__field select:focus {
  border-color: #00b14f;
  box-shadow: 0 0 0 3px rgba(0, 177, 79, 0.12);
}

.company-job-search .btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 8px;
}

/* Thẻ việc làm */
.company-job-list {
  display: grid;
  gap: 14px;
}

.company-empty {
  padding: 40px 15px;
  color: #718096;
  text-align: center;
}

.company-empty > i {
  margin-bottom: 12px;
  color: #9bb1a4;
  font-size: 46px;
}

.company-pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.company-pagination .pagination {
  margin: 0;
}

/* Công ty cùng lĩnh vực */
.company-related {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-related__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  color: #263445;
  transition: border-color 0.2s ease;
}

.company-related__item:hover {
  border-color: #9cdbb7;
  color: #263445;
}

.company-related__item img {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 4px;
  border: 1px solid #edf0f2;
  border-radius: 8px;
  object-fit: contain;
}

.company-related__item span {
  min-width: 0;
}

.company-related__item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.company-related__item small {
  color: #718096;
}

/* Sidebar */
.company-sidebar {
  position: sticky;
  top: 20px;
}

.company-facts {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-facts li {
  display: flex;
  gap: 14px;
}

.company-facts li > i {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #00a84b;
  background: #eafaf1;
}

.company-facts span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: #718096;
  font-size: 13px;
}

.company-facts strong,
.company-facts a {
  overflow-wrap: anywhere;
  color: #263445;
  font-size: 15px;
  font-weight: 600;
}

.company-facts a:hover {
  color: #00a84b;
}

.company-address {
  display: flex;
  gap: 10px;
  color: #3a4859;
}

.company-address i {
  margin-top: 4px;
  color: #00a84b;
}

.company-map {
  overflow: hidden;
  border-radius: 10px;
  background: #edf0f2;
}

.company-map iframe {
  width: 100%;
  height: 220px;
  display: block;
  border: 0;
}

.company-share__label {
  display: block;
  margin-bottom: 8px;
  color: #4b596c;
  font-size: 14px;
  font-weight: 600;
}

.company-share__copy {
  display: flex;
  margin-bottom: 18px;
  border: 1px solid #dbe2e8;
  border-radius: 8px;
  background: #f7f9fa;
}

.company-share__copy input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 0;
  color: #4b596c;
  background: transparent;
  outline: none;
}

.company-share__copy button {
  flex: 0 0 auto;
  width: 44px;
  border: 0;
  border-left: 1px solid #dbe2e8;
  color: #00a84b;
  background: transparent;
}

.company-share__social {
  display: flex;
  gap: 10px;
}

.company-share__social a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8ee;
  border-radius: 50%;
  color: #4b596c;
  font-size: 17px;
  transition: all 0.2s ease;
}

.company-share__social a:hover {
  border-color: #00b14f;
  color: #00b14f;
  background: #eafaf1;
}

@media (max-width: 991px) {
  .company-sidebar {
    position: static;
  }
}

@media (max-width: 767px) {
  .company-job-search {
    grid-template-columns: 1fr;
  }

  .company-related {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .company-card {
    padding: 18px;
  }

  .company-hero {
    padding-bottom: 0;
  }

  .company-hero__main {
    align-items: flex-start;
    gap: 14px;
  }

  .company-hero__logo {
    width: 72px;
    height: 72px;
    padding: 6px;
  }

  .company-hero__info h1 {
    font-size: 19px;
  }

  .company-tabs {
    overflow-x: auto;
  }
}
