/*!
Theme Name: First Contact
Theme URI: https://plut-on.com/
Author: Pluton Digital
Author URI: https://plut-on.com/
Description: First Contact Site Wordpress theme
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
*/

.radius__content-bpla-title,
.radius__content-radius,
.radius__content-tipe-title {
    color: #738BA1 !important;
}

.link-btn {
    position: relative;
    display: inline-block;
	font-size: 125%;
    background-color: #007bff;
    color: #fff;
    padding: 1em 2em;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background-repeat: no-repeat;
    background-size: 200% 100%;
    background-position: -100% 0;
    transition: background-position 0.5s;
}

.link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1.5em;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.6);
    transform: translateX(-4em) skewX(-45deg);
}

.link-btn:hover::before {
    animation: move-light 0.8s;
}

@keyframes move-light {
    from {
      transform: translateX(-4em) skewX(-45deg);
    }
    to {
      transform: translateX(40em) skewX(-45deg);
    }
}

.news__item-img.no-after::after {
    content: none !important;
}

.img-shadow {
    /*box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);*/
    border-radius: 4px;
}

.news_item-text {
    text-align: justify;
}

.news_item-title {
    color: #6aaeff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* Добавляет "..." в случае обрезки */
    min-height: 2.8em;       /* Минимальная высота для двух строк (2 * line-height) */
    line-height: 1.4em;      /* Настройте в зависимости от шрифта */
}

.news__item-img {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.news__item-img img {
  width: 100%;
  object-fit: cover;       /* масштабирует изображение с сохранением пропорций */
  object-position: center; /* отображает центральную часть изображения */
  display: block;
}


.bg__dark {
  background-color:   #101620 ;
}

/* Стили для страницы отдельной новости */
.news-single .news-content {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 40px;
}

.news-single .news-image {
  margin-bottom: 40px;
}

.news-single .news-custom-fields {
  margin-top: 40px;
  border-top: 2px solid #273440;
  padding-top: 20px;
}

.news-single .news-custom-fields p {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 10px;
}


/* Стили для страницы отдельной новости */
.news-single {
  max-width: 1203px;
  margin: 0 auto;
  padding: 100px 80px;
}

.news-single h1 {
  font-size: 50px;
  line-height: 60px;
  margin-bottom: 40px;
}

.news-featured-image {
  width: 100%;
  max-height: 500px; /* фиксированная высота для десктопа */
  overflow: hidden;
  margin-bottom: 40px;
}

.news-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* изображение масштабируется с сохранением пропорций */
  object-position: center; /* показывается центральная часть изображения */
  display: block;
}

.news-single .news-content {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 40px;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .news-single {
    padding: 20px 15px;
    max-width: 100%;
  }
  
  /* Заголовок меньше для мобильных */
  .news-single h1 {
    font-size: 30px;
    line-height: 36px;
    margin-bottom: 20px;
  }
  
  /* Изображение адаптируется под мобильное устройство */
  .news-featured-image {
    max-height: none; /* снимаем ограничение высоты */
    margin-top: 60px; /* добавляем отступ сверху для предотвращения наложения на верхнюю панель */
    margin-bottom: 20px;
  }
  
  .news-featured-image img {
    width: 100%;
    height: auto; /* высота определяется пропорционально */
    object-fit: cover;
  }
  
  /* Текст расширяется на всю ширину экрана */
  .news-single .news-content {
    font-size: 16px;
    line-height: 24px;
  }
}

.news__date {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 20px;
    color: #888;
	text-align: right;
}

.news-content p {
  margin-bottom: 20px;
}

.news-content h2,
.news-content h3,
.news-content h4,
.news-content h5,
.news-content h6 {
  margin-bottom: 15px;
}

.news-content > * {
  margin-bottom: 20px;
}

.news-content a {
  color: #00AEEF; /* основной цвет ссылок, можно изменить под дизайн */
  transition: color 0.3s ease;
}

.news-content img {
	width: 100%;
}

.news-content a:hover,
.news-content a:focus {
  color: #007C9A; /* цвет при наведении и фокусе */
}

/* Адаптивный контейнер для iframe */
iframe {
	width: 100%;
}


.news__link-img-only {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.news__item-img-only {
    flex: 0 0 30%;
    max-width: 10%;
    box-sizing: border-box;
}

.news__item-img-only img {
    width: 100%;
    height: auto;
    display: block;
	object-fit: contain
}

.news__item-content-div {
    flex: 1;
    padding-left: 15px;
    box-sizing: border-box;
    vertical-align: top;
}

.news__item-title-img-only {
    margin: 0 0 5px 0;
    font-size: 1.2em;
}

.news__item-text-img-only {
    margin: 0;
    font-size: 1em;
    color: #555;
}

.news__list-noimg-img-only {
	grid-template-columns:repeat(1, 1fr);
	grid-gap: 40px 20px;
	
}
