/* ==========================================================================
   rusty begin new code | 2026-09-13 00:40
   Action: Styles for the redesigned companies triad — /company_sections,
           /companys/{id} and /show_company/{id}. Drafted in Google Stitch
           (project 14869186666182473713, three screens) and adapted to the
           site's Bootstrap 5.3.8 + static-pipeline conventions.

   Design language inherited from macblash-site-theme.css / macblash-directory.css:
     surface  rgba(18, 18, 26, 0.75) + backdrop-filter blur(12px)
     border   rgba(139, 92, 246, 0.15)  radius 20px
     accent   #8B5CF6 (purple) / #06b6d4 (cyan) / #f59e0b (amber)
     text     #e2e8f0  muted #94a3b8  dim #64748b

   RTL is the default direction, so every offset uses logical properties
   (margin-inline, inset-inline-*) and the layout mirrors to LTR for free.

   Cache busting: linked as ?v=1.0 from the three blade views. Bump that
   string on every edit to this file — nginx caches it for 30 days.
   ========================================================================== */

.mb-companies {
    --mbc-surface: rgba(18, 18, 26, 0.75);
    --mbc-border: rgba(139, 92, 246, 0.15);
    --mbc-border-hover: #8B5CF6;
    --mbc-purple: #8B5CF6;
    --mbc-cyan: #06b6d4;
    --mbc-amber: #f59e0b;
    --mbc-text: #e2e8f0;
    --mbc-muted: #94a3b8;
    --mbc-dim: #64748b;
    --mbc-radius: 20px;
    /* Direction sign for "forward" nudges: RTL moves toward -X, LTR toward +X. */
    --mbc-dir: 1;
    padding-bottom: 60px;
}
[dir="ltr"] .mb-companies { --mbc-dir: -1; }

/* ==========================================================================
   Shared — hero, search, cards
   ========================================================================== */

.mbc-hero { text-align: center; margin-bottom: 30px; }

.mbc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--mbc-purple);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.mbc-hero-title {
    font-family: 'TSKufidia', 'Sukar', sans-serif;
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.25;
}
.mbc-hero-title .mbc-hero-count {
    font-size: 20px;
    font-weight: 700;
    color: var(--mbc-purple);
    margin-inline-start: 8px;
}

.mbc-hero-desc {
    font-size: 15px;
    color: var(--mbc-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ─── Search bar ─── */
.mbc-search-form { max-width: 640px; margin: 26px auto 0; }
.mbc-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--mbc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mbc-border);
    border-radius: 14px;
    padding: 7px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mbc-search:focus-within {
    border-color: var(--mbc-purple);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.mbc-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--mbc-text);
    font-size: 14px;
    padding: 8px 12px;
}
.mbc-search-input::placeholder { color: var(--mbc-dim); }
.mbc-search-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 10px;
    background: var(--mbc-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.mbc-search-btn:hover {
    background: #7C3AED;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.45);
}

/* ─── Stat strip ─── */
.mbc-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 22px;
    margin: 24px auto 34px;
    padding: 12px 24px;
    width: fit-content;
    max-width: 100%;
    background: var(--mbc-surface);
    border: 1px solid var(--mbc-border);
    border-radius: 999px;
    font-size: 13px;
    color: var(--mbc-muted);
}
.mbc-stats b { color: var(--mbc-purple); font-weight: 800; margin-inline-start: 4px; }
.mbc-stats .mbc-stat-alt b { color: var(--mbc-amber); }
.mbc-stats-sep { color: var(--mbc-dim); }

