/* Better Service Cards Styles */

:root {
    --card-bg: #ffffff;
    --card-radius: 20px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft ambient shadow */
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    --card-border-color: rgba(255, 255, 255, 0.5);
    --icon-bg-size: 80px;
}

/* Base Card Style */
.tp-service-3-item {
    background-color: var(--card-bg);
    border-radius: var(--card-radius);
    padding: 40px 25px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy transition */
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 30px;
}

/* Hover Effects */
.tp-service-3-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    background-color: #ffffff !important;
    /* Forces white background on hover */
}

/* Force text dark on hover */
.tp-service-3-item:hover .tp-service-3-title {
    color: #2D3436 !important;
}

.tp-service-3-item:hover .tp-service-3-content p {
    color: #636E72 !important;
}

/* Colorful Bottom Border on Hover */
.tp-service-3-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF6B6B, #FFD54F);
    /* Default gradient */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.tp-service-3-item:hover::after {
    transform: scaleX(1);
}

/* Icon Styling */
.tp-service-3-icon {
    margin-bottom: 25px;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

/* Circle background for icon */
.tp-service-3-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: var(--icon-bg-size);
    height: var(--icon-bg-size);
    background-color: #F7F9FA;
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: all 0.4s ease;
}

.tp-service-3-item:hover .tp-service-3-icon::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tp-service-3-icon img {
    height: 65px;
    /* Slightly larger icons */
    width: auto;
    transition: transform 0.4s ease;
}

.tp-service-3-item:hover .tp-service-3-icon img {
    transform: scale(1.1) rotate(5deg);
}

/* Content Styling */
.tp-service-3-title {
    font-family: 'Urbanist', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 12px;
    color: #2D3436;
}

.tp-service-3-content p {
    color: #636E72;
    font-size: 16px;
    line-height: 1.6;
}