/* Home Page Styles */


/* Global Search styles moved to app.css */

/* Homepage Hero Banner — See banner-ad.css */
/* .homepage-hero-banner and .homepage-hero-banner-inner rules moved to public/css/banner-ad.css */

/* Section headers moved to app.css */

/* Categories Grid - 4 per row, 8 cards total */
.categories-section {
    padding: 0 0 36px;
}

.categories-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.categories-section .section-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: none;
    letter-spacing: normal;
}

.view-all {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.view-all:hover {
    text-decoration: underline;
}


.categories-grid-8 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* Standard Layout Gap */
}

/* Individual Card */
.cat8-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 10px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    text-decoration: none;
    transition: transform 0.22s ease;
    cursor: pointer;
}

.cat8-card:hover {
    transform: translateY(-2px);
    text-decoration: none;
}


/* Icon bubble */
.cat8-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 0;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cat8-card:hover .cat8-icon {
    transform: scale(1.1) rotate(-4deg);
}

.cat8-icon svg {
    width: 44px;
    height: 44px;
}

/* Text */
.cat8-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.cat8-name {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
}

.cat8-count {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 400;
}


/* Featured Ads Slider - Bikroy Style */
.featured-ads-section {
    padding: 40px 0;
    border-bottom: none;
}

.featured-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.featured-slider {
    display: flex;
    gap: 16px; /* Standard Layout Gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 15px 5px;
    scroll-snap-type: x mandatory;
    /* Added for mobile centering */
}

.featured-slider::-webkit-scrollbar {
    display: none;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: none;
    z-index: 10;
}

.slider-nav-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
}

.featured-ad-card {
    flex: 0 0 calc(50% - 12px);
    width: calc(50% - 12px);
    background: #fff9f2;
    border: 1px solid #ffe8cc;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
    scroll-snap-align: center;
    box-shadow: none;
    position: relative;
}

.featured-ad-card:hover {
    box-shadow: none;
    border-color: #ffcc80;
    transform: translateY(-2px);
}



.featured-ad-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.featured-ad-images {
    position: relative;
    background: #fff9f2;
    border-radius: 0;
    overflow: hidden;
    height: 100px;
    /* Reduced from 150px to make 3x images 100x100 squares */
}

