/**
 * DirHubs.com Web Directory — Modern Theme v2.0
 * Fresh, premium design with deep navy + teal accent palette
 * Mobile-first · Glassmorphism · Micro-animations · Premium typography
 */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand Colors (Harmonized from DirHubs Logo) */
  --brand-navy:       #061836;  /* Deep Navy canvas */
  --brand-dark:       #0A2540;  /* Dark text and headers */
  --brand-mid:        #103562;  /* Medium Navy */
  --brand-blue:       #003E92;  /* Signature Logo Royal Navy Blue */
  --brand-blue-dark:  #002D6E;  /* Active/Hover Navy */
  --brand-blue-light: #1A6FE8;  /* Sapphire Blue highlight */
  --brand-orange:     #FF6B00;  /* Signature Logo Vibrant Orange */
  --brand-orange-dark:#E05300;  /* Deep Orange hover */
  --brand-orange-light:#FF8533; /* Soft light orange */
  --brand-purple:     #6366F1;
  --brand-pink:       #EC4899;

  /* Gradients */
  --grad-primary:     linear-gradient(135deg, #003E92 0%, #0056B3 100%);
  --grad-orange:      linear-gradient(135deg, #FF6B00 0%, #FF8533 100%);
  --grad-hero:        linear-gradient(140deg, #05152e 0%, #00265c 50%, #003e92 100%);
  --grad-card-hover:  linear-gradient(135deg, rgba(0,62,146,0.04) 0%, rgba(255,107,0,0.04) 100%);
  --grad-dark:        linear-gradient(135deg, #05152e 0%, #002d6e 55%, #003e92 100%);
  --grad-teal:        linear-gradient(135deg, #003E92 0%, #1A6FE8 100%);
  --grad-purple:      linear-gradient(135deg, #6366F1 0%, #003E92 100%);

  /* Neutral Palette */
  --surface-white:    #ffffff;
  --surface-off:      #f8fafd;
  --surface-muted:    #f0f4f9;
  --border-light:     #e2e9f3;
  --border-mid:       #c6d4e7;
  --text-dark:        #061836;
  --text-body:        #2b3a4a;
  --text-muted:       #5e6e82;
  --text-light:       #8a9ba8;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(6,24,54,0.06);
  --shadow-sm:  0 2px 8px rgba(6,24,54,0.08), 0 1px 3px rgba(6,24,54,0.05);
  --shadow-md:  0 8px 24px rgba(6,24,54,0.10), 0 2px 8px rgba(6,24,54,0.06);
  --shadow-lg:  0 16px 48px rgba(6,24,54,0.14), 0 4px 12px rgba(6,24,54,0.08);
  --shadow-blue: 0 8px 24px rgba(0,62,146,0.25);
  --shadow-orange: 0 8px 24px rgba(255,107,0,0.30);

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-xl:  32px;
  --r-full: 9999px;

  /* Transitions */
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:   all 0.18s var(--ease);
  --t-mid:    all 0.28s var(--ease);
  --t-slow:   all 0.45s var(--ease);
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}

/* ============================================================
   SCROLL REVEAL ANIMATION SYSTEM
   ============================================================ */

/* Base hidden state — all reveal elements start invisible */
[data-reveal] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-duration: 0.7s;
  will-change: opacity, transform;
}

/* Direction variants */
[data-reveal],
[data-reveal="fade-up"]    { transform: translateY(36px); }
[data-reveal="fade-down"]  { transform: translateY(-36px); }
[data-reveal="fade-left"]  { transform: translateX(-40px); }
[data-reveal="fade-right"] { transform: translateX(40px); }
[data-reveal="zoom"]       { transform: scale(0.92); }
[data-reveal="zoom-up"]    { transform: scale(0.93) translateY(24px); }

/* Revealed / visible state */
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers (applied to children by JS) */
.reveal-stagger > * { transition-delay: calc(var(--reveal-i, 0) * 80ms) !important; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


body {
  font-family: 'Plus Jakarta Sans', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-body);
  background: var(--surface-off);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--surface-muted); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: var(--t-fast);
}
a:hover { color: var(--brand-blue-dark); }

img { max-width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar-dirhubs {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(228, 234, 244, 0.8);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  transition: var(--t-mid);
  z-index: 1040;
}

.navbar-dirhubs.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

/* Logo */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 40px;
  width: auto;
}

/* Nav Links */
.navbar-dirhubs .nav-link {
  font-weight: 600;
  font-size: 0.90rem;
  color: var(--text-body) !important;
  padding: 0.44rem 0.65rem !important;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  flex-shrink: 0;
}
.navbar-dirhubs .nav-link i {
  font-size: 0.98rem;
  flex-shrink: 0;
}
@media (min-width: 992px) and (max-width: 1250px) {
  .navbar-dirhubs .navbar-nav > .nav-item > .nav-link > i {
    display: none;
  }
  .navbar-dirhubs .nav-link {
    padding: 0.40rem 0.50rem !important;
    font-size: 0.85rem;
  }
}
@media (min-width: 1251px) {
  .navbar-dirhubs .nav-link {
    padding: 0.44rem 0.70rem !important;
    font-size: 0.91rem;
  }
}
.navbar-dirhubs .nav-link:hover {
  color: var(--brand-blue) !important;
  background: rgba(33, 118, 255, 0.07);
}
.navbar-dirhubs .nav-link.active {
  color: var(--brand-blue) !important;
  background: rgba(33, 118, 255, 0.1);
}

/* Dropdown */
.navbar-dirhubs .dropdown-menu {
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  min-width: 245px;
  animation: dropIn 0.2s var(--ease);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.navbar-dirhubs .dropdown-item {
  font-weight: 500;
  font-size: 0.89rem;
  color: var(--text-body);
  padding: 0.55rem 0.85rem;
  border-radius: var(--r-sm);
  transition: var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar-dirhubs .dropdown-item:hover {
  background: rgba(33, 118, 255, 0.07);
  color: var(--brand-blue);
}
.navbar-dirhubs .dropdown-item i { font-size: 0.98rem; flex-shrink: 0; }
.navbar-dirhubs .dropdown-divider { border-color: var(--border-light); margin: 0.4rem 0.5rem; }

/* Navbar CTA Buttons */
.btn-nav-search {
  width: 36px;
  height: 36px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--border-light);
  background: var(--surface-white);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-fast);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.btn-nav-search:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(33,118,255,0.06);
}

.btn-nav-login {
  font-weight: 600;
  font-size: 0.87rem;
  color: var(--text-body);
  border: 1.5px solid var(--border-mid);
  background: var(--surface-white);
  border-radius: var(--r-full);
  padding: 0.42rem 1.00rem;
  transition: var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap !important;
  flex-shrink: 0;
  text-decoration: none;
}
.btn-nav-login span {
  white-space: nowrap !important;
}
.btn-nav-login:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(33,118,255,0.05);
}

.btn-nav-submit {
  font-weight: 700;
  font-size: 0.87rem;
  background: var(--grad-orange);
  color: #fff !important;
  border: none;
  border-radius: var(--r-full);
  padding: 0.42rem 1.10rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(255,107,0,0.32);
  transition: var(--t-fast);
  white-space: nowrap !important;
  flex-shrink: 0;
  text-decoration: none;
}
.btn-nav-submit span {
  white-space: nowrap !important;
}
.btn-nav-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(255,107,0,0.45);
  color: #fff !important;
}

/* Mobile toggler */
.navbar-toggler {
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 0.4rem 0.55rem;
  transition: var(--t-fast);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2844,62,80,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: var(--grad-hero);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative orbs */
.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.16) 0%, transparent 65%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,62,146,0.30) 0%, transparent 65%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,107,0,0.12);
  border: 1px solid rgba(255,107,0,0.35);
  color: #FFA05C;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--r-full);
  margin-bottom: 1.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge i { font-size: 0.85rem; color: var(--brand-orange); }

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}
.hero-title .highlight,
.hero-title .text-primary {
  background: linear-gradient(135deg, #FF6B00 0%, #FFA85A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.7;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.hero-stat-item {
  text-align: center;
}
.hero-stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: block;
}
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}
.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Hero Search */
.hero-search-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  padding: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.hero-search-card .form-control,
.hero-search-card .form-select {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.8rem 1rem;
  box-shadow: none !important;
}
.hero-search-card .form-control::placeholder { color: var(--text-light); }
.hero-search-card .btn-search-hero {
  background: var(--grad-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 0.8rem 1.6rem;
  white-space: nowrap;
  transition: var(--t-fast);
  box-shadow: var(--shadow-orange);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-search-card .btn-search-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255,107,0,0.45);
}
.hero-search-divider {
  width: 1px;
  background: var(--border-light);
  margin: 6px 0;
  align-self: stretch;
}
@media (max-width: 767px) {
  .hero-search-divider { width: 100%; height: 1px; margin: 4px 0; }
}

