/* Service Card Styles */
.service-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Hover Background Layer */
.service-card-bg-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 0;
}

/* Background Overlay */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Clickable Card */
.service-card.has-link { cursor: pointer;}

.service-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    text-decoration: none;
}

/* Service Card Icon */
.service-card-icon-arrow{
    position: absolute;
    bottom: 2px;
    right: 7px; 
}

.service-card-icon-arrow,
.service-card-icon-arrow #path10,
.service-card-icon-arrow g{transition: all 550ms ease;}

.service-card:hover .service-card-icon-arrow{ transform: rotate(43deg);}
.service-card:hover .service-card-icon-arrow #path10{ fill: var(--acGold) !important;}
.service-card:hover .service-card-icon-arrow g path{ stroke: var(--acWhite) !important;}

/* Card Content */
.service-card-content {
    position: relative;
    z-index: 2;
    padding: 0 64px 32px 64px;
    text-align: center;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon */
.service-card-icon {
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-card-icon i,
.service-card-icon svg {
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    display: inline-block;
}

/* Icon Image Support */
.service-card-icon img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Title */
.service-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 15px 0;
    text-align: left;
    line-height: 1.3;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Description */
.service-card-description {
    font-size: 15px;
    line-height: 1.6;
    color: #ffffff;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Short Description - Visible by default */
.service-card-description.short-description {
    opacity: 1;
    transform: translateY(0);
}

/* Long Description - Hidden by default */
.service-card-description.long-description {
    position: relative;
    transform: translateY(-50%) scale(0.9);
    opacity: 0;
    text-align: left;
    pointer-events: none;
    max-height: calc(100% - 60px);
    overflow-y: auto;
}

/* Hover Effects */
.service-card:hover { transform: translateY(-5px);}
.service-card:hover::before { background-color: rgba(0, 0, 0, 0.8);}

/* Show hover background image with smooth fade */
.service-card.has-hover-bg:hover .service-card-bg-hover { opacity: 1;}

/* Hide short content on hover */
.service-card:hover .service-card-icon .icon-default,
.service-card:hover .service-card-icon .icon-hover{ transition: all 350ms ease;}

.service-card:hover .service-card-icon { transform: translateY(-10px);}
.service-card .service-card-icon .icon-hover{ display: none;}
.service-card:hover .service-card-icon .icon-default{ display: none;}
.service-card:hover .service-card-icon .icon-hover{ display: block;}

.service-card:hover .service-card-title {
    transform: translateY(-10px);
    opacity: 1;
}

.service-card:hover .service-card-description.short-description {
    transform: translateY(-10px);
    opacity: 0;
}

/* Show long content on hover */
.service-card:hover .service-card-description.long-description {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
}

/* Custom Scrollbar for Long Description */
.service-card-description.long-description::-webkit-scrollbar { width: 6px;}

.service-card-description.long-description::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.service-card-description.long-description::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.service-card-description.long-description::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5);}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card-content { padding: 20px;}
    .service-card-title { font-size: 20px;}
    .service-card-description { font-size: 14px;}
    
    .service-card-icon i,
    .service-card-icon svg { font-size: 32px;}
    
    .service-card-description.long-description {
        left: 20px;
        right: 20px;
        max-height: calc(100% - 40px);
    }
}

/* Print Styles */
@media print {
    .service-card:hover .service-card-description.short-description {
        opacity: 1;
        transform: translateY(0);
    }
    
    .service-card:hover .service-card-description.long-description { opacity: 0;}
}