/* Mobile sections positioning fix */
@media (max-width: 768px) {
    /* Reset body and main container for mobile */
    body {
        min-height: auto !important;
        height: auto !important;
    }
    
    .main {
        min-height: auto !important;
        height: auto !important;
        position: relative !important;
    }
    
    /* Make all sections flow naturally */
    .hero,
    .stats,
    .gallery,
    .pricing,
    .topic,
    .recent,
    .contact-info {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
    }
    
    /* Hero section - first section, only top padding for header */
    .hero {
        padding-top: 80px !important; /* Space for fixed header */
        padding-bottom: 0 !important;
    }
    
    /* Stats section */
    .stats {
        padding: 0 !important;
    }
    
    /* Gallery section */
    .gallery {
        padding: 0 !important;
    }
    
    /* Pricing section */
    .pricing {
        padding: 0 !important;
    }
    
    /* Topic section */
    .topic {
        padding: 0 !important;
    }
    
    /* Recent section */
    .recent {
        padding: 0 !important;
    }
    
    /* Contact section */
    .contact-info {
        padding: 20px !important;
    }
    
    /* Footer */
    .footer {
        position: relative !important;
        top: auto !important;
        margin-top: 0 !important;
    }
    
    /* Fix backgrounds for mobile */
    .hero__bg,
    .stats__bg,
    .gallery__bg,
    .pricing__bg,
    .topic__bg,
    .recent__bg,
    .contact-info__bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Smaller screens */
@media (max-width: 480px) {
    /* Even smaller padding for small screens */
    .hero {
        padding-top: 70px !important; /* Smaller header on mobile */
        padding-bottom: 0 !important;
    }
    
    .stats,
    .gallery,
    .pricing,
    .topic,
    .recent {
        padding: 0 !important;
    }
    
    .contact-info {
        padding: 16px !important;
    }
}

/* Fix for very small screens */
@media (max-width: 360px) {
    .hero {
        padding-top: 60px !important;
        padding-bottom: 0 !important;
    }
    
    .stats,
    .gallery,
    .pricing,
    .topic,
    .recent {
        padding: 0 !important;
    }
    
    .contact-info {
        padding: 12px !important;
    }
}