/* ======================================================
   UNICLA Convenios — Frontend Styles v2
   Aesthetic: Refined Contemporary Academic
   Fonts: loaded via wp_enqueue_style in class-shortcode.php
   AVE theme + Bootstrap 3 compatibility layer included.
====================================================== */

/* ── Variables ───────────────────────────────────────── */
.conv-wrapper {
  --navy:        #0B1E3D;
  --navy2:       #1A3660;
  --amber:       #0099ff;
  --amber-lt:    #e0f4ff;
  --cream:       #F7F4EE;
  --white:       #FFFFFF;
  --border:      #E0DBD2;
  --text:        #1C1A18;
  --muted:       #7A7267;
  --green:       #1A5C35;
  --green-lt:    #E4F2EB;
  --green-bd:    #A8D5B8;
  --blue:        #0F4C86;
  --blue-lt:     #E0EEF8;
  --blue-bd:     #A0C4E4;
  --red:         #7C1D20;
  --red-lt:      #F7E4E4;
  --red-bd:      #E4AAAC;
  --warn:        #7A5000;
  --warn-lt:     #FFF5D6;
  --warn-bd:     #F0D070;
  --radius:      10px;
  --shadow:      0 2px 14px rgba(11,30,61,.06);
  --shadow-hover:0 12px 40px rgba(11,30,61,.14);
  --ease:        cubic-bezier(.25,.46,.45,.94);
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif;
  color: var(--text);
}


/* ══════════════════════════════════════════════════════
   AVE THEME / BOOTSTRAP 3 COMPATIBILITY RESETS
   These counteract global rules from the theme that
   break our components. Scoped to .conv-wrapper so
   they don't affect the rest of the page.
══════════════════════════════════════════════════════ */

/* AVE: h1–h6 { font-family:'Roboto'; font-size:32px+; margin:1.25em 0 } */
.conv-wrapper h1, .conv-wrapper h2, .conv-wrapper h3,
.conv-wrapper h4, .conv-wrapper h5, .conv-wrapper h6,
.conv-card h1, .conv-card h2, .conv-card h3,
.conv-card h4, .conv-card h5, .conv-card h6,
.conv-modal h1, .conv-modal h2, .conv-modal h3,
.conv-modal h4, .conv-modal h5, .conv-modal h6 {
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  font-size: inherit !important;
  line-height: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  font-weight: inherit !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* AVE theme.css: img { height: auto } — breaks our object-fit cards */
.conv-card-image img {
  height: 100% !important;
  max-width: 100% !important;
}
/* Logo images need auto height */
.conv-card-logo img,
.conv-modal-header #conv-modal-logo img {
  height: auto !important;
  max-height: 44px;
}

/* AVE theme.css: dd { margin-left:1.5em; margin-top:0.5em; margin-bottom:0.5em } */
.conv-modal-dl dd {
  margin: 0 !important;
}

/* Bootstrap 3: a { color:#337ab7 } a:hover { text-decoration:underline } */
.conv-wrapper a,
.conv-wrapper a:hover,
.conv-wrapper a:focus,
.conv-wrapper a:visited {
  text-decoration: none !important;
}

/* Bootstrap 3 .form-control adds box-shadow inset + border #ccc */
.conv-search-box input,
.conv-filter-row select {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

/* Bootstrap 3: input[type="search"] { -webkit-appearance: textfield } */
.conv-search-box input[type="text"],
.conv-search-box input[type="search"] {
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* ══════════════════════════════════════════════════════
   WRAPPER
══════════════════════════════════════════════════════ */

.conv-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════
   FILTERS — Dark command panel
══════════════════════════════════════════════════════ */

.conv-filters {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 36px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11,30,61,.22);
  position: relative;
}
/* Amber accent stripe at top */
.conv-filters::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0099ff, #33b5ff 55%, transparent 100%);
  z-index: 1;
}

/* Search area */
.conv-search-box {
  display: flex;
  gap: 10px;
  padding: 28px 28px 18px;
  margin-bottom: 0;
  border: none !important;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.conv-search-box:focus-within {
  border: none !important;
  box-shadow: none !important;
}
.conv-search-box input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px 14px 46px !important;
  border: 1.5px solid rgba(255,255,255,.18) !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  background-color: rgba(255,255,255,.07) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='.42'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 16px center !important;
  color: var(--white) !important;
  outline: none !important;
  height: auto !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: border-color var(--ease) .18s, background-color var(--ease) .18s;
}
.conv-search-box input::placeholder { color: rgba(255,255,255,.36) !important; }
.conv-search-box input:focus {
  border-color: var(--amber) !important;
  background-color: rgba(255,255,255,.11) !important;
  box-shadow: none !important;
}

