a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-logo {
    width: auto;
    height: 40px;
    max-width: 430px !important;
    max-height: 80px !important;
}

@media (min-width: 1200px) {
    .container {
        max-width: 985px;
    }

}

/* Header */
header {
    background-color: var(--primary);
    color: #fff;
    padding: 12px 0 20px 0;
}

.hero {
    background-color: var(--primary);
    padding-bottom: 30px;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 200px
}

.logo img {
    width: 100%;
    height: auto;
}

.flag {
    width: 22px;
    height: 14px;
    background: linear-gradient(to right, #006a4e 70%, #f42a41 70%);
    border-radius: 2px;
    display: inline-block;
    position: relative;
}

.flag::after {
    content: "";
    position: absolute;
    left: 55%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background: #f42a41;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 22px;
    align-items: center;
    margin-left: 20px;
}

.nav-links li {
    list-style: none;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;

}

.nav-links a.nav-link {
    color: #fff !important
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 15px;
}

.post-ad-btn {
    background: #f5a623;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.location-pill {
    background: var(--bs-link-color);
    color: var(--bs-body-bg);
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 12px auto 0;
    font-weight: 600;
}

.location-wrap {
    text-align: center;
}

.search-bar {
    display: flex;
    max-width: 699px;
    margin: 14px auto 0;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}

.search-bar button {
    background: #f5a623;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
}

/* Banner */
.ad-banner {
    background: linear-gradient(135deg, #1a1a4e, #3a3a8a);
    color: #fff;
    text-align: center;
    padding: 35px;
    border-radius: 6px;
    margin: 25px 0;
    font-size: 32px;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.ad-banner .ad-here {
    background: #f15a29;
    padding: 6px 20px;
    border-radius: 4px;
}

.ad-tag {
    position: absolute;
    top: 8px;
    right: 10px;
    background: #0008;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #0004;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.arrow.left {
    left: 6px;
}

.arrow.right {
    right: 6px;
}

/* Categories */
.section-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 14px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 30px;
    margin-bottom: 30px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px;
    cursor: pointer;
}

.cat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.cat-name {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.cat-count {
    color: #999;
    font-size: 12px;
}

/* Featured */
.featured-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    position: relative;
}

.featured_inner {
    position: relative;
    padding: 0 25px;
    margin-bottom: 20px;
}

.featured_details_imgs {
    background-size: cover;
    background-position: center;
    min-height: 100px;
    border-radius: 0;
}

/* .featured-card {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
} */

.featured-card {
    background-color: #fffbf5;
    border: 1px solid #ffcb5f;
    border-radius: 2px;
    padding: 12px;
    position: relative;
    width: 100%;
    height: 100%;
}

.featured-card:hover {
    box-shadow: 0 0 5px 0 #ffcb5f;
}

.featured-images {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 5px;
}

.featured-images .main-img {
    height: 100px;
    background: #cde;
}

.featured-images .sub-imgs {
    display: flex;
    height: 60px;
}

.featured-images .sub-imgs div {
    flex: 1;
    background: #bce;
    border-left: 2px solid #fff;
}

.featured-info {
    flex: 1;
}

.featured-tag {
    background: #f5a623;
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    display: inline-block;
    font-weight: bold;
}

.featured-title {
    font-weight: 600;
    margin: 6px 0;
    font-size: 13px;
}

.badges {
    display: flex;
    gap: 6px;
    margin: 6px 0;
}

.badge {
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 3px;
    color: #fff;
}

.badge.member {
    background: #f5a623;
}

.badge.verified {
    background: #2e9bd6;
}

.featured-loc {
    font-size: 12px;
    color: #666;
}

.featured-price {
    color: #3aa856;
    font-weight: bold;
    margin-top: 6px;
}

.featured-tag-corner {
    /* position: absolute;
    top: 0;
    left: 0;
    background: #f5a623;
    color: #fff;
    font-size: 10px;
    padding: 3px 10px;
    font-weight: bold; */
    position: absolute;
    top: 4px;
    left: -4px;
    z-index: 1;
    border-radius: 0;
    background: #ff8400;
    color: #fff;
    font-weight: 800;
    padding: 0 4px;
    font-size: 10px;
}

.featured-tag-corner:before {
    content: "";
    background: transparent;
    position: absolute;
    width: 0;
    height: 0;
    border-color: #ff8400 #ff8400 transparent transparent;
    border-style: solid;
    border-width: 2px;
    left: 0;
    bottom: -4px;
}

.featured-swiper .swiper-wrapper .swiper-slide {
    padding-left: 4px;
}

/* Promo banner */
.promo-banner {
    background: linear-gradient(to right, #f5a623, #f8c170);
    border-radius: 6px;
    padding: 30px;
    margin: 25px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    position: relative;
}

.promo-banner .learn-more {
    background: #fff;
    color: #2e9bd6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
}

/* Latest ads */
.latest-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 17px;
}

.ad-card {
    display: flex;
    border: 1px solid #eee;
    box-shadow: 0 0 4px 0 #d4ded9;
    border-radius: 4px;
    padding: 10px;
    gap: 12px;
    align-items: center;
}

.ad-img {
    width: 70px;
    height: 60px;
    background: #f0d4d4;
    border-radius: 4px;
}

.ad-info {
    flex: 1;
}

.ad-title {
    font-weight: 600;
    font-size: 13px;
}

.ad-loc {
    font-size: 11px;
    color: #777;
    margin: 4px 0;
}

.ad-price {
    color: #3aa856;
    font-weight: bold;
    font-size: 13px;
}

.ad-time {
    font-size: 11px;
    color: #999;
    text-align: right;
}

.view-all-btn {
    display: block;
    width: max-content;
    margin: 25px auto;
    background: #2e9bd6;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

/* CTA boxes */
.cta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, .1);
}

.cta-row .cta-box:first-child {
    border-right: 1px solid #d4ded9;
}

.cta-box {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 32px 32px 36px;
}

.cta-icon {
    font-size: 90px;
}

.cta-title {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 22px;
}

.cta-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.cta-btn {
    padding: 8px 17px;
    border-radius: 20px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.cta-btn.orange {
    background: #f5a623;
}

.cta-btn.blue {
    background: #2e9bd6;
}

/* Stats */
.stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: var(--bs-secondary-bg);
    border-radius: 6px;
    margin: 25px 0;
}

.stat {
    display: flex;
    align-items: end;
    gap: 25px;
}

.stat-icon {
    font-size: 40px;
}

.stat-num {
    font-size: 30px;
    font-weight: bold;
}

.stat-label {
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--bs-secondary-bg);
    padding: 30px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.footer-grid h4 {
    color: #194a7a;
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-grid a {
    display: block;
    color: #555;
    font-size: 13px;
    padding: 4px 0;
}

.app-badges img,
.app-badges div {
    display: block;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 11px;
    width: 130px;
}

.copyright {
    background: #222;
    color: #bbb;
    padding: 14px 0;
    font-size: 12px;
}

.copyright .container {
    display: flex;
    justify-content: space-between;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

#searchForm {
    width: 100%;
}

.switch-lang {
    list-style: none;
}

#themeSwitcher a.dropdown-toggle:after,
.switch-lang a.dropdown-toggle:after {
    content: none;
}

.country-flag a {
    display: flex;
}

.country-flag a img {
    width: 22px;
    height: 22px;
}

.country-flag a i {
    display: none;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    /* allow wrapping for the toggle menu */
}

.header-top .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

.see_all_cat {
    display: none;
}

@media screen and (max-width: 768px) {
    .cat_sec_title {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .see_all_cat {
        display: block;
        font-size: 12px;
        font-weight: normal;
    }

    .latest-grid {
        grid-template-columns: 1fr;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .categories {
        display: flex;
        gap: 0;
        overflow-x: scroll;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
        margin-left: -20px;
        margin-right: -20px;
    }

    .categories:before {
        content: " ";
        left: 0;
        position: absolute;
        height: 120px;
        width: 20px;
        background: linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0));
    }

    .categories:after {
        content: " ";
        right: 0;
        position: absolute;
        height: 120px;
        width: 25px;
        background: linear-gradient(270deg, #fff, hsla(0, 0%, 100%, 0));
    }

    .categories .cat-item {
        flex-direction: column;
        gap: 4px;
        scroll-snap-align: start;
        padding: 10px 15px;
    }

    .categories .cat-item .cat-name {
        font-weight: normal;
    }

    .categories .cat-item .cat-count {
        text-align: center;
    }

    .featured-swiper-button-next,
    .featured-swiper-button-prev {
        display: none !important;
    }

    .featured_inner {
        padding: 0 0;
        margin-left: -20px;
        margin-right: -20px;
    }

    .featured_inner .swiper-wrapper {
        display: flex;
        overflow-x: scroll;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .featured_inner .swiper-wrapper .swiper-slide {
        width: 90% !important;
    }

    .featured_inner .swiper-wrapper .swiper-slide:first-child {
        margin-left: 10px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid .socials {
        display: flex;
    }

    .cta-row .cta-box:first-child {
        border-right: none;
    }

    .cta-row {
        grid-template-columns: 1fr;
        box-shadow: none;
    }

    .cta-box {
        flex-direction: column;
        border-radius: 8px;
        box-shadow: 0 2px 16px 0 rgba(0, 0, 0, .1);
    }

    .cta-box .cta-content {
        text-align: center;
    }

    .nav-links {
        width: 100%;
    }

    .header-top {
        padding: 10px 0;
    }

    .header-top .logo img {
        max-height: 40px;
        width: auto;
        max-width: 150px !important;
    }

    .menu-icon {
        display: block !important;
        order: 2;
        /* Put menu button on the right */
    }

    .header-top .logo {
        order: 1;
        /* Keep logo on the left */
    }

    .header-top .header-right {
        display: none;
        /* Hide header right by default */
        flex-direction: column;
        width: 100%;
        order: 3;
        /* Push drop-down below logo and button */
        background: var(--bs-body-bg, #f8f9fa);
        padding: 15px;
        border: 1px solid var(--bs-border-color, #ddd);
        border-radius: 5px;
        align-items: flex-start;
        gap: 10px;
    }

    .header-top .header-right.active {
        display: flex;
        /* Show when active class added */
    }

    .header-top .post-ad-btn {
        font-size: 14px;
        padding: 6px 10px;
        width: 100%;
        text-align: center;
    }

    .nav-links {
        flex-direction: column;
    }

    .nav-links a.nav-link {
        color: var(--bs-emphasis-color) !important;
    }

    .copyright .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}