/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Responsive Improvements */
@media (max-width: 640px) {
    
    /* Ensure proper spacing on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Better button sizing on mobile */
    button {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Improve text readability */
    h1, h2, h3 {
        line-height: 1.2;
    }
    
    /* Better grid spacing on mobile */
    .grid {
        gap: 0.75rem;
    }
    
    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }
}

/* Tablet improvements */
@media (min-width: 641px) and (max-width: 1024px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}