/* Medical Service Cards - DentalX Tema Uyumlu */
.modern-service-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(22, 26, 64, 0.08);
    transition: all 0.3s ease;
    height: auto;
    min-height: 100%;
    position: relative;
    border: 1px solid #e9ecef;
}

.modern-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(22, 26, 64, 0.15);
    border-color: #161A40;
}

.service-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-service-card:hover .service-image {
    transform: scale(1.03);
}

.service-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(22, 26, 64, 0.1) 70%,
        rgba(22, 26, 64, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-service-card:hover .service-image-overlay {
    opacity: 1;
}

.service-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #FF3131;
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

.service-content-modern {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-title-modern {
    font-size: 22px;
    font-weight: 700;
    color: #161A40;
    margin-bottom: 14px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-title-modern a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title-modern a:hover {
    color: #FF3131;
}

.service-description-modern {
    font-size: 16px;
    line-height: 1.7;
    color: #5b5f61;
    margin-bottom: 22px;
    flex: 1;
}

.service-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-top: 12px;
    border-top: 1px solid #f0f8f6;
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-rating .stars {
    color: #f6ad55;
    font-size: 14px;
}

.service-rating .rating-text {
    font-size: 12px;
    color: #718096;
    margin-left: 5px;
}

.service-price {
    font-size: 15px;
    font-weight: 700;
    color: #FF3131;
}

.service-btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #161A40;
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
    width: 100%;
    text-align: center;
    border: 2px solid #161A40;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
}

.service-btn-modern:hover {
    background: #FF3131;
    border-color: #FF3131;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 49, 49, 0.3);
}

.service-btn-modern i {
    margin-left: 6px;
    transition: transform 0.3s ease;
    font-size: 12px;
}

.service-btn-modern:hover i {
    transform: translateX(2px);
}

/* Responsive Design */
@media (max-width: 991px) {
    .service-image-container {
        height: 180px;
    }
    
    .service-content-modern {
        padding: 20px 16px;
    }
    
    .service-title-modern {
        font-size: 18px;
    }
    
    .service-description-modern {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .service-image-container {
        height: 160px;
    }
    
    .service-content-modern {
        padding: 18px 16px;
    }
    
    .service-title-modern {
        font-size: 17px;
        margin-bottom: 10px;
    }
    
    .service-description-modern {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .service-btn-modern {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 575px) {
    .service-image-container {
        height: 140px;
    }
    
    .service-content-modern {
        padding: 16px 14px;
    }
    
    .service-title-modern {
        font-size: 16px;
    }
    
    .service-description-modern {
        font-size: 13px;
    }
}