/* Mobile-first enhancements for Android & iPhone */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-bg {
        height: 360px !important;
        margin-top: 0;
    }
    
    main {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    h1, h2 {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }
    
    .hero-bg h2 {
        font-size: 1.85rem !important;
    }
    
    article img {
        height: 180px !important;
    }
    
    .flex.flex-wrap.gap-3 {
        gap: 0.75rem;
    }
    
    /* Nicer mobile cards */
    article {
        margin-bottom: 1.5rem;
    }
}

/* Better touch targets */
button, a {
    min-height: 44px;
    padding: 0.75rem 1rem;
}

/* Safe area for iPhone notch + sticky header clearance */
@supports (padding: max(0px)) {
    body {
        padding-top: max(0px, env(safe-area-inset-top));
    }
}

/* Extra clearance for sticky header on mobile - Samsung portrait fix */
header.sticky {
    position: sticky;
    top: 0;
}

main {
    padding-top: 1.5rem;
}

/* Critical mobile portrait fix - EVEN MORE SPACE for Samsung / Android */
@media (max-width: 640px) {
    main {
        padding-top: 220px !important;   /* ← Increased a lot */
    }
    
    .hero-bg {
        height: 320px !important;
        margin-top: 40px !important;
    }
    
    .text-center.mb-12 {
        margin-bottom: 3.5rem !important;
        padding-top: 20px;
    }
    
    h1 {
        font-size: 2.1rem !important;
        margin-bottom: 0.5rem;
    }
    
    .hero-bg h2 {
        font-size: 1.65rem !important;
        line-height: 1.3;
    }
    
    /* Extra breathing room */
    .hero-bg {
        margin-bottom: 3rem !important;
    }
}