﻿﻿ /* EnquiryGate Home – Clean Presentation Sections
   Designed to work with theme.min.css without fighting it
*/
:root {
    --eg-brand: #E80000; /* keep brand, use as accent only */
    --eg-ink: #111827;
    --eg-muted: #6b7280;
    --eg-border: rgba(17,24,39,.10);
    --eg-soft: rgba(232,0,0,.07);
    --eg-soft2: rgba(17,24,39,.03);
}

/* section wrapper (light + premium) */
.eg-present {
    background: linear-gradient(180deg, var(--eg-soft2), transparent);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
}

/* small badge */
.eg-pill {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(232,0,0,.08);
    border: 1px solid rgba(232,0,0,.16);
    color: var(--eg-ink);
    font-weight: 700;
}

/* cards */
.eg-card-mini {
    height: 100%;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
}

    .eg-card-mini .eg-ico {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(232,0,0,.10);
        border: 1px solid rgba(232,0,0,.18);
        color: var(--eg-brand);
        font-size: 1.1rem;
        flex: 0 0 auto;
    }

    .eg-card-mini h5 {
        font-weight: 800;
        margin: .1rem 0 .2rem;
        color: var(--eg-ink);
    }

    .eg-card-mini p {
        margin: 0;
        color: var(--eg-muted);
        font-size: .95rem;
        line-height: 1.45;
    }

/* how-it-works steps */
.eg-steps {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.eg-step {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 10px 22px rgba(17,24,39,.05);
    font-weight: 700;
    color: var(--eg-ink);
}

    .eg-step .n {
        width: 28px;
        height: 28px;
        border-radius: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(232,0,0,.10);
        border: 1px solid rgba(232,0,0,.18);
        color: var(--eg-brand);
        font-weight: 900;
    }

/* login mandatory callout */
.eg-login-note {
    background: rgba(232,0,0,.06);
    border: 1px solid rgba(232,0,0,.16);
    border-radius: 16px;
    padding: 1rem;
}

    .eg-login-note strong {
        color: var(--eg-ink);
    }

.eg-link {
    color: var(--eg-brand);
    font-weight: 700;
    text-decoration: none;
}

    .eg-link:hover {
        text-decoration: underline;
    }

/* Use brand as accent only */
.eg-accent {
    color: var(--eg-brand);
}

/* responsive tweaks */
@media (max-width: 575.98px) {
    .eg-present {
        border-radius: 14px;
    }

    .eg-card-mini {
        border-radius: 14px;
        padding: .9rem;
    }

    .eg-step {
        width: 100%;
        justify-content: flex-start;
    }
}

.border-end-md {
    border-right: 1px solid rgba(0,0,0,.06);
}

@media (max-width: 991.98px) {
    .border-end-md {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,.06);
    }
}
/* =========================
   Business Tools (Homepage)
========================= */
.eg-tools {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17,24,39,.02), #fff 55%);
    border: 1px solid rgba(0,0,0,.06);
}

.eg-tools-grid {
    align-items: stretch;
}

.eg-tool {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: .95rem .85rem;
    height: 100%;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .eg-tool:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

.eg-tool-ico {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: .55rem;
    border: 1px solid rgba(0,0,0,.06);
}

/* Title + subtitle */
.eg-tool-title {
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
}

.eg-tool-sub {
    font-size: .82rem;
    color: #6b7280;
    margin-top: .1rem;
}

/* Color tokens (soft backgrounds, premium look) */
.eg-ico-accent {
    background: rgba(232,0,0,.10);
    color: #E80000;
    border-color: rgba(232,0,0,.18);
}

.eg-ico-blue {
    background: rgba(59,130,246,.12);
    color: #2563eb;
    border-color: rgba(59,130,246,.18);
}

.eg-ico-green {
    background: rgba(34,197,94,.12);
    color: #16a34a;
    border-color: rgba(34,197,94,.18);
}

.eg-ico-orange {
    background: rgba(249,115,22,.12);
    color: #ea580c;
    border-color: rgba(249,115,22,.18);
}

.eg-ico-purple {
    background: rgba(168,85,247,.12);
    color: #7c3aed;
    border-color: rgba(168,85,247,.18);
}

.eg-ico-cyan {
    background: rgba(6,182,212,.12);
    color: #0891b2;
    border-color: rgba(6,182,212,.18);
}

/* Improve spacing on small screens */
@media (max-width: 575.98px) {
    .eg-tool {
        padding: .85rem .8rem;
    }

    .eg-tool-ico {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }
}
/* ===== Clean Presentation Blocks (less bulky) ===== */
.eg-block {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
}

.eg-block-soft {
    background: linear-gradient(180deg, rgba(17,24,39,.02), #fff 70%);
}

.eg-block-hero {
    background: radial-gradient(900px 280px at 15% 0%, rgba(232,0,0,.10), transparent 60%), linear-gradient(180deg, rgba(17,24,39,.02), #fff 60%);
}

.eg-kicker {
    display: inline-flex;
    align-items: center;
    padding: .42rem .8rem;
    border-radius: 999px;
    background: rgba(232,0,0,.08);
    border: 1px solid rgba(232,0,0,.14);
    font-weight: 700;
    color: #111827;
    gap: .35rem;
}

.eg-h2 {
    font-weight: 900;
    letter-spacing: -.02em;
    color: #0F172A;
}

.eg-h3 {
    font-weight: 900;
    color: #0F172A;
}

.eg-p {
    color: #6b7280;
    max-width: 90ch;
}

/* stats row */
.eg-stat {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    box-shadow: 0 10px 22px rgba(17,24,39,.05);
}

.eg-stat-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,0,0,.10);
    border: 1px solid rgba(232,0,0,.16);
    color: #E80000;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.eg-stat-title {
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
}

.eg-stat-sub {
    color: #6b7280;
    font-size: .9rem;
    margin-top: .15rem;
}

/* cards inside blocks */
.eg-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
}

.eg-card-flat {
    background: rgba(17,24,39,.02);
}

.eg-card-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(232,0,0,.10);
    border: 1px solid rgba(232,0,0,.16);
    color: #E80000;
    margin-bottom: .6rem;
}

.eg-card-title {
    font-weight: 900;
    color: #111827;
}

.eg-card-text {
    color: #6b7280;
    font-size: .95rem;
    margin-top: .25rem;
}

/* inline note */
.eg-note-inline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(232,0,0,.06);
    border: 1px solid rgba(232,0,0,.14);
    color: #374151;
    font-weight: 700;
    font-size: .85rem;
}

/* checklist */
.eg-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: grid;
    gap: .55rem;
}

    .eg-list li {
        color: #374151;
        font-weight: 700;
    }

    .eg-list i {
        color: #16a34a;
    }
/* check green, subtle and readable */

/* login block */
.eg-login {
    background: radial-gradient(800px 260px at 30% 0%, rgba(232,0,0,.10), transparent 55%), linear-gradient(180deg, #fff, #fff);
}
/* =========================
   Countries Horizontal Scroll
========================= */
.eg-hscroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px; /* card width */
    gap: 14px;
    padding: 6px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

    .eg-hscroll::-webkit-scrollbar {
        height: 10px;
    }

    .eg-hscroll::-webkit-scrollbar-track {
        background: rgba(0,0,0,.04);
        border-radius: 999px;
    }

    .eg-hscroll::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,.18);
        border-radius: 999px;
    }

        .eg-hscroll::-webkit-scrollbar-thumb:hover {
            background: rgba(0,0,0,.28);
        }

.eg-country-card {
    scroll-snap-align: start;
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .eg-country-card:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

.eg-country-imgwrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: rgba(17,24,39,.04);
}

    .eg-country-imgwrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.eg-country-name {
    padding: .75rem .9rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
}

