.title {
    height: 93px;
    display: flex;
    justify-content: center; /* по центру по горизонтали */
    align-items: center;     /* по центру по вертикали */
    background-image: url('/topbanner.jpg');
    background-size: cover;
    background-position: center;
    color: aliceblue;
    margin-bottom: 15px;
}


.theme-card {
  white-space: nowrap;       /* одна строка */
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  transition: all 0.2s ease-in-out;
  text-overflow: ellipsis;
}

.theme-card img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: none;
}

/* Тело карточки наезжает на изображение */
.theme-card .card-body {
  margin-top: -40px; /* подбираешь под высоту надписи */
  background: white; /* цвет фона блока */
  position: relative;
  z-index: 2;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.text-truncate-line {
  white-space: nowrap;       /* одна строка */
  overflow: hidden;          /* скрыть лишнее */
  text-overflow: ellipsis;   /* добавить "..." */
  display: block;            /* чтобы работало внутри <p> */
}

.back-button {
    top: 20px;
    left: 20px;
    background-color: #f9f9f9;
    color: rgb(58, 58, 58);
    border: 1px solid #bbbbbb;
    padding: 2px 20px;
    border-radius: 25px;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s;
    margin-top: 10px;
    margin-left: 10px;
}


.scroll-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0275d8;
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 18px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s;
  z-index: 9999; /* ВАЖНО — поднимает кнопку над всеми элементами */
}
.scroll-to-top:hover {
  background: #0256a2;
}
.site-footer a:hover {
  color: #0275d8 !important;
}
