/* Tailwind Config (if needed in a separate file, otherwise handled by CDN) */
/* body {
    min-height: 1024px;
} */

/* Custom Styles */
body {
    min-height: 1024px;
}
.nav-link.active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}
.section {
    scroll-margin-top: 80px; /* Default for desktop */
}
/* Control product description overflow */
.product-description {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Mobile hamburger menu styles */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 1000;
}
/* Center cases header title on small screens */
#casesHeader {
    justify-content: center; /* Default center */
}
@media (min-width: 640px) { /* Tailwind sm breakpoint */
    #casesHeader {
        justify-content: space-between; /* Align between on sm and up */
    }
    #casesActions {
        display: flex !important; /* Force show */
    }
}
@media (max-width: 767px) { /* Common mobile/tablet breakpoint */
    .desktop-nav {
        display: none !important;
    }
    .mobile-menu {
        display: none; /* Controlled by JS */
    }
    .mobile-menu.active {
        display: block;
    }
    .nav-link {
        display: block;
        padding: 0.5rem 1rem;
        margin: 0.25rem 0;
        border-radius: 0.25rem;
    }
    .section {
        scroll-margin-top: 60px; /* Mobile header height */
    }
    /* Adjust components for mobile */
    #hero .text-5xl { font-size: 2.25rem; /* text-4xl equivalent */ }
    #hero .text-xl { font-size: 1.125rem; /* text-lg equivalent */ }
    #products .grid-cols-4, #solutions .grid-cols-3, #cases .grid-cols-4, #about .grid-cols-2, footer .grid-cols-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    #content .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    #content .order-2 { order: 2; }
    #content .order-1 { order: 1; }
    #about .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 768px) and (max-width: 1023px) { /* Tailwind md breakpoint */
    #products .grid-cols-4, #cases .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #solutions .grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    footer .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
