.container-search {
  display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  
    width: 100%;
}
.titletext{
   font-size: 35px; 
}
.form-inline{
        display: flex;
    width: 100%;
    justify-content: center;
}
.roll_no{
    width: 30%;
}
.menu_class{
   display: flex;
    align-items: center;
    padding: 5px;
}
.categorya{
    display: flex;
    align-items: center;
}
.containerCategoria{
    display: flex;
    justify-content: center;
}



#menu_books div {
    background-color: #f0f0f0; /* Фоновый цвет для визуализации */
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
}
.containerBook{
    width: 80%;
}
#services-section{
    display: flex;
    justify-content: center;
}
.book-name{
    color: black;
}


/* Basic styles for the dropdown menu */

.menuUl{
    display: flex;
    list-style-type: none;
}

.menuUl .dropdown {
    list-style-type: none;
    display: none;
    position: absolute;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    z-index: 1;
    list-style-type: none;
}

.menuUl .has-children {
    position: relative;
}

.menuUl .nav-link {
    cursor: pointer;
    text-decoration: none;
}

/* Arrow styling for the dropdown */
.arrow-top::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.logo {
    height: 80px;
    margin-right: 15px;
    transform: scale(1.3);}
.header-img {
    height: 80px;
}
.header-content{
    display: flex;
    width: 100%;
}

.branding{
    width: 100%;
  display: flex;  
    align-items: center;
}

.header-right{
    right: 10px;
}

.textH{
    color: white;
}
.smalltext{
   text-transform: lowercase; 
}
@media (max-width: 768px) {
    #menu_books {
        grid-template-columns: repeat(1, 1fr);
    } 

   .menuUl {
    display: flex;
    flex-direction: column;
    list-style-type: none;
}
    .roll_no{
    width: 60%;
}
    .titletext{
        font-size: 19px;
    }

}

/* Пагинация под фразеологизмами */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 15px 0 25px;
  font-family: "Rubik", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pagination-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #d0d7de;
  background: #ffffff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
  background: #007bff;
  color: #ffffff;
  border-color: #007bff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
}

.pagination-btn:disabled {
  cursor: default;
  opacity: 0.5;
  box-shadow: none;
}

.pagination-info {
  font-size: 14px;
  color: #6c757d;
  min-width: 60px;
  text-align: center;
}






/* ===== Фразеологизм - карточка ===== */

.phrase-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #eef1f5;
    transition: transform .2s ease, box-shadow .2s ease;
}

.phrase-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Заголовок – Қазақша */
.kz-title {
    font-size: 26px;
    font-weight: 700;
    color: #444;
    margin-bottom: 5px;
}

.kz-sub {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

/* Картинка */
.phrase-image {
    text-align: center;
    margin: 20px 0;
}

.phrase-image img {
    width: 260px;
    height: 260px;
    object-fit: contain;
    border-radius: 12px;
}

/* Блоки English & Русский */
.phrase-block {
    background: #f7f9fc;
    padding: 18px;
    border-radius: 12px;
    margin-top: 18px;
    border-left: 4px solid #007bff;
}

.phrase-block h3 {
    margin: 0;
    font-size: 22px;
    color: #333;
    font-weight: 700;
}

.phrase-block h3 span {
    font-weight: 700;
    color: #007bff;
}

.phrase-block p {
    margin-top: 5px;
    font-size: 16px;
    color: #555;
    line-height: 1.5;
}

/* Для мобильных */
@media(max-width: 480px) {
    .phrase-image img {
        width: 180px;
        height: 180px;
    }
}









/* ===== Карточка фразеологизма ===== */

.phrase-card {
  background: #f5f7fb;
  border-radius: 20px;
  padding: 32px 40px 30px;
  margin: 0 auto 32px;
  max-width: 1200px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  position: relative;
  overflow: hidden;
}

/* нежный градиентный фон в углу карточки */
.phrase-card::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at center,
    rgba(0, 123, 255, 0.18),
    transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

/* Қазақша блок */

.phrase-kz {
  text-align: center;
  margin-bottom: 20px;
}

.phrase-kz-label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 123, 255, 0.08);
  color: #0b5ed7;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}

.phrase-kz-title {
  font-size: 30px;
  font-weight: 800;
  margin: 4px 0 10px;
  color: #1d3557;
  text-transform: uppercase;
}

.phrase-kz-desc {
  font-size: 17px;
  color: #4a5568;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Картинка по центру, один размер */

.phrase-image-wrapper {
  display: flex;
  justify-content: center;
  margin: 26px 0 24px;
}

.phrase-image {
  width: 280px;
  height: 200px;
  object-fit: contain; /* иллюстрации не обрежутся */
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* Общий стиль для блоков English / Русский */

.phrase-lang-block {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px 20px 18px;
  margin-top: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border-left: 4px solid #0d6efd;
}

.phrase-lang-en {
  margin-top: 10px;
}

.phrase-lang-ru {
  margin-top: 14px;
  border-left-color: #ff7b54;
}

.lang-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}

.lang-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ffffff;
}

.lang-chip-en {
  background: linear-gradient(135deg, #0d6efd, #3a86ff);
}

.lang-chip-ru {
  background: linear-gradient(135deg, #ff7b54, #ff9f1c);
}

.lang-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2933;
}

.lang-desc {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
  color: #4b5563;
}

/* ==== Адаптация под мобильные ==== */

@media (max-width: 768px) {
  .phrase-card {
    padding: 22px 18px 20px;
    border-radius: 16px;
    margin-bottom: 22px;
  }

  .phrase-kz-title {
    font-size: 22px;
  }

  .phrase-kz-desc {
    font-size: 15px;
  }

  .phrase-image {
    width: 220px;
    height: 160px;
  }

  .lang-title {
    font-size: 17px;
  }

  .lang-desc {
    font-size: 14px;
  }
}


/* Контейнер алфавита */
.containerCategoria {
  max-width: 1200px;
  margin: 0 auto;
}

/* Список букв */
.menuUl {
  display: flex;
  flex-wrap: wrap;              /* Буквы будут переноситься на следующую строку */
  justify-content: center;      /* Центрируем по ширине */
  gap: 8px 14px;                /* Отступы между буквами */
  list-style: none;
  padding: 10px 20px;
  margin: 0 auto;
  background: #f5f7fa;
  border-radius: 999px;
}

/* Элемент списка */
.menuUl li {
  margin: 0;
}

/* Ссылка-буква */
.menuUl li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: #555;
  background: #ffffff;
  border: 1px solid #e0e4ec;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.2s ease, color 0.2s ease,
              box-shadow 0.2s ease, border-color 0.2s ease,
              transform 0.1s ease;
}

.menuUl li a:hover {
  background: #007bff;
  color: #ffffff;
  border-color: #007bff;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
  transform: translateY(-1px);
}

/* Класс для активной буквы (можем использовать позже из JS) */
.menuUl li a.active-letter {
  background: #007bff;
  color: #ffffff;
  border-color: #007bff;
}

@media (max-width: 768px) {
  .containerCategoria {
    padding: 0 8px;
  }

  .menuUl {
    justify-content: center;
    flex-direction: row;        /* принудительно в строку */
    flex-wrap: wrap;            /* и перенос по строкам */
    gap: 6px;
  }

  .menuUl li {
    flex: 0 0 calc(100% / 7 - 6px);  /* ~7 букв в строке */
  }

  .menuUl a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}

.no-data-message {
    padding: 40px;
    text-align: center;
    font-size: 22px;
    color: #555;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-top: 20px;
}