#conv-search-btn {
  padding: 14px 28px !important;
  background: #0054f4 !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer !important;
  transition: background var(--ease) .18s, transform var(--ease) .15s, box-shadow var(--ease) .18s !important;
  white-space: nowrap;
  height: auto !important;
  line-height: 1 !important;
  box-shadow: 0 4px 16px rgba(0,84,244,.35) !important;
  flex-shrink: 0;
}
#conv-search-btn:hover {
  background: #0044cc !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,84,244,.48) !important;
}

/* Filter pill bar */
.conv-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 28px 22px;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.08);
}
.conv-filter-row::before {
  content: 'Filtrar:';
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif;
  margin-right: 4px;
}
.conv-filter-row select {
  padding: 7px 28px 7px 13px !important;
  border: 1.5px solid rgba(255,255,255,.18) !important;
  border-radius: 100px !important;
  font-size: 12px !important;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  color: rgba(255,255,255,.82) !important;
  background-color: rgba(255,255,255,.07) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round' opacity='.55'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 11px center !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  min-width: 0;
  cursor: pointer;
  height: auto !important;
  transition: border-color var(--ease) .18s, background-color var(--ease) .18s;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
.conv-filter-row select:hover {
  border-color: rgba(255,255,255,.32) !important;
  background-color: rgba(255,255,255,.13) !important;
}
.conv-filter-row select:focus {
  outline: none !important;
  border-color: var(--amber) !important;
  background-color: rgba(255,255,255,.14) !important;
  box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════
   RESULTS COUNT
══════════════════════════════════════════════════════ */

.conv-results-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 2px 22px;
}
.conv-results-count {
  position: relative;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.conv-results-count::after {
  content: '';
  position: absolute;
  left: 1px;
  right: -2px;
  bottom: -6px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.conv-results-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  transform: translateY(-1px);
}
@keyframes conv-count-pulse {
  0%   { opacity: 0; transform: translateY(-4px); }
  60%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(0); }
}
.conv-results-bar.conv-pulse .conv-results-count,
.conv-results-bar.conv-pulse .conv-results-label {
  animation: conv-count-pulse .32s var(--ease) both;
}

/* ══════════════════════════════════════════════════════
   GRID
══════════════════════════════════════════════════════ */

.conv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

@keyframes conv-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.conv-card { animation: conv-rise .45s var(--ease) both; }
.conv-card:nth-child(1)  { animation-delay: .04s; }
.conv-card:nth-child(2)  { animation-delay: .09s; }
.conv-card:nth-child(3)  { animation-delay: .14s; }
.conv-card:nth-child(4)  { animation-delay: .19s; }
.conv-card:nth-child(5)  { animation-delay: .24s; }
.conv-card:nth-child(6)  { animation-delay: .29s; }
.conv-card:nth-child(7)  { animation-delay: .34s; }
.conv-card:nth-child(8)  { animation-delay: .39s; }
.conv-card:nth-child(9)  { animation-delay: .44s; }
.conv-card:nth-child(10) { animation-delay: .49s; }

/* ══════════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════════ */

.conv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition:
    box-shadow var(--ease) .22s,
    transform var(--ease) .22s,
    border-color var(--ease) .22s;
  cursor: pointer;
  position: relative;
}
/* Amber accent bar on hover */
.conv-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease) .22s;
  z-index: 1;
}
.conv-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(0,153,255,.22);
}
.conv-card:hover::before { transform: scaleY(1); }

/* Card image */
.conv-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--white);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
}
.conv-card-image img {
  width: 100%;
  height: 100% !important; /* AVE: img { height: auto } override */
  object-fit: contain; /* logos institucionales: mostrar completos, no recortar */
  object-position: center;
  display: block;
  transition: transform var(--ease) .42s;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.conv-card:hover .conv-card-image img { transform: scale(1.05); }

.conv-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #EDE8E0 0%, #DDD8CE 100%);
}

/* Card logo */
.conv-card-logo {
  display: flex;
  justify-content: center;
  padding: 12px 16px 0;
  flex-shrink: 0;
}
.conv-card-logo img {
  height: auto !important;
  max-height: 44px;
  max-width: 110px;
  width: auto;
  object-fit: contain;
  display: block;
  border: none !important;
  padding: 0 !important;
}

