.title {
    font-size: 12em;
    vertical-align: baseline;
}

/* TOP BAR */
.top-bar {
    font-size: 12px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    background: rgba(233, 137, 137, 0.9);
    padding: 6px 10px;
    border-radius: 6px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    font-weight: bold;
}

/* BUTTON FIX */
.list-btn {
    background: #e98989;
    color: #fff;
    padding: 7px 18px;
    border-radius: 25px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid #fff;
}

.list-btn:hover {
    background: #d87070;
}

/* MAIN HEADER */
.main-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* LOGO */
.logo img {
    display: block;
}

.logo {
    margin-bottom: 5px;
}

/* SEARCH */
.search-bar {
    margin: 15px 0;
    text-align: center;
    position: relative;
    /* 👈 ADD THIS */
    z-index: 5;
    /* 👈 ADD THIS */
}

.search-bar input {
    width: 65%;
    padding: 12px;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    outline: none;

    color: #333;
    /* 👈 ADD (text color) */
    background: #fff;
    /* 👈 ensure white background */
}

.search-bar button {
    padding: 12px 18px;
    background: #fff;
    color: #e98989;
    border: none;
    border-radius: 8px;
    margin-left: 5px;
    font-weight: bold;
    cursor: pointer;
}

.search-bar button:hover {
    background: #ffe6e6;
}

.search-bar input::placeholder {
    color: #999;
}

/* CATEGORY NAV */
.category-nav {
    text-align: center;
    margin-top: 10px;
}

.category-nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
}

.category-nav a:hover {
    text-decoration: underline;
}

.listing-card {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    position: relative;
}

.section-block {
    margin-top: 20px;
}

/* TRUST BAR */
.trust-bar {
    text-align: center;
    font-size: 12px;
    color: #eee;
    margin-top: 10px;
}

.sponsor-item img {
    transition: 0.2s;
}

.sponsor-item img:hover {
    transform: scale(1.03);
}

.sponsor-footer img {
    transition: 0.25s ease;
}

.sponsor-footer img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.sponsor-footer div {
    background: #fff;
    padding: 5px;
    border-radius: 6px;
}

.sponsor-footer div:hover {
    transform: translateY(-2px);
    transition: 0.2s;
}

.footer {
    margin-top: 10px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
    font-size: 13px;
    color: #666;
}

.footer a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

@media (max-width: 768px) {

    .footer-left,
    .footer-right {
        text-align: center;
        margin-bottom: 5px;
    }
}

.extra-directories {
    margin-top: 20px;
}

.extra-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.extra-item {
    flex: 1 1 200px;
    background: #f5f5f5;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.extra-item a {
    text-decoration: none;
    font-weight: bold;
    color: #333;
    display: block;
}

.extra-item:hover {
    background: #e0e0e0;
}