/* responsive widths */
@media (max-width: 575.98px) {
    .eg-hscroll {
        grid-auto-columns: 76%; /* big swipe cards on mobile */
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .eg-hscroll {
        grid-auto-columns: 260px;
    }
}
/* =========================
   EG Carousel (Reusable)
========================= */
.eg-carousel {
    position: relative;
    border-radius: 18px;
}

.eg-carousel-viewport {
    overflow: hidden; /* hide scrollbar completely */
    border-radius: 18px;
}

.eg-carousel-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    user-select: none;
    padding: 4px 54px; /* room for arrows */
}

/* subtle fades on edges (modern) */
.eg-carousel::before,
.eg-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 52px;
    pointer-events: none;
    z-index: 2;
}

.eg-carousel::before {
    left: 0;
    background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

.eg-carousel::after {
    right: 0;
    background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* arrows */
.eg-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 26px rgba(17,24,39,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .eg-carousel-btn:hover {
        transform: translateY(-50%) scale(1.04);
        box-shadow: 0 14px 34px rgba(17,24,39,.14);
    }

    .eg-carousel-btn.prev {
        left: 8px;
    }

    .eg-carousel-btn.next {
        right: 8px;
    }

/* =========================
   Country Card (Modern)
========================= */
.eg-country {
    flex: 0 0 auto;
    width: 240px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .eg-country:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

.eg-country-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(17,24,39,.03);
}

    .eg-country-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.eg-country-name {
    padding: .75rem .9rem;
    font-weight: 900;
    color: #111827;
    letter-spacing: -.01em;
}

/* Responsive widths */
@media (max-width: 575.98px) {
    .eg-carousel-track {
        padding: 4px 44px;
    }

    .eg-country {
        width: 78vw;
    }
    /* big swipe card */
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .eg-country {
        width: 280px;
    }
}
/* IMPORTANT: do not block clicks */
.eg-carousel::before,
.eg-carousel::after {
    pointer-events: none !important;
}

pointer-events: none !important;
/* viewport should also not steal pointer events */
.eg-carousel-viewport {
    pointer-events: auto;
}

/* track should allow clicks and taps */
.eg-carousel-track {
    pointer-events: auto;
}

/* cards should be above any overlay */
.eg-country {
    position: relative;
    z-index: 4;
}
/* =========================
   EG Companies Carousel Cards
========================= */
.eg-carousel-companies .eg-carousel-track {
    padding: 4px 54px;
    gap: 14px;
}

.eg-company-card {
    flex: 0 0 auto;
    width: 260px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
    z-index: 4; /* ensure clickable */
}

    .eg-company-card:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

.eg-company-logo {
    height: 72px;
    border-radius: 14px;
    background: rgba(17,24,39,.03);
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .eg-company-logo img {
        max-height: 52px;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

.eg-company-title {
    margin-top: .75rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
    font-size: .98rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.eg-company-meta {
    margin-top: .4rem;
    font-size: .82rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.eg-company-dot {
    color: rgba(17,24,39,.30);
}

/* Responsive */
@media (max-width: 575.98px) {
    .eg-carousel-companies .eg-carousel-track {
        padding: 4px 44px;
    }

    .eg-company-card {
        width: 78vw;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .eg-company-card {
        width: 300px;
    }
}
/* =========================
   Base Carousel (shared)
========================= */
.eg-carousel {
    position: relative;
    border-radius: 18px;
}

.eg-carousel-viewport {
    overflow: hidden;
    border-radius: 18px;
}

.eg-carousel-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    user-select: none;
    padding: 6px 56px; /* space for arrows */
}

/* edge fades (visual only, never clickable) */
.eg-carousel::before,
.eg-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    z-index: 2;
    pointer-events: none !important;
}

.eg-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
}

.eg-carousel::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255,255,255,0));
}

/* arrows */
.eg-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 26px rgba(17,24,39,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .eg-carousel-btn.prev {
        left: 8px;
    }

    .eg-carousel-btn.next {
        right: 8px;
    }

/* =========================
   Variant: COUNTRIES (flag tiles)
========================= */
.eg-carousel--countries .eg-carousel-track {
    padding: 6px 56px;
}

.eg-carousel--countries .eg-country {
    flex: 0 0 auto;
    width: 300px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
    z-index: 5;
}

    .eg-carousel--countries .eg-country:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

.eg-carousel--countries .eg-country-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(17,24,39,.03);
}

    .eg-carousel--countries .eg-country-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* Country name as overlay chip on flag (looks modern) */
.eg-carousel--countries .eg-country-name {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-weight: 900;
    color: #111827;
    box-shadow: 0 10px 22px rgba(17,24,39,.10);
}

/* =========================
   Variant: COMPANIES (logo cards)
========================= */
.eg-carousel--companies .eg-carousel-track {
    padding: 6px 56px;
}

/* a little smaller than countries */
.eg-carousel--companies .eg-company-card {
    flex: 0 0 auto;
    width: 350px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 1.1rem;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    position: relative;
    z-index: 5;
}

    .eg-carousel--companies .eg-company-card:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

/* logo panel */
.eg-carousel--companies .eg-company-logo {
    height: 110px; /* bigger */
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(232,0,0,.06), rgba(17,24,39,.03));
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: flex-start; /* <-- left align, not centered */
    padding: 14px 16px; /* breathing */
    overflow: hidden;
}

    .eg-carousel--companies .eg-company-logo img {
        height: 100%;
        max-height: 82px; /* visible */
        width: auto;
        max-width: 100%;
        object-fit: contain;
        display: block;
        transform: scale(1.12); /* slight boost */
        transform-origin: left center; /* keeps it left */
        filter: saturate(1.08) contrast(1.02);
    }

.eg-carousel--companies .eg-company-title {
    margin-top: .75rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.eg-carousel--companies .eg-company-card.is-logo-fill .eg-company-logo img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover; /* fill strip */
    transform: none;
    border-radius: 12px;
}

.eg-carousel--companies .eg-company-meta {
    margin-top: .4rem;
    font-size: .85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.eg-carousel--companies .eg-company-dot {
    color: rgba(17,24,39,.30);
}

/* Responsive */
@media (max-width: 575.98px) {
    .eg-carousel-track {
        padding: 6px 48px;
    }

    .eg-carousel--countries .eg-country {
        width: 86vw;
    }

    .eg-carousel--companies .eg-company-card {
        width: 86vw;
    }
}
/* =========================
   EG Carousel Base (shared)
========================= */
.eg-carousel {
    position: relative;
    border-radius: 18px;
}

.eg-carousel-viewport {
    overflow: hidden;
    border-radius: 18px;
}

.eg-carousel-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    user-select: none;
    padding: 8px 56px; /* space for arrows */
}

/* Edge fades - MUST not block clicks */
.eg-carousel::before,
.eg-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 54px;
    z-index: 2;
    pointer-events: none !important;
}

.eg-carousel::before {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
}

.eg-carousel::after {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255,255,255,0));
}

/* Ensure cards/links are clickable above everything */
.eg-carousel a,
.eg-carousel .eg-country,
.eg-carousel .eg-company-card {
    position: relative;
    z-index: 5;
}

/* arrows */
.eg-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 26px rgba(17,24,39,.10);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

    .eg-carousel-btn.prev {
        left: 8px;
    }

    .eg-carousel-btn.next {
        right: 8px;
    }

/* =========================
   Variant: COUNTRIES (flag tiles)
========================= */
.eg-carousel--countries .eg-country {
    flex: 0 0 auto;
    width: 320px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .eg-carousel--countries .eg-country:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

.eg-carousel--countries .eg-country-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(17,24,39,.03);
}

    .eg-carousel--countries .eg-country-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

/* name as a chip overlay (modern) */
.eg-carousel--countries .eg-country-name {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    padding: .35rem .7rem;
    font-weight: 900;
    color: #111827;
    box-shadow: 0 10px 22px rgba(17,24,39,.10);
}