/* ─── Empty state ─── */
.mbc-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--mbc-surface);
    border: 1px solid var(--mbc-border);
    border-radius: var(--mbc-radius);
    color: var(--mbc-muted);
}
.mbc-empty i { font-size: 44px; color: rgba(139, 92, 246, 0.35); margin-bottom: 14px; display: block; }
.mbc-empty h4 { color: var(--mbc-text); font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.mbc-empty p { font-size: 14px; margin: 0; }

/* ==========================================================================
   /company_sections — three large category cards
   ========================================================================== */

.mbc-section-card {
    /* No overflow:hidden here — it would clip the hover glow. The image
       wrapper below does the clipping instead. */
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--mbc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mbc-border);
    border-radius: var(--mbc-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}
.mbc-section-card:hover {
    border-color: var(--mbc-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
    color: inherit;
}

.mbc-section-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;                 /* clip here, not on the card */
    border-start-start-radius: 19px;
    border-start-end-radius: 19px;
    background: #0a0a0f;
}
.mbc-section-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.mbc-section-card:hover .mbc-section-thumb img { transform: scale(1.05); }

/* Bottom scrim so the badge and the image edge stay readable */
.mbc-section-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 15, 0.85) 100%);
    pointer-events: none;
}

.mbc-section-badge {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    background: var(--mbc-purple);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.45);
}

.mbc-section-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 20px 16px;
}
.mbc-section-title {
    font-family: 'TSKufidia', 'Sukar', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}
.mbc-section-hint {
    font-size: 13px;
    color: var(--mbc-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    flex-grow: 1;
}
.mbc-section-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--mbc-purple);
    font-size: 14px;
    font-weight: 700;
}
.mbc-section-cta-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}
.mbc-section-card:hover .mbc-section-cta-arrow {
    background: var(--mbc-purple);
    color: #fff;
    /* Logical nudge: moves toward the reading edge in both RTL and LTR */
    transform: translateX(calc(-6px * var(--mbc-dir)));
}

/* ==========================================================================
   /companys/{id} — company cards with letterboxed logos
   ========================================================================== */

.mbc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.mbc-toolbar .mbc-search-form { margin: 0; flex: 1 1 340px; max-width: 520px; }

.mbc-suggest-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--mbc-purple);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.mbc-suggest-btn:hover {
    background: var(--mbc-purple);
    color: #fff;
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.4);
}

.mbc-result-count {
    font-size: 13px;
    color: var(--mbc-muted);
    margin-bottom: 22px;
}
.mbc-result-count b { color: var(--mbc-purple); font-weight: 800; }

/* Card — equal height across the row, glow never clipped */
.mbc-company-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    background: var(--mbc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mbc-border);
    border-radius: var(--mbc-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}
.mbc-company-card:hover {
    border-color: var(--mbc-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.25);
    color: inherit;
}

/* Logos are transparent PNGs with wildly different aspect ratios, so the panel is a
   fixed-height letterbox and the logo is contained inside it — never cropped or stretched. */
.mbc-logo-box {
    position: relative;
    height: 150px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 32px;
    overflow: hidden;                 /* inner clip only */
    border-start-start-radius: 19px;
    border-start-end-radius: 19px;
    background: linear-gradient(180deg, rgba(30, 27, 46, 0.7) 0%, rgba(18, 18, 28, 0.6) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.mbc-logo-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(139, 92, 246, 0.08) 0%, transparent 75%);
    pointer-events: none;
}
.mbc-logo-box img {
    position: relative;
    z-index: 1;
    max-height: 78px;
    max-width: 82%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s ease;
}
.mbc-company-card:hover .mbc-logo-box img { transform: scale(1.04); }

