/* ==========================================================
   ADSLYNK HOMEPAGE DESIGN
   Modern, responsive classifieds marketplace
========================================================== */

#homepage {
    --adslynk-primary: #1455d9;
    --adslynk-primary-dark: #0d3fae;
    --adslynk-dark: #14213d;
    --adslynk-muted: #64748b;
    --adslynk-border: #e8edf5;
    --adslynk-radius: 18px;
}

/* Main homepage spacing */
#homepage .page-section {
    margin-bottom: 30px;
}

#homepage .container > .card {
    border: 1px solid var(--adslynk-border);
    border-radius: var(--adslynk-radius);
    box-shadow: 0 8px 30px rgba(20, 33, 61, .05);
    overflow: hidden;
}

/* HERO SECTION */
#homepage .hero-wrap {
    position: relative;
    min-height: 420px;
    padding: 75px 15px;
    background:
        radial-gradient(circle at 85% 15%, rgba(255,255,255,.16), transparent 30%),
        linear-gradient(125deg, #102d68 0%, #1455d9 55%, #347cf0 100%);
    background-position: center;
    background-size: cover;
}

#homepage .hero-wrap h1 {
    max-width: 850px;
    margin: 0 auto 18px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.7px;
    text-transform: none;
}

#homepage .hero-wrap .lead {
    display: block;
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 17px;
    line-height: 1.7;
}

/* Search form */
#homepage .home-search-form {
    max-width: 100%;
    margin: 25px auto 0;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(255,255,255,.5);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,.18);
}

#homepage .home-search-form input,
#homepage .home-search-form select {
    min-height: 48px;
    border-radius: 10px;
}

#homepage .home-search-form button,
#homepage .home-search-form .btn {
    min-height: 48px;
    border-radius: 10px;
    font-weight: 700;
}

/* Non-hero search bar */
#homepage .only-search-bar {
    padding-top: 22px;
    padding-bottom: 22px;
}

/* Section headings */
#homepage .card-header {
    padding: 20px 22px;
    background: #fff;
}

#homepage .card-header h4 {
    color: var(--adslynk-dark);
    font-size: 21px;
    font-weight: 700 !important;
}

#homepage .card-header h5 a {
    color: var(--adslynk-primary);
    font-weight: 600;
    text-decoration: none;
}

#homepage .card-header h5 a:hover {
    color: var(--adslynk-primary-dark);
}

/* Category cards */
#homepage .big-icon-category-list {
    padding: 12px 8px;
}

#homepage .big-icon-category-list > .col > div {
    min-height: 145px;
    height: calc(100% - 8px);
    margin: 4px !important;
    padding: 22px 10px !important;
    background: #fff;
    border: 1px solid var(--adslynk-border) !important;
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

#homepage .big-icon-category-list > .col > div:hover {
    transform: translateY(-5px);
    border-color: #b7cdfb !important;
    box-shadow: 0 12px 28px rgba(20,85,217,.11);
}

#homepage .big-icon-category-list a {
    display: block;
    color: var(--adslynk-dark);
    text-decoration: none;
}

#homepage .big-icon-category-list a i {
    color: var(--adslynk-primary);
    transition: transform .25s ease;
}

#homepage .big-icon-category-list > .col > div:hover a i {
    transform: scale(1.08);
}

#homepage .big-icon-category-list h6 {
    margin-top: 14px !important;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
}

/* Category picture cards */
#homepage .picture-category-list a {
    border-radius: 14px;
    overflow: hidden;
}

/* Listing cards */
#homepage .listings-list .item,
#homepage .listings-list .listing-item,
#homepage .featured-list-slider .item {
    border-radius: 14px;
    overflow: hidden;
}

#homepage .listings-list img,
#homepage .featured-list-slider img {
    transition: transform .35s ease;
}

#homepage .listings-list .item:hover img,
#homepage .featured-list-slider .item:hover img {
    transform: scale(1.035);
}

/* Location section */
#homepage .location-card .card {
    border: 1px solid var(--adslynk-border);
    border-radius: var(--adslynk-radius);
    box-shadow: 0 8px 30px rgba(20,33,61,.05);
}

#homepage .location-card a {
    text-decoration: none;
}

/* General links */
#homepage a {
    transition: color .2s ease;
}

/* TABLET */
@media (max-width: 991.98px) {
    #homepage .hero-wrap {
        min-height: 360px;
        padding: 60px 15px;
    }

    #homepage .card-header {
        padding: 17px;
    }
}

/* MOBILE */
@media (max-width: 767.98px) {
    #homepage .page-section {
        margin-bottom: 20px;
    }

    #homepage .hero-wrap {
        min-height: 330px;
        padding: 48px 10px;
    }

    #homepage .hero-wrap h1 {
        font-size: 29px;
    }

    #homepage .hero-wrap .lead {
        font-size: 15px;
    }

    #homepage .home-search-form {
        padding: 10px;
        border-radius: 13px;
    }

    #homepage .home-search-form input,
    #homepage .home-search-form select,
    #homepage .home-search-form button,
    #homepage .home-search-form .btn {
        min-height: 46px;
        width: 100%;
    }

    #homepage .card-header {
        padding: 15px;
    }

    #homepage .card-header h4 {
        font-size: 18px;
    }

    #homepage .big-icon-category-list > .col > div {
        min-height: 125px;
        padding: 17px 7px !important;
    }

    #homepage .big-icon-category-list h6 {
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    #homepage .hero-wrap h1 {
        font-size: 25px;
    }

    #homepage .big-icon-category-list h6 {
        font-size: 11px;
    }
}