/* =========================
   Variant: COMPANIES (logo cards)
========================= */
.eg-carousel--companies .eg-company-card {
    flex: 0 0 auto;
    width: 280px;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .eg-carousel--companies .eg-company-card:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

/* logo panel */
.eg-carousel--companies .eg-company-logo {
    height: 78px;
    border-radius: 16px;
    background: rgba(17,24,39,.03);
    border: 1px solid rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .eg-carousel--companies .eg-company-logo img {
        max-height: 56px;
        max-width: 100%;
        object-fit: contain;
        display: block;
    }

.eg-carousel--companies .eg-company-title {
    margin-top: .75rem;
    font-weight: 900;
    color: #111827;
    line-height: 1.2;
    font-size: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.eg-carousel--companies .eg-company-meta {
    margin-top: .4rem;
    font-size: .85rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.eg-carousel--companies .eg-company-dot {
    color: rgba(17,24,39,.30);
}

/* Responsive */
@media (max-width: 575.98px) {
    .eg-carousel-track {
        padding: 8px 48px;
    }

    .eg-carousel--countries .eg-country {
        width: 86vw;
    }

    .eg-carousel--companies .eg-company-card {
        width: 86vw;
    }
}
/* =========================
   Most Searched Categories
========================= */
.eg-cat-card {
    display: block;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(17,24,39,.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    height: 100%;
}

    .eg-cat-card:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 14px 34px rgba(17,24,39,.10);
    }

/* fixed, clean thumbnail */
.eg-cat-media {
    height: 108px; /* consistent */
    background: rgba(17,24,39,.03);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .eg-cat-media img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* makes it look premium */
        display: block;
    }

/* title area */
.eg-cat-title {
    padding: .7rem .75rem;
    font-weight: 900;
    color: #374151;
    text-align: center;
    line-height: 1.15;
    min-height: 2.4em; /* consistent card height */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* avoid ugly multi-line */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* responsive tweak: slightly taller media on larger screens */
@media (min-width: 992px) {
    .eg-cat-media {
        height: 118px;
    }
}
/* =========================
   Carousel Variant: POSTS
   (magazine style, different from countries/companies)
========================= */
.eg-carousel--posts .eg-carousel-track {
    padding: 10px 56px;
    gap: 16px;
}

.eg-post-card {
    flex: 0 0 auto;
    /* width: 420px; */ /* bigger than companies/countries */
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(17,24,39,.07);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

    .eg-post-card:hover {
        transform: translateY(-2px);
        border-color: rgba(232,0,0,.18);
        box-shadow: 0 18px 42px rgba(17,24,39,.12);
    }

.eg-post-media {
    position: relative;
    display: block;
    height: 210px;
    background: rgba(17,24,39,.03);
}

    .eg-post-media img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* post look */
        display: block;
    }

/* top-left chip */
.eg-post-chip {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 999px;
    padding: .35rem .6rem;
    font-weight: 900;
    font-size: .82rem;
    color: #111827;
    box-shadow: 0 12px 26px rgba(17,24,39,.10);
}

.eg-post-body {
    padding: 1rem 1rem .95rem;
}

.eg-post-kicker {
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 800;
    margin-bottom: .35rem;
}

.eg-post-title {
    margin: 0 0 .75rem;
    font-weight: 950;
    font-size: 1.06rem;
    line-height: 1.2;
}

    .eg-post-title a {
        text-decoration: none;
        color: #111827;
    }

        .eg-post-title a:hover {
            color: #e80000;
        }

/* business mini row */
.eg-post-business {
    display: flex;
    align-items: center;
    gap: .65rem;
    text-decoration: none;
    padding-top: .6rem;
    border-top: 1px solid rgba(0,0,0,.06);
}

    .eg-post-business img {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover; /* looks better than scale-down */
        border: 1px solid rgba(0,0,0,.08);
        background: #fff;
    }

.eg-post-bmeta {
    min-width: 0;
}

.eg-post-bname {
    font-weight: 900;
    color: #111827;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 310px;
}

.eg-post-date {
    font-size: .82rem;
    color: #6b7280;
    margin-top: .2rem;
}

/* responsive */
@media (max-width: 575.98px) {
    .eg-carousel--posts .eg-carousel-track {
        padding: 10px 48px;
    }

    .eg-post-card {
        width: 90vw;
    }

    .eg-post-media {
        height: 190px;
    }
}
/* =========================
   Header search rule:
   Hide on Home (desktop), show elsewhere
========================= */
.eg-is-home .eg-header-search {
    display: none !important;
}

/* make header search look neat when visible */
.eg-header-search {
    width: clamp(320px, 34vw, 520px);
}

    .eg-header-search .form-control {
        height: 44px;
        border-radius: 14px;
    }

/* icon buttons for mobile header */
.eg-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 26px rgba(17,24,39,.08);
}

    .eg-icon-btn i {
        color: #111827;
    }

    .eg-icon-btn:hover {
        border-color: rgba(232,0,0,.18);
    }
/* =========================
   User dropdown (Header)
========================= */
.eg-user-toggle {
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    border-radius: 999px;
    padding: .35rem .6rem;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    box-shadow: 0 10px 26px rgba(17,24,39,.08);
}

    .eg-user-toggle:focus {
        box-shadow: 0 0 0 .2rem rgba(232,0,0,.18), 0 10px 26px rgba(17,24,39,.08);
    }

    .eg-user-toggle.dropdown-toggle::after {
        margin-left: .35rem;
        opacity: .7;
    }

.eg-user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.eg-user-name {
    font-weight: 900;
    color: #111827;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.eg-user-menu {
    width: 320px;
    border-radius: 18px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 18px 50px rgba(17,24,39,.18);
    padding: .25rem 0;
}

.eg-user-head {
    background: linear-gradient(180deg, rgba(232,0,0,.06), rgba(17,24,39,.02));
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.eg-user-avatar-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

/* keep dropdown items crisp */
.eg-user-menu .dropdown-item {
    padding: .55rem 1rem;
    font-weight: 700;
}

    .eg-user-menu .dropdown-item i {
        width: 18px;
    }
/* =========================
   Force dropdowns to open only via Bootstrap click
   (prevents hover-open from theme CSS)
========================= */
.dropdown:hover > .dropdown-menu {
    display: none !important;
}

.dropdown > .dropdown-menu.show {
    display: block !important;
}
/* show custom caret icon only on mobile */
.eg-user-caret {
    font-size: .85rem;
    opacity: .75;
}

/* Hide bootstrap caret on mobile (we show our own icon) */
@media (max-width: 991.98px) {
    .eg-user-toggle.dropdown-toggle::after {
        display: none;
    }
}

/* Make dropdown usable on mobile */
@media (max-width: 991.98px) {
    .eg-user-menu {
        width: min(92vw, 340px);
        margin-top: .6rem;
    }
}

.eg-user-dd .dropdown-menu {
    z-index: 1055; /* above header content */
}
/* =========================
   EG Footer + App strip
========================= */

.eg-appstrip-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    flex: 0 0 auto;
}

    .eg-appstrip-ico i {
        font-size: 18px;
    }

.eg-appstrip-points {
    display: grid;
    grid-template-columns: 1fr;
    gap: .6rem;
}

.eg-point {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .8rem;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    opacity: .95;
}

    .eg-point i {
        opacity: .85;
    }

.eg-footer-title {
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: .8rem;
}

.eg-footer-list li {
    margin-bottom: .55rem;
}

.eg-footer-link {
    color: rgba(255,255,255,.78);
    text-decoration: none;
    transition: all .15s ease;
}

    .eg-footer-link:hover {
        color: #fff;
        text-decoration: none;
        transform: translateY(-1px);
    }

.eg-social {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
}

    .eg-social:hover {
        background: rgba(255,255,255,.14);
    }

.eg-footer-divider {
    height: 1px;
    background: rgba(255,255,255,.10);
}

.eg-newsletter .form-control::placeholder {
    color: rgba(255,255,255,.55);
}
/* Header icons */
.eg-icon-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}

/* User dropdown */
.eg-userbtn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .5rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

    .eg-userbtn::after {
        display: none !important;
    }

.eg-userpic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.08);
}

.eg-userchev {
    font-size: .75rem;
    opacity: .7;
}

.eg-userpic-lg {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.08);
}