.mbc-company-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 18px 20px 16px;
}
.mbc-company-title {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.4;
}
.mbc-company-desc {
    font-size: 13px;
    color: var(--mbc-muted);
    line-height: 1.7;
    margin: 0 0 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mbc-company-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mbc-company-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mbc-purple);
    font-size: 13px;
    font-weight: 700;
}
.mbc-company-card:hover .mbc-company-more { color: #a78bfa; }
.mbc-company-tag {
    font-size: 11px;
    color: var(--mbc-dim);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}

/* ==========================================================================
   /show_company/{id} — company profile
   ========================================================================== */

.mbc-panel {
    background: var(--mbc-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--mbc-border);
    border-radius: var(--mbc-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 24px;
    margin-bottom: 22px;
}

.mbc-panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    color: var(--mbc-cyan);
    margin: 0 0 18px;
    padding-inline-start: 12px;
    border-inline-start: 3px solid var(--mbc-cyan);
    line-height: 1.4;
}
.mbc-panel-title .mbc-panel-count {
    margin-inline-start: auto;
    font-size: 12px;
    font-weight: 600;
    color: var(--mbc-dim);
}

/* ─── Hero ─── */
.mbc-profile-hero {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.mbc-profile-logo {
    position: relative;
    flex: 0 0 240px;
    max-width: 240px;
    height: 200px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30, 27, 46, 0.7) 0%, rgba(18, 18, 28, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.mbc-profile-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.mbc-profile-head { flex: 1 1 320px; min-width: 0; }
.mbc-profile-name {
    font-family: 'TSKufidia', 'Sukar', sans-serif;
    font-size: 30px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
}
.mbc-profile-subname {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mbc-cyan);
    margin-bottom: 12px;
    direction: ltr;
}
.mbc-profile-desc {
    font-size: 14px;
    color: var(--mbc-muted);
    line-height: 1.8;
    margin: 0 0 16px;
}

/* Location is free text in the data, not a URL — rendered as a pill, never a link */
.mbc-profile-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 13px;
    color: var(--mbc-muted);
    margin-bottom: 18px;
}
.mbc-profile-location i { color: var(--mbc-purple); }

.mbc-profile-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.mbc-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.mbc-visit-btn:hover {
    color: #fff;
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.5);
    transform: translateY(-1px);
}

.mbc-share {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--mbc-dim);
}
.mbc-share-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--mbc-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.mbc-share-btn:hover {
    background: var(--mbc-purple);
    border-color: var(--mbc-purple);
    color: #fff;
}

/* ─── Facts strip ─── */
.mbc-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--mbc-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px;
}
.mbc-fact {
    background: #101018;
    padding: 16px 20px;
    min-height: 86px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.mbc-fact-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--mbc-dim);
}
.mbc-fact-label i { color: var(--mbc-purple); }
.mbc-fact-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--mbc-text);
    word-break: break-word;
}
.mbc-fact-value a { color: var(--mbc-cyan); text-decoration: none; }
.mbc-fact-value a:hover { text-decoration: underline; }

/* ─── Game chips ─── */
.mbc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.mbc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.22);
    color: var(--mbc-text);
    font-size: 13px;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.mbc-chip:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: var(--mbc-purple);
    transform: translateY(-2px);
}
.mbc-chip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mbc-cyan);
    flex-shrink: 0;
}

/* ─── Gallery ─── */
/* auto-fit keeps a single image full-width and lets several flow into a
   balanced grid — no empty half-cell when only one image exists. */
.mbc-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.mbc-gallery-item {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #0a0a0f;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.mbc-gallery-item:hover { border-color: var(--mbc-purple); transform: translateY(-2px); }
.mbc-gallery-item img {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* ─── Description body ─── */
.mbc-desc-body {
    font-size: 14px;
    color: var(--mbc-muted);
    line-height: 1.9;
}
.mbc-desc-body img { max-width: 100%; height: auto; border-radius: 12px; }
.mbc-desc-body a { color: var(--mbc-cyan); }

/* ─── Reviews ─── */
.mbc-avg {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(139, 92, 246, 0.08);
    border-radius: 12px;
    margin-bottom: 18px;
}
.mbc-avg-score { font-size: 38px; font-weight: 900; color: var(--mbc-amber); line-height: 1; }
.mbc-avg-stars { color: var(--mbc-amber); font-size: 15px; letter-spacing: 2px; }
.mbc-avg-count { font-size: 12px; color: var(--mbc-dim); margin-top: 3px; }

.mbc-review {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mbc-review:last-child { border-bottom: none; }
.mbc-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(139, 92, 246, 0.3);
}
.mbc-review-body { flex: 1; min-width: 0; }
.mbc-review-name {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mbc-text);
    margin-bottom: 4px;
}
.mbc-review-name .mbc-verified { color: var(--mbc-cyan); font-size: 13px; }
.mbc-review-date { font-size: 11px; color: var(--mbc-dim); font-weight: 400; margin-inline-start: auto; }
.mbc-review-stars { color: var(--mbc-amber); font-size: 12px; margin-bottom: 5px; }
.mbc-review-text { font-size: 13px; color: var(--mbc-muted); line-height: 1.7; }

/* Star input — row-reverse so the visual fill runs from the reading edge */
.mbc-star-rating { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; }
.mbc-star-rating input[type="radio"] { display: none; }
.mbc-star-rating label {
    font-size: 24px;
    color: #475569;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}
.mbc-star-rating input:checked ~ label,
.mbc-star-rating label:hover,
.mbc-star-rating label:hover ~ label { color: var(--mbc-amber); transform: scale(1.1); }

.mbc-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--mbc-text);
    padding: 14px 16px;
    min-height: 110px;
    resize: vertical;
    font-size: 14px;
    margin-top: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.mbc-textarea:focus {
    border-color: var(--mbc-purple);
    outline: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.2);
}
.mbc-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 14px;
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.mbc-submit-btn:hover { box-shadow: 0 0 22px rgba(139, 92, 246, 0.5); transform: translateY(-1px); }

