/* ======================================================
   EMIRATESADZ — Dubizzle-inspired Polish
   Red (#006241) primary, clean white, UAE professional
   ====================================================== */

/* Logo icon — red square like Dubizzle's flame mark */
.logo-icon {
  background: var(--c-primary) !important;
  color: #fff !important;
}

/* Header topbar — deeper red bar like Dubizzle top strip */
.header-topbar {
  background: #004D33 !important;
}

/* Nav active underline — bright red */
#primary-menu > li > a::after {
  background: var(--c-primary) !important;
}

/* Post Ad button — solid red like Dubizzle's CTA */
.btn-post-ad {
  background: var(--c-primary) !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  padding: 10px 20px !important;
}
.btn-post-ad:hover {
  background: var(--c-primary-d) !important;
  transform: none !important;
  box-shadow: 0 2px 8px rgba(0,98,65,.3) !important;
}

/* Sidebar widget header — red bar like Dubizzle section headers */
.sidebar-widget-title {
  background: var(--c-primary) !important;
  letter-spacing: .03em;
}

/* Post-ad widget gradient — dark with red accent */
.post-ad-widget {
  background: linear-gradient(135deg, #001a0f 0%, #003320 100%) !important;
}

/* Section title left bar — red */
.section-title::before {
  background: var(--c-primary) !important;
  width: 3px;
  border-radius: 2px;
}

/* See-all pill — red border */
.section-see-all {
  color: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
}
.section-see-all:hover {
  background: var(--c-primary) !important;
  color: #fff !important;
}

/* Ad price — green (matches Dubizzle price display) */
.ad-card-price {
  color: #00a651 !important;
}

/* Featured badge — Dubizzle uses orange/gold for featured */
.ad-featured-badge {
  background: #f79009 !important;
}

/* Category badge on cards — red */
.ad-cat-badge,
.cfa-cat-badge {
  background: var(--c-primary) !important;
}

/* Pagination active — red */
.cfa-pagination .page-numbers.current {
  background: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
}
.cfa-pagination .page-numbers:hover {
  color: var(--c-primary) !important;
  border-color: var(--c-primary) !important;
}

/* Gallery active thumb border — red */
.gallery-thumb.active {
  border-color: var(--c-primary) !important;
}

/* Single ad hero — dark UAE-appropriate bar */
.single-ad-hero {
  background: #001a0f !important;
}

/* Footer links hover — change from saffron to red */
.footer-links a:hover,
.footer-bottom a:hover {
  color: var(--c-primary) !important;
}

/* Footer brand logo span — red instead of saffron */
.footer-brand .logo-name span {
  color: var(--c-primary) !important;
}

/* Input focus ring — red */
.cfa-input:focus,
.header-search form:focus-within {
  border-color: var(--c-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,98,65,.1) !important;
}

/* Auth notice — light red tint */
.cfa-auth-notice {
  background: var(--c-primary-l) !important;
  border-color: rgba(0,98,65,.2) !important;
}
.cfa-info {
  background: var(--c-primary-l) !important;
  border-color: rgba(0,98,65,.2) !important;
  color: var(--c-primary) !important;
}

/* Section title tag color */
.cfa-section-title {
  color: var(--c-primary) !important;
  border-bottom-color: var(--c-border) !important;
}

/* Inline tag chips */
.cfa-tag {
  background: var(--c-primary-l) !important;
  color: var(--c-primary) !important;
}

/* Read more button (style-add) */
.cfa-read-more {
  color: var(--c-primary) !important;
}

/* ====================================================== */
/* Mobile Fix */
@media (max-width: 768px) {

    .archive-layout {
        display: flex !important;
        flex-direction: column;
    }

    .archive-layout aside {
        width: 100%;
        order: 1; /* Filters first */
        position: relative !important;
        top: 0 !important;
        margin-bottom: 15px;
    }

    .archive-layout main {
        width: 100%;
        order: 2; /* Ads second */
    }

    .ads-grid {
        display: grid;
        grid-template-columns: 1fr !important; /* Single column ads */
        gap: 15px;
    }
}


/* Footer Content Section */
.cfa-footer-content {
    margin-top: 40px;
    padding: 20px;
}

.cfa-footer-box {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.cfa-footer-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--c-navy);
}

.cfa-footer-box p {
    font-size: 14px;
    color: var(--c-muted);
    line-height: 1.6;
}

/* Hide full content initially */
.cfa-content-full {
    display: none;
    margin-top: 10px;
}

/* Button */
.cfa-read-more {
    margin-top: 12px;
    background: none;
    border: none;
    color: var(--c-red);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .cfa-footer-content {
        padding: 15px;
    }
}


.cat-description {
    margin-top: 20px;
    padding: 20px;
    background: var(--c-surface);
    border-top: 1px solid var(--c-border);
    font-size: 14px;
    line-height: 1.7;
}

.cat-description h1,
.cat-description h2,
.cat-description h3 {
    margin-top: 20px;
}

.cat-description a {
    color: var(--c-primary);
    text-decoration: none;
}

.cat-description a:hover {
    text-decoration: underline;
}


.seo-content {
    margin-top: 30px;
    line-height: 1.7;
}
