/* ============================================================
   AUTOMATION INDIA DIRECTORY — Master Stylesheet v4
   Brand: Red #E8192C | Dark Navy #1A1A2E | Clean Industrial
   ============================================================ */

/* ── RESET ─────────────────────────────────────────────────── */
.bd-wrap { font-family: 'Inter', -apple-system, sans-serif; color: var(--ai-text); line-height: 1.6; }
.bd-wrap * { box-sizing: border-box; }
.bd-wrap a { text-decoration: none; }

/* ── INNER CONTAINER ─────────────────────────────────────────── */
.bd-inner { max-width: var(--ai-max); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.ai-hero {
  background: var(--ai-dark);
  background-image: linear-gradient(135deg, #0D0D1F 0%, #1A1A2E 50%, #16213E 100%);
  padding: 80px 28px 72px;
  text-align: center;
}
.ai-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 10% 80%, rgba(232,25,44,0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(232,25,44,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.ai-hero-inner { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }

/* Logo in hero */
.ai-hero-logo { margin-bottom: 28px; }
.ai-hero-logo img { height: 72px; width: auto; }

.ai-hero-title {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.ai-hero-title span { color: var(--ai-red); }
.ai-hero-sub { font-size: 17px; color: rgba(255,255,255,0.62); margin: 0 auto 40px; max-width: 540px; }

/* Search bar */
.ai-searchbar {
  background: var(--ai-white);
  border-radius: 12px;
  display: flex; align-items: stretch;
  max-width: 820px; margin: 0 auto 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 4px 16px rgba(232,25,44,0.15);
  overflow: hidden;
  border: 2px solid rgba(232,25,44,0.2);
}
.ai-sf {
  flex: 1; display: flex; align-items: center; gap: 10px;
  padding: 0 18px; border-right: 1px solid var(--ai-border); min-width: 0;
}
.ai-sf svg { flex-shrink: 0; width: 17px; height: 17px; color: var(--ai-light); }
.ai-sf input, .ai-sf select {
  border: none; outline: none; width: 100%;
  font-size: 15px; font-family: 'Inter', sans-serif;
  color: var(--ai-text); padding: 18px 0; background: transparent;
  -webkit-appearance: none;
}
.ai-sf select { cursor: pointer; }
.ai-sf--loc { flex: 0 1 200px; }
.ai-sf--cat { flex: 0 1 190px; }
.ai-sbtn {
  flex-shrink: 0; padding: 0 32px;
  background: var(--ai-red); color: #fff; border: none;
  font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .2s; white-space: nowrap;
}
.ai-sbtn:hover { background: var(--ai-red-dk); }
@media(max-width:680px){
  .ai-searchbar { flex-direction: column; border-radius: 10px; }
  .ai-sf { border-right: none; border-bottom: 1px solid var(--ai-border); }
  .ai-sf--loc, .ai-sf--cat { flex: 1; }
  .ai-sbtn { padding: 16px; justify-content: center; }
}

/* Category pills */
.ai-hero-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ai-hpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 6px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.82); text-decoration: none;
  font-size: 12px; font-weight: 500; transition: all .2s; letter-spacing: 0.02em;
}
.ai-hpill:hover { background: rgba(232,25,44,0.2); border-color: rgba(232,25,44,0.4); color: #fff; }
.ai-hpill-n { background: rgba(232,25,44,0.3); border-radius: 4px; padding: 1px 6px; font-size: 10px; font-weight: 700; }

/* ============================================================
   STATS STRIP
   ============================================================ */
.ai-stats {
  background: var(--ai-white);
  border-bottom: 3px solid var(--ai-red);
}
.ai-stats-inner {
  max-width: var(--ai-max); margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap;
}
.ai-stat {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 16px; border-right: 1px solid var(--ai-border); text-align: center;
}
.ai-stat:last-child { border-right: none; }
.ai-stat-n {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: 32px; font-weight: 700; color: var(--ai-red); line-height: 1;
}
.ai-stat-l { font-size: 10px; font-weight: 600; color: var(--ai-light); text-transform: uppercase; letter-spacing: .1em; margin-top: 4px; }
@media(max-width:480px){
  .ai-stat { min-width: 50%; border-right: none; }
  .ai-stat:nth-child(odd) { border-right: 1px solid var(--ai-border); }
  .ai-stat:nth-child(n+3) { border-top: 1px solid var(--ai-border); }
}

/* ============================================================
   SECTION LAYOUT
   ============================================================ */
.ai-section { padding: 60px 28px; max-width: var(--ai-max); margin: 0 auto; }
.ai-section--gray { background: var(--ai-gray); }

.ai-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 14px; }
.ai-section-lbl {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ai-red); margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.ai-section-lbl::before { content: ''; width: 20px; height: 2px; background: var(--ai-red); display: inline-block; }
.ai-section-title {
  font-family: 'Rajdhani', 'Inter', sans-serif;
  font-size: 30px; font-weight: 700; color: var(--ai-text); margin: 0; line-height: 1.15;
}
.ai-section-sub { font-size: 14px; color: var(--ai-muted); margin-top: 4px; }
.ai-view-all {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--ai-red);
  border: 1.5px solid var(--ai-red); border-radius: var(--ai-r);
  padding: 8px 18px; transition: all .2s;
}
.ai-view-all:hover { background: var(--ai-red); color: #fff; }

/* ============================================================
   LISTING CARDS
   ============================================================ */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media(max-width:960px){ .ai-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:540px){ .ai-grid { grid-template-columns: 1fr; } }

.ai-card {
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.ai-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); transform: translateY(-4px); border-color: rgba(232,25,44,0.3); }

/* Red left accent stripe on featured */
.ai-card--feat { border-left: 3px solid var(--ai-red); }

.ai-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--ai-gray); position: relative; }
.ai-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ai-card:hover .ai-card__img img { transform: scale(1.05); }
.ai-card__img-ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
}
.ai-card__img-ph span {
  font-family: 'Rajdhani', sans-serif;
  font-size: 44px; font-weight: 700; color: var(--ai-red); opacity: .5; letter-spacing: -2px;
}

