.modern-header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0px 15px;
    gap: 15px;
    position: relative;
    z-index: 10000;
}

.modern-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
}

.header-banner-ad {
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    line-height: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: transparent;
}

.header-banner-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.header-banner-ad ins, 
.header-banner-ad iframe, 
.header-banner-ad img {
    border-radius: 12px;
}

@media (max-width: 900px) {
    .modern-header-grid { 
        grid-template-columns: 1fr; 
        padding: 10px;
    }
    .modern-header-grid > .hideOnMobile { 
        display: none; 
    }
}
