/* ══════════════════════════════════════════════════════════════════════════════
   QuickBill — Company Cards Grid
   Used on parent category pages: /electricity/, /gas/, /water/, /internet/
   ══════════════════════════════════════════════════════════════════════════════ */

.qbc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0 32px;
}

.qbc-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    position: relative;
    overflow: hidden;
}

.qbc-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--qbc-card-color, #1e9bd7);
    border-radius: 10px 0 0 10px;
}

.qbc-card:hover {
    border-color: var(--qbc-card-color, #1e9bd7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.qbc-card:visited {
    color: inherit;
}

/* ── Icon Circle ── */
.qbc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: var(--qbc-card-color, #1e9bd7);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ── Text ── */
.qbc-card-body {
    flex: 1;
    min-width: 0;
}

.qbc-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 3px;
    line-height: 1.3;
}

.qbc-card-full {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Arrow ── */
.qbc-card-arrow {
    font-size: 18px;
    color: #9ca3af;
    transition: color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.qbc-card:hover .qbc-card-arrow {
    color: var(--qbc-card-color, #1e9bd7);
    transform: translateX(3px);
}

/* ── Section Headers ── */
.qbc-cards-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.qbc-cards-section-title:first-child {
    margin-top: 0;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .qbc-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .qbc-card {
        padding: 16px 18px;
    }

    .qbc-card-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 17px;
    }
}
