/**
 * Hero floating cards — compact premium stats
 * ONLY styles .hero-floating-card* (no Bootstrap utilities).
 * Loaded last (after Bootstrap / style / animations) so these win.
 */

#heroSection .hero-visual {
    overflow: visible;
    max-width: 100%;
}

#heroSection .hero-image-frame {
    overflow: hidden;
    max-width: 100%;
}

#heroSection .hero-floating-card {
    position: absolute !important;
    z-index: 5 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    width: 180px !important;
    height: 64px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    overflow: hidden !important;
    flex: none !important;
    background: #ffffff !important;
    border: 1px solid rgba(17, 24, 39, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08) !important;
    opacity: 0;
    animation: heroFloatingCardEnter 0.65s ease forwards,
               heroFloatingCardFloat 4.5s ease-in-out infinite;
}

#heroSection .hero-floating-card--right {
    width: 210px !important;
    height: 72px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    top: 50% !important;
    right: -18px !important;
    bottom: auto !important;
    left: auto !important;
    animation: heroFloatingCardEnterRight 0.65s ease forwards,
               heroFloatingCardFloatRight 4.5s ease-in-out infinite;
    animation-delay: 0.85s, 1.2s;
}

#heroSection .hero-floating-card__icon {
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 10px !important;
    background: rgba(215, 25, 32, 0.1) !important;
    color: #d71920 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

#heroSection .hero-floating-card__icon--strong {
    background: rgba(215, 25, 32, 0.15) !important;
}

#heroSection .hero-floating-card__icon i,
#heroSection .hero-floating-card__icon i::before {
    font-size: 16px !important;
    line-height: 1 !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

#heroSection .hero-floating-card__body {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 2px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
}

#heroSection .hero-floating-card__number {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    color: #111827 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#heroSection .hero-floating-card__title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    color: #374151 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

#heroSection .hero-floating-card__subtitle {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.15 !important;
    color: #9ca3af !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Top-left — slightly outside the image */
#heroSection .hero-floating-card--top {
    top: 8px !important;
    left: -8px !important;
    right: auto !important;
    bottom: auto !important;
    animation-delay: 0.65s, 0s;
}

/* Bottom-left — near lower edge with clear margin from top card */
#heroSection .hero-floating-card--bottom {
    bottom: 8px !important;
    left: -8px !important;
    top: auto !important;
    right: auto !important;
    animation-delay: 1.05s, 2.4s;
}

@keyframes heroFloatingCardEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFloatingCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes heroFloatingCardEnterRight {
    from {
        opacity: 0;
        transform: translateY(calc(-50% + 12px));
    }
    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

@keyframes heroFloatingCardFloatRight {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 5px)); }
}

@media (max-width: 991.98px) {
    #heroSection .hero-floating-card {
        width: 160px !important;
        height: 58px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        padding: 8px 12px !important;
    }

    #heroSection .hero-floating-card--right {
        width: 188px !important;
        height: 64px !important;
        min-width: 188px !important;
        max-width: 188px !important;
        min-height: 64px !important;
        max-height: 64px !important;
        top: 48% !important;
        right: -10px !important;
    }

    #heroSection .hero-floating-card--top {
        left: -6px !important;
        top: 10px !important;
    }

    #heroSection .hero-floating-card--bottom {
        left: -6px !important;
        bottom: 10px !important;
    }
}

@media (max-width: 575.98px) {
    #heroSection .hero-floating-card {
        width: 148px !important;
        height: 54px !important;
        min-width: 148px !important;
        max-width: 148px !important;
        min-height: 54px !important;
        max-height: 54px !important;
        padding: 8px 10px !important;
        gap: 6px !important;
        border-radius: 14px !important;
    }

    #heroSection .hero-floating-card--right {
        width: 170px !important;
        height: 58px !important;
        min-width: 170px !important;
        max-width: 170px !important;
        min-height: 58px !important;
        max-height: 58px !important;
        top: 46% !important;
        right: 4px !important;
    }

    #heroSection .hero-floating-card__icon {
        flex-basis: 30px !important;
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        max-width: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }

    #heroSection .hero-floating-card__icon i,
    #heroSection .hero-floating-card__icon i::before {
        font-size: 14px !important;
        width: 14px !important;
        height: 14px !important;
    }

    #heroSection .hero-floating-card__number {
        font-size: 14px !important;
    }

    #heroSection .hero-floating-card__title {
        font-size: 12px !important;
    }

    #heroSection .hero-floating-card__subtitle {
        font-size: 10px !important;
    }

    #heroSection .hero-floating-card--top {
        left: 4px !important;
        top: 12px !important;
    }

    #heroSection .hero-floating-card--bottom {
        left: 4px !important;
        bottom: 12px !important;
    }
}