.eg-header .dropdown-menu {
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.12);
    border: 1px solid rgba(0,0,0,.08);
}
/* ===== Footer foundation ===== */
.eg-footer,
.eg-appstrip {
    background: radial-gradient(1200px 600px at 10% 0%, rgba(255,255,255,.06), transparent 55%), radial-gradient(900px 500px at 90% 20%, rgba(255,0,0,.06), transparent 55%), #0f1020;
    color: rgba(255,255,255,.92);
}

.eg-muted {
    color: rgba(255,255,255,.70) !important;
}

/* ===== Appstrip ===== */
.eg-appstrip-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    flex: 0 0 auto;
}

.eg-appstrip-points {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.eg-point {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .9rem;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.10);
}

    .eg-point i {
        opacity: .9;
    }

/* ===== Footer titles + lists ===== */
.eg-footer-title {
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: .8rem;
    color: #fff;
}

.eg-footer-list li {
    margin-bottom: .5rem;
}

/* ===== Links visibility ===== */
.eg-footer-link {
    color: rgba(255,255,255,.82);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

    .eg-footer-link:hover {
        color: #fff;
        text-decoration: underline;
        text-underline-offset: 3px;
    }

/* Divider */
.eg-footer-divider {
    height: 1px;
    background: rgba(255,255,255,.10);
}

/* ===== Newsletter readability ===== */
.eg-newsletter-group .input-group-text,
.eg-newsletter-group .form-control {
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

    .eg-newsletter-group .form-control::placeholder {
        color: rgba(255,255,255,.55) !important;
    }

.eg-newsletter-group .btn {
    border-radius: 0 .6rem .6rem 0;
}

.eg-newsletter-group .input-group-text {
    border-radius: .6rem 0 0 .6rem;
}

/* ===== Google translate wrapper (makes it look consistent) ===== */
.eg-translate-wrap {
    padding: .7rem .8rem;
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    overflow-x: auto; /* prevents layout break */
}

/* Mobile tightening */
@media (max-width: 575.98px) {
    .eg-appstrip .btn {
        width: auto;
    }

    .eg-footer .row {
        row-gap: 1.25rem;
    }

    .eg-footer img {
        max-width: 160px;
        height: auto;
    }
}
/* Right-side hero CTA wrapper */
.eg-hero-side {
    width: 100%;
}

/* Sticky on lg+ only */
@media (min-width: 992px) {
    .eg-hero-side {
        position: sticky;
        top: 92px; /* adjust based on your fixed header height */
    }
}

/* CTA card look */
.eg-cta-card {
    border-radius: 1.25rem;
    overflow: hidden;
}

.eg-kicker {
    letter-spacing: .2px;
}

.eg-badge {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.05);
}

.eg-points {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.eg-point {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
}

.eg-point-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.05);
    flex: 0 0 auto;
}

.eg-mini-card {
    border-radius: 1.25rem;
}

.eg-mini-stat {
    border-radius: 1rem;
    padding: .5rem;
    background: rgba(0,0,0,.04);
}

.eg-mini-ico {
    margin-bottom: .25rem;
}
/* =========================
   COUNTRY HERO CTA (RIGHT)
========================= */
.eg-hero-side {
    width: 100%;
}

@media (min-width: 992px) {
    .eg-hero-side {
        position: sticky;
        top: 92px;
    }
}

.eg-cta-card2 {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
}

.eg-cta-top {
    padding: 18px 18px 10px 18px;
    background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,0));
}

.eg-cta-kicker {
    font-size: .85rem;
    color: rgba(0,0,0,.60);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eg-cta-title {
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 6px;
    letter-spacing: .2px;
}

.eg-cta-desc {
    margin-top: 6px;
    color: rgba(0,0,0,.62);
    font-size: .92rem;
    line-height: 1.35;
}

.eg-cta-list {
    padding: 12px 18px 6px 18px;
    display: grid;
    gap: 10px;
}

.eg-cta-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.eg-cta-ico {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.06);
    flex: 0 0 auto;
}

.eg-cta-row-title {
    font-weight: 700;
}

.eg-cta-row-sub {
    font-size: .86rem;
    color: rgba(0,0,0,.60);
}

.eg-cta-actions {
    padding: 14px 18px 16px 18px;
    display: grid;
    gap: 10px;
}

.eg-cta-foot {
    padding: 12px 18px;
    border-top: 1px solid rgba(0,0,0,.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.eg-cta-loc {
    font-size: .86rem;
    color: rgba(0,0,0,.62);
}

.eg-cta-link {
    font-size: .88rem;
    text-decoration: none;
    font-weight: 600;
}

/* Mini stats */
.eg-mini3 {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.eg-mini3-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0,0,0,.06);
}

.eg-mini3-ico {
    margin-bottom: 4px;
    color: rgba(0,0,0,.75);
}

.eg-mini3-t {
    font-size: .86rem;
    font-weight: 700;
}

/* =========================
   LEGAL & COMPLIANCE CARD
========================= */
.eg-legal-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0,0,0,.06);
    overflow: hidden;
}

.eg-legal-head {
    padding: 18px 18px 14px 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    background: linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,0));
}

.eg-legal-titlewrap {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    max-width: 820px;
}

