/* =============================================
   Vivid Info Card Widget — style.css v1.6
   ============================================= */

/* ── Global box-sizing reset ── */
.elementor-widget-vivid_info_card,
.elementor-widget-vivid_info_card * {
    box-sizing: border-box;
}

.elementor-widget-vivid_info_card {
    width: 100%;
    max-width: 100%;
}

/* ─────────────────────────────────────────────
   CARD
───────────────────────────────────────────── */
.vic-card {
    background-color: transparent;
    border-radius: 16px;
    overflow: hidden !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari fix */
    transform: translateZ(0);                                   /* GPU layer — forces overflow clip */
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100%;
    position: relative;
}

/* Background image mode */
.vic-card.vic-has-bg {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    isolation: isolate;
}

/* Overlay */
.vic-bg-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
}

/* ─────────────────────────────────────────────
   IMAGE WRAP (top / bottom mode)
───────────────────────────────────────────── */
.vic-image-wrap {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    line-height: 0;
}

.vic-image-wrap img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Cover — fills full card width */
.vic-image-wrap.vic-size-cover img {
    width: 100%;
    object-fit: cover;
}

/* Original — natural dimensions, capped at 100% */
.vic-image-wrap.vic-size-original img {
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Custom — driven by Elementor selectors */
.vic-image-wrap.vic-size-custom img {
    object-fit: cover;
}

/* ─────────────────────────────────────────────
   CONTENT
───────────────────────────────────────────── */
.vic-content {
    padding: 28px 28px 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* keeps children at natural width */
    flex: 1;
    min-width: 0;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* ─────────────────────────────────────────────
   COUNTER
───────────────────────────────────────────── */
.vic-counter {
    display: block;
    width: 100%;
    font-size: 72px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0 0 16px 0;
    word-break: break-word;
}

/* ─────────────────────────────────────────────
   BADGE WRAPPER — block div so flex won't stretch it
───────────────────────────────────────────── */
.vic-badge-wrap {
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.vic-badge {
    display: inline-block;
    width: auto;
    max-width: 100%;
    background-color: #2e2e2e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 5px;
    line-height: 1.4;
    white-space: nowrap;
}

/* ─────────────────────────────────────────────
   HEADING
───────────────────────────────────────────── */
.vic-heading {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
    padding: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ─────────────────────────────────────────────
   SUBTITLE
───────────────────────────────────────────── */
.vic-subtitle {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 12px 0;
    padding: 0;
    word-break: break-word;
}

/* ─────────────────────────────────────────────
   BODY TEXT
───────────────────────────────────────────── */
.vic-body {
    display: block;
    width: 100%;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    word-break: break-word;
}

/* ─────────────────────────────────────────────
   TABLET  768px – 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) and (min-width: 768px) {
    .vic-counter  { font-size: 54px; }
    .vic-heading  { font-size: 22px; }
    .vic-subtitle { font-size: 14px; }
    .vic-body     { font-size: 13px; }
    .vic-content  { padding: 22px; }
}

/* ─────────────────────────────────────────────
   MOBILE  max 767px
───────────────────────────────────────────── */
@media (max-width: 767px) {

    .vic-card {
        border-radius: 12px;
    }

    /* All image modes go full-width on mobile */
    .vic-image-wrap {
        max-height: 260px;
    }
    .vic-image-wrap img,
    .vic-image-wrap.vic-size-original img,
    .vic-image-wrap.vic-size-custom img,
    .vic-image-wrap.vic-size-cover img {
        width: 100% !important;
        height: 260px !important;
        max-width: 100% !important;
        object-fit: cover !important;
    }

    .vic-badge      { font-size: 12px; padding: 4px 12px; }
    .vic-badge-wrap { margin-bottom: 14px; }
    .vic-counter    { font-size: 44px; letter-spacing: -0.5px; margin-bottom: 12px; }
    .vic-heading    { font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
    .vic-subtitle   { font-size: 14px; margin-bottom: 8px; }
    .vic-body       { font-size: 13px; line-height: 1.6; }
    .vic-content    { padding: 18px 18px 22px 18px; }
}

/* ─────────────────────────────────────────────
   SMALL MOBILE  max 480px
───────────────────────────────────────────── */
@media (max-width: 480px) {
    .vic-image-wrap,
    .vic-image-wrap img,
    .vic-image-wrap.vic-size-original img,
    .vic-image-wrap.vic-size-custom img,
    .vic-image-wrap.vic-size-cover img {
        height: 200px !important;
        max-height: 200px;
    }
    .vic-counter { font-size: 36px; }
    .vic-heading { font-size: 18px; }
    .vic-content { padding: 16px; }
}
