/**
 * Дополнительные стили публичного сайта Moretrips
 * Подключается после elecsir_more.css
 */

/* Обложки карточек блога (как у новостей — картинка заполняет блок) */
.em-card-blog__img-wrap {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--em-slate-100);
}

.em-card-blog__img-wrap .em-card-blog__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.em-card-blog:hover .em-card-blog__img {
  transform: scale(1.05);
}

.em-card-blog__img-wrap .em-card-blog__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Контент статей/новостей (HTML из конструктора) */
.em-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--em-radius-xl, 1rem);
}

.em-article-content p {
  margin-bottom: 1rem;
}

.em-article-content h2 {
  font-family: var(--em-font-display);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.em-article-content blockquote {
  border-left: 4px solid var(--em-primary);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--em-slate-600);
}

/* Блок «Ключевые выводы» (шорткод [takeaways title="..."]<li>...</li>[/takeaways]) */
.em-takeaways {
  background: rgba(224, 247, 250, 0.5);
  border: 1px solid rgba(var(--em-primary-rgb, 19, 200, 236), 0.15);
  border-radius: var(--em-radius-3xl, 2.5rem);
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
}

[data-bs-theme="dark"] .em-takeaways {
  background: rgba(var(--em-primary-rgb, 19, 200, 236), 0.08);
  border-color: rgba(var(--em-primary-rgb), 0.15);
}

.em-takeaways__title {
  font-family: var(--em-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--em-slate-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.em-takeaways__title .material-symbols-outlined {
  flex-shrink: 0;
}

.em-takeaways__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.em-takeaways__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.em-takeaways__list li:last-child {
  margin-bottom: 0;
}

.em-takeaways__list li .material-symbols-outlined {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--em-primary);
  font-size: 1.25rem;
}

.em-takeaways__item-text {
  flex: 1;
}

/* Список новостей: большая карточка (featured), макс. высота 500px */
.em-news-featured {
  border-radius: var(--em-radius-3xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
  min-height: 280px;
  max-height: 500px;
}

.em-news-featured__img-box {
  min-height: 280px;
  max-height: 500px;
  width: 100%;
  position: relative;
  background: var(--em-slate-100);
}

.em-news-featured__img-link .em-news-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.em-news-featured:hover .em-news-featured__img {
  transform: scale(1.05);
}

.em-news-featured__img-link .em-news-featured__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 500px;
}

.em-news-featured__badge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: var(--em-accent-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: var(--em-radius-pill);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.em-news-card {
  border-radius: var(--em-radius-3xl);
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.em-news-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12);
}

/* Контейнер обложки: фиксированное соотношение, картинка заполняет весь блок */
.em-news-card__img-wrap {
  aspect-ratio: 16/10;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--em-slate-100);
}

.em-news-card__img-wrap .em-news-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.em-news-card:hover .em-news-card__img {
  transform: scale(1.08);
}

.em-news-card__img-wrap .em-news-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Совместимость: если оставили card-img-top без обёртки */
.em-news-card .card-img-top {
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.em-news-card:hover .card-img-top {
  transform: scale(1.08);
}

.em-news-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--em-radius-pill);
}

.em-news-card__badge--teal {
  background: var(--em-soft-teal);
  color: var(--em-primary);
}

.em-news-card__badge--orange {
  background: var(--em-soft-orange);
  color: var(--em-accent-orange);
}

a.hover-primary:hover {
  color: var(--em-primary) !important;
}

/* Логотип (SVG) в шапке и подвале */
.em-logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}

/* Закреплённая новость: макс. высота 500px */
.em-news-featured {
  max-height: 500px;
}

.em-news-featured__img-box,
.em-news-featured__img-link .em-news-featured__placeholder {
  max-height: 500px;
  min-height: 500px;
}

.em-news-featured__img-link .em-news-featured__img {
  max-height: 500px;
}

/* Пагинация как в макете: круглые кнопки, иконки chevron */
.em-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.em-pagination__btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--em-slate-200);
  background: #fff;
  color: var(--em-slate-700);
  text-decoration: none;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.em-pagination__btn:hover {
  background: #fff;
  border-color: var(--em-primary);
  color: var(--em-primary);
}

.em-pagination__btn--active {
  background: var(--em-primary);
  border-color: var(--em-primary);
  color: #0f172a;
  box-shadow: 0 10px 15px -3px rgba(var(--em-primary-rgb), 0.2);
}

.em-pagination__btn--active:hover {
  background: var(--em-primary);
  border-color: var(--em-primary);
  color: #0f172a;
}

.em-pagination__btn .material-symbols-outlined {
  font-size: 1.25rem;
}
