/* ---------- Business Types ---------- */
.bt-business-types {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* spacing between buttons */
    margin-top: 30px; /* further from menu bar */
    margin-bottom: 20px;
}

.bt-type-btn {
    display: inline-block;
    padding: 12px 22px;
    background: #f2f2f2; /* grey background */
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 6px 0;
    border: none; /* no border */
    box-shadow: none; /* flat style */
}

.bt-type-btn:hover {
    background: #e0e0e0;
    color: #000;
}

/* ---------- Container (Companies + Publitas) ---------- */
.bt-main-container {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    margin-bottom: 30px;
}

/* ---------- Companies ---------- */
.bt-companies {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.bt-company-item {
    flex: 1 1 calc(45% - 20px); /* 2 per row with adjusted width */
    max-width: calc(45% - 20px);
    text-align: center;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.bt-company-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.bt-company-item img {
    max-width: 60px;
    max-height: 60px;
    display: block;
    margin: 0 auto 10px;
    object-fit: contain;
}

.bt-company-title {
    font-size: 12px;
    font-weight: 500;
    color: #333;
    background: #f2f2f2; /* grey background for name */
    padding: 4px 6px;
    border-radius: 6px;
    display: block; /* make it stretch full width */
    text-align: center;
    white-space: nowrap; /* prevent wrapping */
}

/* Active company highlight */
.bt-company-item.bt-company-active {
    border: 1px solid #f2c74a;
    background: #fffbe6;
}

/* ---------- Publitas Embed ---------- */
.bt-publitas-area {
    min-height: 300px;
    padding: 0; /* no padding frame */
    background: none; /* no background */
    border: none; /* no border */
}

.bt-pub {
    margin-bottom: 10px;
}

.bt-pub h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #222;
    text-align: left; /* align left */
}

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .bt-company-item {
        flex: 1 1 calc(50% - 20px); /* 2 per row */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    /* Companies: show only icons in one row */
    .bt-companies {
        display: flex;
        flex-wrap: nowrap; /* keep them in one row */
        overflow-x: auto; /* allow horizontal scroll if too many */
        gap: 12px;
    }
    .bt-company-item {
        flex: 0 0 auto; /* prevent shrinking */
        max-width: 70px; /* adjust icon size area */
        padding: 8px;
        background: #f5f5f5; /* subtle background for app-like effect */
        border-radius: 12px; /* rounded corners for app icon style */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* slight shadow for depth */
    }
    .bt-company-item img {
        max-width: 50px;
        max-height: 50px;
        border-radius: 10px; /* make icon more circular */
        object-fit: contain; /* ensure icon fits nicely */
    }
    /* hide titles on phone */
    .bt-company-title {
        display: none;
    }
    /* Business Types: keep tighter on mobile */
    .bt-business-types {
        gap: 10px;
        margin-top: 20px;
    }
    /* Thinner margins for publication to enlarge space */
    .bt-main-container {
        margin: 0 5px; /* thinner margins */
        padding: 10px; /* reduced padding */
        border-radius: 8px; /* slightly smaller radius for compactness */
    }
    .bt-publitas-area {
        margin: 0; /* remove margins */
        padding: 0; /* ensure no padding */
    }
}