/* Mobile-specific responsive fixes for Wybourn Islamic Centre */

/* Global container and layout fixes */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container, .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box;
}

/* Header and Logo Responsiveness */
.tq-logo img {
    max-width: 100%;
    height: auto !important;
}

@media (max-width: 768px) {
    .tq-header-topbar {
        display: none !important; /* Hide secondary topbar on small screens */
    }
    
    .tq-logo {
        text-align: center;
        margin: 0 auto;
    }
    
    .tq-res-header {
        display: block !important;
    }
    
    .stick {
        display: none !important; /* Hide main desktop header */
    }
}

/* Navigation Menu Fixes */
@media (max-width: 991px) {
    .tq-header-menu nav {
        display: none; /* Hide desktop nav */
    }
    
    .tq-res-menu-trigger {
        display: block !important;
    }
}

/* Typography Adjustments */
@media (max-width: 576px) {
    h1 { font-size: 1.8rem !important; }
    h2 { font-size: 1.5rem !important; }
    h3 { font-size: 1.3rem !important; }
    h4 { font-size: 1.1rem !important; }
    p { font-size: 0.95rem !important; }
}

/* Prayer Times Grid Responsiveness */
.tq-namaz-timing-boxes .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .tq-namaz-timing-box {
        margin-bottom: 20px;
        min-height: 120px;
    }
    
    .tq-namaz-timing-box .col-md-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

/* Pillars Section Fixes */
@media (max-width: 991px) {
    .tq-pillars-wrapper .row {
        flex-direction: column;
    }
    
    .tq-pillar-box-wrap {
        margin-bottom: 30px;
        width: 100% !important;
    }
}

/* Footer Adjustments */
@media (max-width: 768px) {
    .tq-footer-body .row > div {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        text-align: center;
        margin-bottom: 30px;
    }
    
    .tq-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .tq-social-links {
        margin-top: 15px;
        justify-content: center;
    }
}

/* Feature Slider Mobile Adjustments */
@media (max-width: 768px) {
    .tq-feat-cap h2 {
        font-size: 1.4rem !important;
        line-height: 1.2 !important;
    }
    
    .tq-feat-cap p {
        font-size: 0.85rem !important;
    }
    
    .tq-theme-btn {
        padding: 8px 20px !important;
        font-size: 0.9rem !important;
    }
}

/* Image scaling for smaller screens */
img {
    max-width: 100%;
    height: auto;
}
