/* Mobile Banner Layout - Optimized for contact-email and social links */

/* Mobile Responsive - 768px and below */
@media (max-width: 768px) {
    #banner2 {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 10px;
        position: relative;
    }
    
    /* Logo and title positioning */
    #lgot {
        order: 1;
        margin-bottom: 5px;
    }
    
    #labcare-title {
        order: 1;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* Contact Email - Better positioning */
    #banner-email-left {
        position: static;
        order: 2;
        margin: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .contact-email {
        font-size: 12px;
        padding: 8px 16px;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(49, 130, 206, 0.2);
        transition: all 0.3s ease;
    }
    
    .contact-email:hover {
        background: rgba(255, 255, 255, 1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
    }
    
    /* Social Links - Better positioning */
    #banner-social-right {
        position: static;
        order: 3;
        margin: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .social-links {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 16px;
        transition: all 0.3s ease;
    }
    
    .social-links a:hover {
        transform: translateY(-2px) scale(1.05);
    }
    
    /* Search box positioning */
    #pbner3 {
        order: 4;
        margin-top: 10px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    #banner2 {
        gap: 8px;
        padding: 8px;
    }
    
    .contact-email {
        font-size: 11px;
        padding: 6px 12px;
        border-radius: 15px;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    #labcare-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
}

/* Extra Small Mobile - 360px and below */
@media (max-width: 360px) {
    #banner2 {
        gap: 6px;
        padding: 6px;
    }
    
    .contact-email {
        font-size: 10px;
        padding: 5px 10px;
        border-radius: 12px;
    }
    
    .social-links a {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
    
    .social-links {
        gap: 4px;
    }
}

/* Landscape Mobile - Better horizontal layout */
@media (max-width: 768px) and (orientation: landscape) {
    #banner2 {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 15px;
    }
    
    #lgot, #labcare-title {
        order: 1;
        flex: 1;
        min-width: 200px;
    }
    
    #banner-email-left {
        order: 2;
        flex: 1;
        justify-content: flex-start;
    }
    
    #banner-social-right {
        order: 3;
        flex: 1;
        justify-content: flex-end;
    }
    
    #pbner3 {
        order: 4;
        flex: 100%;
        margin-top: 10px;
    }
}