/* Trending tags */
.trending-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.4rem;
}
.trending-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trending-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-full);
  padding: 3px 12px;
  transition: var(--t-fast);
  cursor: pointer;
}
.trending-tag:hover {
  background: rgba(255,107,0,0.22);
  border-color: rgba(255,107,0,0.45);
  color: #FFA05C;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  margin-bottom: 2.5rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Section wrapper */
.section-padded { padding: 4.5rem 0; }
.section-muted { background: var(--surface-muted); }
.section-white { background: var(--surface-white); }

/* ============================================================
   CATEGORY CARDS
   ============================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.category-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.65rem 1rem 1.35rem;
  text-align: center;
  transition: var(--t-mid);
  display: block;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card-hover);
  opacity: 0;
  transition: var(--t-mid);
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,62,146,0.35);
  box-shadow: var(--shadow-md);
}
.category-card:hover::before { opacity: 1; }

.cat-icon-wrap {
  width: 62px;
  height: 62px;
  border-radius: var(--r-md);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  transition: var(--t-mid);
  position: relative;
}
/* Color variants for category icons */
.cat-icon-wrap.c1  { background: rgba(0,62,146,0.12); color: #003E92; }
.cat-icon-wrap.c2  { background: rgba(255,107,0,0.12); color: #FF6B00; }
.cat-icon-wrap.c3  { background: rgba(26,111,232,0.12); color: #1A6FE8; }
.cat-icon-wrap.c4  { background: rgba(245,158,11,0.12); color: #F59E0B; }
.cat-icon-wrap.c5  { background: rgba(6,24,54,0.08); color: #002D6E; }
.cat-icon-wrap.c6  { background: rgba(16,185,129,0.12); color: #10B981; }
.cat-icon-wrap.c7  { background: rgba(99,102,241,0.12); color: #6366F1; }
.cat-icon-wrap.c8  { background: rgba(239,68,68,0.12); color: #EF4444; }

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

.cat-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}
.cat-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   LISTING CARDS
   ============================================================ */
.listing-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  transition: var(--t-mid);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.listing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,62,146,0.3);
}
.listing-card.is-featured {
  border-color: rgba(255,107,0,0.35);
}
.listing-card.is-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #003E92 0%, #FF6B00 100%);
  border-radius: var(--r-md) var(--r-md) 0 0;
}

.listing-card-body {
  padding: 1.4rem 1.4rem 1rem;
  flex: 1;
}

.listing-logo-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-muted);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listing-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.listing-title a { color: inherit; }
.listing-title a:hover { color: var(--brand-blue); }

/* Badges */
.badge-feat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--r-xs);
  letter-spacing: 0.03em;
}
.badge-featured  { background: rgba(255,107,0,0.12); color: #E05300; border: 1px solid rgba(255,107,0,0.28); }
.badge-popular   { background: rgba(0,62,146,0.1); color: #003E92; border: 1px solid rgba(0,62,146,0.25); }
.badge-new       { background: rgba(26,111,232,0.1); color: #1A6FE8; border: 1px solid rgba(26,111,232,0.25); }
.badge-category  { background: var(--surface-muted); color: var(--text-muted); border: 1px solid var(--border-light); }

.listing-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.9rem;
  font-weight: 400;
}
.listing-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}
.listing-meta i { font-size: 0.85rem; }

.listing-card-footer {
  padding: 0.85rem 1.4rem;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-visit {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-blue);
  background: rgba(0,62,146,0.08);
  border: 1px solid rgba(0,62,146,0.2);
  border-radius: var(--r-full);
  padding: 5px 14px;
  transition: var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-visit:hover {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

/* Star Rating */
.star-rating { color: #FF6B00; font-size: 0.8rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--grad-dark);
  border-radius: var(--r-xl);
  padding: 3.5rem 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,0,0.18) 0%, transparent 70%);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,62,146,0.28) 0%, transparent 70%);
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}
.cta-banner .btn-cta-primary {
  background: var(--grad-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  box-shadow: var(--shadow-orange);
  transition: var(--t-fast);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-banner .btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255,107,0,0.45);
}
.cta-banner .btn-cta-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.73rem 1.8rem;
  transition: var(--t-fast);
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.cta-banner .btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ============================================================
   STAT / COUNTER STRIP
   ============================================================ */
.stats-strip {
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 2rem 0;
}
.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-number span { color: var(--brand-orange); }
.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot-wrap {
  background: var(--surface-muted);
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--r-md);
  padding: 1.25rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.82rem;
  font-family: monospace;
  letter-spacing: 0.03em;
  margin: 1.5rem 0;
}
.ad-slot-label {
  font-size: 0.65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-dirhubs {
  font-size: 0.855rem;
  font-weight: 500;
}
.breadcrumb-dirhubs .breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--text-light);
}
.breadcrumb-dirhubs a { color: var(--text-muted); }
.breadcrumb-dirhubs a:hover { color: var(--brand-blue); }
.breadcrumb-dirhubs .breadcrumb-item.active { color: var(--text-dark); font-weight: 600; }

