/* ===========================
    Company Detail
=========================== */

.company {
  padding: 36px 0 80px;
}


/* ===========================
    Hero
=========================== */

.company-hero {
  margin: 22px 0 32px;

  overflow: hidden;

  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
}


/* ===========================
    Cover
=========================== */

.company-hero__cover {
  position: relative;

  display: block;

  width: 100%;
  height: 190px;
  padding: 0;

  overflow: hidden;

  background: #eef6fd;
  border: 0;

  font: inherit;
}

.company-hero__cover-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.3s ease;
}

.company-hero__cover-placeholder {
  width: 100%;
  height: 100%;

  background:
    linear-gradient(
      135deg,
      #f0f8fd 0%,
      #e6f3fb 50%,
      #f5f9fc 100%
    );
}

.company-hero__cover--clickable {
  cursor: zoom-in;
}

.company-hero__cover--clickable:hover .company-hero__cover-image {
  transform: scale(1.012);
}

.company-hero__cover--clickable:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: -3px;
}


/* ===========================
    Hero Body
=========================== */

.company-hero__body {
  position: relative;

  display: flex;
  align-items: flex-start;
  gap: 18px;

  padding: 0 26px 24px;
}


/* ===========================
    Logo
=========================== */

.company-hero__logo {
  position: relative;
  z-index: 2;

  display: flex;
  flex: 0 0 92px;
  align-items: center;
  justify-content: center;

  width: 92px;
  height: 92px;

  margin-top: -34px;
  padding: 10px;

  overflow: hidden;

  background: #fff;
  border: 4px solid #fff;
  border-radius: 20px;
  box-shadow:
    0 6px 18px rgba(15, 23, 42, 0.1);

  font: inherit;
}

.company-hero__logo-image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  border-radius: 9px;
}

.company-hero__logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;

  background: #f3f6fa;
  border-radius: 10px;
}

.company-hero__logo-placeholder-icon {
  width: 34px;
  height: 34px;

  object-fit: contain;

  opacity: 0.58;
}

.company-hero__logo--clickable {
  cursor: zoom-in;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.company-hero__logo--clickable:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.14);
}

.company-hero__logo--clickable:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}


/* ===========================
    Hero Content
=========================== */

.company-hero__content {
  min-width: 0;

  padding-top: 19px;
}

.company-hero__heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.company-hero__heading h1 {
  margin: 0;

  overflow-wrap: anywhere;

  color: var(--color-text);

  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
}

.company-hero__verified {
  display: inline-flex;
  align-items: center;

  min-height: 25px;
  padding: 0 10px;

  color: #b45309;

  background: #fff7ed;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  white-space: nowrap;
}

.company-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 7px;

  color: var(--color-text-light);

  font-size: 13px;
  line-height: 1.4;
}


/* ===========================
    Tags
=========================== */

.company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;

  margin-top: 13px;
}

.company-tags span {
  display: inline-flex;
  align-items: center;

  min-height: 27px;
  padding: 5px 10px;

  color: #475569;

  background: #f1f5f9;
  border-radius: 999px;

  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}


/* ===========================
    Main Layout
=========================== */

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 24px;
}

.company-content {
  display: flex;
  flex-direction: column;
  gap: 20px;

  min-width: 0;
}


/* ===========================
    Sections
=========================== */

.company-section {
  min-height: 0;
  padding: 24px 26px;

  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.company-section > h2,
.company-section__header h2 {
  margin: 0;

  color: var(--color-text);

  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
}


/* ===========================
    Description
=========================== */

.company-description {
  margin-top: 14px;

  overflow-wrap: anywhere;

  color: #475569;

  font-size: 14px;
  line-height: 1.7;
}

.company-description p {
  margin: 0;
}

.company-description p + p {
  margin-top: 12px;
}


/* ===========================
    Section Header
=========================== */

.company-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;

  margin-bottom: 14px;
}

.company-section__header > div {
  min-width: 0;
}

.company-section__header p {
  margin: 5px 0 0;

  color: var(--color-text-light);

  font-size: 12px;
  line-height: 1.4;
}

.company-section__count {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  min-width: 29px;
  height: 29px;
  padding: 0 9px;

  color: var(--color-primary);

  background: #eef6fd;
  border-radius: 999px;

  font-size: 12px;
  font-weight: 700;
}


/* ===========================
    Vacancy List
=========================== */

.company-vacancies__list {
  display: flex;
  flex-direction: column;
}

.company-vacancy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 16px 0;

  color: inherit;
  text-decoration: none;

  border-top: 1px solid #eef2f7;

  transition: var(--transition);
}

.company-vacancy:first-child {
  border-top: 0;
}

.company-vacancy:hover .company-vacancy__content > strong,
.company-vacancy:focus-visible .company-vacancy__content > strong {
  color: var(--color-primary);
}

.company-vacancy:focus-visible {
  outline: none;
}

.company-vacancy__content {
  flex: 1;

  min-width: 0;
}

.company-vacancy__content > strong {
  display: block;

  overflow: hidden;

  color: var(--color-text);

  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;

  white-space: nowrap;
  text-overflow: ellipsis;

  transition: var(--transition);
}

.company-vacancy__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: 5px;

  color: var(--color-text-light);

  font-size: 11px;
  line-height: 1.4;
}

.company-vacancy__location {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  min-width: 0;
}

.company-vacancy__location img {
  flex: 0 0 auto;

  width: 14px;
  height: 14px;

  object-fit: contain;

  opacity: 0.72;
}