.eg-legal-ico {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(0,0,0,.05);
    border: 1px solid rgba(0,0,0,.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eg-legal-title {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: .2px;
}

.eg-legal-sub {
    margin-top: 6px;
    color: rgba(0,0,0,.62);
    line-height: 1.35;
    font-size: .95rem;
}

.eg-legal-updated {
    white-space: nowrap;
    font-size: .92rem;
    color: rgba(0,0,0,.70);
}

.eg-legal-body {
    padding: 14px 18px 18px 18px;
}

.eg-legal-note {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(0,0,0,.03);
    padding: 16px;
}

.eg-legal-note-title {
    font-weight: 800;
    font-size: 1.05rem;
}

.eg-legal-note-sub {
    margin-top: 6px;
    color: rgba(0,0,0,.62);
    font-size: .92rem;
}

.eg-legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

@media (max-width: 767.98px) {
    .eg-legal-head {
        flex-direction: column;
    }

    .eg-legal-updated {
        white-space: normal;
    }

    .eg-legal-grid {
        grid-template-columns: 1fr;
    }
}

.eg-legal-item {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.eg-legal-item-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.eg-legal-item-text {
    color: rgba(0,0,0,.62);
    font-size: .92rem;
    line-height: 1.35;
}

.eg-legal-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
/* Ensure bootstrap utility background shows correctly even if theme changes cards */
.bg-white {
    background-color: #fff !important;
}

.border {
    border-color: rgba(0,0,0,.08) !important;
}

.shadow-sm {
    box-shadow: 0 10px 25px rgba(0,0,0,.08) !important;
}
/* hero spacing */
.eg-hero-search .form-control,
.eg-hero-search input[type="text"],
.eg-hero-search input[type="search"] {
    height: 56px;
    border-radius: 14px;
}

/* make the right card sit nicely under header */
@media (min-width: 992px) {
    .sticky-top {
        top: 92px !important;
    }
    /* matches your fixed header height */
}
/* Subcategory tile */
.eg-mini-tile {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    padding: 10px;
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .eg-mini-tile:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 24px rgba(0,0,0,.08);
    }

.eg-mini-img {
    width: 100%;
    height: 92px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.eg-mini-ph {
    width: 100%;
    height: 92px;
    border-radius: 12px;
    border: 1px dashed rgba(0,0,0,.18);
    background: rgba(0,0,0,.03);
    align-items: center;
    justify-content: center;
    color: rgba(0,0,0,.45);
}

.eg-mini-title {
    margin-top: 8px;
    font-weight: 600;
    font-size: .95rem;
    color: #1c1c1c;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}
/* =========================
   EG Business Tools (Scoped)
   ========================= */

.eg-tools-wrap {
    width: 100%;
}

.eg-tools .card-body {
    position: relative;
}

.eg-tools-link {
    color: #e11d2e; /* EG-ish accent */
}

    .eg-tools-link:hover {
        text-decoration: underline !important;
    }

.eg-tools-grid {
    align-items: stretch;
}

.eg-tool {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .15rem;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
    border-radius: 14px;
    padding: 14px 12px;
    min-height: 96px;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    will-change: transform;
}

    .eg-tool:hover {
        transform: translateY(-1px);
        border-color: rgba(225, 29, 46, .22);
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
    }

    .eg-tool:focus {
        outline: none;
    }

    .eg-tool:focus-visible {
        box-shadow: 0 0 0 3px rgba(225, 29, 46, .18), 0 10px 24px rgba(0,0,0,.06);
        border-color: rgba(225, 29, 46, .35);
    }

.eg-tool-ico {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: .35rem;
}

.eg-tool-title {
    font-weight: 700;
    font-size: .95rem;
    color: #111827;
    line-height: 1.15;
}

.eg-tool-sub {
    font-size: .78rem;
    color: rgba(17,24,39,.6);
    line-height: 1.1;
}

/* Color chips */
.eg-ico-accent {
    background: rgba(225,29,46,.10);
    color: #e11d2e;
}

.eg-ico-blue {
    background: rgba(37,99,235,.10);
    color: #2563eb;
}

.eg-ico-orange {
    background: rgba(245,158,11,.14);
    color: #f59e0b;
}

.eg-ico-green {
    background: rgba(16,185,129,.12);
    color: #10b981;
}

.eg-ico-purple {
    background: rgba(139,92,246,.12);
    color: #8b5cf6;
}

/* Slot wrapper so your inner partial doesn't break tile height */
.eg-tool--slot {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    min-height: 96px;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .eg-tool {
        transition: none;
    }

        .eg-tool:hover {
            transform: none;
        }
}
/* =========================================
   EG Tools: look good outside Dashboard too
   (wide pages like /directory)
   ========================================= */

/* Default: on wide pages, keep tools area readable */
.eg-tools-wrap {
    width: 100%;
    max-width: 1100px; /* <- prevents ugly super-wide tiles */
    margin-inline: auto; /* center */
}

/* BUT: if partial is inside any Bootstrap column, don't cap width
   (keeps Dashboard perfect) */
[class*="col-"] > .eg-tools-wrap {
    max-width: none;
    margin-inline: 0;
}

/* Wide layouts: slightly tighter tiles so they don't look empty */
@media (min-width: 992px) {
    .eg-tool {
        min-height: 86px;
        padding: 12px 12px;
    }
}

/* Very wide screens: keep it compact and polished */
@media (min-width: 1400px) {
    .eg-tools-wrap {
        max-width: 1180px;
    }
    /* a bit more breathing room */
    .eg-tool {
        min-height: 84px;
    }
}
/* ========= Create Post UI (Scoped) ========= */
.eg-create .card-body {
    background: #fff;
    border-radius: 16px;
}

.eg-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

    .eg-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.eg-avatar--sm {
    width: 42px;
    height: 42px;
}

.eg-create-opener {
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    color: rgba(17,24,39,.65);
    transition: box-shadow .12s ease, border-color .12s ease, transform .12s ease;
}

    .eg-create-opener:hover {
        border-color: rgba(225,29,46,.22);
        box-shadow: 0 10px 24px rgba(0,0,0,.06);
        transform: translateY(-1px);
    }

    .eg-create-opener:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(225,29,46,.18), 0 10px 24px rgba(0,0,0,.06);
        border-color: rgba(225,29,46,.35);
    }

.eg-pill {
    border-radius: 999px;
    padding-left: 12px;
    padding-right: 12px;
}

.eg-post-modal .modal-content {
    border-radius: 18px;
}

.eg-post-modal .modal-header {
    padding: 18px 18px 0 18px;
}

.eg-post-modal .modal-body {
    padding: 16px 18px;
}

.eg-post-modal .modal-footer {
    padding: 0 18px 18px 18px;
}

.eg-textarea {
    border-radius: 14px;
    border-color: rgba(0,0,0,.10);
    padding: 12px 14px;
    resize: vertical;
}

    .eg-textarea:focus {
        border-color: rgba(225,29,46,.35);
        box-shadow: 0 0 0 3px rgba(225,29,46,.14);
    }

.eg-uploader {
    border: 1px dashed rgba(0,0,0,.12);
    border-radius: 16px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(248,250,252,.9), rgba(255,255,255,1));
}

.eg-file {
    border-radius: 12px;
    border-color: rgba(0,0,0,.10);
}

.eg-select {
    border-radius: 12px;
    border-color: rgba(0,0,0,.10);
}

/* overlay style */
.eg-busy {
    background: rgba(255,255,255,.7);
    z-index: 1055;
    align-items: center;
    justify-content: center;
}

    /* show only when NOT d-none */
    .eg-busy:not(.d-none) {
        display: flex;
    }


/* ========= PREVIEW (works with your JS) ========= */
.preview-thumb {
    width: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 18px rgba(0,0,0,.04);
}

    .preview-thumb img,
    .preview-thumb video {
        width: 100%;
        height: 92px;
        object-fit: cover;
        display: block;
        border-radius: 10px;
        background: #f3f4f6;
    }

.preview-meta {
    font-size: 12px;
    line-height: 1.2;
    color: rgba(17,24,39,.8);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* make remove button nicer */
.preview-thumb .btn {
    border-radius: 10px;
}
/* --- Media preview area (works with your existing JS) --- */
#mediaPreview.eg-preview,
#mediaPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    min-height: 1px; /* prevents collapse in some layouts */
}

/* your JS creates .preview-thumb, so style it */
.preview-thumb {
    width: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 18px rgba(0,0,0,.04);
}

    .preview-thumb img,
    .preview-thumb video {
        width: 100%;
        height: 92px;
        object-fit: cover;
        display: block;
        border-radius: 10px;
        background: #f3f4f6;
    }

.preview-meta {
    font-size: 12px;
    line-height: 1.2;
    color: rgba(17,24,39,.8);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.preview-thumb .btn {
    border-radius: 10px;
    padding: 6px 10px;
}

#mediaPreview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.preview-thumb {
    width: 140px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 10px 18px rgba(0,0,0,.04);
}

    .preview-thumb img, .preview-thumb video {
        width: 100%;
        height: 92px;
        object-fit: cover;
        display: block;
        border-radius: 10px;
        background: #f3f4f6;
    }

.preview-meta {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* =========================
   EG Timeline Post Card UI
   ========================= */

.eg-post-card {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
    overflow: hidden;
    background: #fff;
}

    .eg-post-card .card-header {
        background: #fff;
        padding: 14px 16px 6px 16px;
    }

    .eg-post-card .card-body {
        padding: 12px 16px 12px 16px;
    }

    .eg-post-card .card-footer {
        background: #fff;
        padding: 0 16px 14px 16px;
    }

    /* Header avatar + name */
    .eg-post-card .avatar-story .avatar-img,
    .eg-post-card .avatar .avatar-img {
        width: 44px;
        height: 44px;
        object-fit: cover;
        border: 1px solid rgba(0,0,0,.08);
    }

    .eg-post-card .nav.nav-divider a {
        font-size: 15px;
        line-height: 1.15;
    }

        .eg-post-card .nav.nav-divider a:hover {
            text-decoration: underline !important;
            text-underline-offset: 3px;
        }

    /* Post time */
    .eg-post-card .card-header p.small {
        color: rgba(17,24,39,.55);
    }

    /* Dropdown (3 dots) */
    .eg-post-card .btn-secondary-soft-hover {
        border-radius: 12px;
        background: rgba(0,0,0,.04);
        border: 1px solid rgba(0,0,0,.06);
    }

        .eg-post-card .btn-secondary-soft-hover:hover {
            background: rgba(225,29,46,.08);
            border-color: rgba(225,29,46,.18);
        }

    /* Description */
    .eg-post-card .desc-preview,
    .eg-post-card .desc-full {
        font-size: 14px;
        line-height: 1.55;
        color: rgba(17,24,39,.92);
        word-break: break-word;
    }

        .eg-post-card .desc-preview a,
        .eg-post-card .desc-full a {
            color: #e11d2e;
            text-decoration: none;
        }

            .eg-post-card .desc-preview a:hover,
            .eg-post-card .desc-full a:hover {
                text-decoration: underline;
            }

    /* Media frame: make it feel premium */
    .eg-post-card .carousel {
        border-radius: 14px;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,.06);
        background: #f8fafc;
    }

        .eg-post-card .carousel .carousel-item > div {
            background: #f8fafc !important;
        }

    /* Prev/next buttons more subtle */
    .eg-post-card .carousel-control-prev-icon,
    .eg-post-card .carousel-control-next-icon {
        filter: drop-shadow(0 6px 10px rgba(0,0,0,.25));
    }

    /* Thumbnails */
    .eg-post-card button[data-bs-slide-to] > div {
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 10px !important;
        overflow: hidden;
        background: #fff !important;
    }

    .eg-post-card button[data-bs-slide-to]:hover > div {
        border-color: rgba(225,29,46,.35);
    }

    /* Actions row */
    .eg-post-card .nav.nav-stack {
        border-top: 1px solid rgba(0,0,0,.06);
        border-bottom: 1px solid rgba(0,0,0,.06);
        margin-top: 12px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        gap: 10px;
    }

    /* Like button: make it look like a pill, but keep your classes */
    .eg-post-card .like-btn {
        text-decoration: none !important;
        border-radius: 999px;
        background: rgba(0,0,0,.03);
        border: 1px solid rgba(0,0,0,.06);
        padding: 7px 12px;
        font-weight: 600;
        color: rgba(17,24,39,.85);
    }

        .eg-post-card .like-btn:hover {
            background: rgba(225,29,46,.08);
            border-color: rgba(225,29,46,.18);
        }

        .eg-post-card .like-btn.liked {
            background: rgba(225,29,46,.10);
            border-color: rgba(225,29,46,.22);
            color: rgba(225,29,46,.95);
        }

    /* Other nav links (comments/share) */
    .eg-post-card .nav-link {
        border-radius: 999px;
        padding: 7px 12px;
        background: rgba(0,0,0,.03);
        border: 1px solid rgba(0,0,0,.06);
        color: rgba(17,24,39,.85) !important;
    }

        .eg-post-card .nav-link:hover {
            background: rgba(0,0,0,.05);
        }

    /* Comment box row */
    .eg-post-card .comment-textarea {
        border-radius: 999px;
        padding: 10px 14px;
        border: 1px solid rgba(0,0,0,.08);
    }

        .eg-post-card .comment-textarea:focus {
            border-color: rgba(225,29,46,.35);
            box-shadow: 0 0 0 3px rgba(225,29,46,.14);
        }

    /* Load more button */
    .eg-post-card .btn-link-loader {
        border-radius: 12px;
        padding: 8px 10px;
        background: rgba(0,0,0,.03);
        border: 1px solid rgba(0,0,0,.06);
        text-decoration: none !important;
    }

        .eg-post-card .btn-link-loader:hover {
            background: rgba(0,0,0,.05);
        }

/* Perf: let browser skip offscreen rendering (safe) */
@supports (content-visibility: auto) {
    .eg-post-card {
        content-visibility: auto;
        contain-intrinsic-size: 700px;
    }
}
/* =========================
   EG Post Card - FIX alignment issues from screenshot
   (NO JS change, NO markup change)
   ========================= */

/* 1) Actions row: Like / Comments / Share */
.eg-post-card .nav.nav-stack {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 0 !important;
    margin: 12px 0 10px 0 !important;
}

    /* remove list styling impact */
    .eg-post-card .nav.nav-stack .nav-item {
        list-style: none;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Your LIKE is a <button> inside the <ul>, so normalize it */
    .eg-post-card .nav.nav-stack > .like-btn {
        margin: 0 !important;
        padding: 7px 12px !important;
        line-height: 1.1;
    }

    /* Make Comment/Share pills consistent */
    .eg-post-card .nav.nav-stack .nav-link {
        margin: 0 !important;
        padding: 7px 12px !important;
        line-height: 1.1;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

/* Push Share to right on wide screens only (like your ms-sm-auto intent) */
@media (min-width: 576px) {
    .eg-post-card .nav.nav-stack .ms-sm-auto {
        margin-left: auto !important;
    }
}

/* 2) Comment box row: remove resize grip, better alignment */
.eg-post-card .add-comment-form .d-flex.align-items-center {
    width: 100%;
    gap: 10px;
}

.eg-post-card .add-comment-form textarea.comment-textarea {
    resize: none !important; /* removes the diagonal resize handle */
    flex: 1 1 auto;
    min-height: 40px;
    max-height: 120px;
    line-height: 1.25;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    background: #f8fafc !important;
    padding: 10px 14px !important;
}

    .eg-post-card .add-comment-form textarea.comment-textarea:focus {
        border-color: rgba(225,29,46,.35) !important;
        box-shadow: 0 0 0 3px rgba(225,29,46,.12) !important;
    }

/* Comment Post button: keep compact and aligned */
.eg-post-card .add-comment-form button[type="submit"].btn-primary {
    border-radius: 12px;
    padding: 8px 12px;
    white-space: nowrap;
}

/* 3) “Load more” alignment */
.eg-post-card .card-footer {
    display: flex;
    justify-content: center;
}

/* 4) Media container: cleaner border + spacing (keeps your carousel logic) */
.eg-post-card .carousel {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    background: #f8fafc;
}

    .eg-post-card .carousel .carousel-item img {
        display: block;
        margin: 0 auto;
    }
/* =========================
   EG Post card sizing fix
   ========================= */

/* card shape */
.eg-post-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.06) !important;
    overflow: hidden;
}

    /* header/body spacing */
    .eg-post-card .card-header {
        padding: 14px 16px 0 16px !important;
    }

    .eg-post-card .card-body {
        padding: 12px 16px 8px 16px !important;
    }

    .eg-post-card .card-footer {
        padding: 0 16px 14px 16px !important;
    }

    /* ---- Media box sizing (image/video area) ---- */
    .eg-post-card .carousel {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,.06);
    }

        .eg-post-card .carousel .carousel-item > div {
            background: #f8f9fb !important;
            min-height: 260px !important; /* makes media box taller */
            max-height: 520px !important;
        }

        .eg-post-card .carousel img,
        .eg-post-card .carousel video {
            max-height: 440px !important;
        }

    /* ---- ACTION ROW box sizing ---- */
    .eg-post-card .nav.nav-stack {
        display: flex !important;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px; /* spacing between buttons */
        padding: 10px 0 !important;
        margin: 10px 0 8px 0 !important;
    }

        /* normalize the direct button inside UL */
        .eg-post-card .nav.nav-stack > .like-btn {
            border: 1px solid rgba(0,0,0,.08);
            background: #fff;
            border-radius: 999px;
            padding: 7px 12px !important;
            text-decoration: none !important;
        }

        /* same pill sizing for nav links */
        .eg-post-card .nav.nav-stack .nav-link {
            border: 1px solid rgba(0,0,0,.08);
            background: #fff;
            border-radius: 999px;
            padding: 7px 12px !important;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none !important;
        }

            .eg-post-card .nav.nav-stack .nav-link:hover,
            .eg-post-card .nav.nav-stack > .like-btn:hover {
                background: rgba(0,0,0,.02);
            }

/* keep Share on right for desktop */
@media (min-width: 576px) {
    .eg-post-card .nav.nav-stack .ms-sm-auto {
        margin-left: auto !important;
    }
}

/* ---- COMMENT ROW box sizing ---- */
.eg-post-card .add-comment-form .d-flex.align-items-center {
    width: 100%;
    gap: 10px;
}

.eg-post-card .comment-textarea {
    resize: none !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.10) !important;
    background: #f8fafc !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
}

.eg-post-card .add-comment-form .btn.btn-primary {
    border-radius: 12px !important;
    padding: 8px 12px !important;
    white-space: nowrap;
}

/* Load more centered and cleaner */
.eg-post-card .btn-link-loader {
    margin: 0 auto;
    text-decoration: none !important;
}

.eg-post-card .desc-preview,
.eg-post-card .desc-full {
    font-size: 14px;
    line-height: 1.5;
}

.eg-preview {
    gap: 10px;
}

.eg-prev-item {
    width: 140px;
    border: 1px solid #eef0f3;
    border-radius: 12px;
    background: #fff;
    padding: 10px;
}

.eg-prev-media {
    width: 100%;
    height: 90px;
    border-radius: 10px;
    background: #f6f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

    .eg-prev-media img,
    .eg-prev-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.eg-prev-meta {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eg-prev-size {
    font-size: 11px;
    color: #6b7280;
}
/* ✅ stronger than existing .card rules */
.eg-post-card {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(15, 23, 42, .06);
    overflow: hidden;
}

    /* tighten header/body spacing slightly */
    .eg-post-card .card-header {
        padding: 14px 16px 0 16px;
    }

    .eg-post-card .card-body {
        padding: 12px 16px 6px 16px;
    }

    .eg-post-card .card-footer {
        padding: 0 16px 14px 16px;
    }

    /* ✅ override your inline media wrapper */
    .eg-post-card .carousel-item > .d-flex.justify-content-center.align-items-center {
        width: 100% !important;
        min-height: auto !important;
        max-height: none !important;
        background: transparent !important;
        padding: 0 !important;
    }

    /* create a consistent media frame */
    .eg-post-card .carousel-inner {
        border-radius: 12px;
        overflow: hidden;
        background: #f8f9fb;
    }

    .eg-post-card img.img-fluid {
        width: 100% !important;
        height: 420px !important;
        object-fit: contain !important;
        background: #f8f9fb;
    }

    .eg-post-card video {
        width: 100% !important;
        height: 420px !important;
        object-fit: contain !important;
        background: #f8f9fb;
    }

/* responsive height */
@media (max-width: 576px) {
    .eg-post-card img.img-fluid,
    .eg-post-card video {
        height: 300px !important;
    }
}

/* action row spacing */
.eg-post-card .nav.nav-stack {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* comment box fits card nicely */
.eg-post-card .comment-textarea {
    border-radius: 999px;
}
/* The row must be allowed to shrink */
.eg-suggest-item {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden; /* ✅ prevents spilling outside */
}

/* Important: allow the middle column to shrink */
.eg-suggest-meta {
    min-width: 0 !important; /* ✅ enables text-truncate properly */
}

/* Make long names single-line and smaller */
.eg-suggest-name {
    font-size: 0.90rem; /* ✅ slightly smaller */
    line-height: 1.15rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* ✅ */
}

/* Keep avatar fixed */
.eg-suggest-avatar img {
    width: 40px;
    height: 40px;
}

/* Keep button fixed and never overflow */
.eg-suggest-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px; /* ✅ fixed size in flex row */
    border-radius: 999px;
}

/* Optional: reduce padding so everything fits */
.eg-suggest-item {
    padding: 10px !important;
}

/* Optional: if container card is narrow on some screens */
@media (max-width: 1200px) {
    .eg-suggest-name {
        font-size: 0.85rem;
    }

    .eg-suggest-avatar img {
        width: 36px;
        height: 36px;
    }

    .eg-suggest-btn {
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
    }
}
/* ===== Video Timeline UX ===== */
#videoTimelineRoot .vt-tile {
    border-radius: 14px;
    overflow: hidden;
    background: #0b0b0c;
    border: 1px solid rgba(0,0,0,.06);
}

/* Video fit */
#videoTimelineRoot video.vt-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain; /* change to cover if you want full-bleed */
    background: #000;
}

/* Desktop: nice card height */
@@media (min-width: 577px) {
    #videoTimelineRoot .vt-tile {
        height: 520px;
    }
}

