/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    width: 100%; /* Ensure full width on mobile */
    margin: 0px auto;
}

.container {
    width: 100%;
    max-width: 500px; /* Limit container width on larger screens */
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Placeholder image adjustments */
.image-placeholder {
    width: 100%;
    height: 200px; /* Reduced height for better mobile fit */
    background-color: #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    overflow: hidden;
    border-radius: 10px; /* Adding border-radius for a cleaner look */
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px; /* Keep border-radius consistent with container */
}

/* Content styles */
.content {
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}

.headings {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.headings h2 {
    font-size: 16px; /* Reduced font size for mobile */
    margin-bottom: 10px;
}

.headings i {
    background-color: #68676c;
    padding: 7px;
    border-radius: 100px;
    color: white;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-bottom: 20px;
}

ul li {
    display: flex;
    align-items: center;
    font-size: 14px; /* Ensure font size is not too large */
    margin-bottom: 5px;
    gap: 6px;
    color: gray;
}

ul i {
    background-color: #68676c;
    padding: 5px;
    font-size: 8px;
    border-radius: 100px;
    color: white;
}

/* Service section styles */
.services {
    margin-bottom: 20px;
}

.service {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service i {
    background-color: #68676c;
    padding: 7px;
    border-radius: 100px;
    color: white;
}

.service-title {
    font-size: 16px; /* Mobile-friendly font size */
    font-weight: bold;
}

.service-description {
    color: #68676c;
}

/* Missing styles for service-placeholder and service-card */
.service-placeholder {
    width: 100%;
    height: 220px; /* Adjusted height for service placeholders */
    background-color: #f2f2f2;
    border-radius: 10px 10px 0px 0px; /* Top corners rounded */
    border: 2px solid #e0e0e0; /* Add border to match overall design */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.service-card {
    width: 100%; /* Ensure service card takes full width */
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px; /* Add margin for spacing between cards */
}

.service-placeholder img {
    width: 100%; /* Ensure images fill the placeholder */
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 0px 0px; /* Keep border consistent */
}

/* Carousel styles */
.carousel {
    display: flex;
    align-items: center;
    position: relative;
}

.service-cards {
    display: flex;
    transition: transform 0.5s ease;
    width: 320px;
}

.service-card {
    min-width: 320px;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.service-content {
    text-align: left;
    padding-left: 10px;
    border-radius: 0px 0px 10px 10px;
    border: 2px solid #e0e0e0;
    min-width: 310px;
}

.carousel i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 24px;
    background-color: white;
    padding: 25px 30px;
    box-shadow: 0px 0px 20px rgba(128, 128, 128, 0.358);
    border-radius: 100px;
    z-index: 10;
}

#prev {
    left: 10px;
}

#next {
    right: 10px;
}

/* WhatsApp button styles */
.actions {
    text-align: center;
    margin-bottom: 20px;
}

.actions p {
    text-align: left;
    font-weight: bold;
    font-size: 16px; /* Adjusted for mobile */
}

.actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px; /* Reduced padding for better mobile fit */
    margin-bottom: 10px;
    border: none;
    border-radius: 50px;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    cursor: pointer;
    font-size: 16px; /* Mobile-friendly button text */
    font-weight: bold;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.actions button::before {
    content: "";
    display: inline-block;
    width: 40px;
    height: 40px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center/contain;
    margin-right: 10px;
}

.actions button:hover {
    background-color: #128C7E; /* Darker shade of WhatsApp green */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Extra info section */
.extra-info {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #e5e5e5;
    border-radius: 10px;
    padding: 10px;
}

.extra-info .icon {
    width: 10%;
}

.extra-info .icon img {
    width: 100%;
}

.extra-info .details {
    display: flex;
    flex-direction: column;
}

.details h3 {
    margin-bottom: -10px;
}

.details p {
    color: #68676c;
}

/* Media queries for mobile responsiveness */
@media (max-width: 500px) {
    .headings h2, .service-title {
        font-size: 14px; /* Smaller font size for very small screens */
    }
    
    .actions button {
        font-size: 14px; /* Adjust button text for smaller screens */
        padding: 10px; /* Further reduce padding on smaller devices */
    }
    
    .image-placeholder {
        height: 180px; /* Reduce image height on smaller screens */
    }
}

@media (max-width: 375px) {
    .actions button {
        font-size: 12px; /* Further reduction for very small screens */
        padding: 8px;
    }

    .image-placeholder {
        height: 160px; /* Adjust image height for smallest devices */
    }
}