.company-vacancy__location span {
  min-width: 0;

  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}

.company-vacancy__side {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 14px;
}

.company-vacancy__side > strong {
  color: var(--color-text);

  font-size: 13px;
  font-weight: 700;

  white-space: nowrap;
}


/* ===========================
    Vacancy Empty
=========================== */

.company-vacancies__empty {
  padding: 24px 0 6px;

  color: var(--color-text-light);

  font-size: 14px;
  text-align: center;
}

.company-vacancies__empty p {
  margin: 0;
}


/* ===========================
    Vacancy Actions
=========================== */

.company-vacancies__actions {
  padding-top: 16px;

  border-top: 1px solid #eef2f7;
}

.company-vacancies__actions .button {
  width: 100%;
}


/* ===========================
    Sidebar
=========================== */

.company-sidebar {
  position: sticky;
  top: 110px;

  min-width: 0;
}


/* ===========================
    Company Info
=========================== */

.company-info-card {
  padding: 22px 24px;

  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

.company-info-card h2 {
  margin: 0 0 16px;

  color: var(--color-text);

  font-size: 18px;
  font-weight: 750;
  line-height: 1.25;
}

.company-info-card__items {
  display: flex;
  flex-direction: column;
}

.company-info-card__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  padding: 12px 0;

  border-top: 1px solid #eef2f7;
}

.company-info-card__item:first-child {
  padding-top: 0;

  border-top: 0;
}

.company-info-card__item:last-child {
  padding-bottom: 0;
}

.company-info-card__item img {
  flex: 0 0 auto;

  width: 15px;
  height: 15px;
  margin-top: 3px;

  object-fit: contain;

  opacity: 0.7;
}

.company-info-card__item > div {
  min-width: 0;
}

.company-info-card__item span {
  display: block;

  margin-bottom: 3px;

  color: var(--color-text-light);

  font-size: 10px;
  line-height: 1.3;
}

.company-info-card__item strong {
  display: block;

  overflow-wrap: anywhere;

  color: var(--color-text);

  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.company-info-card__website {
  overflow: hidden;

  white-space: nowrap;
  text-overflow: ellipsis;
}


/* ===========================
    Company Info Button
=========================== */

.company-info-card__button {
  width: 100%;
  min-height: 42px;
  margin-top: 18px;
}


/* ===========================
    Tablet
=========================== */

@media (max-width: 1000px) {
  .company-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .company-sidebar {
    position: static;
  }

  .company-info-card {
    max-width: none;
  }
}


/* ===========================
    Small Tablet
=========================== */

@media (max-width: 768px) {
  .company {
    padding: 32px 0 65px;
  }

  .company-hero {
    margin: 20px 0 28px;
  }

  .company-hero__cover {
    height: 170px;
  }

  .company-hero__body {
    padding-inline: 22px;
    padding-bottom: 22px;
  }

  .company-hero__heading h1 {
    font-size: 26px;
  }

  .company-content {
    gap: 18px;
  }
}


/* ===========================
    Mobile
=========================== */

@media (max-width: 640px) {
  .company {
    padding: 28px 0 55px;
  }

  .company-hero {
    margin: 18px 0 24px;

    border-radius: 18px;
  }

  .company-hero__cover {
    height: 145px;
  }

  .company-hero__body {
    flex-direction: column;
    gap: 8px;

    padding: 0 18px 20px;
  }

  .company-hero__logo {
    flex-basis: 74px;

    width: 74px;
    height: 74px;

    margin-top: -28px;
    padding: 8px;

    border-width: 3px;
    border-radius: 17px;
  }

  .company-hero__logo-placeholder {
    border-radius: 9px;
  }

  .company-hero__logo-placeholder-icon {
    width: 28px;
    height: 28px;
  }

  .company-hero__content {
    width: 100%;
    padding-top: 0;
  }

  .company-hero__heading {
    gap: 8px;
  }

  .company-hero__heading h1 {
    font-size: 24px;
  }

  .company-hero__meta {
    font-size: 12px;
  }

  .company-tags {
    margin-top: 11px;
  }

  .company-section {
    padding: 20px;

    border-radius: 17px;
  }

  .company-section > h2,
  .company-section__header h2 {
    font-size: 18px;
  }

  .company-description {
    font-size: 14px;
    line-height: 1.65;
  }

  .company-vacancy {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;

    padding: 15px 0;
  }

  .company-vacancy__content {
    width: 100%;
  }

  .company-vacancy__content > strong {
    display: -webkit-box;

    white-space: normal;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .company-vacancy__side {
    width: 100%;

    justify-content: space-between;
  }

  .company-info-card {
    padding: 20px;

    border-radius: 17px;
  }
}


/* ===========================
    Small Mobile
=========================== */

@media (max-width: 480px) {
  .company {
    padding-top: 24px;
  }

  .company-hero__cover {
    height: 125px;
  }

  .company-hero__body {
    padding-inline: 16px;
    padding-bottom: 18px;
  }

  .company-hero__heading h1 {
    font-size: 22px;
  }

  .company-hero__verified {
    min-height: 23px;
    padding-inline: 8px;

    font-size: 10px;
  }

  .company-tags span {
    min-height: 25px;
    padding: 4px 9px;

    font-size: 10px;
  }

  .company-section {
    padding: 18px;
  }

  .company-section__header {
    gap: 10px;
  }

  .company-vacancy__meta {
    gap: 6px;
  }

  .company-vacancy__side > strong {
    font-size: 12px;
  }

  .company-info-card {
    padding: 18px;
  }
}