/* Mobile: reel-like snap */
@media (max-width: 576px) {
    #videoTimelineRoot #videoTimelineGrid {
        scroll-snap-type: y mandatory;
        overflow-y: auto;
        max-height: 92vh;
        padding-bottom: 20vh; /* give breathing room */
    }

    #videoTimelineRoot .vt-tile {
        height: 82vh;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}


/*
=========for post detail page only=====*/

/* Full width page */
.eg-video-page {
    background: #fff;
}

/* Reels container: full viewport scroll */
.eg-reels {
    height: calc(100vh - var(--eg-topbar, 72px));
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* Each video takes a full screen */
.eg-reel {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: calc(100vh - var(--eg-topbar, 72px));
    width: 100%;
    margin: 0 !important;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #000;
    position: relative;
}

    /* Video fills the screen area */
    .eg-reel video,
    .eg-reel iframe {
        width: 100%;
        height: 100%;
        display: block;
        background: #000;
    }

    /* Default behavior: look good for MOST videos */
    .eg-reel video {
        object-fit: contain; /* landscape friendly */
    }

    /* Portrait videos should be more immersive */
    .eg-reel.is-portrait video {
        object-fit: cover;
    }

/* Header overlay (small) */
.eg-reel-head {
    position: absolute;
    top: 10px;
    left: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
}

/* Actions overlay */
.eg-reel-actions {
    position: absolute;
    right: 10px;
    bottom: 92px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.eg-reel-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(0,0,0,.35);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

/* Caption overlay */
.eg-reel-caption {
    position: absolute;
    left: 12px;
    right: 76px;
    bottom: 18px;
    z-index: 10;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,.55);
    font-size: 14px;
    line-height: 1.35;
}

/* Hide browser scrollbars nicely (optional) */
.eg-reels::-webkit-scrollbar {
    width: 6px;
}

.eg-reels::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,.25);
    border-radius: 6px;
}

