/* =====================================================
   GLOBAL RESET
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f8f9fa;
    color: #222;
}

/* =====================================================
   TOP BAR
   ===================================================== */
.topbar {
    background: #0a58ca;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
}

.topbar a {
    color: #fff;
    text-decoration: none;
    margin-left: 12px;
}

.topbar a:hover {
    text-decoration: underline;
}

.my-account {
    margin-left: 20px;
    font-weight: 600;
}

/* =====================================================
   MENU BAR
   ===================================================== */
.menu-bar {
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1000;
    min-height: 64px;
    overflow: visible;
}

.menu-bar.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.menu-left {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: visible;
}


/* =====================================================
   CATEGORY DROPDOWN (ALL CATEGORIES)
   ===================================================== */
.category-dropdown {
    position: static;
}

.category-toggle {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 16px;
    color: #000;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-toggle:hover {
    color: #0a58ca;
}

/* =====================================================
   MEGA MENU (OLX STYLE OVERLAY)
   ===================================================== */
.mega-menu {
    display: none;
    position: absolute;
    top: 100%;

    /* 🔥 FULL WIDTH FROM LOGO → SUBMIT AD */
    left: 0;
    right: 0;
    width: 100%;

    background: #fff;
    padding: 20px 30px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    border-top: 1px solid #e5e5e5;
    border-radius: 0 0 10px 10px;

    max-height: 420px;
    overflow-y: auto;

    z-index: 9999;
}


.mega-menu.open {
    display: grid;
}

.mega-menu::-webkit-scrollbar {
    width: 8px;
}

.mega-menu::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.mega-menu::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}


/* Category Columns */
.mega-column h4 {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
}

.mega-column h4 a {
    color: #000;
    text-decoration: none;
}

.mega-column a {
    color: #444;
    text-decoration: none;
    display: inline-block;      /* REQUIRED for transform */
    transition: color 0.2s ease, transform 0.2s ease;
}

.mega-column a:hover {
    color: #0a58ca;
    transform: translateY(-2px); /* moves link slightly up */
}

.mega-column ul {
    list-style: none;   /* ❌ removes bullets */
    padding: 0;
    margin: 8px 0 0;
}

.mega-column ul li {
    padding-left: 0;    /* safety */
    margin-bottom: 4px;
    line-height: 1.35;
}

/* ===== MEGA MENU GRID ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px 22px;   /* row-gap column-gap */
}
.category-dropdown:hover .mega-menu {
    display: block;
}

.quick-categories {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 18px;
}

.quick-categories a {
    color: #333;
    font-weight: 500;
    text-decoration: none;
}

.quick-categories a:hover {
    color: #0a58ca;
}

/* =====================================================
   SUBMIT AD BUTTON
   ===================================================== */
.submit-ad-btn {
    background: #0a58ca;
    color: #fff;
    padding: 9px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}

.submit-ad-btn:hover {
    background: #084298;
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-wrapper {
    background: #fff;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.search-bar {
    max-width: 1100px;
    margin: auto;
    display: flex;
    border: 2px solid #ddd;
    border-radius: 40px;
    overflow: hidden;
    background: #fff;
}

.search-bar select,
.search-bar input {
    border: none;
    padding: 14px 16px;
    outline: none;
    font-size: 15px;
    flex: 1;
}

.search-bar select {
    max-width: 220px;
    background: #fff;
    cursor: pointer;
}

.search-bar button {
    background: #0a58ca;
    color: #fff;
    border: none;
    padding: 0 35px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
}

.search-bar button:hover {
    background: #084298;
}

/* =====================================================
   RESPONSIVE (MOBILE)
   ===================================================== */
@media (max-width: 991px) {

    .mega-menu {
        position: static;
        width: 100%;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        padding: 20px;
    }

    .menu-bar {
        flex-wrap: wrap;
    }

    .search-bar {
        flex-direction: column;
        border-radius: 12px;
    }

    .search-bar select,
    .search-bar input,
    .search-bar button {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .search-bar button {
        border-bottom: none;
    }
}

/* ================= LOGO FIX ================= */
.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

/* LOGO WRAPPER */
.logo {
    display: flex;
    align-items: center;
    height: 60px;   /* matches header height */
}

/* LOGO IMAGE */
.logo img {
    height: 42px;        /* perfect for your logo */
    width: auto;         /* keeps aspect ratio */
    max-width: 220px;    /* prevents overflow */
    display: block;
    object-fit: contain;
}