/* ==========================================================================
   Responsive — tablet then mobile. Mobile rules stay inside the 768px block
   so the desktop blocks above are never touched (viewport isolation rule).
   ========================================================================== */

/* The "next" chevrons are authored for RTL (pointing inline-forward = left).
   Mirror them for LTR rather than shipping a second icon. */
[dir="ltr"] .mbc-section-cta-arrow i,
[dir="ltr"] .mbc-company-more i { transform: scaleX(-1); }

@media (max-width: 991.98px) {
    .mbc-hero-title { font-size: 32px; }
    .mbc-profile-logo { flex: 0 0 190px; max-width: 190px; height: 170px; }
    .mbc-profile-name { font-size: 25px; }
}

/* Mobile — flat 2D only: no translateZ, no preserve-3d, no perspective. */
@media (max-width: 768px) {
    .mb-companies { padding-bottom: 40px; }
    .mbc-hero-title { font-size: 26px; }
    .mbc-hero-title .mbc-hero-count { display: block; margin: 6px 0 0; }
    .mbc-hero-desc { font-size: 14px; }
    .mbc-stats { border-radius: 16px; padding: 12px 18px; }

    .mbc-toolbar { gap: 12px; }
    .mbc-toolbar .mbc-search-form { flex: 1 1 100%; max-width: none; }
    .mbc-suggest-btn { width: 100%; justify-content: center; }

    .mbc-logo-box { height: 130px; padding: 16px 24px; }
    .mbc-logo-box img { max-height: 66px; }

    .mbc-panel { padding: 18px; }
    .mbc-profile-hero { flex-direction: column; align-items: stretch; gap: 18px; }
    .mbc-profile-logo { flex: 0 0 auto; max-width: none; width: 100%; height: 160px; }
    .mbc-profile-head { text-align: center; }
    .mbc-profile-name { font-size: 22px; }
    .mbc-profile-subname,
    .mbc-profile-location { justify-content: center; }
    .mbc-profile-actions { flex-direction: column; align-items: stretch; }
    .mbc-visit-btn { justify-content: center; }
    .mbc-share { justify-content: center; }

    .mbc-facts { grid-template-columns: 1fr; }
    .mbc-gallery { grid-template-columns: 1fr; }
    .mbc-avg-score { font-size: 30px; }
    .mbc-submit-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .mbc-section-card,
    .mbc-company-card,
    .mbc-chip,
    .mbc-gallery-item,
    .mbc-visit-btn,
    .mbc-submit-btn,
    .mbc-section-thumb img,
    .mbc-logo-box img { transition: none; }
    .mbc-section-card:hover,
    .mbc-company-card:hover,
    .mbc-chip:hover,
    .mbc-gallery-item:hover,
    .mbc-visit-btn:hover,
    .mbc-submit-btn:hover { transform: none; }
}
/* rusty end new code */
