/* Контейнер за бутоните */
.button-container-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
}

/* Унифициран бутон (като линк) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    color: #005ba1;
    background-color: #f3f3f3;
    text-decoration: none;
    border: 1px solid #f7941e;
    border-radius: 5px;
    box-shadow: 1px 1px 5px #607D8B;
    cursor: pointer;
}

/* Иконките в бутоните */
.btn img {
    vertical-align: middle;
    display: inline-block;
    width: 32px;
    height: 25px;
}

/* Вариации – ако искаш различни цветове */
.primarys {
    /* напр. background-color: #f9f9f9; */
}

.secondarys {
    /* напр. background-color: #eaeaea; */
}

.tertiarys {
    /* може да оставиш без промяна */
}
.region-highlighted
 {
    font-family: "politicaregular", Arial, sans-serif;
    margin-top: -10px;
    background: url(/sites/default/files/inline-images/body-bg.jpg) 0 0 #ece6dc;
    padding: 20px 20px 0 20px;
}
/* =========================
   BUTTONS – animated hover & click
   ========================= */

/* 1) Контейнер: лек “magnetic” ефект – когато hover-неш контейнера,
   останалите леко избледняват (фокус върху избрания бутон) */
.button-container-top:hover .btn{
  opacity: .78;
  transform: translateY(0) scale(.99);
}

.button-container-top:hover .btn:hover{
  opacity: 1;
  transform: translateY(-3px) scale(1.03);
}

/* 2) Бутон: плавни преходи + по-добро усещане */
.btn{
  position: relative;
  overflow: hidden; /* за ripple highlight */
  will-change: transform;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    opacity .18s ease;
}

/* 3) “Glow” слой при hover (светъл блясък, който минава отляво надясно) */
.btn::before{
  content:"";
  position:absolute;
  top:-20%;
  left:-60%;
  width: 50%;
  height: 140%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg);
  opacity: 0;
  pointer-events:none;
}

.btn:hover::before{
  opacity: 1;
  animation: btnShine .75s ease forwards;
}

@keyframes btnShine{
  from { left:-60%; }
  to   { left:120%; }
}

/* 4) Hover: по-“скъпо” усещане */
.btn:hover{
  background-color: #ffffff;
  border-color: #e78300;
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* 5) Click (active): “натискане” + кратък ripple */
.btn:active{
  transform: translateY(0) scale(.98);
  box-shadow: 0 3px 8px rgba(0,0,0,.18);
}

/* Ripple circle (само CSS) */
.btn::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: rgba(247,148,30,.35);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  opacity: 0;
  pointer-events:none;
}

.btn:active::after{
  opacity: 1;
  transform: translate(-50%,-50%) scale(18);
  transition: transform .35s ease, opacity .45s ease;
}

/* 6) Лека анимация на иконката при hover */
.btn img{
  transition: transform .18s ease;
}

.btn:hover img{
  transform: translateY(-1px) scale(1.05);
}

/* 7) Accessibility: видим focus (за клавиатура) */
.btn:focus-visible{
  outline: 3px solid rgba(0,91,161,.35);
  outline-offset: 2px;
}

/* 8) Намаляване на движенията при “reduce motion” */
@media (prefers-reduced-motion: reduce){
  .btn, .btn::before, .btn::after, .btn img{
    transition: none !important;
    animation: none !important;
  }
}
/* =========================
   Button text line break (SAFE)
   ========================= */

.button-container-top .btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* текстът да е блок */
.button-container-top .btn .btn-text{
  display: block;
  text-align: center;
  line-height: 1.15;
  white-space: normal;
}

/* само за бутони с две думи */
.button-container-top .btn .btn-text{
  max-width: 110px;   /* контролира пренасянето */
}

/* Контейнер на блока */
#block-bartik-formazatrsene {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
}

/* Заглавие "ФОРМА ЗА ТЪРСЕНЕ" */
#block-bartik-formazatrsene h2 {
  background: #f0ece1;
  border-bottom: 2px solid #d4a017;
  color: #000;
  font-weight: bold;
  font-size: 15px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 10px;
  margin: 0 0 10px 0;
  border-radius: 4px 4px 0 0;
}

/* Самата форма */
#search-block-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 10px 10px;
}

/* Полето за търсене */
#search-block-form .form-search {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  background: #fff;
  height: 38px;
  box-sizing: border-box;
}

/* Бутонът с лупата */
#search-block-form .search-form__submit {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  background: #f5f5f5 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z"/></svg>') center/20px no-repeat;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}

#search-block-form .search-form__submit:hover {
  background-color: #e0e0e0;
}

/* Премахване на отстъпа на form-item */
#search-block-form .form-item-keys {
  margin: 0;
  width: 100%;
}
#edit-lang-fieldset,
#edit-language--wrapper {
  display: none !important;
}