@media (max-width: 576px) {
    /* body {
        background: #000;
    }
*/
    .eg-reels {
        height: calc(100vh - 90px);
        overflow-y: auto;
        scroll-snap-type: y mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .eg-reel {
        height: calc(100vh - 90px);
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
}

/* ===== Desktop: normal feed, NOT full screen ===== */
@media (min-width: 577px) {
    body {
        background: #f6f7fb !important;
    }

    .eg-feed-page {
        background: transparent !important;
        overflow: visible !important;
    }

    .eg-reels {
        height: auto !important;
        overflow: visible !important;
        scroll-snap-type: none !important;
        padding: 18px 0 !important;
    }

    .eg-reel {
        height: auto !important;
        max-width: 920px !important;
        margin: 0 auto 18px !important;
        border-radius: 18px !important;
        overflow: hidden !important;
        background: #000 !important;
    }

    .eg-video-wrap {
        height: auto !important;
    }

    .eg-video {
        height: 520px !important; /* desktop fixed height */
        object-fit: contain !important;
    }

    .eg-actions {
        bottom: 16px !important;
    }

    .eg-caption {
        position: static !important;
        padding: 10px 14px 14px !important;
        text-shadow: none !important;
        color: #111 !important;
        background: #fff !important;
    }
}

/* Fixed header baseline */
.eg-header {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

/* Brand sizing */
.eg-brand img {
    height: 32px;
    width: auto;
    display: block;
}

/* Keep nav clean */
.eg-header .nav-link {
    font-weight: 600;
    padding: .65rem .9rem;
    color: #222;
}

    .eg-header .nav-link:hover {
        opacity: .85;
    }

.eg-nav-cta {
    color: #e11d2e !important;
}

/* Icon button */
.eg-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    .eg-icon-btn:hover {
        background: #fafafa;
    }

/* Optional kicker pill */
.eg-kicker-pill {
    margin-left: .75rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-size: .85rem;
    color: #444;
    background: rgba(225,29,46,.08);
    border: 1px solid rgba(225,29,46,.18);
}

/* Search modal polish */
.eg-search-modal {
    border: 0;
    border-radius: 18px;
}

.eg-modal-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(225,29,46,.10);
    color: #e11d2e;
}

/* IMPORTANT: ensure page content doesn't hide under fixed header */
.page-wrapper {
    padding-top: 22px; /* adjust if your header becomes taller */
}
/* ===== Reference modern styles (safe, isolated) ===== */
body {
    background: #f6f7fb;
}

.bd-card {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    background: #fff;
}

.bd-muted {
    color: rgba(0,0,0,.62);
}

/* ===== Premium dark cover (not black page; only header becomes premium) ===== */
.bd-cover {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    /* Dark premium gradient */
    background: radial-gradient(900px 300px at 15% 20%, rgba(232,0,0,.22), transparent 60%), radial-gradient(700px 260px at 85% 10%, rgba(0,123,255,.18), transparent 55%), linear-gradient(135deg, #0b1220 0%, #0f1a2e 45%, #101b32 100%);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

    /* subtle overlay pattern */
    .bd-cover::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.06) 0 2px, transparent 3px) 0 0/22px 22px;
        opacity: .35;
        pointer-events: none;
    }

/* Make cover positioned for ::before */
.bd-cover {
    position: relative;
}

.bd-logo {
    width: 92px;
    height: 92px;
    border-radius: 18px;
    object-fit: contain;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.18);
    padding: 10px;
    box-shadow: 0 14px 26px rgba(0,0,0,.25);
}

