/* ========================================================
   Public Internship Companies Page Styling - GST Bangka Belitung
   ======================================================== */

.companies-page {
  padding: 40px 100px;
  min-height: calc(100vh - 200px);
  background: #f8fafc;
}

.companies-header {
  text-align: center;
  margin-bottom: 36px;
}

.companies-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary, #191970);
  margin-bottom: 10px;
  line-height: 1.3;
}

.companies-subtitle {
  font-size: 15px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Filter & Search Bar */
.filter-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.search-box-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 260px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.search-box-wrap:focus-within {
  border-color: var(--color-primary, #191970);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(25, 25, 112, 0.1);
}

.search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: #0f172a;
}

.category-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cat-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #475569;
  background: #f1f5f9;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.cat-pill:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.cat-pill.active {
  background: var(--color-primary, #191970);
  color: #ffffff;
}

/* Companies Grid */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.company-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.company-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.company-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
  flex-wrap: wrap;
}

.badge-ind {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-ind-elektronik {
  background: #e0f2fe;
  color: #0284c7;
}

.badge-ind-teknologi {
  background: #f3e8ff;
  color: #7e22ce;
}

.badge-ind-manufaktur {
  background: #fef3c7;
  color: #b45309;
}

.badge-ind-hospitality {
  background: #dcfce7;
  color: #15803d;
}

.badge-ind-umum {
  background: #f1f5f9;
  color: #475569;
}

.badge-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-status-active {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.badge-status-closed {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.company-card-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  line-height: 1.35;
}

.company-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

.company-card-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

/* Detail Box (Specs/Benefits) */
.company-specs-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
}

.spec-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary, #191970);
  margin-top: 1px;
}

.spec-label {
  font-weight: 700;
  color: #334155;
  margin-right: 4px;
}

.spec-val {
  color: #475569;
}

/* Card Actions */
.company-card-actions {
  display: flex;
  gap: 10px;
}

.btn-comp-apply {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  background: var(--sch-body-color-yellow, #f1b20c);
  color: #0f1d3a;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(241, 178, 12, 0.25);
}

.btn-comp-apply:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(241, 178, 12, 0.35);
  color: #0f1d3a;
}

.btn-comp-web {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-comp-web:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
}

.empty-state i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

/* ========================================================
   Responsive untuk HP / Layar Kecil (Mobile Optimization)
   ======================================================== */

@media (max-width: 768px) {
  .companies-page {
    padding: 24px 16px 60px;
  }

  .companies-header {
    margin-bottom: 24px;
    text-align: left;
  }

  .companies-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .companies-subtitle {
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
  }

  .filter-wrap {
    padding: 16px;
    border-radius: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 24px;
  }

  .search-box-wrap {
    min-width: 100%;
    width: 100%;
    padding: 9px 14px;
  }

  .category-pills {
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .cat-pill {
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .companies-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .company-card {
    padding: 18px;
    border-radius: 14px;
  }

  .company-card-title {
    font-size: 16px;
  }

  .company-card-desc {
    font-size: 12.5px;
    margin-bottom: 14px;
  }

  .company-card-actions {
    flex-direction: column;
    gap: 8px;
  }

  .btn-comp-apply,
  .btn-comp-web {
    width: 100%;
    padding: 10px 14px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .companies-page {
    padding: 18px 12px 50px;
  }

  .companies-title {
    font-size: 21px;
  }

  .companies-subtitle {
    font-size: 13px;
  }

  .filter-wrap {
    padding: 12px;
    gap: 10px;
  }

  .company-card {
    padding: 16px;
  }
}
