/* Genel Sayfa Yapısı */
.companies-page-container {
  max-width: 1200px;
  margin: 2rem auto 4rem auto;
  padding: 0 2rem;
}

/* Başlık Bölümü */
.companies-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
  background-color: #f0f2f5;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 8px; /* Genel konteyner stilini yansıt */
}

.companies-header h1 {
  font-size: 3rem;
  color: #2C3E50;
  margin-bottom: 0.5rem;
}

.companies-header p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

/* Arama ve Filtreleme Alanı */
.search-filter-bar {
  display: flex;
  flex-wrap: wrap; /* Küçük ekranlarda alt alta geçiş */
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  align-items: center; /* Dikeyde hizala */
}

.search-filter-bar input[type="text"],
.search-filter-bar select {
  flex: 1; /* Esnek genişlik */
  min-width: 200px; /* Minimum genişlik */
  padding: 0.8rem 1.2rem;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.search-filter-bar input[type="text"]:focus,
.search-filter-bar select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.search-filter-bar button {
  padding: 0.8rem 1.5rem;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-filter-bar button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Firma Kartları Grid Düzeni */
.company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Esnek kolonlar */
  gap: 2rem; /* Kartlar arası boşluk */

}

/* Firma Kartı Stilleri */
.company-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08); /* Belirgin gölge */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between; /* İçeriği dikeyde yay */
  text-decoration: none;

}

.company-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.company-card .company-logo {
  width: 100px; /* Logo boyutu */
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #3498db; /* Mavi kenarlık */
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.company-card h3 {
  font-size: 1.6rem;
  color: #2C3E50;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.company-card .location {
  font-size: 0.95rem;
  color: #7f8c8d;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.company-card .expertise {
  font-size: 0.9rem;
  color: #555;
  background-color: #eaf6fc; /* Açık mavi etiket */
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  margin-bottom: 1.2rem;
  display: inline-block; /* Birden fazla olursa yan yana durması için */
}

.company-card .view-profile-btn {
  background-color: #28a745; /* Yeşil buton */
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%; /* Kartın genişliğini kaplasın */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.company-card .view-profile-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

/* Medya Sorguları (Responsive Tasarım) */
@media (max-width: 768px) {
  .companies-page-container {
    padding: 0 1rem;
  }

  .companies-header h1 {
    font-size: 2.5rem;
  }

  .search-filter-bar {
    flex-direction: column; /* Küçük ekranlarda dikey sıralama */
    align-items: stretch; /* Yatayda gergin */
  }

  .search-filter-bar input,
  .search-filter-bar select,
  .search-filter-bar button {
    width: 100%; /* Tam genişlik */
  }

  .company-grid {
    grid-template-columns: 1fr; /* Tek sütun */
  }
}

@media (max-width: 480px) {
  .companies-header h1 {
    font-size: 2rem;
  }

  .companies-header p {
    font-size: 1rem;
  }

  .company-card {
    padding: 1.2rem;
  }

  .company-card h3 {
    font-size: 1.4rem;
  }
}