.ribbon-container {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

/* ==============================
   UNIFIED RIBBON SYSTEM (TailAdmin Style)
   ============================== */

/* Base ribbon – left-pointing flag shape */
.ribbon-base,
.featured-tag,
.ribbon-new-tag,
.ribbon-urgent-tag {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 4px 14px 4px 9px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    z-index: 10;
    white-space: nowrap;
    /* Arrow-tail pointing RIGHT (bookmark flag shape) */
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
}

/* FEATURED – OTXAD Primary Blue */
.featured-tag {
    background: var(--primary, #004b87);
    color: #ffffff;
    min-width: 70px;
}

/* NEW – Vivid Green */
.ribbon-new-tag {
    background: #16a34a;
    color: #ffffff;
    min-width: 45px;
}

/* URGENT – Red, mirrored to top-right */
.ribbon-urgent-tag {
    left: auto;
    right: 0;
    padding: 4px 9px 4px 14px;
    background: #dc2626;
    color: #ffffff;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 15% 100%, 0 50%);
    min-width: 60px;
}

/* SPOTLIGHT – Indigo */
.ribbon-spotlight-tag {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    font-size: 8.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    padding: 4px 14px 4px 9px;
    background: #4f46e5;
    color: #ffffff;
    clip-path: polygon(0 0, 85% 0, 100% 50%, 85% 100%, 0 100%);
    z-index: 10;
    min-width: 70px;
}


.crown-icon-corner {
    position: absolute;
    bottom: 12px;
    right: 12px;
    color: #ffb800;
    font-size: 14px;
    z-index: 5;
}


.featured-img-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    height: 100%;
    /* Fill container */
}

.featured-img-grid .thumb {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #fff9f2;
}

.featured-img-grid .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-ad-card:hover .thumb img {
    transform: scale(1.1);
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    z-index: 2;
}

.featured-ad-info {
    padding: 5px 15px 12px 15px;
    background: transparent;
    border-radius: 0;
}

.featured-ad-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.verification-badge-clean {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.featured-ad-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1c2b33;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.featured-ad-badges {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 0;
    text-transform: uppercase;
}

.badge.member {
    background: #f1f3f3;
    color: #707676;
    border: 1px solid #d1d5db;
}

.featured-ad-location {
    font-size: 12px;
    color: #707676;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-ad-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f1f3f3;
}

.featured-ad-bottom .price {
    font-size: 15px;
    font-weight: 700;
    color: #149777;
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bottom-right .time {
    font-size: 11px;
    color: #707676;
    font-weight: 400;
}

.mini-icons {
    display: flex;
    gap: 6px;
}

.mini-icons i {
    font-size: 12px;
    color: #cbd5e1;
}

.mini-icons i.fa-bolt {
    color: #ffb800;
}

.mini-icons i.fa-crown {
    color: #ffb800;
}

/* Promotional Banners */
.promo-banners-section {
    background: white;
    padding: 40px 0;
}


.promo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
}

.promo-card {
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 25px;
    background: white;
    flex: 1;
}

.promo-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    flex: 1;
}

.promo-post-ad {
    border-right: 1px solid var(--border-color);
}

.promo-icon-box {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
}

.promo-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-promo-earn {
    border-radius: 50%;
    border: 4px solid #f59e0b; /* Orange Circle Border */
    padding: 8px;
    background: #fffbeb;
    transition: all 0.3s ease;
}

.icon-promo-jobs {
    border-radius: 50%;
    outline: 4px solid #3b82f6; /* Blue Outline */
    outline-offset: 3px;
    padding: 8px;
    background: #eff6ff;
    transition: all 0.3s ease;
}

.promo-card:hover .icon-promo-earn,
.promo-card:hover .icon-promo-jobs {
    transform: scale(1.08) rotate(3deg);
}

.promo-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.promo-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-post-free {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: 0;
    border: 2px solid #b47a00; /* Dark yellow border as requested */
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-post-free:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #8c5f00;
}

.promo-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.smiley-icon {
    font-size: 28px;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.sub-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    background: var(--primary);
    color: white;
    border-radius: 0;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-explore:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Quick Links - 4 per row cards with sub-categories */
.quick-links-section {
    padding: 36px 0;
    border-top: 1px solid #F1F5F9;
}

.quick-links-section .section-title {
    font-size: 13px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 18px;
}

/* 3-column grid for global width */
.ql-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px; /* Standard Layout Gap */
}

/* Card */
.ql-card {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px 20px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
}

.ql-card:hover {
    background: #f1f3f5;
    transform: translateY(-2px);
}

/* Card header */
.ql-header {
    margin-bottom: 4px;
}

.ql-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    display: block;
}

.ql-title:hover {
    text-decoration: underline;
}

/* Sub-categories list - Pipe separated */
.ql-subs {
    font-size: 11px;
    color: #666;
    line-height: 1.8;
}

.ql-sub-link {
    color: #666;
    text-decoration: none;
    display: inline;
}

.ql-sub-link:hover {
    color: #1a1a1a;
    text-decoration: underline;
}


.ql-sub-link:not(:last-child)::after {
    content: " | ";
    color: #94a3b8;
    margin: 0 4px;
    text-decoration: none !important;
    display: inline-block;
}



/* About Section */
.about-section {
    background: #f8fafc;
    padding: 30px 0 0;
    border-top: 1px solid #f1f5f9;
}

.about-content {
    max-width: 900px; /* Standard Inner Utility Container (Inner Content) */
    margin: 0 auto;
}

.about-content h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    text-align: left;
}

.about-text h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 20px 0 8px;
    color: #333;
}

.about-text p {
    font-size: 12.5px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}


.about-text-collapsed {
    display: none;
}

.about-text-collapsed.expanded {
    display: block;
}

.show-more-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: all 0.3s;
}

