:root{
    --service-bg: #f0f2f5;
    --service-card: #ffffff;
    --service-muted: #5a6472;
    --service-accent: #00305d;
    --service-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --service-radius: 15px;
}

.services-section {
    background-color: var(--service-bg);
    font-family: 'Inter', sans-serif;
    padding: 5rem 15px;
    text-align: center;
    position: relative;
}

.services-section-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-title {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 1rem 0;
}

.services-subtitle {
    color: var(--service-muted);
    font-size: 1.1rem;
    max-width: 750px;
    margin: 0 auto 4rem auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--service-card);
    border-radius: var(--service-radius);
    box-shadow: var(--service-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* To contain the button */
}

.service-card-content {
    padding: 25px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    background-color: var(--service-accent);
}

.service-card:hover .service-card-content * {
    color: #fff;
}

.service-card .service-icon {
    font-size: 2.5rem;
    margin-bottom: 0rem;
    color: var(--service-accent);
    transition: color 0.4s ease;
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2b3440;
    margin-bottom: 0.5rem;
}

.service-card-description {
    font-size: 0.9rem;
    color: var(--service-muted);
    line-height: 1.6;
    margin-bottom: 0rem; /* Reduced space before the button */
    flex-grow: 1;
}

.btn-book-service {
    background-color: var(--service-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 30px;
    width: 100%;
    border: none;
    border-top: 1px solid var(--service-accent);
    transition: background-color 0.4s ease, color 0.4s ease;
    cursor: pointer; /* Add hand icon on hover */
}

.service-card:hover .btn-book-service {
    background-color: #fff;
    color: var(--service-accent);
}

.explore-services-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.btn-explore-services {
    background-color: var(--service-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 35px;
    border-radius: 50px;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 48, 93, 0.2);
}

.btn-explore-services:hover {
    background-color: #004a8d;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 48, 93, 0.3);
}

@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
