.custom-sectors-container {
    text-align: center;
    padding: 20px;
}

.custom-sectors-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    position: relative;
}

.custom-sectors-container h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: red;
    margin: 10px auto;
}

.custom-sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px; /* Aralarındaki boşluğu artırdık */
}

.custom-sector-button {
    position: relative;
    padding: 20px;
    color: white;
    font-size: 18px;
    text-align: center;
    background-size: cover;
    background-position: center;
    height: 180px; /* Yüksekliği artırarak kareye daha yakın hale getirdik */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden; /* Pseudo-elementin taşmaması için */
}

.custom-sector-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Karartma efekti */
    z-index: 1; /* Yazının üzerinde olmaması için */
    transition: background-color 0.3s ease;
}

.custom-sector-button:hover::before {
    background-color: rgba(0, 0, 0, 0.6); /* Hover durumunda karartmayı artırıyoruz */
}

.custom-sector-button span {
    position: relative;
    z-index: 2; /* Yazıyı karartmanın üzerinde tutuyoruz */
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
}

/* Mobil uyumluluk için medya sorguları */
@media (max-width: 768px) {
    .custom-sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; /* Mobilde boşlukları biraz daha daralttık */
    }

    .custom-sector-button {
        height: 160px; /* Mobilde kare formunu korumak için yüksekliği ayarladık */
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .custom-sectors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .custom-sector-button {
        height: 140px; /* Mobilde kare formunu korumak için yüksekliği ayarladık */
        font-size: 14px;
    }

    .custom-sector-button span {
        padding: 8px 15px;
    }
}