/* Card body */
.conv-card-body {
  padding: 16px 18px 0;
  flex: 1;
}
.conv-card-title {
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.conv-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
.conv-card-location {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

.conv-card-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--muted);
  margin: 10px 0 4px;
  line-height: 1;
}
.conv-card-resumen {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Card footer */
.conv-card-footer {
  padding: 14px 18px 16px;
  margin-top: auto;
}

/* ══════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════ */

.conv-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase !important;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: .5px;
  border: 1.5px solid;
  line-height: 1.4;
}
.conv-badge-municipal  { background: var(--green-lt); color: var(--green) !important; border-color: var(--green-bd); }
.conv-badge-estatal    { background: var(--blue-lt);  color: var(--blue)  !important; border-color: var(--blue-bd); }
.conv-badge-nacional   { background: var(--red-lt);   color: var(--red)   !important; border-color: var(--red-bd); }
.conv-badge-por-vencer { background: var(--warn-lt);  color: var(--warn)  !important; border-color: var(--warn-bd); }

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */

.conv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px !important;
  border-radius: 7px !important;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  transition: background var(--ease) .18s, gap var(--ease) .18s !important;
  text-decoration: none !important;
  letter-spacing: .02em;
  line-height: 1.5 !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}
.conv-btn-primary {
  background: var(--amber) !important;
  color: var(--white) !important;
}
.conv-btn-primary:hover,
.conv-btn-primary:focus {
  background: var(--amber) !important;
  color: var(--white) !important;
  text-decoration: none !important;
}
.conv-card-footer .conv-btn { width: 100%; }

.conv-ver-mas::after {
  content: '→';
  display: inline-block;
  transition: transform var(--ease) .2s;
}
.conv-ver-mas:hover::after { transform: translateX(4px); }

/* ══════════════════════════════════════════════════════
   PAGINATION
   A quiet "toolbar" that echoes the results bar above it:
   pill surface, navy fill on the active state, and the
   same amber accent used for the results-count underline
   and the filter panel's top stripe.
══════════════════════════════════════════════════════ */

.conv-pagination-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
}

.conv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
}

.conv-pagination .page-numbers {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 13px;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  color: var(--navy) !important;
  border: 1.5px solid transparent;
  text-decoration: none !important;
  transition:
    background var(--ease) .18s,
    color var(--ease) .18s,
    transform var(--ease) .15s;
}
.conv-pagination a.page-numbers { cursor: pointer; }
.conv-pagination a.page-numbers:hover {
  background: var(--cream);
  transform: translateY(-1px);
}
.conv-pagination a.page-numbers:focus-visible,
.conv-pagination .conv-page-nav:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Active page: navy pill + amber "you are here" dot, echoing
   the amber underline on the results count above the grid. */
.conv-pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white) !important;
}
.conv-pagination .page-numbers.current::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  transform: translateX(-50%);
}

/* Ellipsis: quiet, no pill */
.conv-pagination .page-numbers.dots {
  width: 20px;
  height: 38px;
  color: var(--muted) !important;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: default;
}

/* Prev / Next: pill buttons with an icon, distinct from the
   round page numbers so the eye finds them immediately. */
.conv-pagination .page-numbers.conv-page-nav {
  width: auto;
  height: 38px;
  gap: 7px;
  padding: 0 18px;
  border-radius: 999px;
  border-color: var(--border);
  font-weight: 600;
  letter-spacing: .01em;
}
.conv-pagination a.conv-page-nav:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white) !important;
  transform: none;
}
.conv-page-nav-icon { flex-shrink: 0; }

.conv-pagination .conv-page-nav--disabled {
  opacity: .35;
  cursor: not-allowed;
  pointer-events: none;
}

.conv-pagination-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.conv-pagination-status strong {
  color: var(--navy);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════ */

.conv-no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 56px 0;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif;
  font-size: 16px !important;
  font-style: normal;
}

/* ══════════════════════════════════════════════════════
   MODAL OVERLAY
══════════════════════════════════════════════════════ */

.conv-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,30,61,.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  overflow-y: auto;
}

@keyframes conv-modal-in {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.conv-modal {
  background: #ffffff;
  border-radius: 14px;
  border-top: 3px solid #0099ff;
  width: 100%;
  max-width: 640px;
  position: relative;
  box-shadow: 0 24px 64px rgba(11,30,61,.22);
  animation: conv-modal-in .3s var(--ease) both;
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif;
}

.conv-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: #f0f7ff !important;
  border: 1px solid #c8e6ff !important;
  border-radius: 7px !important;
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #0099ff !important;
  z-index: 2;
  padding: 0 !important;
  box-shadow: none !important;
  transition: background var(--ease) .15s, color var(--ease) .15s, border-color var(--ease) .15s;
}
.conv-modal-close:hover {
  background: #0099ff !important;
  border-color: #0099ff !important;
  color: var(--white) !important;
}