.ai-card__body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 7px; }

.ai-card__badges { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-b { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .03em; }
.ai-b--cat { background: #FFF0F1; color: var(--ai-red-dk); }
.ai-b--ok  { background: #E8F5E9; color: #2E7D32; }
.ai-b--feat{ background: var(--ai-dark); color: #fff; }
.ai-b--sub { background: #EEF2FF; color: #3730A3; }

.ai-card__title { font-size: 15px; font-weight: 700; color: var(--ai-text); margin: 0; line-height: 1.3; }
.ai-card__title a { color: inherit; }
.ai-card__title a:hover { color: var(--ai-red); }
.ai-card__tag { font-size: 12px; color: var(--ai-muted); }
.ai-card__loc { font-size: 12px; color: var(--ai-muted); display: flex; align-items: center; gap: 4px; }
.ai-card__loc svg { width: 11px; height: 11px; flex-shrink: 0; }
.ai-card__exc { font-size: 12px; color: var(--ai-muted); line-height: 1.55; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-card__foot { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--ai-border); }

/* Buttons */
.ai-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--ai-r); font-size: 13px; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer; border: none; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.ai-btn--red { background: var(--ai-red); color: #fff; }
.ai-btn--red:hover { background: var(--ai-red-dk); }
.ai-btn--dark { background: var(--ai-dark); color: #fff; }
.ai-btn--dark:hover { background: #0D0D1F; }
.ai-btn--ghost { background: transparent; border: 1.5px solid var(--ai-border); color: var(--ai-text); }
.ai-btn--ghost:hover { border-color: var(--ai-red); color: var(--ai-red); }
.ai-btn--sm { padding: 6px 12px; font-size: 12px; }
.ai-btn--full { width: 100%; justify-content: center; padding: 12px; }

.ai-no-results { text-align: center; padding: 60px 20px; color: var(--ai-muted); }
.ai-no-results svg { width: 48px; height: 48px; color: var(--ai-border); margin-bottom: 14px; }

/* ============================================================
   DIRECTORY PAGE CONTROLS
   ============================================================ */
.ai-controls {
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: var(--ai-r-lg);
  padding: 16px 20px; margin-bottom: 28px;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.ai-controls input[type=text], .ai-controls select {
  padding: 9px 14px; font-size: 14px; font-family: 'Inter', sans-serif;
  border: 1px solid var(--ai-border); border-radius: var(--ai-r);
  color: var(--ai-text); background: var(--ai-white); outline: none; transition: border-color .2s;
}
.ai-controls input[type=text]:focus, .ai-controls select:focus { border-color: var(--ai-red); }
.ai-controls input[type=text] { flex: 1; min-width: 200px; }
.ai-count { font-size: 13px; color: var(--ai-muted); margin-bottom: 16px; }

/* ============================================================
   BLOG + SIDEBAR LAYOUT
   ============================================================ */
.ai-blog-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media(max-width:960px){ .ai-blog-wrap { grid-template-columns: 1fr; } }

/* Metro blog grid */
.ai-metro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ai-mc { border-radius: var(--ai-r-lg); overflow: hidden; background: var(--ai-white); border: 1px solid var(--ai-border); transition: box-shadow .22s, transform .22s; }
.ai-mc:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.1); transform: translateY(-3px); }
.ai-mc--hero { grid-column: span 2; grid-row: span 2; }
.ai-mc a { text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.ai-mc__img { overflow: hidden; }
.ai-mc--hero .ai-mc__img { height: 260px; }
.ai-mc:not(.ai-mc--hero) .ai-mc__img { height: 180px; }
.ai-mc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s; }
.ai-mc:hover .ai-mc__img img { transform: scale(1.05); }
.ai-mc__ph { width: 100%; height: 100%; background: var(--ai-dark); display: flex; align-items: center; justify-content: center; }
.ai-mc__ph span { font-family: 'Rajdhani', sans-serif; font-size: 56px; font-weight: 700; color: var(--ai-red); opacity: .3; }
.ai-mc__bd { padding: 16px 18px; flex: 1; }
.ai-mc--hero .ai-mc__bd { padding: 20px 22px; }
.ai-mc__cat { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ai-red); background: var(--ai-red-lt); padding: 3px 8px; border-radius: 4px; margin-bottom: 9px; }
.ai-mc__ttl { font-size: 14px; font-weight: 700; color: var(--ai-text); line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ai-mc--hero .ai-mc__ttl { font-size: 20px; -webkit-line-clamp: 2; }
.ai-mc__exc { font-size: 13px; color: var(--ai-muted); line-height: 1.6; margin-bottom: 8px; }
.ai-mc__meta { font-size: 11px; color: var(--ai-light); display: flex; gap: 10px; padding-top: 8px; border-top: 1px solid var(--ai-border); margin-top: auto; }
@media(max-width:700px){ .ai-metro { grid-template-columns: 1fr 1fr; } .ai-mc--hero { grid-column: 1/3; grid-row: auto; } }
@media(max-width:460px){ .ai-metro { grid-template-columns: 1fr; } .ai-mc--hero { grid-column: auto; } }

/* Sidebar widgets */
.ai-sb { display: flex; flex-direction: column; gap: 18px; }
.ai-sw { background: var(--ai-white); border: 1px solid var(--ai-border); border-radius: var(--ai-r-lg); overflow: hidden; }
.ai-sw__hd {
  padding: 13px 18px; border-bottom: 1px solid var(--ai-border);
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ai-muted); background: var(--ai-gray);
  display: flex; align-items: center; gap: 6px;
}
.ai-sw__hd::before { content: ''; width: 14px; height: 2px; background: var(--ai-red); }
.ai-sw__bd { padding: 14px 18px; }
.ai-ws { display: flex; border: 1px solid var(--ai-border); border-radius: var(--ai-r); overflow: hidden; }
.ai-ws input { flex: 1; border: none; outline: none; padding: 9px 13px; font-size: 13px; font-family: 'Inter',sans-serif; color: var(--ai-text); background: transparent; }
.ai-ws button { padding: 0 13px; background: var(--ai-red); border: none; cursor: pointer; color: #fff; display: flex; align-items: center; }
.ai-ws svg { width: 14px; height: 14px; }
.ai-cl { list-style: none; margin: 0; padding: 0; }
.ai-cl li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--ai-gray); }
.ai-cl li:last-child { border-bottom: none; }
.ai-cl li a { font-size: 13px; color: var(--ai-text); text-decoration: none; transition: color .14s; }
.ai-cl li a:hover { color: var(--ai-red); }
.ai-cl-n { font-size: 10px; background: var(--ai-gray); color: var(--ai-muted); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--ai-border); font-weight: 600; }
.ai-sw--cta { border: none; background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%); }
.ai-sw--cta .ai-sw__hd { background: rgba(232,25,44,0.15); border-bottom: none; color: rgba(255,255,255,.5); }
.ai-sw--cta .ai-sw__hd::before { background: var(--ai-red); }
.ai-cta-bd { padding: 16px 18px 20px; text-align: center; }
.ai-cta-ico { width: 52px; height: 52px; border-radius: 12px; background: rgba(232,25,44,0.15); border: 1px solid rgba(232,25,44,0.3); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; }
.ai-cta-ico svg { width: 26px; height: 26px; color: var(--ai-red); }
.ai-cta-h { font-family: 'Rajdhani','Inter',sans-serif; font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 7px; }
.ai-cta-p { font-size: 12px; color: rgba(255,255,255,.6); margin: 0 0 16px; line-height: 1.55; }
.ai-rp { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--ai-gray); }
.ai-rp:last-child { border-bottom: none; }
.ai-rp__img { flex-shrink: 0; width: 54px; height: 54px; border-radius: var(--ai-r); overflow: hidden; background: var(--ai-gray); }
.ai-rp__img img { width: 100%; height: 100%; object-fit: cover; }
.ai-rp a { font-size: 13px; font-weight: 600; color: var(--ai-text); text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ai-rp a:hover { color: var(--ai-red); }
.ai-rp span { font-size: 11px; color: var(--ai-light); display: block; margin-top: 3px; }

/* ============================================================
   SINGLE LISTING PAGE
   ============================================================ */
.ai-single { font-family: 'Inter', sans-serif; color: var(--ai-text); }
.ai-single * { box-sizing: border-box; }

/* Breadcrumb */
.ai-bc { background: var(--ai-gray); border-bottom: 1px solid var(--ai-border); padding: 10px 0; }
.ai-bc-in { max-width: var(--ai-max); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 7px; font-size: 12px; flex-wrap: wrap; }
.ai-bc-in a { color: var(--ai-red); text-decoration: none; }
.ai-bc-in a:hover { text-decoration: underline; }
.ai-bc-sep { color: var(--ai-light); }
.ai-bc-cur { color: var(--ai-muted); }

/* Hero */
.ai-lhero { position: relative; overflow: hidden; }
.ai-lhero--img { height: 380px; }
.ai-lhero--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-lhero--ph {
  height: 300px;
  background: linear-gradient(135deg, #0D0D1F 0%, #1A1A2E 60%, #16213E 100%);
  display: flex; align-items: center; justify-content: center;
}
.ai-lhero-ph-txt { font-family: 'Rajdhani', sans-serif; font-size: 100px; font-weight: 700; color: var(--ai-red); opacity: .15; letter-spacing: -4px; }
.ai-lhero-ov { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,26,0.92) 0%, rgba(10,10,26,0.45) 55%, transparent 100%); }
.ai-lhero-ct { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px; }
.ai-lhero-ct-in { max-width: var(--ai-max); margin: 0 auto; }
.ai-lbadges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ai-lb { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 4px; letter-spacing: .04em; }
.ai-lb--cat { background: var(--ai-red); color: #fff; }
.ai-lb--ok  { background: #2E7D32; color: #fff; }
.ai-lb--feat{ background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.ai-lhero-name { font-family: 'Rajdhani','Inter',sans-serif; font-size: clamp(24px,4vw,46px); font-weight: 700; color: #fff; margin: 0 0 6px; line-height: 1.1; }
.ai-lhero-tag { font-size: 15px; color: rgba(255,255,255,.68); margin: 0 0 12px; }
.ai-lhero-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ai-lhero-acts a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--ai-r); font-size: 13px; font-weight: 700; font-family: 'Inter',sans-serif; text-decoration: none; transition: all .2s; }
.ai-lhero-acts .call { background: var(--ai-red); color: #fff; }
.ai-lhero-acts .call:hover { background: var(--ai-red-dk); }
.ai-lhero-acts .wa { background: #25D366; color: #fff; }
.ai-lhero-acts .wa:hover { background: #1DA851; }
.ai-lhero-acts .web { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.ai-lhero-acts .web:hover { background: rgba(255,255,255,.22); }

/* Body layout */
.ai-lbody { max-width: var(--ai-max); margin: 0 auto; padding: 36px 28px 60px; display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media(max-width:860px){ .ai-lbody { grid-template-columns: 1fr; } }
@media(max-width:540px){ .ai-lbody { padding: 20px 16px 48px; } }

/* Detail cards */
.ai-lcard { background: var(--ai-white); border: 1px solid var(--ai-border); border-radius: var(--ai-r-lg); overflow: hidden; margin-bottom: 18px; }
.ai-lcard:last-child { margin-bottom: 0; }
.ai-lcard-hd { padding: 14px 20px; border-bottom: 1px solid var(--ai-border); display: flex; align-items: center; gap: 10px; background: var(--ai-gray); }
.ai-lcard-ico { width: 32px; height: 32px; border-radius: 6px; background: var(--ai-red-lt); border: 1px solid rgba(232,25,44,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-lcard-ico svg { width: 15px; height: 15px; color: var(--ai-red); }
.ai-lcard-ttl { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ai-text); margin: 0; }
.ai-lcard-bd { padding: 20px; }
.ai-about { font-size: 15px; line-height: 1.8; color: #374151; }
.ai-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:480px){ .ai-info { grid-template-columns: 1fr; } }
.ai-il { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--ai-light); margin-bottom: 3px; }
.ai-iv { font-size: 14px; font-weight: 600; color: var(--ai-text); }
.ai-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ai-tag { font-size: 11px; background: var(--ai-gray); color: var(--ai-muted); padding: 3px 10px; border-radius: 4px; border: 1px solid var(--ai-border); }

/* Contact sidebar */
.ai-cc { background: var(--ai-white); border: 1px solid var(--ai-border); border-radius: var(--ai-r-lg); overflow: hidden; margin-bottom: 14px; }
.ai-cc-hd { padding: 12px 18px; background: var(--ai-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); display: flex; align-items: center; gap: 6px; }
.ai-cc-hd::before { content: ''; width: 14px; height: 2px; background: var(--ai-red); }
.ai-cr { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--ai-gray); transition: background .15s; }
.ai-cr:last-child { border-bottom: none; }
.ai-cr:hover { background: var(--ai-gray); }
.ai-ci { width: 34px; height: 34px; border-radius: 6px; background: var(--ai-red-lt); border: 1px solid rgba(232,25,44,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-ci svg { width: 14px; height: 14px; color: var(--ai-red); }
.ai-cl2 { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ai-light); margin-bottom: 1px; }
.ai-cv { font-size: 13px; font-weight: 600; color: var(--ai-text); }
.ai-cv a { color: var(--ai-red); text-decoration: none; }
.ai-cv a:hover { text-decoration: underline; }
.ai-soc { display: flex; gap: 8px; padding: 12px 18px; }
.ai-sb2 { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--ai-border); display: flex; align-items: center; justify-content: center; color: var(--ai-muted); text-decoration: none; font-weight: 700; font-size: 12px; transition: all .2s; }
.ai-sb2:hover { background: var(--ai-red); color: #fff; border-color: var(--ai-red); }
.ai-qa { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ai-qa a { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px; border-radius: var(--ai-r); font-size: 13px; font-weight: 700; font-family: 'Inter',sans-serif; text-decoration: none; border: 1.5px solid var(--ai-border); color: var(--ai-text); transition: all .2s; }
.ai-qa a.primary { background: var(--ai-red); color: #fff; border-color: var(--ai-red); }
.ai-qa a.primary:hover { background: var(--ai-red-dk); }
.ai-qa a:not(.primary):hover { border-color: var(--ai-red); color: var(--ai-red); }

/* Map */
.ai-map iframe { width: 100%; height: 260px; border: none; display: block; }

/* Reviews */
.ai-rv { border: 1px solid var(--ai-border); border-radius: var(--ai-r); padding: 16px; margin-bottom: 12px; }
.ai-rv-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 9px; flex-wrap: wrap; gap: 8px; }
.ai-rv-ar { display: flex; align-items: center; gap: 10px; }
.ai-rv-av { width: 34px; height: 34px; border-radius: 50%; background: var(--ai-red-lt); border: 1px solid rgba(232,25,44,.15); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ai-red); flex-shrink: 0; }
.ai-rv-auth { font-size: 13px; font-weight: 700; }
.ai-rv-st { font-size: 13px; letter-spacing: 1px; }
.rsf { color: #F59E0B; } .rse { color: #D1D5DB; }
.ai-rv-dt { font-size: 11px; color: var(--ai-light); }
.ai-rv-txt { font-size: 13px; color: var(--ai-muted); line-height: 1.6; }
.ai-rfc { background: var(--ai-gray); border: 1px solid var(--ai-border); border-radius: var(--ai-r-lg); padding: 24px; margin-top: 20px; }
.ai-rfc-ttl { font-family: 'Rajdhani','Inter',sans-serif; font-size: 18px; font-weight: 700; margin: 0 0 18px; }
.ai-rfg { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:480px){ .ai-rfg { grid-template-columns: 1fr; } }
.ai-rff { display: flex; flex-direction: column; gap: 4px; }
.ai-rfc-full { grid-column: 1/-1; }
.ai-rff label { font-size: 12px; font-weight: 600; color: var(--ai-text); }
.ai-rff input, .ai-rff textarea { padding: 10px 13px; font-size: 13px; border: 1px solid var(--ai-border); border-radius: var(--ai-r); font-family: 'Inter',sans-serif; color: var(--ai-text); background: var(--ai-white); outline: none; transition: border-color .2s; width: 100%; }
.ai-rff input:focus, .ai-rff textarea:focus { border-color: var(--ai-red); }
.ai-rff textarea { resize: vertical; min-height: 90px; }
.ai-sp { display: flex; gap: 4px; font-size: 28px; cursor: pointer; }
.ai-sp span { color: #D1D5DB; transition: color .1s; }
.ai-sp:hover span { color: #F59E0B; }
.ai-sp span:hover ~ span { color: #D1D5DB; }
.ai-sp span.lit { color: #F59E0B; }
.ai-rfm { margin-top: 12px; padding: 10px 14px; border-radius: var(--ai-r); font-size: 13px; display: none; }
.ai-rfm.ok  { background: #F0FDF4; color: #166534; border: 1px solid #86EFAC; display: block; }
.ai-rfm.err { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; display: block; }

/* ============================================================
   BLOG ARCHIVE (archive-blog.php)
   ============================================================ */
.ai-blog-hero { background: var(--ai-dark); background-image: linear-gradient(135deg,#0D0D1F 0%,#1A1A2E 60%,#16213E 100%); padding: 56px 28px; position: relative; overflow: hidden; }
.ai-blog-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%,rgba(232,25,44,.12) 0%,transparent 55%); pointer-events: none; }
.ai-blog-hero-in { max-width: var(--ai-max); margin: 0 auto; position: relative; z-index: 1; }
.ai-blog-hero-logo { margin-bottom: 20px; }
.ai-blog-hero-logo img { height: 52px; }
.ai-blog-hero-lbl { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ai-red); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.ai-blog-hero-lbl::before { content: ''; width: 20px; height: 2px; background: var(--ai-red); }
.ai-blog-hero-title { font-family: 'Rajdhani','Inter',sans-serif; font-size: clamp(28px,5vw,50px); font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.1; }
.ai-blog-hero-sub { font-size: 15px; color: rgba(255,255,255,.62); margin: 0 0 28px; }
.ai-blog-search { background: var(--ai-white); border-radius: var(--ai-r); display: flex; overflow: hidden; max-width: 480px; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.ai-blog-search input { flex: 1; border: none; outline: none; padding: 14px 16px; font-size: 14px; font-family: 'Inter',sans-serif; color: var(--ai-text); }
.ai-blog-search button { padding: 0 20px; background: var(--ai-red); border: none; cursor: pointer; color: #fff; font-size: 13px; font-weight: 700; font-family: 'Inter',sans-serif; white-space: nowrap; transition: background .2s; }
.ai-blog-search button:hover { background: var(--ai-red-dk); }
.ai-blog-body { max-width: var(--ai-max); margin: 0 auto; padding: 48px 28px 64px; display: grid; grid-template-columns: 1fr 290px; gap: 40px; align-items: start; }
@media(max-width:900px){ .ai-blog-body { grid-template-columns: 1fr; } }
.ai-pag { display: flex; justify-content: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.ai-pag a, .ai-pag span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--ai-r); font-size: 13px; font-weight: 600; text-decoration: none; border: 1px solid var(--ai-border); color: var(--ai-text); transition: all .15s; }
.ai-pag a:hover { border-color: var(--ai-red); color: var(--ai-red); }
.ai-pag span.current { background: var(--ai-red); color: #fff; border-color: var(--ai-red); }

/* ============================================================
   DIRECTORY PAGE — SEARCH BAR (Full redesign)
   ============================================================ */
.bd-dir-page { font-family:'Inter',-apple-system,sans-serif; }

.ai-dir-search-wrap {
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ai-dir-search {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px;
}
.ai-dir-search-field {
  flex: 1; min-width: 160px;
  display: flex; align-items: center; gap: 9px;
  padding: 0 14px;
  border-right: 1px solid var(--ai-border);
  background: var(--ai-white); border-radius: 10px;
  transition: background .15s;
}
.ai-dir-search-field:hover { background: var(--ai-gray); }
.ai-dir-search-field--kw { flex: 2; min-width: 220px; }
.ai-dir-search-field svg { flex-shrink: 0; width: 16px; height: 16px; color: #94A3B8; }
.ai-dir-search-field input,
.ai-dir-search-field select {
  border: none; outline: none; width: 100%;
  font-size: 14px; font-family: 'Inter',sans-serif;
  color: var(--ai-text); padding: 13px 0; background: transparent;
  -webkit-appearance: none; cursor: pointer;
}
.ai-dir-search-field input::placeholder { color: #94A3B8; }

.ai-dir-search-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  background: var(--ai-red); color: #fff; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  font-family: 'Inter',sans-serif; cursor: pointer;
  transition: background .2s, transform .15s;
}
.ai-dir-search-btn:hover { background: var(--ai-red-dk); transform: scale(1.02); }

.ai-dir-clear {
  display: flex; align-items: center;
  padding: 12px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600; color: var(--ai-muted);
  text-decoration: none; transition: all .15s; background: var(--ai-gray);
}
.ai-dir-clear:hover { background: #FEF2F2; color: var(--ai-red); }

@media(max-width:680px){
  .ai-dir-search-wrap { padding: 4px; }
  .ai-dir-search { flex-direction: column; }
  .ai-dir-search-field { border-right: none; border-bottom: 1px solid var(--ai-border); border-radius: 8px; }
  .ai-dir-search-btn { border-radius: 8px; justify-content: center; padding: 13px; }
}

/* Meta row */
.ai-dir-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.ai-dir-count { font-size: 14px; font-weight: 600; color: var(--ai-text); }
.ai-dir-filter-tag {
  font-size: 11px; font-weight: 600; background: var(--ai-red-lt); color: var(--ai-red);
  padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(232,25,44,.15);
}

/* Empty state */
.ai-empty-state {
  text-align: center; padding: 64px 20px; color: var(--ai-muted);
}
.ai-empty-state svg { color: var(--ai-border); margin-bottom: 16px; }
.ai-empty-state h3 { font-size: 18px; font-weight: 700; color: var(--ai-text); margin: 0 0 8px; }
.ai-empty-state p { font-size: 14px; margin: 0 0 16px; }

/* ============================================================
   LISTING CARD — Complete redesign with logo
   ============================================================ */
.ai-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
@media(max-width:960px){ .ai-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:540px){ .ai-grid { grid-template-columns: 1fr; } }

.ai-lcard-item {
  background: var(--ai-white);
  border: 1px solid var(--ai-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .22s, transform .22s, border-color .22s;
  position: relative;
}
.ai-lcard-item:hover {
  box-shadow: 0 10px 36px rgba(0,0,0,0.10);
  transform: translateY(-5px);
  border-color: rgba(232,25,44,0.2);
}
.ai-lcard-item--feat {
  border-color: var(--ai-red);
  border-top: none; /* feat bar replaces top border */
}

/* Featured ribbon */
.ai-lcard-feat-bar {
  background: var(--ai-red);
  color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; text-align: center;
}

/* Top section: logo + name */
.ai-lcard-top {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 18px 12px;
}

/* Logo box */
.ai-lcard-logo {
  flex-shrink: 0;
  width: 64px; height: 64px;
  border-radius: 10px;
  border: 1px solid var(--ai-border);
  background: var(--ai-gray);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ai-lcard-logo img {
  width: 100%; height: 100%; object-fit: contain; padding: 6px;
}
.ai-lcard-initials {
  font-family: 'Rajdhani','Inter',sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ai-red); letter-spacing: -1px;
}

/* Name + badges */
.ai-lcard-info { flex: 1; min-width: 0; }
.ai-lcard-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.ai-lb2 {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 4px; letter-spacing: .03em;
}
.ai-lb2--cat { background: #FFF0F1; color: var(--ai-red-dk); }
.ai-lb2--ok  { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }

.ai-lcard-name {
  font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px;
}
.ai-lcard-name a { color: var(--ai-text); text-decoration: none; }
.ai-lcard-name a:hover { color: var(--ai-red); }
.ai-lcard-tagline { font-size: 12px; color: var(--ai-muted); margin: 0; line-height: 1.4; }

/* Mid: location + rating */
.ai-lcard-mid {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px 10px; gap: 8px; flex-wrap: wrap;
}
.ai-lcard-loc {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--ai-muted);
}
.ai-lcard-loc svg { color: var(--ai-red); opacity: .7; }
.ai-lcard-rating { display: flex; align-items: center; gap: 5px; }
.ai-lcard-stars { font-size: 13px; letter-spacing: 1px; }
.sf { color: #F59E0B; } .se { color: #D1D5DB; }
.ai-lcard-rnum { font-size: 12px; font-weight: 700; color: var(--ai-muted); }

/* Excerpt */
.ai-lcard-exc {
  font-size: 12px; color: var(--ai-muted); line-height: 1.55;
  margin: 0; padding: 0 18px 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}

/* Footer buttons */
.ai-lcard-foot {
  display: flex; gap: 0;
  border-top: 1px solid var(--ai-border);
  margin-top: auto;
}
.ai-lcard-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 10px; font-size: 13px; font-weight: 700;
  font-family: 'Inter',sans-serif; text-decoration: none; border: none;
  cursor: pointer; transition: all .18s; line-height: 1;
}
.ai-lcard-btn:first-child { border-right: 1px solid var(--ai-border); }

/* View Profile — dark navy */
.ai-lcard-btn--view {
  background: var(--ai-dark); color: #fff;
}
.ai-lcard-btn--view:hover { background: #0D0D1F; }

/* Call — red */
.ai-lcard-btn--call {
  background: var(--ai-white); color: var(--ai-red);
}
.ai-lcard-btn--call:hover { background: var(--ai-red); color: #fff; }
