/**
 * PLAN B5 — Bootstrap 4 → 5 съвместимостен слой (shim)
 *
 * Сайтът ползва модула „Views Bootstrap 4", затова част от изгледите/блоковете
 * извеждат класове, които Bootstrap 5 премахна. Този файл ги възстановява ВЪРХУ BS5,
 * така че съществуващото съдържание да не се счупи, без да се преправя всеки изглед.
 *
 * Зарежда се СЛЕД bootstrap (BS5) и ПРЕДИ theme.css.
 * Когато изгледите се мигрират към „Views Bootstrap 5", този файл може да отпадне.
 */

/* ---------- Cards (card-deck / card-columns) ---------- */
.card-deck { display: flex; flex-flow: row wrap; margin-right: -15px; margin-left: -15px; }
.card-deck .card { flex: 1 0 0%; margin-right: 15px; margin-bottom: 0; margin-left: 15px; }
@media (max-width: 575.98px) {
  .card-deck { display: block; }
  .card-deck .card { margin-bottom: 15px; }
}
.card-columns { column-count: 3; column-gap: 1.25rem; }
.card-columns .card { display: inline-block; width: 100%; margin-bottom: 1.25rem; }
@media (max-width: 991.98px) { .card-columns { column-count: 2; } }
@media (max-width: 575.98px) { .card-columns { column-count: 1; } }

/* ---------- Jumbotron ---------- */
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; background-color: #e9ecef; border-radius: .3rem; }
.jumbotron-fluid { padding-right: 0; padding-left: 0; border-radius: 0; }

/* ---------- Media object ---------- */
.media { display: flex; align-items: flex-start; }
.media-body { flex: 1 1 auto; }

/* ---------- Embed responsive (→ BS5 ratio) ---------- */
.embed-responsive { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; }
.embed-responsive::before { display: block; content: ""; }
.embed-responsive-21by9::before { padding-top: 42.857143%; }
.embed-responsive-16by9::before,
.embed-responsive-16x9::before { padding-top: 56.25%; }
.embed-responsive-4by3::before { padding-top: 75%; }
.embed-responsive-1by1::before { padding-top: 100%; }
.embed-responsive .embed-responsive-item,
.embed-responsive iframe,
.embed-responsive embed,
.embed-responsive object,
.embed-responsive video {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 100%; height: 100%; border: 0;
}

/* ---------- Форми ---------- */
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
.form-row { display: flex; flex-wrap: wrap; margin-right: -5px; margin-left: -5px; }
.form-row > [class*="col"] { padding-right: 5px; padding-left: 5px; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }

/* ---------- Float / text (BS4 наименования) ---------- */
.float-left { float: left !important; }
.float-right { float: right !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* ---------- Отстояния ml-/mr-/pl-/pr- (преименувани на ms-/me-/ps-/pe- в BS5) ---------- */
.ml-0 { margin-left: 0 !important; }   .mr-0 { margin-right: 0 !important; }
.ml-1 { margin-left: .25rem !important; } .mr-1 { margin-right: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }  .mr-2 { margin-right: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }   .mr-3 { margin-right: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; } .mr-4 { margin-right: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }   .mr-5 { margin-right: 3rem !important; }
.ml-auto { margin-left: auto !important; } .mr-auto { margin-right: auto !important; }
.pl-0 { padding-left: 0 !important; }   .pr-0 { padding-right: 0 !important; }
.pl-1 { padding-left: .25rem !important; } .pr-1 { padding-right: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }  .pr-2 { padding-right: .5rem !important; }
.pl-3 { padding-left: 1rem !important; }   .pr-3 { padding-right: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; } .pr-4 { padding-right: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }   .pr-5 { padding-right: 3rem !important; }

/* ---------- Текстови утилити (BS4) ---------- */
.font-weight-bold { font-weight: 700 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-light { font-weight: 300 !important; }
.font-italic { font-style: italic !important; }

/* ---------- sr-only (BS4) ---------- */
.sr-only {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.sr-only-focusable:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Значки (BS4 badge-*) → институционална палитра ---------- */
.badge-primary { background-color: #006600; color: #fff; }
.badge-secondary { background-color: #6c757d; color: #fff; }
.badge-success { background-color: #28a745; color: #fff; }
.badge-danger { background-color: #dc3545; color: #fff; }
.badge-warning { background-color: #ffc107; color: #212529; }
.badge-info { background-color: #17a2b8; color: #fff; }
.badge-light { background-color: #f8f9fa; color: #212529; }
.badge-dark { background-color: #343a40; color: #fff; }

/* ---------- input-group append/prepend (BS4) ---------- */
.input-group-append, .input-group-prepend { display: flex; }
.input-group-append { margin-left: -1px; }
.input-group-prepend { margin-right: -1px; }
