/* Referanslar Page Styles */
.ref-hero {
    background: #0f172a;
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    background-image:
        radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 1) 0, transparent 50%),
        radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
}

/* Grid Layout */
.ref-container {
    display: grid;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Default Desktop Grid (5 items/row or similar) */
.ref-grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.ref-grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ref-grid-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    /* Standard Desktop Height */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.ref-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.ref-grid-item img {
    max-width: 90%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    transition: 0.3s;
    opacity: 0.7;
}

.ref-grid-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Big Brands Override */
.big-brand {
    border-color: #94a3b8;
    background: #f8fafc;
    height: 160px;
    /* Taller for big brands on desktop */
}

.big-brand img {
    max-height: 100px;
    opacity: 0.9;
}

/* MOBILE RESPONSIVE (Strict Control) */
@media (max-width: 768px) {
    .ref-hero {
        padding: 60px 0 40px;
    }

    .ref-hero h1 {
        font-size: 2rem;
    }

    /* Force 2 Columns on Mobile */
    .ref-grid-cols-5,
    .ref-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        /* Tighter gap */
    }

    /* Tighter, shorter boxes */
    .ref-grid-item {
        height: 100px;
        /* Strict height */
        padding: 0.5rem;
        /* Less padding */
        border-radius: 8px;
    }

    .big-brand {
        height: 110px;
        /* Slightly taller for big brands */
    }

    /* Logo Sizing Rules */
    .ref-grid-item img {
        max-width: 95%;
        /* Allow full width */
        max-height: 60%;
        /* Limit height to avoid overflow */
        opacity: 0.85;
        /* Better visibility on mobile */
    }
}