/* Enhanced Responsive styles */
@media (max-width: 1200px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .footer .container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stats-column {
        padding: 0 10px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    /* Hide the top bar on mobile views */
    .top-bar {
        display: none;
    }
    
    .secondary-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    }
    
    .nav-links.show {
        display: flex;
    }
    
    .main-nav {
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        justify-content: center;
        gap: 15px;
    }

    .contact-info {
        justify-content: center;
        text-align: center;
    }

    .auth-links {
        justify-content: center;
    }

    .social-icons {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }

    .header-top {
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .logo-img {
        height: 50px !important;
        max-height: 50px !important;
        width: auto !important;
        max-width: 180px;
    }

    .stats-layout {
        flex-direction: column;
        gap: 20px;
    }

    .vertical-divider {
        display: none;
    }

    .footer .container {
        grid-template-columns: 1fr 1fr;
    }

    .copyright-container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .contact-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-text {
        text-align: left;
    }
    
    .footer .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 20px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 45px !important;
        max-height: 45px !important;
        width: auto !important;
        max-width: 150px;
    }

    .container {
        padding: 0 20px;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .section-text {
        text-align: left;
        font-size: 0.95rem;
    }

    /* Button improvements for mobile */
    .btn {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Banner adjustments */
    .banner {
        height: auto;
        width: 100%;
        max-height: none;
    }

    .banner img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
    }
}

@media (max-width: 375px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 40px !important;
        max-height: 40px !important;
        width: auto !important;
        max-width: 130px;
    }

    .section {
        padding: 2rem 0;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    * {
        max-width: 100%;
    }

    .container {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .section {
        overflow-x: hidden;
        width: 100%;
    }

    /* Better section spacing */
    .section {
        padding: 3rem 0;
    }

    /* Ensure all images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Banner mobile optimization */
    .banner {
        height: auto;
        width: 100%;
        max-height: none;
    }

    .banner img {
        width: 100%;
        height: auto;
        object-fit: contain;
        object-position: center center;
    }
}