/* Extracurricular activities: vertically stacked card content. */
.service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.service-card{--service-tint:#eef8f1;--service-line:#cce5d5;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--service-line);border-radius:21px;background:var(--service-tint)}
.service-card:nth-child(4n+2){--service-tint:#fff7e6;--service-line:#eddfbd}
.service-card:nth-child(4n+3){--service-tint:#edf6fc;--service-line:#d0e4ed}
.service-card:nth-child(4n){--service-tint:#fceff3;--service-line:#ecd6df}
.service-card>img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}
.service-card-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;padding:23px}
.service-card h2{margin:0 0 13px;font-size:19px;line-height:1.6;color:#42645e;overflow-wrap:anywhere}
.service-card p{margin:0 0 22px;font-size:14px;line-height:1.95;overflow-wrap:anywhere}
.service-button{display:inline-flex;justify-content:center;align-items:center;gap:15px;min-height:44px;margin-top:auto;padding:8px 18px;border:1px solid var(--service-line);border-radius:999px;background:#fff;color:#42645e;font-size:13px;font-weight:700;transition:background .2s ease}
.service-button:hover{background:#f5fbf7}
.service-button:focus-visible{outline:2px solid #729e8b;outline-offset:3px}

@media(max-width:900px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:650px){.service-grid{grid-template-columns:minmax(0,1fr);gap:20px}.service-card-body{padding:20px}.service-card h2{font-size:18px}}



