﻿/* Shared card appearance for the homepage and service directory. */
:is(#pelayanan, .services-page) .service-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 244px; padding: 24px; background: var(--white); border: 1px solid var(--service-line, #dce7e1); border-radius: 16px; box-shadow: none; transform: none; transition: background-color .18s ease, border-color .18s ease; }
:is(#pelayanan, .services-page) .service-icon { display: inline-flex; align-items: center; justify-content: flex-start; width: 36px; height: 36px; margin-bottom: 20px; background: transparent; color: var(--green); border: 0; border-radius: 0; box-shadow: none; }
:is(#pelayanan, .services-page) .service-icon > .icon { width: 32px; height: 32px; }
:is(#pelayanan, .services-page) .service-phosphor-icon { fill: currentColor; stroke: none; }
:is(#pelayanan, .services-page) .service-card :is(h2, h3) { width: 100%; margin: 0 0 10px; color: var(--green-deep); font-size: 19px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
:is(#pelayanan, .services-page) .service-card p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0 0 20px; color: #4d665b; font-size: 15px; line-height: 1.65; }
:is(#pelayanan, .services-page) .service-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 32px; margin-top: auto; padding-top: 12px; border: 0; color: var(--green); font-size: 14px; line-height: 1.5; }
:is(#pelayanan, .services-page) .service-card-bottom > .icon { flex-shrink: 0; width: 18px; height: 18px; }
:is(#pelayanan, .services-page) .service-card:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
:is(#pelayanan, .services-page) .service-card:active { background: #eaf2ec; }
@media (hover: hover) {
    :is(#pelayanan, .services-page) .service-card:hover { background: #f7faf3; border-color: #a6c2b1; transform: none; box-shadow: none; }
    :is(#pelayanan, .services-page) .service-card:hover .service-icon { background: transparent; color: var(--green-deep); }
}
@media (max-width: 620px) {
    :is(#pelayanan, .services-page) .service-card { padding: 16px; min-height: 228px; }
    :is(#pelayanan, .services-page) .service-icon { width: 32px; height: 32px; margin-bottom: 16px; }
    :is(#pelayanan, .services-page) .service-icon > .icon { width: 30px; height: 30px; }
    :is(#pelayanan, .services-page) .service-card :is(h2, h3) { font-size: 16px; line-height: 1.4; letter-spacing: -.015em; }
    :is(#pelayanan, .services-page) .service-card p { -webkit-line-clamp: 2; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
    :is(#pelayanan, .services-page) .service-card-bottom { font-size: 13px; padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { :is(#pelayanan, .services-page) .service-card { transition: none; } }
@media (forced-colors: active) {
    :is(#pelayanan, .services-page) .service-card { border-color: CanvasText; }
    :is(#pelayanan, .services-page) .service-card:focus-visible { outline-color: Highlight; }
}
