/* Reset and Base Layout */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  background-color: #f8f9fa;
}








/* ========================= 1ST NAVBAR (MAIN) ========================= */
/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;

    padding: 12px 20px;

    height: 100px;

    background-color:white;

    box-shadow: 0 2px 4px rgba(0,0,0,.1);

    animation: navbarSlider 15s infinite;
}

@keyframes navbarSlider {

    0%, 18% {
        background-image: url("images/navbar-bg1.png");
    }

    20%, 38% {
        background-image: url("images/navbar-bg2.png");
    }

    40%, 58% {
        background-image: url("images/navbar-bg3.png");
    }


    100% {
        background-image: url("images/navbar-bg1.png");
    }

}







/* =========================================================
   DESKTOP NAVBAR
   HIDE BACKGROUND IMAGES + KEEP WHITE
========================================================= */

@media (min-width: 769px) {

    .navbar {
        background-image: none !important;

        background-color: #ffffff !important;

        animation: none !important;

        height: 100px !important;
    }

}







/* =========================
   MOBILE NAVBAR
========================= */

@media (max-width: 768px) {

    .navbar {
        position: sticky;
        top: 0;
        z-index: 1000;

        width: 100%;
        box-sizing: border-box;

        display: flex;
        align-items: center;
        justify-content: space-between;

        height: 70px;
        padding: 8px 10px;

        /* KEEP BACKGROUND SLIDER ACTIVE */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;

        animation: navbarSlider 15s infinite;
    }

}









/* =========================
   IMAGE LOGO
========================= */

.automart-logo{

    display:flex;
    align-items:center;

    text-decoration:none;

}


.logo-img{

    width:100px;

    height:auto;

    object-fit:contain;

    display:block;

}


/* hover animation */

.logo-img:hover{

    transform:scale(1.05);

    transition:.25s ease;

}





/* Right side navigation buttons */
.nav-right {
    display:flex;
    gap:10px;
}


.post-btn {

    display:inline-block;
    text-decoration:none;

    padding:8px 16px;

    border-radius:6px;

    font-size:14px;
    font-weight:bold;

    color:#fff;

    background:#ff3347;

    border:1px solid #ff3347;

    transition:0.2s ease;
}


/* hover */
.post-btn:hover {

    background:#e9273a;

    border-color:#e9273a;

}


/* =========================================================
   LEFT +POST AD BUTTON — OUTLINE ONLY
========================================================= */

.nav-right .post-btn:first-child {
    background: transparent !important;
    color: #ff3347 !important;
    border: 1px solid #ff3347 !important;
    box-shadow: none !important;
}

/* Hover */
.nav-right .post-btn:first-child:hover {
    background: transparent !important;
    color: #e9273a !important;
    border-color: #e9273a !important;
    box-shadow: none !important;
}






/* click */
.post-btn:active {

    transform:scale(0.97);

}

/* Search Bar */
.nav-search{
    display:flex;
    align-items:center;

    flex:1;
    max-width:650px;
    margin:0 20px;

    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:12px;

    overflow:hidden;

    box-shadow:0 2px 10px rgba(0,0,0,.06);
}

/* Category */
.search-category{
    border:none;
    background:#fff;
    color:#555;

    padding:0 15px;

    height:46px;

    outline:none;
    cursor:pointer;
}

/* Input */
.search-input{
    flex:1;

    border:none;
    background:#fff;
    color:#222;

    padding:0 15px;

    height:46px;

    font-size:15px;
    outline:none;
}

/* Placeholder */
.search-input::placeholder{
    color:#999;
}

/* Search Button */
.search-btn{
    width:52px;
    height:46px;

    border:none;

    background:#fff;
    color:#1e90ff;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    transition:.25s;
}

/* Focus */
.nav-search:focus-within{
    border-color:#1e90ff;
    box-shadow:0 0 0 4px rgba(30,144,255,.15);
}


/* =========================
   SUB NAVBAR
========================= */

