/* B3 Ads - Logo Size Adjustment for Better Balance with Leaderboard - GlobalNews */

/* Make logo smaller and better proportioned */
.mid-bar-flex .logo {
    max-width: 300px !important;
    max-height: 80px !important;
}

.mid-bar-flex .logo img {
    max-width: 100% !important;
    max-height: 80px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
}

.mid-bar-flex .logo .site-title {
    font-size: 24px !important;
    line-height: 1.2;
}

.mid-bar-flex .logo .site-description {
    font-size: 12px !important;
}

/* Ensure header container uses flexbox properly */
.mid-bar-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    flex-wrap: nowrap !important;
}

/* Leaderboard ad responsive */
.b3-header-leaderboard img {
    max-width: 100% !important;
    height: auto !important;
}

/* MOBILE RESPONSIVE - Stack vertically on small screens */
@media (max-width: 768px) {
    .mid-bar-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 15px 0 !important;
        flex-wrap: wrap !important;
    }
    
    .mid-bar-flex .logo {
        max-width: 250px !important;
        max-height: 60px !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .mid-bar-flex .logo img {
        max-height: 60px !important;
        margin: 0 auto !important;
    }
    
    .header-promotion.b3-header-leaderboard {
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
        flex: none !important;
    }
}

/* Extra small mobile - even more compact */
@media (max-width: 480px) {
    .mid-bar-flex .logo {
        max-width: 200px !important;
        max-height: 50px !important;
    }
    
    .mid-bar-flex .logo img {
        max-height: 50px !important;
    }
    
    .mid-bar-flex .logo .site-title {
        font-size: 18px !important;
    }
}

