/*
Theme Name: AutoIndia Child
Template: morenews
Version: 1.0.3
*/

/* -------------------------------
   Middle Header Background
-------------------------------- */
.af-middle-header,
.af-middle-header .container-wrapper,
.af-middle-header .af-middle-container {
    background: #000 !important;
    padding: 10px 0 !important;
    display: flex !important;
}

/* Force proper flex layout */
.af-middle-header .af-middle-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
}

/* -------------------------------
   LEFT SIDE — LOGO (40%)
-------------------------------- */
.af-middle-header .logo {
    flex: 0 0 35% !important;
    max-width: 35% !important;
}

.af-middle-header .site-branding {
    width: 100% !important;
    margin: 0 !important;
}

.af-middle-header .custom-logo {
    width: 100% !important;
    max-width: 450px !important;  /* perfect fit like your screenshot */
    height: auto !important;
    object-fit: contain !important;
}

/* hide title */
.af-middle-header .site-title {
    display: none !important;
}

/* -------------------------------
   RIGHT SIDE — BANNER (60%)
-------------------------------- */
.af-middle-header .header-promotion {
    flex: 0 0 65% !important;
    max-width: 65% !important;
    text-align: right !important;
}

.af-middle-header .promotion-section img {
    width: 100% !important;
    max-width: 728px !important;  /* standard banner */
    height: 90px !important;      /* force proper height */
}

/* prevent WP shrinking */
.af-middle-header img {
    max-width: unset !important;
}