.sub-navbar{
    display:flex;
    align-items:center;
    gap:18px;

    padding:12px 20px;
    background:#fff;

    overflow-x:visible;
    white-space:nowrap;

    border-top:1px solid #ececec;
    border-bottom:1px solid #ececec;

    position:sticky;
    top:100px;
    z-index:999;
}

.sub-navbar::-webkit-scrollbar{
    display:none;
}

/* =========================
   NORMAL LINKS
========================= */

.sub-navbar > a{
    position:relative;

    text-decoration:none;
    color:#374151;

    font-size:12px;
    font-weight:400;

    padding-right:18px;

    flex-shrink:0;

    transition:0.25s ease;
}

.sub-navbar > a:hover{
    color:#25D366;
}

/* separator */
.sub-navbar > a:not(:last-child)::after{
    content:"|";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    color:#cbd5e1;
    font-size:13px;
}





/* =========================
   DROPDOWN (SERVICES)
========================= */

.dropdown{
    position:relative;
    flex-shrink:0;
}

.drop-btn{
    display:flex;
    align-items:center;
    gap:8px;

    background:none;
    border:none;
    cursor:pointer;

    color:#374151;

    font-size:14px;
    font-weight:600;

    padding:0 18px 0 0;

    position:relative;
}

.drop-btn::after{
    content:"|";
    position:absolute;
    right:0;
    top:50%;
    transform:translateY(-50%);
    color:#cbd5e1;
    font-size:13px;
}

.drop-btn:hover{
    color:#25D366;
}
.dropdown-content{
    position:absolute;
    top:42px;
    left:0;

    display:none;

    min-width:280px;
    background:#fff;

    border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,0.12);

    overflow:hidden;
    z-index:1000;
}

.dropdown-content.show{
    display:block;
}

/* dropdown links */
.dropdown-content a{
    display:block;

    padding:14px 18px;

    text-decoration:none;
    color:#374151;

    font-size:14px;
    font-weight:500;

    transition:0.25s;
}

/* hover inside dropdown */
.dropdown-content a:hover{
    background:#f8fafc;
    color:#25D366;
}

/* remove separator inside dropdown */
.dropdown-content a::after{
    display:none !important;
}
















.desktop-actions{
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:8px;
}


.desktop-actions a,
.desktop-actions button{

    background:rgba(255,255,255,0.05);

    color:#555;

    border:1px solid rgba(255,255,255,0.8);

    border-radius:8px;

    padding:6px 12px;

    font-size:12px;
    font-weight:600;

    text-decoration:none;
    cursor:pointer;

    display:flex;
    align-items:center;
    gap:5px;

    transition:.25s ease;
}


/* hover */
.desktop-actions a:hover,
.desktop-actions button:hover{

    background:gray;

    border-color:#fff;

    transform:translateY(-2px);

}



/* Hide desktop controls on mobile */
@media (max-width: 768px){

    .desktop-actions,
    .right-tools{
        display:none !important;
    }

}




.right-tools{
    display:flex;
    align-items:center;
    gap:10px;          /* Space between controls and WhatsApp button */
    margin-left:auto;  /* Push everything to the right */
}




/* =========================================================
   SERVICES DESKTOP DROPDOWN
========================================================= */

@media (min-width: 769px) {

    .sub-navbar .dropdown {
        position: relative;
    }

    .sub-navbar .dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;

        min-width: 240px;

        background: #fff;

        border-radius: 0 0 10px 10px;

        box-shadow:
            0 8px 25px rgba(0,0,0,0.15);

        z-index: 99999;

        display: none;

        overflow: hidden;
    }

    /* OPEN DESKTOP DROPDOWN */
    .sub-navbar .dropdown-content.active {
        display: block;
    }

    .sub-navbar .dropdown-content a {
        display: block;

        padding: 13px 18px;

        color: #222;

        text-decoration: none;

        white-space: nowrap;

        transition: background 0.2s ease,
                    color 0.2s ease;
    }

    .sub-navbar .dropdown-content a:hover {
        background: #f1f5f9;
        color: #009688;
    }

    /* Hide mobile drawer header on desktop */
    .sub-navbar .drawer-header {
        display: none;
    }

    /* Overlay is unnecessary on desktop */
    .services-overlay {
        display: none !important;
    }
}




















