/* =========================
   RESET
========================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;
}

body{
    background:#f4f5f7;
    color:#333;
}

/* =========================
   HEADER
========================= */
header{
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 6%;
    box-shadow:0 2px 5px rgba(0,0,0,.05);
    position:sticky;
    top:0;
    z-index:100;
}

.logo{
    font-size:24px;
    font-weight:800;
    color:#ff6a00;
    text-decoration:none;
}

.logo span{
    color:#1072e6;
}

.nav-links{
    display:flex;
    list-style:none;
    align-items:center;
    gap:25px;
}

.nav-links a{
    text-decoration:none;
    color:#444;
    font-weight:500;
    font-size:14px;
}

.nav-links a:hover{
    color:#ff6a00;
}

.btn-advertise{
    background:#ff6a00;
    color:#fff !important;
    padding:8px 16px;
    border-radius:4px;
    font-weight:600;
}

/* =========================
   HERO SECTION
========================= */
.hero{
    background:
    linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
    url('https://images.unsplash.com/photo-1557804506-669a67965ba0?auto=format&fit=crop&w=1350&q=80')
    center center/cover no-repeat;

    height:380px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:#fff;
}

.hero h1{
    font-size:48px;
    font-weight:700;
    margin-bottom:25px;
}

/* =========================
   SEARCH BAR
========================= */
.jd-search-wrap{
    display:flex;
    align-items:center;
    width:100%;
    max-width:1500px;
    background:#fff;
    border-radius:8px;
    overflow:visible;
    box-shadow:0 4px 15px rgba(0,0,0,.15);
}

.location-box{
    width:320px;
    border-right:1px solid #ddd;
    position:relative;
    background:#fff;
}

.search-box{
    flex:1;
     width:300px;
    position:relative;
}

.location-box input,
.search-box input{
    width:100%;
    height:55px;
    border:none;
    outline:none;
    padding:0 18px;
    font-size:16px;
}

.search-btn{
    width:110px;
    height:55px;
    border:none;
    background:#1072e6;
    color:#fff;
    font-size:18px;
    font-weight:600;
    cursor:pointer;
}

.search-btn:hover{
    background:#0b5cb8;
}

/* =========================
   AUTOCOMPLETE DROPDOWN
========================= */
#location_suggestions,
#service_suggestions,
#category_suggestions{
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:#fff;
    border:1px solid #ddd;
    border-top:none;
    box-shadow:0 5px 15px rgba(0,0,0,.15);
    z-index:99999;
    display:none;
    max-height:300px;
    overflow-y:auto;
}

.suggestion-item{
    padding:12px 15px;
    cursor:pointer;
    color:#333;
    background:#fff;
    border-bottom:1px solid #f1f1f1;
}

.suggestion-item:hover{
    background:#f5f5f5;
}

/* =========================
   MAIN CONTENT
========================= */
.main-content{
    max-width:1200px;
    margin:-40px auto 50px;
    background:#fff;
    border-radius:8px;
    padding:30px;
    box-shadow:0 4px 10px rgba(0,0,0,.05);
    position:relative;
    z-index:10;
}

/* =========================
   CATEGORY SECTION
========================= */
.popular-categories{
    padding:50px 20px;
    background:#fff;
}

.section-title{
    text-align:center;
    font-size:36px;
    font-weight:700;
    margin-bottom:40px;
}

.category-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:25px;
}

.category-card{
    background:#fff;
    padding:25px 15px;
    text-align:center;
    text-decoration:none;
    color:#222;
    box-shadow:0 5px 20px rgba(0,0,0,.08);
    transition:.3s;
}

.category-card:hover{
    transform:translateY(-5px);
}

.category-icon{
    width:80px;
    height:80px;
    margin:0 auto 15px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid #2d7ff9;
}

.category-icon img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.category-card span{
    display:block;
    font-size:18px;
    font-weight:600;
}

/* =========================
   FOOTER
========================= */
footer{
    background:#222;
    color:#bbb;
    text-align:center;
    padding:20px;
    font-size:13px;
}

/* =========================
   MOBILE
========================= */
@media(max-width:768px){

    header{
        flex-direction:column;
        gap:15px;
    }

    .hero h1{
        font-size:28px;
    }

    .jd-search-wrap{
        flex-direction:column;
        max-width:100%;
    }

    .location-box,
    .search-box{
        width:320px;
        border-right:none;
        border-bottom:1px solid #eee;
    }

    .search-btn{
        width:100%;
    }

    .category-grid{
        grid-template-columns:repeat(2,1fr);
        gap:15px;
    }

    .category-icon{
        width:90px;
        height:90px;
    }

    .category-card span{
        font-size:14px;
    }

    .section-title{
        font-size:28px;
    }
}