/* Base styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(90deg, #3498db, #5f5f5f);
    color: #797676;
    padding: 20px;
    text-align: center;
}

h1 {
    font-size: 36px;
    margin: 0;
    color: white;
}

.services {
    padding: 40px 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-item {
    margin: 20px; /* Add spacing around each service item */
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background 0.3s ease-in-out, color 0.3s ease-in-out; /* Transition background color and text color */
    display: flex;
    align-items: center;
    flex-direction: column; /* Stack elements vertically */
    text-align: center;
}

.service-item i {
    font-size: 50px;
    margin-bottom: 10px; /* Spacing between icon and heading */
    transition: color 0.3s ease-in-out;
}

.service-item h2 {
    font-size: 26px; /* Slightly larger font size for headings */
    font-family: 'Your Preferred Font', sans-serif; /* Specify your custom font */
    font-weight: bold; /* Added font weight for headings */
    color: #333;
    transition: color 0.3s ease-in-out;
}

.service-item p {
    font-size: 16px; /* Adjust the font size as needed */
    color: #000000;
    margin: 20px 0;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-weight: normal; /* Use 'normal' for a cleaner look */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .service-item {
        text-align: center;
    }
}

/* Hover Animations */
.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #ffffff, #ffffff);
}

.service-item:hover i {
    color: #ff5733;
}

.service-item:hover h2 {
    color: #ff5733;
}

/* Service-specific styles */
.service-item i.fa-stethoscope {
    color: #1abc9c;
}

.service-item i.fa-hospital {
    color: #f39c12;
}

.service-item i.fa-ambulance {
    color: #e74c3c;
}

.service-item i.fa-x-ray {
    color: #9b59b6;
}

.service-item i.fa-venus-mars {
    color: #d35400;
}

.service-item i.fa-prescription {
    color: #27ae60;
}

.service-item i.fa-vial {
    color: #2980b9;
}

.service-item i.fa-user-md {
    color: #3498db;
}

/* Additional Hover Animations */
.service-item i:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
}

.service-item h2:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}