/* ============================================================
   DETAIL PAGE
   ============================================================ */
.detail-header {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  padding: 2.5rem 0 2rem;
}
.detail-logo {
  width: 90px;
  height: 90px;
  border-radius: var(--r-md);
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  background: var(--surface-muted);
}
.detail-title {
  font-size: 2rem;
  font-weight: 800;
}
.detail-rating i { color: #f59e0b; font-size: 1rem; }
.detail-side-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.detail-side-card h6 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.btn-detail-visit {
  background: var(--grad-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  box-shadow: var(--shadow-orange);
  transition: var(--t-fast);
}
.btn-detail-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,107,0,0.45);
  color: #fff;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-header {
  background: var(--grad-dark);
  padding: 2.5rem 0;
}
.search-header h1 { color: #fff; font-size: 1.75rem; }
.search-form-main .form-control,
.search-form-main .form-select {
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: var(--t-fast);
  background: var(--surface-white);
}
.search-form-main .form-control:focus,
.search-form-main .form-select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,62,146,0.12);
}
.btn-search-main {
  background: var(--grad-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  font-weight: 700;
  padding: 0.7rem 1.5rem;
  transition: var(--t-fast);
  box-shadow: var(--shadow-orange);
}
.btn-search-main:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255,107,0,0.45); color: #fff; }