/* =========================================================
   SUB NAVBAR — LARGE / CLEAN SIZE
========================================================= */

.sub-navbar {
    gap: 14px !important;
    padding: 11px 18px !important;
}

/* Sub navbar links */
.sub-navbar > a {
    font-size: 14px !important;
    font-weight: 600 !important;
    padding-right: 16px !important;
}

/* Separators */
.sub-navbar > a:not(:last-child)::after {
    right: 0 !important;
    font-size: 13px !important;
}


/* =========================================================
   SERVICES
========================================================= */

.drop-btn {
    gap: 8px !important;
    padding-right: 16px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.drop-btn::after {
    font-size: 13px !important;
}


/* =========================================================
   DESKTOP ACTION BUTTONS
========================================================= */

.desktop-actions {
    gap: 5px !important;
}

.desktop-actions a,
.desktop-actions button {
   
    gap: 6px !important;

    font-size: 10px !important;
    font-weight: 400 !important;

}

/* Icons */
.desktop-actions img {
    width: 17px !important;
    height: 17px !important;
}

/* WhatsApp */
.desktop-actions .whatsapp-gif {
    width: 18px !important;
    height: 18px !important;
}



/* =========================================================
   DESKTOP ACTIONS
   IMAGE TOP + TEXT BOTTOM
========================================================= */

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 3px !important;
    margin-left: auto;
}

/* Each action */
.desktop-actions a,
.desktop-actions button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 2px !important;

    min-width: 52px;
    min-height: 42px;

    padding: 4px 6px !important;

    background: #ffffff;
    color: #555;

    border: 1px solid #e5e7eb;
    border-radius: 7px;

    font-size: 11px !important;
    font-weight: 600 !important;

    line-height: 1.1;

    text-decoration: none;
    cursor: pointer;

    transition: .25s ease;
}

/* IMAGE — TOP */
.desktop-actions img {
    display: block !important;

    width: 17px !important;
    height: 17px !important;

    object-fit: contain;
    flex-shrink: 0;
}

/* TEXT — BOTTOM */
.desktop-actions a span,
.desktop-actions button span {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    line-height: 1 !important;

    white-space: nowrap;
}

/* Hover */
.desktop-actions a:hover,
.desktop-actions button:hover {
    color: #009688;

    background: #f7faf9;

    border-color: #009688;

    transform: translateY(-1px);
}

/* WhatsApp GIF */
.desktop-actions .whatsapp-gif {
    width: 18px !important;
    height: 18px !important;
}





/* =========================================================
   DESKTOP ACTIONS — SLIGHTLY BIGGER
========================================================= */

.desktop-actions {
    display: flex;
    align-items: center;
    gap: 3px !important;
    margin-left: auto;
}

.desktop-actions a,
.desktop-actions button {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 2px !important;

    min-width: 46px !important;
    min-height: 38px !important;

    padding: 3px 5px !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    color: #555 !important;

    font-size: 10px !important;
    font-weight: 500 !important;

    line-height: 1 !important;
    text-decoration: none;
    cursor: pointer;
}

.desktop-actions img {
    width: 15px !important;
    height: 15px !important;
    object-fit: contain;
    display: block !important;
}

.desktop-actions a span,
.desktop-actions button span {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;

    font-size: 10px !important;
    line-height: 1 !important;

    white-space: nowrap;
}

.desktop-actions a:hover,
.desktop-actions button:hover {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #009688 !important;
    transform: none !important;
}

.desktop-actions .whatsapp-gif {
    width: 16px !important;
    height: 16px !important;
}