.category-title {
    padding: 8px;
    margin-top: 5px;

    .title {
        font-size: 12em;
        vertical-align: baseline;
    }

    /* TOP BAR */
    .top-bar {
        font-size: 12px;
        color: #fff;
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        background: rgba(233, 137, 137, 0.9);
        padding: 6px 10px;
        border-radius: 6px;
    }

    .top-bar a {
        color: #fff;
        text-decoration: none;
        margin-left: 10px;
        font-weight: bold;
    }

    /* BUTTON FIX */
    .list-btn {
        background: #e98989;
        color: #fff;
        padding: 7px 18px;
        border-radius: 25px;
        font-weight: bold;
        text-decoration: none;
        border: 2px solid #fff;
    }

    .list-btn:hover {
        background: #d87070;
    }

    /* MAIN HEADER */
    .main-header {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    /* LOGO */
    .logo img {
        display: block;
    }

    .logo {
        margin-bottom: 5px;
    }

    /* SEARCH */
    .search-bar {
        margin: 15px 0;
        text-align: center;
        position: relative;
        /* 👈 ADD THIS */
        z-index: 5;
        /* 👈 ADD THIS */
    }

    .search-bar input {
        width: 65%;
        padding: 12px;
        font-size: 15px;
        border: none;
        border-radius: 8px;
        outline: none;
        color: #333;
        /* 👈 ADD (text color) */
        background: #fff;
        /* 👈 ensure white background */
    }

    .search-bar button {
        padding: 12px 18px;
        background: #fff;
        color: #e98989;
        border: none;
        border-radius: 8px;
        margin-left: 5px;
        font-weight: bold;
        cursor: pointer;
    }

    .search-bar button:hover {
        background: #ffe6e6;
    }

    .search-bar input::placeholder {
        color: #999;
    }

    /* CATEGORY NAV */
    .category-nav {
        text-align: center;
        margin-top: 10px;
    }

    .category-nav a {
        margin: 0 12px;
        text-decoration: none;
        color: #fff;
        font-weight: bold;
        font-size: 14px;
    }

    .category-nav a:hover {
        text-decoration: underline;
    }

    .listing-card {
        background: #f5f5f5;
        border-radius: 6px;
        padding: 20px;
        margin-bottom: 15px;
        border: 1px solid #ccc;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
        position: relative;
    }

    .section-block {
        margin-top: 20px;
    }

    /* TRUST BAR */
    .trust-bar {
        text-align: center;
        font-size: 12px;
        color: #eee;
        margin-top: 10px;
    }

    .sponsor-item img {
        transition: 0.2s;
    }

    .sponsor-item img:hover {
        transform: scale(1.03);
    }

    .sponsor-footer img {
        transition: 0.25s ease;
    }

    .sponsor-footer img:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    }

    .sponsor-footer div {
        background: #fff;
        padding: 5px;
        border-radius: 6px;
    }

    .sponsor-footer div:hover {
        transform: translateY(-2px);
        transition: 0.2s;
    }

    .footer {
        margin-top: 10px;
        padding: 15px 0;
        border-top: 1px solid #ddd;
        font-size: 13px;
        color: #666;
    }

    .footer a {
        color: #333;
        text-decoration: none;
        font-weight: 600;
    }

    .footer a:hover {
        text-decoration: underline;
    }

    .footer-left {
        text-align: left;
    }

    .footer-right {
        text-align: right;
    }

    @media (max-width: 768px) {

        .footer-left,
        .footer-right {
            text-align: center;
            margin-bottom: 5px;
        }
    }

    .extra-directories {
        margin-top: 20px;
    }

    .extra-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .extra-item {
        flex: 1 1 200px;
        background: #f5f5f5;
        padding: 12px;
        text-align: center;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .extra-item a {
        text-decoration: none;
        font-weight: bold;
        color: #333;
        display: block;
    }

    .extra-item:hover {
        background: #e0e0e0;
    }

    .category-title {
        padding: 8px;
        margin-top: 5px;
        font-size: 25px;
        text-align: center;
    }

    .category-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .dirback-list {
        flex: 1 1 220px;
        background: #f5f5f5;
        padding: 12px;
        text-align: center;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

    .dirback-list a {
        display: block;
        font-size: 16px;
        font-weight: bold;
        color: #333;
        text-decoration: none;
    }

    .dirback-list:hover {
        background: #e0e0e0;
    }

    .cat-count {
        font-size: 12px;
        color: #777;
        margin-left: 4px;
    }

    /* Multi Keys Badge */
    .listing-badge {
        position: absolute;
        top: 10px;
        right: 10px;
        width: 110px;
        z-index: 20;
    }

    .premium-badge {
        width: 110px;
    }

    /* 🔥 BANNER (now behaves properly) */
    .listing-banner {
        background: linear-gradient(135deg, #7c83b6, #9ea4d8);
        color: white;
        padding: 12px;
        border-radius: 6px;
        margin-bottom: 15px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        position: relative;
        /* important */
    }

    .listing-banner .banner-flex {
        padding-right: 120px;
    }

    .banner-flex {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .banner-btn {
        background: #2f6ea5;
        border: none;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    }

    /* IMAGE */
    .listing-img {
        width: 100%;
        height: auto;
        border-radius: 6px;
        border: 1px solid #ccc;
        background: #fff;
        padding: 5px;
    }

    /* TITLE */
    .listing-title {
        font-size: 22px;
        font-weight: bold;
    }

    /* BOXES */
    .services-box {
        background: #7fa6d6;
        color: white;
        padding: 8px;
        margin-top: 10px;
    }

    .products-box {
        background: #f3f56c;
        padding: 8px;
        margin-top: 5px;
    }

    .badge-enhanced {
        background: #5bc0de;
        color: #fff;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 4px;
        margin-left: 10px;
    }

    /* STARS */
    .stars {
        color: #ffcc00;
        font-size: 16px;
    }

    /* BADGES */
    .badge-premium {
        background: #f4b400;
        color: #000;
        padding: 4px 10px;
        font-size: 12px;
        border-radius: 4px;
        margin-left: 10px;
    }

    .premium {
        box-shadow: 0 6px 16px rgba(244, 180, 0, 0.35);
    }

    .premium::before {
        content: "FEATURED";
        position: absolute;
        top: -10px;
        left: 15px;
        background: #f4b400;
        color: #000;
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 4px;
        font-weight: bold;
    }

    .premium:hover {
        transform: scale(1.015);
    }

    .header-container {
        position: relative;
        background: linear-gradient(rgba(233, 137, 137, 0.80), rgba(233, 137, 137, 0.80)), url('images/bendigoauto-mknetwork.png');
        background-size: cover;
        background-position: center;
        border-bottom: 3px solid #e98989;
        padding: 25px 20px 20px 20px;
        color: #fff;
        margin-bottom: 25px;
        /* 👈 THIS IS THE KEY */
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .header-container::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.15);
        pointer-events: none;
        z-index: 1;
        /* 👈 ADD THIS */
    }

    .header-container>* {
        position: relative;
        z-index: 2;
    }

    /* ===== DESKTOP (restore original behaviour) ===== */
    .sponsor-list {
        display: block;
    }

    .sponsor-item {
        margin-bottom: 15px;
        text-align: center;
    }

    .sponsor-img {
        width: 100%;
        max-width: 220px;
        border-radius: 6px;
        display: block;
        margin: 0 auto;
    }

    /* ===== MOBILE FIX ONLY ===== */
    @media (max-width: 768px) {
        .sponsor-list {
            display: block;
            padding: 10px 0;
        }

        .sponsor-item {
            width: 100%;
            max-width: 320px;
            margin: 0 auto 15px auto;
            /* centers + spacing */
        }

        .sponsor-img {
            max-width: 100%;
        }
    }

    font-size:25px;
    text-align:center;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dirback-list {
    flex: 1 1 220px;
    background: #f5f5f5;
    padding: 12px;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.dirback-list a {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
}

.dirback-list:hover {
    background: #e0e0e0;
}

.cat-count {
    font-size: 12px;
    color: #777;
    margin-left: 4px;
}

/* Multi Keys Badge */
.listing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 110px;
    z-index: 20;
}

.premium-badge {
    width: 110px;
}

/* 🔥 BANNER (now behaves properly) */
.listing-banner {
    background: linear-gradient(135deg, #7c83b6, #9ea4d8);
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    position: relative;
    /* important */
}

.listing-banner .banner-flex {
    padding-right: 120px;
}

.banner-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-btn {
    background: #2f6ea5;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* IMAGE */
.listing-img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px;
}

/* TITLE */
.listing-title {
    font-size: 22px;
    font-weight: bold;
}

/* BOXES */
.services-box {
    background: #7fa6d6;
    color: white;
    padding: 8px;
    margin-top: 10px;
}

.products-box {
    background: #f3f56c;
    padding: 8px;
    margin-top: 5px;
}

.badge-enhanced {
    background: #5bc0de;
    color: #fff;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 10px;
}

/* STARS */
.stars {
    color: #ffcc00;
    font-size: 16px;
}

/* BADGES */
.badge-premium {
    background: #f4b400;
    color: #000;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    margin-left: 10px;
}

.premium {
    box-shadow: 0 6px 16px rgba(244, 180, 0, 0.35);
}

.premium::before {
    content: "FEATURED";
    position: absolute;
    top: -10px;
    left: 15px;
    background: #f4b400;
    color: #000;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.premium:hover {
    transform: scale(1.015);
}

.header-container {
    position: relative;
    background: linear-gradient(rgba(233, 137, 137, 0.80), rgba(233, 137, 137, 0.80)),
        url('images/bendigoauto-mknetwork.png');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid #e98989;
    padding: 25px 20px 20px 20px;
    color: #fff;
    margin-bottom: 25px;
    /* 👈 THIS IS THE KEY */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 1;
    /* 👈 ADD THIS */
}

.header-container>* {
    position: relative;
    z-index: 2;
}

/* ===== DESKTOP (restore original behaviour) ===== */

.sponsor-list {
    display: block;
}

.sponsor-item {
    margin-bottom: 15px;
    text-align: center;
}

.sponsor-img {
    width: 100%;
    max-width: 220px;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}


/* ===== MOBILE FIX ONLY ===== */
@media (max-width: 768px) {

    .sponsor-list {
        display: block;
        padding: 10px 0;
    }

    .sponsor-item {
        width: 100%;
        max-width: 320px;
        margin: 0 auto 15px auto;
        /* centers + spacing */
    }

    .sponsor-img {
        max-width: 100%;
    }

}