* {
    box-sizing: border-box;
}

:root {
    --gap: 30px;
    --maxw: 1200px;
}

body {
    color: white;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background: #f5f5f5;
}

section {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px clamp(16px, 5vw, 100px);
}

h1 {
    color: black;
    text-align: center;
    margin: 16px 0 24px;
}

.grid {
    display: grid;
    gap: var(--gap, 30px);
    grid-template-columns: repeat(2, 1fr);
}

.grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
}

.card {
    display: block;
    background: #2B7FFFFF;
    border-radius: 20px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover,
.card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card img {
    width: 100%;
    display: block;

    object-fit: cover;
}

.card h2 {
    color: white;
    font-size: 22px;
    text-align: center;
    margin: 14px 20px;
}

.card p {
    text-align: center;
}

a {
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    .card { transition: none; }
}

@media (max-width: 768px) {
    :root { --gap: 20px; }
    .card h2 { font-size: 20px; }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 25px;
    }
    .grid > :last-child:nth-child(odd) {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .card h2 { font-size: 18px; }
}