﻿body {
    background-color: rgb(230, 230, 230);
}

.card {
    margin-bottom: 1.5rem;
    border: none;
}

hr {
    border: 0;
    border-top: 2px solid transparent;
    width: 100%;
    margin: 2px auto;
    background-image: repeating-linear-gradient(to right, black 0, black 5px, transparent 5px, transparent 6px);
    height: 2px;
}

/* Card styles */
.custom-card {
    border-radius: 32px;
    box-shadow: -6px 9px blue;
    background-color: white;
    font-size: 18px;
    padding: 23px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Ensure consistent height distribution */
    height: 100%;
    margin-top:20px;
}

/* Service Button styles */
.service-btn {
    margin-top: 20px; /* Consistent margin from the top */
    width: 60%;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    align-self: center; /* Center the button within the card */
}

/* Service Card Container styles */
.service-container {

    padding: 30px;
}

/* Make text size responsive */
.card-title {
    font-size: 1.5rem; /* Default font size for large screens */
}

.card-text {
    font-size: 1rem; /* Default font size for text */
}

/* Adjust text size for smaller screens */
@media (max-width: 768px) {
    .custom-card {
        padding: 15px;
        min-height: 300px; /* Set a min-height to ensure consistent size */
        min-width: 300px;
    }

    .service-btn {
        position: relative;
        width: 80%; /* Increase button width for medium screens */
        padding: 12px; /* Adjust padding for better touch area */
        font-size: 1.1rem; /* Adjust font size */
    }

    .card-title {
        font-size: 1.2rem; /* Smaller font size for titles */
    }

    .card-text {
        font-size: 0.9rem; /* Smaller font size for text */
    }
}

/* Further adjustments for very small screens */
@media (max-width: 576px) {
    .card-title {
        font-size: 1rem; /* Even smaller font size for very small screens */
    }

    .card-text {
        font-size: 0.8rem; /* Even smaller font size for text */
    }

    .service-btn {
        width: 90%; /* Make button almost full-width */
        padding: 15px; /* Adjust padding for better touch area */
        font-size: 1.2rem; /* Larger font size for better readability on small screens */
        margin-top: 20px; /* Keep 20px margin */
    }
}
