/* Filtre ve Arama Butonları */
.firmalar-filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.firmalar-filter-container select,
.firmalar-filter-container input[type="text"] {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-right: 15px;
    width: 100%; /* Eşit boyutlandırma */
    box-sizing: border-box;
}

/* Arama Çubuğu daha büyük, Faaliyet Alanı Dropdown daha küçük */
.firmalar-filter-container input[type="text"] {
    width: 70%; /* Arama çubuğunu daha geniş yapıyoruz */
}

.firmalar-filter-container select {
    width: 25%; /* Faaliyet alanı dropdown'ı küçük tutuyoruz */
}

.firmalar-filter-container button {
    padding: 10px 15px;
    background-color: #0073e6;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 20%; /* Filtrele butonunun genişliğini küçültüyoruz */
}

.firmalar-filter-container button:hover {
    background-color: #005bb5;
}

/* Logo boyutlarının eşit olmasını sağlamak */
.firmalar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 20px;
}

.firmalar-item img {
    width: 100%;
    height: 100%;
    max-height: 150px; /* Logoların yüksekliğini sabitle */
    object-fit: contain; /* Logoların oranını koruyarak düzgün şekilde yerleşmesini sağlar */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.firmalar-item img:hover {
    transform: scale(1.05);
}

/* Pop-up Ortada Konumlandırma ve Kapatma Butonu */
.firmalar-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    overflow: auto;
    display: flex; /* Pop-up'ı ortada konumlandırmak için flex kullanıyoruz */
}

.firmalar-popup-content {
    background: #fff;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.firmalar-popup-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.firmalar-popup-content p {
    font-size: 16px;
    line-height: 1.5;
    margin: 10px 0;
}

.firmalar-popup-content a {
    color: #0073e6;
    text-decoration: none;
}

.firmalar-popup-content a:hover {
    text-decoration: underline;
}

.firmalar-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #999;
    cursor: pointer;
}

.firmalar-popup-close:hover {
    color: #000;
}


/* Logo küçük ve sola hizalı */
.firma-popup-logo {
    max-width: 80px;
    height: auto;
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Firma adı sola kaydı, logo ile hizalı */
.firma-popup-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 20px;
    overflow: hidden;
    font-family: 'DM Sans', sans-serif;
}

/* Responsive grid */
.firmalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
}


/* Grid öğeleri düzgün hizalansın */
.firmalar-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/* Güncellenmiş popup bilgi yapısı */
.firma-popup-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin: 8px 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
}

/* İkonlar sabit genişlikte hizalı dursun */
.firma-popup-info i {
    color: #0073e6;
    width: 20px;
    text-align: center;
}


/* Logo'ya eklenen çerçeveyi kaldır */
.firmalar-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border-radius: 0; /* No border radius */
    box-shadow: none; /* No box shadow */
}

/* Kuruluş Yılı'na da ikon ekleyelim ve hizalayalım */
.firma-popup-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin: 8px 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
}

.firma-popup-info i {
    color: #0073e6;
    width: 20px;
    text-align: center;
}


/* Remove borders from logo images */
.firmalar-item img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    border: none; /* Ensure no border around logos */
    box-shadow: none; /* Remove any shadow if applied */
}


/* Logo boyutları sabitleniyor ve çerçeve kaldırılıyor */
.firmalar-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border: none;
    box-shadow: none;
}

.firmalar-item {
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Grid düzeni responsive hale getirilerek uyumlu yapılıyor */
.firmalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 20px;
}


/* Logo çerçevesi ve arka planı kaldırma */
.firmalar-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border: none; /* Çerçeve yok */
    background: none; /* Arka plan yok */
    box-shadow: none; /* Çerçeve gölgesi yok */
}

.firmalar-item {
    padding: 0; /* Padding sıfırlanacak */
    background: transparent; /* Arka plan transparent */
    border: none; /* Çerçeve yok */
    box-shadow: none; /* Çerçeve gölgesi yok */
    text-align: center;
}

/* Grid responsive düzene devam et */
.firmalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsive grid */
    gap: 20px;
    padding: 20px;
}


/* Grid düzeni düzgün sıralama için */
.firmalar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Auto-fit with proper minmax */
    gap: 20px;
    padding: 20px;
    justify-items: center; /* Centering items in grid */
}

.firmalar-item {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Remove background and border-radius from the firmalar-item */
.firmalar-item {
    background: transparent; /* Remove background */
    border-radius: 0; /* Remove border radius */
    padding: 0; /* Remove padding */
    box-shadow: none; /* Remove box shadow */
    text-align: center;
}

/* Add the missing icon for 'Kuruluş Yılı' */
.firma-popup-info p i {
    color: #0073e6;
    min-width: 18px;
    text-align: center;
}




/* Ensure all the info fields align properly with icons */
.firma-popup-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin: 8px 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
}

.firma-popup-info i {
    color: #0073e6;
    min-width: 18px;
    text-align: center;
}

/* For text alignment consistency */
.firma-popup-content {
    padding: 20px;
}



/* Fix the Kuruluş Yılı icon, align it with other text */
.firma-popup-info p i {
    color: #0073e6;
    min-width: 18px;
    text-align: center;
    margin-right: 5px; /* Space between icon and text */
}


/* Fix for popup layout to ensure content is aligned */
.firma-popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    max-width: 400px; /* Ensure consistent width */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}



/* Ensure each piece of info is aligned correctly */
.firma-popup-info {
    width: 100%;
}

.firma-popup-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    margin: 8px 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.5;
}

.firma-popup-info i {
    color: #0073e6;
    min-width: 18px;
    text-align: center;
    margin-right: 5px;
}


/* --- Custom Fixes --- */

.firma-popup-header h2 { /* --- cleaned up --- */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
}

.firma-popup-content .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.firma-popup-content .info-item svg,
.firma-popup-content .info-item i {
    flex-shrink: 0;
}


/* --- Custom Fixes for Popup --- */

.firma-popup-header h2 { /* --- cleaned up --- */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
}

.firma-popup-content .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.firma-popup-content .info-item svg,
.firma-popup-content .info-item i {
    flex-shrink: 0;
}


/* --- Improved Fixes for Popup Titles --- */

.firma-popup-header h2 { /* --- cleaned up --- */
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    font-size: 16px !important;
}

.firma-popup-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.firma-popup-header h2 { /* --- cleaned up --- */
    width: 100%;
    margin: 0 !important;
}

/* --- Custom Cleaned Up and Optimized Styles --- */

.firma-popup-header h2 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    font-size: 16px !important;
}

.firma-popup-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.firma-popup-header h2 {
    width: 100%;
    margin: 0 !important;
}

.firma-popup-content .info-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.firma-popup-content .info-item svg,
.firma-popup-content .info-item i {
    flex-shrink: 0;
}


/* --- Dynamic Title Fixes --- */

.firma-popup-header h2 {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    display: block !important;
    word-wrap: break-word !important;
    max-width: 100% !important;
    font-size: 18px !important;
    line-height: 1.4 !important;
}

.firma-popup-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.firma-popup-header h2 {
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
}