/* Service Card Display Modes */

/* =========================================
   Mode 1: "Slim/Hover" Mode (Old Request)
========================================= */
body .hover-expand-mode .service-content-wrapper,
html body .hover-expand-mode .service-content-wrapper {
    max-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

body .hover-expand-mode .service-action,
html body .hover-expand-mode .service-action {
    display: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

/* DESKTOP (Hover enabled) */
@media (min-width: 992px) {
    body .hover-expand-mode .service-content-wrapper {
        display: block !important;
    }

    body .hover-expand-mode .service-action {
        display: flex !important;
    }

    body .hover-expand-mode .wrap {
        padding-bottom: 25px !important;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1;
        position: relative;
        background: #f0f0f3 !important;
        height: auto !important;
        border-radius: 10px;
    }

    /* Reduced Size for Slim Mode */
    body .hover-expand-mode .wrap .icon-1 i {
        font-size: 50px !important;
        line-height: 50px !important;
    }

    body .hover-expand-mode .wrap .numb {
        font-size: 50px !important;
        bottom: 10px !important;
        right: 15px !important;
        opacity: 0.5 !important;
    }

    /* HOVER STATE */
    body .hover-expand-mode .wrap:hover {
        z-index: 100 !important;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
        transform: translateY(-5px) !important;
        border-color: rgba(220, 39, 81, 0.5) !important;
        background: #ffffff !important;
    }

    body .hover-expand-mode .wrap:hover .service-content-wrapper {
        max-height: 500px !important;
        opacity: 1 !important;
        margin-top: 15px !important;
        font-size: 0.85em !important;
    }

    body .hover-expand-mode .wrap:hover .service-action {
        opacity: 1 !important;
        max-height: 50px !important;
        margin-top: 15px !important;
        overflow: visible !important;
    }
}

@media (max-width: 991px) {
    body .hover-expand-mode .service-content-wrapper {
        max-height: none !important;
        opacity: 1 !important;
        padding: initial !important;
        margin: initial !important;
    }

    body .hover-expand-mode .service-action {
        display: flex !important;
        opacity: 1 !important;
        max-height: none !important;
    }
}

/* =========================================
   Mode 2: "ONLY_TITLE" Mode (New Request)
   - Only Title, Icon, Number.
   - Gray background always.
   - No content expansion ever.
========================================= */

/* Always hide content and actions */
body .only-title-mode .service-content-wrapper,
html body .only-title-mode .service-content-wrapper,
body .only-title-mode .service-action,
html body .only-title-mode .service-action,
body .only-title-mode .show-more-btn {
    display: none !important;
    opacity: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

/* Card Styling */
body .only-title-mode .wrap {
    background: #f0f0f3 !important;
    /* Always gray */
    border-radius: 10px !important;
    border: none !important;
    /* Clean look */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    padding-bottom: 25px !important;
    /* Consistent padding */
    position: relative;
    z-index: 1;
}

/* Hover Effect - Subtle Lift, NO Expansion, NO Color Change */
body .only-title-mode .wrap:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background: #f0f0f3 !important;
    /* Stay gray */
    z-index: 10;
    /* Slight z-index boost */
}

/* Ensure Text/Icon colors remain consistent (don't turn white if original CSS does that) */
body .only-title-mode .wrap:hover .icon-1 {
    color: #dc2751 !important;
    /* Keep brand color */
    transform: translateY(-5px) !important;
    /* Animate icon slightly */
}

body .only-title-mode .wrap:hover h4 {
    color: #1b1b1b !important;
    /* Keep black text */
}

/* Specific Element Sizing (As requested: 15% smaller icon, smaller number) */
body .only-title-mode .wrap .icon-1 i {
    font-size: 50px !important;
    /* Reduced from 60px */
    line-height: 50px !important;
}

body .only-title-mode .wrap .numb {
    font-size: 35px !important;
    /* Reduced from 50px */
    bottom: 10px !important;
    right: 10px !important;
    opacity: 0.1 !important;
    /* Very subtle */
    color: #000 !important;
    -webkit-text-stroke: 0 !important;
    /* Remove outline style if present */
}

/* On hover, maybe make number slightly more visible? */
body .only-title-mode .wrap:hover .numb {
    opacity: 0.2 !important;
    color: #dc2751 !important;
    /* Subtle brand hint */
}