/* 
   MJ Tech Hub - Responsive CSS
*/

/* Tablet and Smaller Desktop */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-split .laptop-composite {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .instagram-banner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .instagram-banner > div {
        flex-direction: column;
    }
    
    .topic-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet / Large Mobile */
@media (max-width: 900px) {
    .container {
        width: min(100% - 32px, 1440px);
        padding: 0;
    }
    
    .hero-section {
        padding: 3rem 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .filter-controls {
        flex-wrap: wrap;
    }
    
    h1 {
        font-size: 2rem !important;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .badge-grid {
        grid-template-columns: 1fr;
    }
    
    .topic-grid {
        grid-template-columns: 1fr;
    }
}
