/* ==========================================================================
   Institute Listing Module (bfx6-institute) — NEW FILE
   Hotel-style cards, search bar, states row, detail page, sticky enquiry.
   Fully responsive: desktop / tablet / mobile. Prefixed .inst-* classes
   so existing site styles are never touched.
   ========================================================================== */

/* ---------- Design tokens ---------- */
.inst-home, .inst-listing, .inst-detail, .inst-branchblog {
  --inst-navy: #1a1a5e;
  --inst-teal: #16a085;
  --inst-teal-dark: #117a65;
  --inst-gold: #f39c12;
  --inst-red: #e84118;
  --inst-text: #1f2937;
  --inst-muted: #6b7280;
  --inst-border: #e5e7eb;
  --inst-bg: #f7f8fc;
  --inst-radius: 12px;
  --inst-shadow: 0 2px 10px rgba(16, 24, 40, 0.08);
  --inst-shadow-lg: 0 10px 28px rgba(16, 24, 40, 0.14);
}

/* ---------- Shared primitives ---------- */
.inst-home .clamp-1, .inst-listing .clamp-1, .inst-detail .clamp-1,
.inst-branchblog .clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.inst-branchblog .clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.inst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  min-height: 44px; /* touch friendly */
}
.inst-btn:active { transform: scale(0.98); }
.inst-btn-primary { background: var(--inst-teal); color: #fff; box-shadow: 0 4px 12px rgba(22, 160, 133, 0.35); }
.inst-btn-primary:hover { background: var(--inst-teal-dark); color: #fff; text-decoration: none; }
.inst-btn-outline { background: #fff; color: var(--inst-teal); border-color: var(--inst-teal); }
.inst-btn-outline:hover { background: rgba(22, 160, 133, 0.08); text-decoration: none; }
.inst-btn-ghost { background: transparent; color: var(--inst-muted); }
.inst-btn-ghost:hover { color: var(--inst-text); }
.inst-btn-whatsapp { background: #25d366; color: #fff; }
.inst-btn-whatsapp:hover { background: #1eb958; color: #fff; }
.inst-btn-block { width: 100%; }

.inst-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.inst-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--inst-text);
  letter-spacing: 0.01em;
}
.inst-select, .inst-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: var(--inst-text);
  background: #fff;
  border: 1.5px solid var(--inst-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}
select.inst-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea.inst-input { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.inst-select:focus, .inst-input:focus { border-color: var(--inst-teal); box-shadow: 0 0 0 3px rgba(22, 160, 133, 0.15); }
.inst-select::placeholder, .inst-input::placeholder { color: #9ca3af; }

.inst-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  white-space: nowrap;
}
.inst-badge-verified { background: var(--inst-teal); }
.inst-badge-trusted  { background: var(--inst-gold); }
.inst-badge-plan     { background: var(--inst-navy); }

.inst-muted { color: var(--inst-muted); font-size: 13.5px; }
.inst-small { font-size: 12px; }

/* ---------- Homepage section ---------- */
.inst-home { padding: 48px 0 40px; background: #fff; }
.inst-search {
  background: linear-gradient(135deg, var(--inst-navy) 0%, #4a6cf7 100%);
  border-radius: 16px;
  padding: 30px 28px;
  box-shadow: var(--inst-shadow-lg);
  margin-bottom: 36px;
}
.inst-search-title { color: #fff; font-family: 'Poppins', sans-serif; font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.inst-search-sub { color: rgba(255, 255, 255, 0.85); font-size: 14px; margin: 0 0 20px; }
.inst-search-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1.2fr auto;
  gap: 14px;
  align-items: end;
}
.inst-search-form .inst-field-btn { min-width: 170px; }
.inst-search-form .inst-btn { width: 100%; height: 46px; }

.inst-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 18px;
  flex-wrap: wrap;
}
.inst-home-title { font-family: 'Poppins', sans-serif; font-size: 21px; font-weight: 700; color: var(--inst-text); margin: 0; }

/* ---------- Cards grid (fixed, uniform) ---------- */
.inst-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.inst-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 26px; }

.inst-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  box-shadow: var(--inst-shadow);
  overflow: hidden;
  height: 100%;
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.inst-card:hover { transform: translateY(-4px); box-shadow: var(--inst-shadow-lg); }
.inst-card-lowest { border: 2px solid var(--inst-teal); }
.inst-lowest-flag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--inst-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* photo grid: 1 main + 3 small — fixed heights, aspect preserved */
.inst-card-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 150px;
  gap: 2px;
  background: #0d1117;
  text-decoration: none;
  flex-shrink: 0;
}
.inst-photo-main { overflow: hidden; display: block; }
.inst-photo-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-photo-grid {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
  min-width: 0;
}
.inst-photo-cell { overflow: hidden; display: block; min-height: 0; }
.inst-photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-photo-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 2;
}
.inst-photo-badges .inst-badge { box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }

.inst-card-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px 16px;
  flex: 1;
  min-width: 0;
}
.inst-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.inst-card-name {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--inst-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.inst-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.inst-rating svg { width: 13px; height: 13px; fill: #f59e0b; }
.inst-rating small { font-weight: 600; color: #92400e; }

.inst-card-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--inst-muted);
  font-size: 13.5px;
}
.inst-card-loc svg { width: 14px; height: 14px; stroke: var(--inst-red); fill: none; stroke-width: 2; flex-shrink: 0; }

.inst-card-facilities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
}
.inst-card-facilities li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--inst-text);
  min-width: 0;
}
.inst-card-facilities li svg {
  width: 15px; height: 15px;
  stroke: var(--inst-teal);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.inst-card-facilities li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.inst-card-offer {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: #9a3412;
  min-width: 0;
}
.inst-offer-tag {
  background: var(--inst-red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 6px;
  flex-shrink: 0;
}
.inst-card-offer s { color: #9ca3af; flex-shrink: 0; }
.inst-card-offer strong { color: #16a34a; }
.inst-offer-course { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.inst-card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px dashed var(--inst-border);
}
.inst-fee { display: flex; flex-direction: column; }
.inst-fee-val { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: var(--inst-navy); }
.inst-fee-na { color: var(--inst-teal); font-size: 15px; }
.inst-fee-label { font-size: 11px; color: var(--inst-muted); }
.inst-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--inst-muted);
  max-width: 55%;
  min-width: 0;
}
.inst-time svg { width: 14px; height: 14px; stroke: var(--inst-muted); fill: none; stroke-width: 2; flex-shrink: 0; }

.inst-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--inst-bg);
  color: var(--inst-teal);
  border: 1.5px solid var(--inst-teal);
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  padding: 10px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 44px;
}
.inst-card-btn:hover { background: var(--inst-teal); color: #fff; text-decoration: none; }

.inst-empty {
  text-align: center;
  background: var(--inst-bg);
  border: 1px dashed var(--inst-border);
  border-radius: var(--inst-radius);
  padding: 44px 20px;
  color: var(--inst-muted);
}
.inst-empty h2 { font-family: 'Poppins', sans-serif; color: var(--inst-text); margin: 0 0 8px; }

/* ---------- Popular states row ---------- */
.inst-states {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.inst-states::-webkit-scrollbar { height: 6px; }
.inst-states::-webkit-scrollbar-thumb { background: #c7cdd8; border-radius: 3px; }
.inst-state-chip {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 150px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #f0fdf9, #ecf4ff);
  border: 1px solid #d9f0e8;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.inst-state-chip:hover { transform: translateY(-3px); box-shadow: var(--inst-shadow); text-decoration: none; }
.inst-state-chip svg { width: 20px; height: 20px; stroke: var(--inst-teal); fill: none; stroke-width: 2; }
.inst-state-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 14.5px; color: var(--inst-text); }
.inst-state-count { font-size: 12px; color: var(--inst-muted); }

/* ---------- Search results ---------- */
.inst-listing { padding: 34px 0 50px; }
.inst-lowest-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.inst-lowest-banner svg { width: 18px; height: 18px; stroke: #059669; fill: none; stroke-width: 2.5; }
.inst-lowest-banner strong { color: #059669; font-size: 16px; }

.inst-filterbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  padding: 16px;
  box-shadow: var(--inst-shadow);
  margin-bottom: 16px;
}
.inst-field-half { grid-column: span 2; }
.inst-filterbar .inst-field-check { justify-content: flex-end; align-items: flex-end; padding-bottom: 8px; }
.inst-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--inst-text); cursor: pointer; }
.inst-checkbox input { width: 18px; height: 18px; accent-color: var(--inst-teal); }
.inst-filterbar .inst-field-btn { flex-direction: row; align-items: flex-end; gap: 8px; grid-column: span 2; }
.inst-filterbar .inst-field-btn .inst-btn { flex: 1; }

.inst-result-count { color: var(--inst-muted); font-size: 14px; margin: 0 0 16px; }

.inst-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
  color: var(--inst-muted);
  font-size: 14px;
}

/* ---------- Detail page ---------- */
.inst-detail { padding: 30px 0 50px; }
.inst-detail-banner { padding: 34px 0; }
.inst-detail-banner svg.ib { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; vertical-align: -2px; }

.inst-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--inst-radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.inst-gallery-main { position: relative; height: 400px; overflow: hidden; background: #0d1117; }
.inst-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inst-gallery-badges { top: 14px; left: 14px; }
.inst-gallery-side {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  min-width: 0;
}
.inst-gallery-cell { padding: 0; border: 0; background: #0d1117; cursor: pointer; overflow: hidden; display: block; min-height: 0; }
.inst-gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s ease; }
.inst-gallery-cell:hover img { transform: scale(1.05); }

.inst-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  background: #fff;
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  padding: 16px 22px;
  box-shadow: var(--inst-shadow);
  margin-bottom: 24px;
}
.inst-summary-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.inst-summary-item a, .inst-summary-item span { display: inline-flex; align-items: center; gap: 7px; color: var(--inst-text); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.inst-summary-item a:hover { color: var(--inst-teal); }
.inst-summary-item svg { width: 16px; height: 16px; stroke: var(--inst-teal); fill: none; stroke-width: 2; flex-shrink: 0; }
.inst-summary-label { font-size: 11.5px; color: var(--inst-muted); font-weight: 500; }
.inst-rating-lg { font-size: 17px !important; }

.inst-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: start;
}

.inst-detail-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.inst-panel {
  background: #fff;
  border: 1px solid var(--inst-border);
  border-radius: var(--inst-radius);
  padding: 22px 24px;
  box-shadow: var(--inst-shadow);
}
.inst-panel h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--inst-text);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--inst-bg);
}
.inst-about { color: var(--inst-text); font-size: 14.5px; line-height: 1.7; margin: 0 0 10px; }
.inst-address { display: flex; gap: 7px; align-items: flex-start; color: var(--inst-muted); font-size: 13.5px; margin: 0; }
.inst-address svg { width: 15px; height: 15px; stroke: var(--inst-red); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 2px; }

