/* Card Grid Layout - General purpose card layout */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: clamp(28px, 8vw, 100px);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Card Item - General purpose card styling */
.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: clamp(24px, 4vw, 40px);
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: scale(1.05);
}

.card-item:active {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Card Image */
.card-image {
    width: 100%;
    height: clamp(140px, 24vh, 250px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Card Text */
.card-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #334e68;
    text-align: center;
}

/* Responsive Design - Stack cards vertically on smaller screens */
@media (max-width: 767px) and (pointer: coarse) {
    .card-item:hover,
    .card-item:active {
        transform: none;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 420px;
    }

    .card-image {
        height: 100px;
    }

    .card-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) and (pointer: coarse) {
    .card-grid {
        gap: 20px;
    }

    .card-item {
        padding: 16px;
    }

    .card-image {
        height: 100px;
    }

    .card-text {
        font-size: 1rem;
    }
}