/* Filter Pills */
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-full);
  padding: 5px 14px;
  cursor: pointer;
  transition: var(--t-fast);
}
.filter-pill:hover,
.filter-pill.active {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0,62,146,0.06);
}

/* ============================================================
   FORMS (Submit, Contact, Auth)
   ============================================================ */
.form-dirhubs .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-dirhubs .form-control,
.form-dirhubs .form-select,
.form-dirhubs textarea {
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--surface-white);
  transition: var(--t-fast);
}
.form-dirhubs .form-control:focus,
.form-dirhubs .form-select:focus,
.form-dirhubs textarea:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(0,62,146,0.12);
  outline: none;
}
.form-dirhubs .form-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-dirhubs .form-check-input:checked {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
}

/* Submit buttons */
.btn-submit-primary {
  background: var(--grad-orange);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  box-shadow: var(--shadow-orange);
  transition: var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-submit-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,107,0,0.45);
  color: #fff;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-dirhubs .page-link {
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-sm) !important;
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 0.9rem;
  margin: 0 2px;
  transition: var(--t-fast);
}
.pagination-dirhubs .page-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: rgba(0,62,146,0.06);
}
.pagination-dirhubs .page-item.active .page-link {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.pagination-dirhubs .page-item.disabled .page-link {
  opacity: 0.45;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1.5px solid var(--border-light);
}
.sidebar-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
  font-size: 0.9rem;
  color: var(--text-body);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
  transition: var(--t-fast);
}
.sidebar-cat-link:last-child { border-bottom: none; }
.sidebar-cat-link:hover { color: var(--brand-blue); padding-left: 0.5rem; }
.sidebar-cat-link .badge { background: var(--surface-muted); color: var(--text-muted); font-size: 0.75rem; font-weight: 600; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-body);
  background: var(--surface-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--r-full);
  padding: 4px 12px;
  transition: var(--t-fast);
  cursor: pointer;
}
.tag-pill:hover { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer-dirhubs {
  background: var(--brand-navy);
  color: rgba(255,255,255,0.6);
  padding: 4.5rem 0 0;
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-brand-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.footer-brand-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--t-fast);
  margin-right: 6px;
}
.footer-social a:hover {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}
.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.25rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  transition: var(--t-fast);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.footer-links a:hover { color: #FF8533; padding-left: 4px; }
.footer-links a i { font-size: 0.8rem; }

.footer-bottom-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom-bar a { color: rgba(255,255,255,0.5); }
.footer-bottom-bar a:hover { color: #fff; }

/* ============================================================
   FLASH ALERTS
   ============================================================ */
.alert-dirhubs {
  border: none;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.25rem;
}
.alert-dirhubs i { font-size: 1.1rem; flex-shrink: 0; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}
.empty-state-icon {
  font-size: 3.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  display: block;
}
.empty-state h4 { font-size: 1.25rem; color: var(--text-dark); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.95rem; color: var(--text-muted); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-body { background: #f0f4f8; }
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--brand-navy);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar-brand {
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-sidebar-brand span { color: var(--brand-teal); }
.admin-nav-section {
  padding: 1.25rem 0.75rem 0.5rem;
}
.admin-nav-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,0.6) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 0.75rem !important;
  border-radius: var(--r-sm);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: var(--t-fast);
}
.admin-sidebar .nav-link i { font-size: 1rem; flex-shrink: 0; }
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(255,255,255,0.08) !important;
  color: #fff !important;
}
.admin-sidebar .nav-link.active {
  background: rgba(0,201,167,0.15) !important;
  color: #00c9a7 !important;
}

.admin-topbar {
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.admin-content { padding: 2rem; flex: 1; }

.admin-stat-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: var(--t-fast);
}
.admin-stat-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.admin-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.icon-blue   { background: rgba(33,118,255,0.12); color: #2176ff; }
.icon-teal   { background: rgba(0,201,167,0.12);  color: #00c9a7; }
.icon-orange { background: rgba(255,107,53,0.12); color: #ff6b35; }
.icon-purple { background: rgba(124,58,237,0.12); color: #7c3aed; }
.icon-pink   { background: rgba(233,30,140,0.12); color: #e91e8c; }
.icon-green  { background: rgba(16,185,129,0.12); color: #10b981; }
.icon-red    { background: rgba(239,68,68,0.12);  color: #ef4444; }

.admin-stat-value { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.admin-table {
  background: var(--surface-white);
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
}
.admin-table table thead th {
  background: var(--surface-muted);
  border-bottom: 2px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 1.1rem;
}
.admin-table table tbody td {
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-light);
}
.admin-table table tbody tr:last-child td { border-bottom: none; }
.admin-table table tbody tr:hover { background: var(--surface-muted); }

/* Admin card wrapper */
.admin-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.admin-card-header {
  padding: 1.1rem 1.4rem;
  border-bottom: 1.5px solid var(--border-light);
  background: var(--surface-muted);
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-card-body { padding: 1.4rem; }

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-full);
  letter-spacing: 0.03em;
}
.status-active    { background: rgba(16,185,129,0.12); color: #059669; }
.status-pending   { background: rgba(245,158,11,0.12); color: #d97706; }
.status-inactive  { background: rgba(239,68,68,0.12);  color: #dc2626; }
.status-rejected  { background: rgba(107,114,128,0.12); color: #6b7280; }

/* ============================================================
   USER DASHBOARD
   ============================================================ */
.user-dash-card {
  background: var(--surface-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--r-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.user-dash-nav .nav-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-body);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.55rem 0.85rem;
  margin-bottom: 2px;
}
.user-dash-nav .nav-link:hover { background: var(--surface-muted); color: var(--brand-blue); }
.user-dash-nav .nav-link.active { background: rgba(33,118,255,0.08); color: var(--brand-blue); }

/* ============================================================
   UTILITY & HELPERS
   ============================================================ */
.text-primary-brand { color: var(--brand-blue) !important; }
.text-teal          { color: var(--brand-teal) !important; }
.text-muted-sm      { font-size: 0.85rem; color: var(--text-muted); }

.bg-navy    { background: var(--brand-navy); }
.bg-surface { background: var(--surface-muted); }

.rounded-dir { border-radius: var(--r-md); }

/* Divider with label */
.divider-text {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 1.5rem 0;
}
.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* Page title hero strip */
.page-hero-strip {
  background: var(--grad-dark);
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.page-hero-strip h1 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0;
}
.page-hero-strip .breadcrumb-dirhubs a { color: rgba(255,255,255,0.55); }
.page-hero-strip .breadcrumb-dirhubs .breadcrumb-item.active { color: rgba(255,255,255,0.85); }
.page-hero-strip .breadcrumb-dirhubs .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.3); }

/* Section "view all" link */
.view-all-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--t-fast);
}
.view-all-link:hover { gap: 8px; }
.view-all-link i { font-size: 0.9rem; }

/* Selection highlight */
::selection { background: rgba(33,118,255,0.18); color: var(--text-dark); }

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */
@media (max-width: 991.98px) {
  .hero-section { padding: 3.5rem 0 3rem; }
  .section-padded { padding: 3rem 0; }
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-stats { gap: 1.5rem; }
  .hero-stat-divider { display: none; }
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    border: 1.5px solid var(--border-light);
    border-radius: var(--r-md);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-lg);
  }
  .navbar-dirhubs .navbar-nav { gap: 2px; }
  .navbar-dirhubs .nav-link { border-radius: var(--r-sm); }
}

@media (max-width: 767.98px) {
  .hero-title { letter-spacing: -0.02em; }
  .hero-search-card { border-radius: var(--r-md); }
  .cta-banner { padding: 2.5rem 1.5rem; border-radius: var(--r-lg); }
  .admin-sidebar { width: 100%; min-height: auto; }
}

@media (max-width: 575.98px) {
  .hero-stats { gap: 1rem; }
  .listing-meta { flex-wrap: wrap; gap: 8px; }
}

/* ============================================================
   MICRO-ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,201,167,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0,201,167,0); }
}

.animate-fade-up { animation: fadeUp 0.5s var(--ease) both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* Loading shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--surface-muted) 25%, var(--border-light) 50%, var(--surface-muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   BACKWARD-COMPATIBILITY ALIASES
   (maps old class names to new theme values)
   ============================================================ */

/* Old hero search wrapper */
.hero-search-wrapper {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  padding: 10px;
  max-width: 820px;
  margin: 0 auto;
}
.hero-search-wrapper .form-control,
.hero-search-wrapper .form-select {
  background: rgba(255,255,255,0.95);
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 0.8rem 1rem;
  box-shadow: none !important;
}
.hero-search-wrapper .form-control::placeholder { color: var(--text-light); }
.hero-search-wrapper .search-divider {
  width: 1px;
  background: rgba(255,255,255,0.25);
  margin: 6px 0;
}
@media (max-width: 767px) {
  .hero-search-wrapper .search-divider { width: 100%; height: 1px; margin: 4px 0; }
}

/* Upgraded category icon wrapper & card typography */
.category-icon-wrapper {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  margin: 0 auto 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  background: rgba(33, 118, 255, 0.08);
  color: var(--brand-blue);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

/* 10 Vibrant Harmonic Color Themes for the Categories */
.col-6:nth-child(10n+1) .category-icon-wrapper { background: rgba(33, 118, 255, 0.09);  color: #1a6ff2; }
.col-6:nth-child(10n+2) .category-icon-wrapper { background: rgba(0, 201, 167, 0.1);    color: #00a887; }
.col-6:nth-child(10n+3) .category-icon-wrapper { background: rgba(124, 58, 237, 0.09);  color: #7c3aed; }
.col-6:nth-child(10n+4) .category-icon-wrapper { background: rgba(255, 107, 53, 0.1);   color: #ea580c; }
.col-6:nth-child(10n+5) .category-icon-wrapper { background: rgba(236, 72, 153, 0.1);   color: #db2777; }
.col-6:nth-child(10n+6) .category-icon-wrapper { background: rgba(245, 158, 11, 0.1);   color: #d97706; }
.col-6:nth-child(10n+7) .category-icon-wrapper { background: rgba(16, 185, 129, 0.1);   color: #059669; }
.col-6:nth-child(10n+8) .category-icon-wrapper { background: rgba(239, 68, 68, 0.1);    color: #dc2626; }
.col-6:nth-child(10n+9) .category-icon-wrapper { background: rgba(99, 102, 241, 0.1);   color: #4f46e5; }
.col-6:nth-child(10n+10) .category-icon-wrapper { background: rgba(14, 165, 233, 0.1);  color: #0284c7; }

.category-card:hover .category-icon-wrapper {
  background: var(--grad-primary);
  color: #ffffff !important;
  transform: scale(1.12) rotate(-4deg);
  box-shadow: 0 8px 22px rgba(33, 118, 255, 0.32);
}

.category-card-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.category-card:hover .category-card-title {
  color: var(--brand-blue);
}

.category-card-count {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
  transition: all 0.25s ease;
}

.category-card:hover .category-card-count {
  background: rgba(33, 118, 255, 0.1);
  color: var(--brand-blue);
}

/* Old listing logo container */
.listing-logo-container {
  width: 54px;
  height: 54px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-muted);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.listing-logo-container img { width: 100%; height: 100%; object-fit: cover; }

/* Old listing badges */
.listing-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 0.75rem; }
.badge-featured  { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-xs); background: rgba(0,201,167,0.12); color: #00a389; border: 1px solid rgba(0,201,167,0.3); }
.badge-popular   { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: var(--r-xs); background: rgba(255,107,53,0.12); color: #e05a28; border: 1px solid rgba(255,107,53,0.3); }
.badge-category  { display: inline-flex; align-items: center; gap: 3px; font-size: 0.72rem; font-weight: 500; padding: 3px 8px; border-radius: var(--r-xs); background: var(--surface-muted); color: var(--text-muted); border: 1px solid var(--border-light); }

/* Override Bootstrap btn classes for home page listing cards */
.listing-card-footer .btn-light,
.listing-card-footer .btn-outline-primary {
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--r-full);
  padding: 5px 14px;
  transition: var(--t-fast);
}

/* Old CTA btn-primary-gradient */
.btn-primary-gradient {
  background: var(--grad-primary);
  color: #fff !important;
  border: none;
  font-weight: 700;
  box-shadow: var(--shadow-blue);
  transition: var(--t-fast);
}
.btn-primary-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(0,62,146,0.35);
  color: #fff !important;
}

/* Latest/Popular listing row card */
.hover-shadow { transition: var(--t-fast); }
.hover-shadow:hover { box-shadow: var(--shadow-md); border-color: var(--border-mid) !important; }

/* Col-xl-2-4 (custom 5-col grid) */
@media (min-width: 1200px) {
  .col-xl-2-4 { width: 20% !important; flex: 0 0 auto; }
}

/* ============================================================
   ENHANCED HERO SECTION OVERRIDES
   ============================================================ */

/* Make hero title gradient span actually work */
.hero-title .text-primary {
  background: linear-gradient(135deg, #FF6B00 0%, #FFA85A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero trending tags */
.hero-section .badge.bg-white {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.8) !important;
  border-color: rgba(255,255,255,0.18) !important;
  font-weight: 600;
  font-size: 0.78rem;
  transition: var(--t-fast);
}
.hero-section .badge.bg-white:hover {
  background: rgba(255,107,0,0.22) !important;
  color: #FFA05C !important;
  border-color: rgba(255,107,0,0.45) !important;
}
.hero-section .text-muted { color: rgba(255,255,255,0.55) !important; }
.hero-section .fw-semibold { color: rgba(255,255,255,0.5) !important; }

/* Hero search button */
.hero-search-wrapper .btn-primary-gradient,
.hero-search-wrapper button[type="submit"] {
  background: var(--grad-orange) !important;
  color: #fff !important;
  border: none;
  border-radius: var(--r-sm) !important;
  font-weight: 700;
  box-shadow: var(--shadow-orange);
  transition: var(--t-fast);
  padding: 0.8rem 1.6rem !important;
}
.hero-search-wrapper .btn-primary-gradient:hover,
.hero-search-wrapper button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255,107,0,0.45);
}

/* input-group inside hero search */
.hero-search-wrapper .input-group-text {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted);
}

/* ============================================================
   CATEGORY SECTION (bg-white override)
   ============================================================ */
section.bg-white { background: var(--surface-white) !important; }
section.py-5 { padding-top: 4rem !important; padding-bottom: 4rem !important; }

/* ============================================================
   CTA BANNER OVERRIDES
   ============================================================ */
.cta-banner .text-white,
.cta-banner h2.text-white { color: #fff !important; }
.cta-banner .text-light { color: rgba(255,255,255,0.65) !important; }