/* course rows */
.inst-course-list { display: flex; flex-direction: column; gap: 10px; }
.inst-course-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid var(--inst-border);
  border-radius: 10px;
  background: var(--inst-bg);
  flex-wrap: wrap;
}
.inst-course-offer { background: #fff7ed; border-color: #fdba74; }
.inst-course-info { min-width: 0; flex: 1; }
.inst-course-info h3 { font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 3px; color: var(--inst-text); }
.inst-course-info p { margin: 0; }
.inst-offer-note { color: #9a3412; font-size: 12.5px; font-weight: 600; }
.inst-course-fee { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.inst-course-fee s { color: #9ca3af; font-size: 13px; }
.inst-course-fee strong { font-family: 'Poppins', sans-serif; font-size: 17px; color: var(--inst-navy); }
.inst-offer-pct {
  background: var(--inst-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 8px;
}

/* facilities grid */
.inst-facility-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}
.inst-facility-grid li {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--inst-bg);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--inst-text);
}
.inst-facility-grid li svg { width: 17px; height: 17px; stroke: var(--inst-teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* faculty */
.inst-faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.inst-faculty-card {
  text-align: center;
  background: var(--inst-bg);
  border-radius: 10px;
  padding: 16px 10px;
}
.inst-faculty-card img, .inst-faculty-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--inst-teal);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 22px;
}
.inst-faculty-card h3 { font-size: 14px; margin: 0 0 2px; color: var(--inst-text); }
.inst-faculty-card p { margin: 0; font-size: 12.5px; color: var(--inst-muted); }

/* comparison table */
.inst-compare-scroll { overflow-x: auto; }
.inst-compare { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 520px; }
.inst-compare th {
  text-align: left;
  background: var(--inst-bg);
  color: var(--inst-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 12px;
  border-bottom: 2px solid var(--inst-border);
}
.inst-compare td { padding: 9px 12px; border-bottom: 1px solid var(--inst-bg); color: var(--inst-text); }
.inst-row-lowest td { background: #ecfdf5; font-weight: 600; }
.inst-row-lowest .inst-lowest-flag { position: static; margin-left: 6px; }

/* map */
.inst-map { border-radius: 10px; overflow: hidden; border: 1px solid var(--inst-border); }
.inst-map iframe { width: 100%; height: 300px; border: 0; display: block; }

/* reviews */
.inst-review-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.inst-review { background: var(--inst-bg); border-radius: 10px; padding: 14px 16px; }
.inst-review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; flex-wrap: wrap; }
.inst-review-avatar, .inst-review-head .inst-review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--inst-navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; flex-shrink: 0;
}
.inst-review-head strong { display: block; font-size: 14px; color: var(--inst-text); }
.inst-review-head small { color: var(--inst-muted); font-size: 12px; }
.inst-review-stars { margin-left: auto; display: inline-flex; gap: 2px; }
.inst-review-stars svg { width: 15px; height: 15px; fill: #d1d5db; }
.inst-review-stars svg.on { fill: #f59e0b; }
.inst-review p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--inst-text); }

.inst-review-form { border-top: 1px dashed var(--inst-border); padding-top: 16px; }
.inst-review-form h3 { font-family: 'Poppins', sans-serif; font-size: 15.5px; margin: 0 0 12px; color: var(--inst-text); }
.inst-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.inst-hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }

/* sticky enquiry panel */
.inst-enquiry {
  position: sticky;
  top: 84px;
  min-width: 0;
}
.inst-enquiry-inner {
  background: #fff;
  border: 2px solid var(--inst-teal);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--inst-shadow-lg);
}
.inst-enquiry-inner h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--inst-teal-dark);
  margin: 0 0 2px;
}
.inst-enquiry-branch { color: var(--inst-muted); font-size: 13px; margin: 0 0 14px; font-weight: 600; }
.inst-enquiry-inner form { display: flex; flex-direction: column; gap: 11px; }
.inst-fee-box {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  padding: 10px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.inst-fee-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--inst-muted); gap: 8px; }
.inst-fee-row s { color: #9ca3af; }
.inst-fee-final strong { font-family: 'Poppins', sans-serif; font-size: 19px; color: #059669; }
.inst-contact-row { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.inst-contact-row .inst-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* gallery strip */
.inst-strip { margin-top: 30px; }
.inst-strip h2 { font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--inst-text); margin: 0 0 12px; }
.inst-strip-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.inst-strip .inst-gallery-cell { flex: 0 0 200px; height: 130px; scroll-snap-align: start; border-radius: 10px; }
.inst-strip .inst-btn { margin-top: 4px; }

/* lightbox */
.inst-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 12, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.inst-lightbox img { max-width: min(920px, 92vw); max-height: 86vh; border-radius: 10px; object-fit: contain; }
.inst-lightbox-close {
  position: absolute;
  top: 16px; right: 22px;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Branch blog (frontend) ---------- */
.inst-branchblog { padding: 34px 0 50px; }
.inst-card-blog .inst-card-name { -webkit-line-clamp: 2; }
.inst-blog-excerpt { margin: 0; font-size: 13px; color: var(--inst-muted); line-height: 1.5; }
.inst-blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.inst-blog-hero { width: 100%; max-height: 380px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }
.inst-blog-lead { font-size: 15.5px; font-weight: 600; color: var(--inst-text); line-height: 1.6; margin: 0 0 12px; }
.inst-blog-content { font-size: 14.5px; line-height: 1.8; color: var(--inst-text); word-wrap: break-word; overflow-wrap: break-word; }
.inst-blog-branchbox {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--inst-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.inst-blog-branchbox strong { color: var(--inst-text); }
.inst-blog-branchbox span { color: var(--inst-muted); }
.inst-blog-branchbox .inst-btn { margin-left: auto; }
.inst-recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inst-recent-list a { color: var(--inst-text); font-size: 13.5px; font-weight: 600; text-decoration: none; display: block; line-height: 1.45; }
.inst-recent-list a:hover { color: var(--inst-teal); }
.inst-recent-list small { color: var(--inst-muted); font-size: 12px; }

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .inst-cards, .inst-cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inst-search-form { grid-template-columns: 1fr 1fr; }
  .inst-search-form .inst-field-btn { grid-column: span 2; min-width: 0; }
  .inst-filterbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inst-filterbar .inst-field-half { grid-column: span 1; }
  .inst-filterbar .inst-field-btn { grid-column: span 3; }
  .inst-filterbar .inst-field-check { grid-column: span 3; justify-content: flex-start; }

  /* sticky panel drops below main content */
  .inst-detail-layout { grid-template-columns: 1fr; }
  .inst-enquiry { position: static; order: -1; margin-bottom: 6px; }
  .inst-gallery-main { height: 300px; }
  .inst-blog-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 640px) {
  .inst-home { padding: 30px 0 26px; }
  .inst-search { padding: 22px 16px; border-radius: 14px; }
  .inst-search-title { font-size: 19px; }
  .inst-search-form { grid-template-columns: 1fr; }
  .inst-search-form .inst-field-btn { grid-column: span 1; }

  .inst-cards, .inst-cards-3 { grid-template-columns: 1fr; gap: 18px; }

  .inst-card-photos { grid-template-columns: 1.7fr 1fr; grid-template-rows: 130px; }
  .inst-photo-badges { top: 8px; left: 8px; }
  .inst-badge { font-size: 10.5px; padding: 3px 8px; }
  .inst-card-body { padding: 12px 13px 14px; }
  .inst-card-foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .inst-time { max-width: 100%; }

  .inst-filterbar { grid-template-columns: 1fr 1fr; padding: 13px; }
  .inst-field-half, .inst-filterbar .inst-field-btn, .inst-filterbar .inst-field-check { grid-column: span 2; }

  .inst-gallery { grid-template-columns: 1fr; }
  .inst-gallery-main { height: 220px; }
  .inst-gallery-side { grid-template-rows: none; grid-template-columns: repeat(4, 1fr); height: 80px; }
  .inst-summary { gap: 14px; padding: 14px 16px; }
  .inst-panel { padding: 16px 15px; }
  .inst-course-row { flex-direction: column; align-items: flex-start; }
  .inst-course-fee { text-align: left; align-items: flex-start; }
  .inst-form-grid { grid-template-columns: 1fr; }
  .inst-enquiry-inner { padding: 16px 14px; }
  .inst-strip .inst-gallery-cell { flex: 0 0 150px; height: 100px; }
  .inst-state-chip { min-width: 128px; padding: 12px 14px; }
  .inst-lowest-banner { font-size: 13px; }
}

@media (max-width: 400px) {
  .inst-card-photos { grid-template-rows: 112px; }
  .inst-gallery-side { height: 64px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .inst-card, .inst-card:hover, .inst-btn, .inst-state-chip, .inst-gallery-cell img { transition: none; transform: none; }
}

/* Print safety: hide interactive module chrome */
@media print {
  .inst-enquiry, .inst-lightbox, .inst-strip .inst-btn { display: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   bfx7-institute — Homepage integrated branch section
   (search bar + upgraded existing branch cards + popular states)
   New bfx7-* class names: zero collision with inst-* / branch-card-*
   ════════════════════════════════════════════════════════════════════ */
.bfx7-search {
  position: relative;
  z-index: 30;
  background: linear-gradient(135deg, #0d2b6e 0%, #4A6CF7 100%);
  border-radius: 16px;
  padding: 26px 24px;
  margin-bottom: 26px;
  box-shadow: 0 10px 30px rgba(13, 43, 110, 0.18);
}
.bfx7-search h3 {
  color: #fff; font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 21px; font-weight: 700; margin: 0 0 4px;
}
.bfx7-search .bfx7-search-sub {
  color: rgba(255,255,255,0.85); font-size: 13.5px; margin: 0 0 16px;
}
.bfx7-search-form {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 1.1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.bfx7-field { min-width: 0; }
.bfx7-field label {
  display: block; color: rgba(255,255,255,0.9);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 5px;
}
.bfx7-select, .bfx7-input {
  width: 100%; height: 44px; box-sizing: border-box;
  padding: 0 12px; font-size: 14px; color: #1f2937;
  background: #fff; border: 1.5px solid #d6dbe4; border-radius: 10px;
  outline: none; appearance: auto; -webkit-appearance: auto;
  font-family: inherit;
}
select.bfx7-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.bfx7-select:focus, .bfx7-input:focus {
  border-color: #16a085; box-shadow: 0 0 0 3px rgba(22,160,133,0.2);
}
.bfx7-btn {
  height: 44px; padding: 0 22px; border: 0; cursor: pointer;
  background: #16a085; color: #fff; font-weight: 700; font-size: 14.5px;
  border-radius: 10px; font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.bfx7-btn:hover { background: #0e7c66; transform: translateY(-1px); }

/* Cards grid — wide list style (screenshot-2 layout) */
.bfx7-grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
}
.bfx7-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px;
  overflow: hidden; position: relative;
  box-shadow: 0 4px 18px rgba(26,79,160,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bfx7-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(26,79,160,0.14);
}
.bfx7-media {
  display: grid; grid-template-columns: 1.8fr 1fr; grid-template-rows: 1fr 1fr;
  gap: 2px; min-height: 210px; background: #eef1f7; cursor: pointer;
}
.bfx7-media a { display: block; min-height: 0; }
.bfx7-media .bfx7-ph { overflow: hidden; position: relative; }
.bfx7-media .bfx7-ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.3s ease;
}
.bfx7-media .bfx7-ph:hover img { transform: scale(1.04); }
.bfx7-media .bfx7-ph-main { grid-row: span 2; }
.bfx7-media .bfx7-more {
  position: absolute; right: 6px; bottom: 6px; z-index: 2;
  background: rgba(13,43,110,0.82); color: #fff; font-size: 10.5px;
  font-weight: 600; padding: 3px 8px; border-radius: 6px;
}
.bfx7-badges {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; flex-wrap: wrap; gap: 6px; max-width: 90%;
}
.bfx7-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
  color: #fff; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.bfx7-badge-trusted  { background: linear-gradient(135deg, #f39c12, #e67e22); }
.bfx7-badge-verified { background: linear-gradient(135deg, #2980ff, #1a4fa0); }
.bfx7-badge-plan     { background: linear-gradient(135deg, #b8860b, #8b6508); text-transform: uppercase; }
.bfx7-badge-open     { background: #16a085; }
.bfx7-body {
  padding: 16px 18px 14px; min-width: 0; display: flex; flex-direction: column;
}
.bfx7-body-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.bfx7-name {
  font-family: 'Poppins', 'Inter', sans-serif; font-size: 17px; font-weight: 700;
  color: #12213a; margin: 0; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.bfx7-rating {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857;
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.bfx7-rating svg { width: 13px; height: 13px; fill: #f59e0b; }
.bfx7-rating small { color: #059669; font-weight: 600; }
.bfx7-loc {
  display: flex; align-items: flex-start; gap: 5px;
  color: #5b6472; font-size: 12.5px; margin-top: 4px; line-height: 1.45;
}
.bfx7-loc svg { flex-shrink: 0; width: 13px; height: 13px; margin-top: 2px; stroke: #16a085; }
.bfx7-loc span {
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
/* Fees mini-table */
.bfx7-fees {
  margin-top: 10px; border: 1px solid #e8edf5; border-radius: 10px; overflow: hidden;
}
.bfx7-fees table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.bfx7-fees th {
  text-align: left; background: #f6f8fc; color: #6b7280;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 6px 12px; font-weight: 700;
}
.bfx7-fees td { padding: 6px 12px; border-top: 1px solid #eef1f6; color: #374151; }
.bfx7-fees tr:last-child td { padding-bottom: 8px; }
.bfx7-fees .bfx7-fee-course { font-weight: 600; color: #12213a; }
.bfx7-fees .bfx7-fee-dur { color: #8a93a3; white-space: nowrap; }
.bfx7-fees .bfx7-fee-price { text-align: right; white-space: nowrap; }
.bfx7-fees .bfx7-fee-old {
  color: #9aa3b2; text-decoration: line-through; font-size: 11.5px; margin-right: 6px;
}
.bfx7-fees .bfx7-fee-final { color: #0d2b6e; font-weight: 800; font-size: 13.5px; }
.bfx7-fees-more { display: block; padding: 5px 12px 8px; font-size: 11.5px; color: #16a085; font-weight: 600; }
.bfx7-noFee {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #f6f8fc; border: 1px dashed #d6dbe4;
  color: #6b7280; font-size: 12.5px;
}
/* Facilities chips */
.bfx7-facs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.bfx7-fac {
  display: inline-flex; align-items: center; gap: 4px;
  background: #eaf3fb; color: #1a4fa0; padding: 3px 9px;
  border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.bfx7-fac svg { width: 11px; height: 11px; stroke: #1a4fa0; fill: none; stroke-width: 2; }
.bfx7-meta {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px;
  color: #6b7280; font-size: 12px; align-items: center;
}
.bfx7-meta span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.bfx7-meta svg { flex-shrink: 0; width: 13px; height: 13px; stroke: #16a085; fill: none; stroke-width: 2; }
.bfx7-meta a { color: #1a4fa0; text-decoration: none; font-weight: 600; }
.bfx7-offer {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #c2410c;
  padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 600;
  max-width: 100%;
}
.bfx7-offer .bfx7-offer-tag {
  background: #ea580c; color: #fff; font-size: 10px; font-weight: 700;
  padding: 1px 7px; border-radius: 999px; text-transform: uppercase;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.bfx7-offer span.bfx7-offer-text {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Action buttons */
.bfx7-actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px;
}
.bfx7-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 0; font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
  min-height: 40px;
}
.bfx7-act svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.bfx7-act-primary { background: linear-gradient(135deg, #1a4fa0, #0d2b6e); color: #fff; }
.bfx7-act-primary:hover { background: linear-gradient(135deg, #163f80, #091f4d); }
.bfx7-act-green { background: #16a085; color: #fff; }
.bfx7-act-green:hover { background: #0e7c66; }
.bfx7-act-ghost { background: #eaf3fb; color: #1a4fa0; border: 1px solid #cfe0f5; }
.bfx7-act-ghost:hover { background: #dbe9f9; }

/* Popular states chips */
.bfx7-states-head {
  margin-top: 30px; font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 17px; font-weight: 700; color: #12213a;
}
.bfx7-states {
  display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 14px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.bfx7-state-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e2e8f3; border-radius: 12px;
  padding: 10px 16px; text-decoration: none;
  box-shadow: 0 2px 8px rgba(26,79,160,0.06);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.bfx7-state-chip:hover { border-color: #16a085; transform: translateY(-2px); }
.bfx7-state-chip svg { width: 14px; height: 14px; stroke: #16a085; fill: none; stroke-width: 2; }
.bfx7-state-name { font-weight: 700; color: #12213a; font-size: 13px; }
.bfx7-state-count { color: #8a93a3; font-size: 11.5px; white-space: nowrap; }
.bfx7-morebar { margin-top: 14px; text-align: center; }
.bfx7-morebar .bfx7-act { padding: 11px 26px; }

/* Responsive */
@media (max-width: 1024px) {
  .bfx7-search-form { grid-template-columns: 1fr 1fr; }
  .bfx7-search-form .bfx7-btn { width: 100%; }
}
@media (max-width: 860px) {
  .bfx7-card { grid-template-columns: 240px 1fr; }
}
@media (max-width: 640px) {
  .bfx7-search { padding: 20px 16px; border-radius: 14px; }
  .bfx7-search h3 { font-size: 18px; }
  .bfx7-search-form { grid-template-columns: 1fr; gap: 10px; }
  .bfx7-card { grid-template-columns: 1fr; }
  .bfx7-media { min-height: 190px; }
  .bfx7-body { padding: 14px; }
  .bfx7-name { font-size: 15.5px; -webkit-line-clamp: 2; }
  .bfx7-actions .bfx7-act { flex: 1 1 auto; padding: 9px 10px; font-size: 12.5px; }
  .bfx7-fees { font-size: 12px; }
}

/* bfx7.2-institute-card-css — shared card CSS for /institutes + home + compare */
.bfx6-branch-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:24px; }
@media (max-width:980px) { .bfx6-branch-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) { .bfx6-branch-grid { grid-template-columns:1fr; } }
.bfx6-card { background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 2px 14px rgba(13,43,110,0.08); display:flex; flex-direction:column; transition:transform .18s ease, box-shadow .18s ease; border:1px solid #eef2fb; min-width:0; }
.bfx6-card:hover { transform:translateY(-3px); box-shadow:0 8px 22px rgba(13,43,110,0.14); }
.bfx6-card-media { position:relative; height:170px; background:#eaf0fb; overflow:hidden; flex-shrink:0; }
.bfx6-card-photo { display:block; width:100%; height:100%; }
.bfx6-card-photo img { width:100%; height:100%; object-fit:cover; display:block; }
.bfx6-card-thumbs { position:absolute; right:8px; bottom:8px; display:flex; gap:4px; }
.bfx6-card-thumbs img { width:44px; height:44px; object-fit:cover; border-radius:6px; border:2px solid #fff; box-shadow:0 1px 6px rgba(0,0,0,0.25); display:block; }
.bfx6-rating-pill { position:absolute; left:8px; top:8px; background:rgba(255,255,255,0.95); color:#b26a00; font-weight:700; font-size:0.78rem; padding:4px 10px; border-radius:14px; box-shadow:0 1px 6px rgba(0,0,0,0.18); }
.bfx6-rating-pill small { color:#888; font-weight:500; }
.bfx6-badge-row { position:absolute; left:8px; bottom:8px; display:flex; gap:6px; flex-wrap:wrap; }
.bfx6-badge-row span { display:inline-block; padding:3px 10px; border-radius:12px; font-size:0.7rem; font-weight:700; box-shadow:0 1px 5px rgba(0,0,0,0.22); }
.bfx6-card-body { padding:14px 14px 16px; display:flex; flex-direction:column; flex:1; min-width:0; }
.bfx6-card-title { margin:0 0 4px; font-size:1.02rem; font-family:'Poppins',sans-serif; }
.bfx6-card-title a { color:#0d2b6e; text-decoration:none; }
.bfx6-card-loc { font-size:0.8rem; color:#667; }
.bfx6-code { background:#eaf0fb; color:#1a4fa0; font-size:0.68rem; font-weight:700; padding:1px 7px; border-radius:6px; margin-right:6px; }
.bfx6-card-addr { font-size:0.78rem; color:#889; margin-top:6px; line-height:1.45; }
.bfx6-card-meta { font-size:0.78rem; color:#889; margin-top:4px; }
.bfx6-chips { display:flex; flex-wrap:wrap; gap:5px; margin-top:10px; }
.bfx6-chip { background:#eaf0fb; color:#1a4fa0; font-size:0.72rem; font-weight:500; padding:3px 9px; border-radius:12px; }
.bfx6-chip-more { background:#f0f2f7; color:#778; }
.bfx6-courses { margin-top:10px; border-top:1px dashed #e3e8f2; padding-top:8px; }
.bfx6-course-row { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:3px 0; }
.bfx6-course-name { font-size:0.8rem; color:#333; font-weight:600; }
.bfx6-course-name small { display:block; color:#99a; font-weight:400; font-size:0.68rem; }
.bfx6-course-fee { font-size:0.82rem; font-weight:700; color:#1a4fa0; white-space:nowrap; }
.bfx6-course-fee s { color:#aaa; font-weight:400; font-size:0.72rem; margin-right:4px; }
.bfx6-course-fee em { background:#e8f7ee; color:#1e8e3e; font-style:normal; font-size:0.62rem; font-weight:700; padding:1px 6px; border-radius:8px; margin-left:4px; }
.bfx6-courses-more { font-size:0.72rem; color:#889; margin-top:2px; }
.bfx6-offers { margin-top:8px; display:flex; flex-wrap:wrap; gap:5px; }
.bfx6-offer-tag { background:#fff7e6; color:#b26a00; border:1px dashed #f39c12; font-size:0.72rem; font-weight:600; padding:3px 9px; border-radius:12px; }
.bfx6-card-actions { margin-top:auto; padding-top:12px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.bfx6-btn-main { display:inline-flex; align-items:center; padding:7px 16px; background:linear-gradient(135deg,#1a4fa0,#0d2b6e); color:#fff !important; border-radius:8px; text-decoration:none; font-size:0.8rem; font-weight:600; }
.bfx6-btn-ghost { display:inline-flex; align-items:center; padding:6px 12px; background:#eaf0fb; color:#1a4fa0 !important; border-radius:8px; text-decoration:none; font-size:0.76rem; font-weight:500; }
.bfx6-states { margin-top:30px; background:#f7f9fd; border:1px solid #eef2fb; border-radius:14px; padding:18px; }
.bfx6-states h3 { margin:0 0 12px; font-family:'Poppins',sans-serif; font-size:1.05rem; color:#0d2b6e; }
.bfx6-state-chips { display:flex; flex-wrap:wrap; gap:8px; }
.bfx6-state-chip { display:inline-flex; align-items:center; gap:6px; background:#fff; border:1px solid #e3e8f2; color:#0d2b6e; padding:7px 14px; border-radius:20px; font-size:0.82rem; font-weight:600; text-decoration:none; transition:all .15s ease; }
.bfx6-state-chip:hover { border-color:#1a4fa0; background:#eaf0fb; }
.bfx6-state-chip b { background:#1a4fa0; color:#fff; border-radius:10px; font-size:0.68rem; padding:1px 8px; font-weight:700; }
.bfx6-viewmore-wrap { text-align:center; margin-top:20px; }
.bfx6-viewmore { display:inline-block; padding:10px 34px; background:#fff; border:2px solid #1a4fa0; color:#1a4fa0; border-radius:24px; font-weight:700; font-size:0.9rem; text-decoration:none; transition:all .15s ease; }
.bfx6-viewmore:hover { background:#1a4fa0; color:#fff; }
.bfx6-empty { text-align:center; padding:40px 16px; color:#889; font-size:0.9rem; background:#f7f9fd; border-radius:14px; border:1px dashed #dfe6f2; }
/* bfx7.2 — /institutes page frame (same values as the view inline styles) */
.bfx6i-pagehead { background:linear-gradient(135deg,#0d2b6e 0%,#1a4fa0 60%,#2e6fd8 100%); padding:36px 16px 40px; }
.bfx6i-pagehead .bfx6i-inner { max-width:1080px; margin:0 auto; }
.bfx6i-pagehead h1 { color:#fff; font-family:'Poppins',sans-serif; font-size:1.7rem; margin:0 0 6px; }
.bfx6i-pagehead p { color:rgba(255,255,255,0.82); font-size:0.92rem; margin:0 0 18px; }
.bfx6i-form { display:grid; grid-template-columns:1.1fr 1.1fr 1.3fr 1fr auto; gap:10px; background:rgba(255,255,255,0.12); border:1px solid rgba(255,255,255,0.25); padding:12px; border-radius:16px; }
@media (max-width:980px) { .bfx6i-form { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .bfx6i-form { grid-template-columns:1fr; } }
.bfx6i-form select, .bfx6i-form input { width:100%; height:46px; border:none; border-radius:10px; padding:0 12px; font-size:0.92rem; color:#333; background:#fff; outline:none; }
.bfx6i-form button { height:46px; border:none; border-radius:10px; padding:0 24px; font-size:0.95rem; font-weight:700; color:#0d2b6e; background:#ffd25e; cursor:pointer; }
.bfx6i-countbar { max-width:1080px; margin:20px auto 0; padding:0 4px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.bfx6i-countbar h2 { font-family:'Poppins',sans-serif; color:#0d2b6e; font-size:1.15rem; margin:0; }
.bfx6i-countbar span { color:#889; font-size:0.85rem; }
.bfx6i-grid { max-width:1080px; margin:18px auto 40px; padding:0 4px; display:grid; grid-template-columns:repeat(3,1fr); gap:18px; align-items:start; }
@media (max-width:980px) { .bfx6i-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px) { .bfx6i-grid { grid-template-columns:1fr; } }
.bfx6i-empty { max-width:720px; margin:40px auto; text-align:center; padding:44px 20px; background:#fff; border-radius:14px; box-shadow:0 2px 14px rgba(0,0,0,0.06); color:#667; }
.bfx6i-empty h2 { color:#0d2b6e; font-family:'Poppins',sans-serif; margin:0 0 8px; }
/* bfx7.2 — hard safety net: no image may ever escape its card again */
.bfx6i-grid img, .bfx6-branch-grid img { max-width:100%; }
.bfx6-card, .bfx6-card-media, .bfx6-card-body { box-sizing:border-box; }
/* end bfx7.2-institute-card-css */
