/* ===== Түлектер аллеясы (page-graduates-new.php) — шрифт сайттан, бөлек font-family жоқ =====
   Баннер — сайттың ортақ баннері (.str-hero → page-hero.css), биіктігі аз. Ескі .grd-* стильдері (new-style.css) енді қолданылмайды. */

.str-hero.alm-hero { min-height: 220px !important; }
.alm-hero .str-hero__content { padding-top: 56px !important; padding-bottom: 36px !important; }
.alm-hero .str-hero__label { font-family: inherit !important; }
.alm-hero__meta { display: inline-flex; align-items: baseline; gap: 6px; margin: 4px 0 0; padding: 6px 14px; border: 1px solid rgba(255,255,255,.25); border-radius: 50px; background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.alm-hero__meta b { color: #F5C46B; font-size: 15px; }

.alm { padding: 40px 0 64px; background: #F8FBFF; color: #0A1628; }

/* Іздеу + сан */
.alm-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.alm-search { position: relative; flex: 1 1 auto; margin: 0; }
.alm-search svg { position: absolute; left: 16px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.alm-search input { width: 100%; height: 50px; padding: 0 16px 0 46px; border: 1px solid #d5e1f0; border-radius: 14px; background: #fff; color: #0A1628; font: inherit; font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.alm-search input:focus { border-color: #0052A5; box-shadow: 0 0 0 4px rgba(0,82,165,.12); }
.alm-count { flex: 0 0 auto; color: #64748b; font-size: 14px; white-space: nowrap; }
.alm-count b { color: #0052A5; font-size: 20px; }

/* Әліппе */
/* Барлық әріп бір жолда: ені бойынша тең бөлінеді; тар экранда (≤991px) — көлденең жылжиды */
.alm-letters { display: flex; flex-wrap: nowrap; gap: 4px; margin-bottom: 26px; }
.alm-letter { flex: 1 1 0; min-width: 0; height: 36px; padding: 0; border: 1px solid #dbe5f2; border-radius: 10px; background: #fff; color: #0b2f63; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.alm-letter:hover { border-color: #0052A5; color: #0052A5; }
.alm-letter.is-on { border-color: #0052A5; background: #0052A5; color: #fff; }
.alm-letter:focus-visible { outline: 3px solid #F5C46B; outline-offset: 2px; }
.alm-letter[data-alm-letter=""] { flex: 0 0 auto; padding: 0 14px; }

/* Карточкалар */
.alm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.alm-card { display: flex; flex-direction: column; align-items: center; padding: 24px 18px 20px; border: 1px solid #e3ebf6; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(10,22,40,.05); text-align: center; transition: transform .2s, box-shadow .2s, border-color .2s; }
.alm-card[hidden] { display: none; }
.alm-card:hover { transform: translateY(-3px); border-color: #c9d9ee; box-shadow: 0 16px 34px rgba(10,22,40,.10); }
.alm-card:focus { outline: none; }

.alm-card__photo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 132px; height: 132px; margin-bottom: 16px; border-radius: 50%; overflow: hidden; background: #EEF5FF; box-shadow: 0 0 0 4px #fff, 0 0 0 5px #dbe7f6; color: #0052A5; font-size: 34px; font-weight: 700; transition: box-shadow .2s; }
.alm-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.alm-card:hover .alm-card__photo { box-shadow: 0 0 0 4px #fff, 0 0 0 6px #F5C46B; }

.alm-card__name { margin: 0 0 8px !important; font-size: 15.5px !important; font-weight: 700 !important; line-height: 1.35 !important; color: #0A1628 !important; }
.alm-card__pos { display: -webkit-box; margin: 0 0 14px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; color: #475569; font-size: 13px; line-height: 1.5; }
.alm-card__grad { display: flex; align-items: flex-start; gap: 8px; width: 100%; margin: auto 0 0; padding: 10px 12px; border-radius: 12px; background: #F8FBFF; color: #334155; font-size: 12.5px; line-height: 1.5; text-align: left; }
.alm-card__grad svg { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 1px; color: #0052A5; }
.alm-card__grad b { color: #0052A5; }

.alm-none { margin: 24px 0 0; padding: 28px; border: 1px dashed #c9d9ee; border-radius: 16px; background: #fff; color: #64748b; text-align: center; }
.alm-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 28px auto 0; height: 50px; padding: 0 28px; border: 1px solid #0052A5; border-radius: 14px; background: #fff; color: #0052A5; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s; }
.alm-more:hover { background: #0052A5; color: #fff; }
.alm-more[hidden] { display: none; }
.alm-more span { opacity: .7; font-weight: 600; }

.alm-extra { margin-top: 44px; padding-top: 32px; border-top: 1px solid #e3ebf6; }

@media (max-width: 1199px) { .alm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 991px) {
	.alm-letters { overflow-x: auto; margin-bottom: 20px; padding-bottom: 4px; scrollbar-width: none; }
	.alm-letters::-webkit-scrollbar { display: none; }
	.alm-letter { flex: 0 0 auto; min-width: 36px; padding: 0 10px; }
}
@media (max-width: 767px) {
	.alm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 600px) {
	.alm-hero .str-hero__content { padding-top: 30px !important; padding-bottom: 24px !important; }
	.alm { padding: 24px 0 44px; }
	.alm-bar { gap: 10px; }
	.alm-search input { height: 48px; font-size: 14px; }
	.alm-count { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 64px; height: 48px; border: 1px solid #d5e1f0; border-radius: 14px; background: #fff; font-size: 10.5px; line-height: 1.1; }
	.alm-count b { font-size: 17px; }
	.alm-card { padding: 16px 10px 12px; border-radius: 16px; }
	.alm-card__photo { width: 88px; height: 88px; margin-bottom: 12px; font-size: 24px; }
	.alm-card__name { font-size: 13.5px !important; }
	.alm-card__pos { margin-bottom: 10px; font-size: 12px; }
	.alm-card__grad { padding: 8px; font-size: 11.5px; }
	.alm-card__grad svg { display: none; }
}

/* Нашар көретіндерге арналған нұсқа */
html body .bvi-body[data-bvi-theme]:not(.bvi-no-styles) :is(.alm-card, .alm-card__photo, .alm-card__grad, .alm-letter, .alm-more, .alm-search input, .alm-count, .alm-hero__meta) { background: var(--bvi-site-bg) !important; border: 2px solid var(--bvi-site-color) !important; box-shadow: none !important; color: var(--bvi-site-color) !important; }