.show-more-btn:hover {
    color: var(--primary-dark);
}

.show-more-btn i {
    transition: transform 0.3s;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

/* Responsive */
@media (max-width: 1024px) {
    .featured-ad-card {
        min-width: calc(40% - 10px);
    }

    .ql-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0 20px !important;
        margin-top: 0 !important;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 26px !important;
    }

    .hero-content p {
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }

    .search-wrapper {
        padding: 2px;
    }

    .search-form {
        max-width: 95%;
    }

    .search-wrapper input {
        padding: 12px 16px;
        font-size: 14px;
    }

    .search-wrapper button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Premium 3-Column Category Grid with Full Details */
    .categories-grid-8 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        padding: 0 12px 20px !important;
        overflow: visible !important;
    }

    .cat8-card {
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 14px 8px !important;
        background: #ffffff !important;
        border: 1px solid rgba(226, 232, 240, 0.6) !important;
        border-radius: 16px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
        gap: 8px !important;
        transition: all 0.2s ease !important;
    }

    .cat8-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 14px !important; /* Squircle style */
        background: var(--cat-bg, #f8fafc) !important;
        border: 1px solid var(--cat-border, #f1f5f9) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-bottom: 4px !important;
        box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.8) !important;
    }

    .cat8-icon svg {
        width: 28px !important;
        height: 28px !important;
    }

    .cat8-body {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .cat8-name {
        font-size: 11px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
        display: block !important;
        height: 2.4em !important; /* Ensure 2 lines height for alignment */
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .cat8-tagline {
        display: block !important;
        font-size: 9px !important;
        color: #64748b !important;
        line-height: 1.1 !important;
        margin-bottom: 6px !important;
        font-weight: 500 !important;
        min-height: 2.2em !important; /* Prevent layout jump */
    }

    .cat8-count {
        display: inline-flex !important;
        font-size: 9px !important;
        font-weight: 700 !important;
        color: var(--primary) !important;
        background: var(--primary-light, #f0f9ff) !important;
        padding: 3px 8px !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
    }


    /* ql-grid responsive */
    /* Premium Quick Links Stack */
    .ql-grid {
        grid-template-columns: 1fr !important; /* Stack vertically for premium detail */
        gap: 15px !important;
        padding: 0 10px !important;
    }

    .ql-card {
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        border-radius: 12px !important;
        padding: 18px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .ql-title {
        font-size: 14px !important;
        font-weight: 800 !important;
        color: #0f172a !important;
        margin-bottom: 8px !important;
    }

    .ql-subs {
        font-size: 12px !important;
        color: #64748b !important;
        line-height: 1.6 !important;
    }

    .ql-sub-link {
        color: #64748b !important;
        font-weight: 500 !important;
    }

    .promo-grid {
        grid-template-columns: 1fr !important;
        border: none !important;
        gap: 20px !important;
        padding: 0 10px !important;
        background: transparent !important;
    }

    .promo-card {
        border-radius: 16px !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
        padding: 25px !important;
        background: #ffffff !important;
    }

    .promo-post-ad {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .promo-card {
        padding: 20px;
        gap: 15px;
    }

    .promo-icon-box {
        width: 70px;
        height: 70px;
    }

    .promo-content h3 {
        font-size: 18px;
    }

    .featured-slider-wrapper {
        padding: 0 10px;
        gap: 0;
    }

    .featured-slider {
        padding: 0 !important;
        gap: 0 !important;
        scroll-snap-type: x mandatory;
    }

    .featured-ad-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        scroll-snap-align: center;
        border-radius: 16px !important;
        background: #ffffff !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
        margin-bottom: 5px !important;
        padding: 10px !important;
    }

    .featured-ad-images {
        border-radius: 12px !important;
        height: 180px !important; /* Larger for single column */
    }

    .featured-ad-title {
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .featured-ad-bottom .price {
        font-size: 16px !important;
        color: var(--primary) !important;
    }

    .slider-nav-btn {
        display: none !important; /* Clean mobile look without arrows */
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    section {
        padding: 25px 0;
    }

    .section-header h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .hero-content h1,
    .hero-content h2 {
        font-size: 22px;
    }

    .categories-grid,
    .quick-links-grid {
        grid-template-columns: 1fr !important;
    }

    .categories-grid-8, .ql-grid {
        /* Handled above with more specific rules */
    }

    .featured-ad-card {
        min-width: 92%;
    }

    .promo-card {
        flex-direction: column !important; /* Stack icon and text on small phones */
        align-items: center !important;
        text-align: center !important;
    }

    .promo-content {
        align-items: center !important;
    }

    .promo-icon-box {
        width: 60px;
        height: 60px;
    }

    .btn-post-free,
    .btn-explore {
        padding: 10px 12px !important;
        font-size: 11px !important;
        width: 100%;
        justify-content: center;
        margin: 0;
        white-space: nowrap;
    }
    
    .promo-content h3 {
        font-size: 14px !important;
        margin-bottom: 5px !important;
    }
    
    .promo-content p {
        font-size: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .brand-name { font-size: 16px !important; }
    .sub-brand { font-size: 12px !important; }
    .smiley-icon { font-size: 20px !important; }
    
    .promo-icon-box {
        width: 40px !important;
        height: 40px !important;
        gap: 0 !important;
    }
}
/* Recent Posts Section */
.recent-posts-section {
    padding: 20px 0 40px;
    background: #fff;
}

.recent-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.recent-ad-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    border-radius: 0;
    overflow: hidden;
}

.recent-ad-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    border-color: var(--primary);
}

.recent-ad-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recent-ad-image {
    position: relative;
    height: 160px;
    background: #f8fafc;
}

.recent-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.urgent-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px;
}

.recent-ad-content {
    padding: 12px;
}

.recent-ad-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1e293b;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-ad-meta {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
}

.recent-ad-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.recent-ad-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}

.recent-ad-time {
    font-size: 10px;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .recent-ads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .recent-ads-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 10px !important;
    }

    .recent-ad-card {
        border-radius: 12px !important;
        border: 1px solid #f1f5f9 !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
    }

    .recent-ad-image {
        height: 140px !important;
        border-radius: 12px 12px 0 0 !important;
    }

    .recent-ad-title {
        font-size: 13px !important;
        font-weight: 700 !important;
    }

    .recent-ad-price {
        font-size: 14px !important;
    }
}


/* Recent Posts Slider Styles */
.recent-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.recent-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 10px 5px;
}

