/* Ultra-specific mobile fixes for download section */
@media screen and (max-width: 567px) {
    /* Force center alignment for entire downloads section */
    body .downloads,
    body main .downloads,
    body section .downloads {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    body .download-items,
    body main .download-items,
    body section .download-items {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    body .download-item,
    body main .download-item,
    body section .download-item {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 300px !important;
    }
    
    body .download-item__content,
    body main .download-item__content,
    body section .download-item__content {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    body .download-item__content h4,
    body main .download-item__content h4,
    body section .download-item__content h4 {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    body .download-item__content p,
    body main .download-item__content p,
    body section .download-item__content p {
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    /* Perfect button alignment */
    body .download-item__content .btn,
    body main .download-item__content .btn,
    body section .download-item__content .btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.4rem !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        min-height: 44px !important;
        text-align: center !important;
        vertical-align: middle !important;
        margin: 0.5rem auto 0 auto !important;
    }
    
    /* Ensure all download items are perfectly centered */
    body .download-item:nth-child(2) .download-item__content,
    body main .download-item:nth-child(2) .download-item__content,
    body section .download-item:nth-child(2) .download-item__content {
        text-align: center !important;
        align-items: center !important;
    }
    
    body .download-item:nth-child(2) .download-item__content h4,
    body main .download-item:nth-child(2) .download-item__content h4,
    body section .download-item:nth-child(2) .download-item__content h4 {
        text-align: center !important;
    }
    
    body .download-item:nth-child(2) .download-item__content p,
    body main .download-item:nth-child(2) .download-item__content p,
    body section .download-item:nth-child(2) .download-item__content p {
        text-align: center !important;
    }
    
    body .download-item:nth-child(2) .download-item__content .btn,
    body main .download-item:nth-child(2) .download-item__content .btn,
    body section .download-item:nth-child(2) .download-item__content .btn {
        margin: 0.5rem auto 0 auto !important;
        transform: none !important;
        align-self: center !important;
    }
    
    body .download-item__content .btn i,
    body main .download-item__content .btn i,
    body section .download-item__content .btn i {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        flex-shrink: 0 !important;
    }
    
    body .download-item__content .btn span,
    body main .download-item__content .btn span,
    body section .download-item__content .btn span {
        font-size: 0.85rem !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        vertical-align: middle !important;
        font-weight: 600 !important;
    }
}

@media screen and (max-width: 480px) {
    body .download-item__content .btn,
    body main .download-item__content .btn,
    body section .download-item__content .btn {
        gap: 0.3rem !important;
        padding: 0.7rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 40px !important;
        margin: 0.5rem auto 0 auto !important;
    }
    
    /* Ensure perfect centering for all buttons on small screens */
    body .download-item:nth-child(2) .download-item__content .btn,
    body main .download-item:nth-child(2) .download-item__content .btn,
    body section .download-item:nth-child(2) .download-item__content .btn {
        margin: 0.5rem auto 0 auto !important;
        transform: none !important;
    }
    
    body .download-item__content .btn i,
    body main .download-item__content .btn i,
    body section .download-item__content .btn i,
    body .download-item__content .btn span,
    body main .download-item__content .btn span,
    body section .download-item__content .btn span {
        font-size: 0.8rem !important;
    }
}