.bd-title {
    color: #ffffff;
    letter-spacing: .2px;
}

.bd-sub {
    color: rgba(255,255,255,.78);
}

.bd-sub2 {
    color: rgba(255,255,255,.65);
}

/* Chips on dark bg */
.bd-chip {
    font-size: .85rem;
    border-radius: 999px;
    padding: .35rem .75rem;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
}

/* CTA buttons look premium on dark */
.btn-ghost-light {
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.08);
    color: #fff;
}

    .btn-ghost-light:hover {
        background: rgba(255,255,255,.14);
        color: #fff;
    }

/* your primary brand look */
.btn-brand {
    background: #ff4d2d;
    border-color: #ff4d2d;
    color: #fff;
}

    .btn-brand:hover {
        background: #ff3a14;
        border-color: #ff3a14;
    }

/* rating badge on dark */
.bd-rating {
    background: rgba(13,110,253,.95);
    color: #fff;
    border-radius: 10px;
    padding: .25rem .55rem;
    font-weight: 600;
}

/* stars */
.bd-stars i {
    color: #ffcc4d;
}

/* Share row divider */
.bd-divider {
    border-top: 1px solid rgba(255,255,255,.12) !important;
}

.bd-tabs {
    position: sticky;
    top: 0;
    z-index: 8;
    background: rgba(246,247,251,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,.06);
}

    .bd-tabs .nav-link {
        border-radius: 999px;
        padding: .45rem .9rem;
        color: rgba(0,0,0,.72);
        white-space: nowrap;
    }

        .bd-tabs .nav-link.active {
            background: #0d6efd;
            color: #fff;
        }

.bd-sticky {
    position: sticky;
    top: 90px;
}

.post-type {
    font-size: .75rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: rgba(13,110,253,.10);
    color: #0d6efd;
    border: 1px solid rgba(13,110,253,.15);
}

.bd-tabs {
    border-radius: 16px;
    margin-top: 10px;
    background: rgba(255,255,255,.70) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,.06);
}

.bd-post-media {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.06);
    background: #fff;
}

.bd-mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,.08);
    padding: .55rem .75rem;
    display: none;
}

@@media (max-width: 991.98px) {
    .bd-mobilebar {
        display: block;
    }

    .bd-bottom-space {
        padding-bottom: 82px;
    }
}
/* Reviews */
#review .card {
    border-radius: 1.25rem;
}

.eg-stars i {
    color: #ffcc4d;
}

.eg-review-avatar {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,.06);
}

.eg-review-item {
    padding: 14px 14px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    background: #fff;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .eg-review-item:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 22px rgba(0,0,0,.06);
    }

.eg-rating-bars .progress {
    background: rgba(0,0,0,.06);
    border-radius: 999px;
}

.eg-rating-bars .progress-bar {
    border-radius: 999px;
}

.eg-r-label {
    width: 18px;
    font-weight: 700;
    color: rgba(0,0,0,.7);
}

.eg-r-pct {
    width: 44px;
    text-align: right;
    color: rgba(0,0,0,.55);
    font-size: .85rem;
}

/* Right sidebar premium polish */
.bd-cta-card {
    box-shadow: 0 18px 40px rgba(0,0,0,.08);
}

.bd-sticky {
    top: 92px; /* adjust if your header height differs */
}

.bd-card hr {
    border-top: 1px solid rgba(0,0,0,.08);
}
/* ===== Right Sidebar Stability Fix ===== */

/* Give sidebar breathing room so the green fixed button doesn't cover it */
@media (min-width: 992px) {
    .bd-sidebar {
        padding-right: 56px; /* adjust if your green button is wider */
    }
}

/* Sticky only on desktop; sticky inside overflow containers can behave weird */
@media (min-width: 992px) {
    .bd-sticky-lg {
        position: sticky;
        top: 90px;
        z-index: 5;
    }
}

@media (max-width: 991.98px) {
    .bd-sticky-lg {
        position: static;
        top: auto;
    }
}

/* Card polish */
.bd-sidecard {
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(0,0,0,.06);
    overflow: hidden;
}

    .bd-sidecard .card-body {
        padding: 16px;
    }

.bd-side-title {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
}

.bd-side-muted {
    color: rgba(0,0,0,.60);
    font-size: .88rem;
}

/* Business header inside card */
.bd-biz-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

.bd-biz-logo {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    flex: 0 0 auto;
    padding: 6px;
}

.bd-biz-name {
    font-weight: 900;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.2;
}

.bd-biz-meta {
    color: rgba(0,0,0,.60);
    font-size: .88rem;
}

.bd-kv {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .88rem;
    color: rgba(0,0,0,.65);
}

    .bd-kv i {
        opacity: .75;
    }

/* Category list premium */
.bd-cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none !important;
    color: rgba(0,0,0,.85);
    border: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.02);
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

    .bd-cat-item:hover {
        background: rgba(13,110,253,.06);
        transform: translateY(-1px);
        box-shadow: 0 10px 18px rgba(0,0,0,.06);
    }

    .bd-cat-item .bd-cat-text {
        min-width: 0;
        font-weight: 600;
    }

        .bd-cat-item .bd-cat-text span {
            display: block;
            white-space: normal;
            word-break: break-word;
        }

    .bd-cat-item .bd-cat-icon {
        color: rgba(0,0,0,.45);
        flex: 0 0 auto;
    }
    
    