/* Services Cards - CSS
   Button: #0A6DB7
   Card hover background: #2A9DF4
   Card hover text: white
*/

.custom-services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 36px;
    padding: 40px 20px;
}

/* Card base */
.custom-service-card {
    background: #E7F5FB;
    border-radius: 12px;
    padding: 36px;
    transition: background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.18s ease;
    box-shadow: 0 10px 30px rgba(20, 20, 20, 0.05);
    overflow: hidden;
}

/* Title */
.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #0a0a0a;
    margin: 0 0 10px;
    line-height: 1.15;
}
.service-title a {
    color: inherit;
    text-decoration: none;
}

/* Divider / Accent */
.service-divider {
    width: 52px;
    height: 4px;
    background-color: #0A6DB7;
    margin: 12px 0 18px;
    border-radius: 2px;
}

/* Excerpt text */
.service-excerpt {
    font-size: 15px;
    color: #333333;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Button - base */
.service-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #0A6DB7;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.12s ease;
    box-shadow: none;
}

/* Button hover (when hovering button itself) */
.service-btn:hover,
.service-btn:focus {
    transform: translateY(-2px);
    background-color: #083f63;
    color: #ffffff;
}

/* Card hover: background becomes #2A9DF4 and text becomes white */
.custom-service-card:hover,
.custom-service-card.active-hover {
    background-color: #2A9DF4;
    color: #ffffff;
    box-shadow: 0 18px 40px rgba(20, 20, 20, 0.08);
    transform: translateY(-4px);
}

/* Make sure internal elements change color on hover */
.custom-service-card:hover .service-title,
.custom-service-card:hover .service-excerpt,
.custom-service-card:hover .service-divider,
.custom-service-card:hover .service-btn,
.custom-service-card.active-hover .service-title,
.custom-service-card.active-hover .service-excerpt,
.custom-service-card.active-hover .service-divider,
.custom-service-card.active-hover .service-btn {
    color: #ffffff;
}

/* Divider should blend when hovered */
.custom-service-card:hover .service-divider,
.custom-service-card.active-hover .service-divider {
    background-color: rgba(255,255,255,0.85);
}

/* When card is hovered: invert button to white background + blue text for contrast */
.custom-service-card:hover .service-btn,
.custom-service-card.active-hover .service-btn {
    background-color: #ffffff;
    color: #2A9DF4;
    font-weight: 700;
}

/* Accessibility / small screens */
.no-services {
    color: #666;
    font-size: 16px;
}

/* Small responsive tweak */
@media (max-width: 420px) {
    .custom-services-wrapper { gap: 18px; padding: 20px 10px; }
    .custom-service-card { padding: 22px; }
}