.recent-slider::-webkit-scrollbar {
    display: none;
}

.recent-slider .recent-ad-card {
    flex: 0 0 calc(25% - 12px);
    width: calc(25% - 12px);
    flex-shrink: 0;
}

/* Categorized Themes */
.theme-buy-sell {
    background: #f0f9ff !important; /* Light Sky Blue */
    border-color: #bae6fd !important;
}
.theme-buy-sell .category-ribbon {
    background: #0ea5e9;
}
.theme-buy-sell .recent-ad-price {
    color: #0ea5e9;
}

.theme-rentals {
    background: #fffbeb !important; /* Light Yellow/Orange */
    border-color: #fde68a !important;
}
.theme-rentals .category-ribbon {
    background: #f59e0b;
}
.theme-rentals .recent-ad-price {
    color: #f59e0b;
}

.theme-services {
    background: #f0fdf4 !important; /* Light Pista Green */
    border-color: #bbf7d0 !important;
}
.theme-services .category-ribbon {
    background: #22c55e;
}
.theme-services .recent-ad-price {
    color: #22c55e;
}

.category-ribbon {
    position: absolute;
    top: 10px;
    left: 0;
    padding: 5px 16px 5px 10px;
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    z-index: 5;
    clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
}

@media (max-width: 1024px) {
    .recent-slider .recent-ad-card {
        flex: 0 0 calc(33.33% - 11px);
        width: calc(33.33% - 11px);
    }
}

@media (max-width: 768px) {
    .recent-slider .recent-ad-card {
        flex: 0 0 calc(50% - 8px);
        width: calc(50% - 8px);
    }
}