/* Modal header */
.conv-modal-header {
  padding: 28px 32px 20px;
  background: #ffffff;
  border-bottom: 1px solid #e0f0ff;
}
.conv-modal-header #conv-modal-logo {
  margin-bottom: 12px;
}
.conv-modal-header #conv-modal-logo img {
  height: auto !important;
  max-height: 48px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
  display: block;
  border: none !important;
  padding: 0 !important;
}
.conv-modal-header h2,
#conv-modal-title {
  font-family: 'Exo 2', 'Roboto', Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--navy) !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.conv-modal-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

/* Modal body */
.conv-modal-body {
  padding: 24px 32px 32px;
  background: #ffffff;
  max-height: 65vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.conv-modal-img-wrap {
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  margin: 0 auto 24px;
  overflow: hidden;
  line-height: 0;
  flex-shrink: 0;
}
.conv-modal-body .conv-modal-img-wrap img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Date badges */
.conv-date-badge {
  display: inline-block;
  padding: 5px 12px;
  margin: 0 8px 6px 0;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.conv-date-inicio {
  background: #d1e7dd;
  border-color: #a3cfbb;
  color: #0a3622;
}
.conv-date-termino {
  background: #fff3cd;
  border-color: #ffe69c;
  color: #664d03;
}

/* Definition list */
.conv-modal-dl { margin: 0; padding: 0; }
.conv-modal-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 6px 16px;
  padding: 13px 0 13px 14px;
  border-bottom: 1px solid #e0f0ff;
  border-left: 3px solid transparent;
  transition: border-left-color var(--ease) .2s;
}
.conv-modal-row:last-child { border-bottom: none; }
.conv-modal-row:hover { border-left-color: #0099ff; }
.conv-modal-row dt {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #0099ff;
  padding-top: 2px;
  line-height: 1.4;
}
/* AVE: dd { margin-left: 1.5em } override */
.conv-modal-row dd,
.conv-modal-dl dd {
  font-size: 14px;
  color: var(--navy);
  margin: 0 !important;
  padding: 0 !important;
  white-space: pre-line;
  line-height: 1.6;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════
   AJAX LOADING STATE
══════════════════════════════════════════════════════ */

@keyframes conv-loading-pulse {
  0%   { opacity: .45; }
  50%  { opacity: .65; }
  100% { opacity: .45; }
}
.conv-grid--loading {
  pointer-events: none;
  animation: conv-loading-pulse .9s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .conv-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px;
  }
}

/* ── Mobile landscape / small tablet (≤ 640px) ── */
@media (max-width: 640px) {
  .conv-wrapper { padding: 0 4px; }

  /* Filters */
  .conv-search-box {
    flex-direction: column;
    padding: 20px 16px 14px;
    gap: 10px;
  }
  .conv-search-box input {
    width: 100% !important;
  }
  #conv-search-btn {
    width: 100% !important;
    justify-content: center;
    padding: 13px 20px !important;
  }
  .conv-filter-row {
    padding: 12px 16px 18px;
    flex-direction: column;
    align-items: stretch;
  }
  .conv-filter-row::before { margin-bottom: 2px; }
  .conv-filter-row select {
    width: 100% !important;
    min-width: 0 !important;
    border-radius: 8px !important;
  }

  /* Results count */
  .conv-results-bar { margin: 0 2px 16px; }
  .conv-results-count { font-size: 24px; }

  /* Grid */
  .conv-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Modal */
  .conv-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .conv-modal {
    border-radius: 18px 18px 0 0;
    border-top: 3px solid #0099ff;
    max-width: 100%;
    width: 100%;
    animation: conv-modal-slide-up .32s var(--ease) both;
  }
  @keyframes conv-modal-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .conv-modal-header {
    padding: 24px 20px 16px;
  }
  .conv-modal-body {
    padding: 20px 20px 32px;
  }
  .conv-modal-row {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 12px 0 12px 12px;
  }
  .conv-modal-close {
    top: 12px;
    right: 12px;
  }

  /* Pagination */
  .conv-pagination-shell { margin-top: 32px; gap: 10px; }
  .conv-pagination { gap: 2px; padding: 5px; }
  .conv-pagination .page-numbers { width: 32px; height: 32px; font-size: 12px; }
  .conv-pagination .page-numbers.dots { height: 32px; }
  .conv-pagination .page-numbers.conv-page-nav { padding: 0 12px; }
}

/* Icon-only prev/next once the row gets too tight for labels */
@media (max-width: 400px) {
  .conv-pagination .conv-page-nav span { display: none; }
  .conv-pagination .page-numbers.conv-page-nav { width: 32px; padding: 0; }
}

/* ── Tiny phones (≤ 380px) ── */
@media (max-width: 380px) {
  .conv-card-meta { flex-direction: column; align-items: flex-start; }
  .conv-card-location { margin-left: 0; }
  .conv-modal-header h2, #conv-modal-title { font-size: 18px !important; }
}
