.news {
  display: flex;
  justify-content: center;
  padding: 20px;
  font-family: sans-serif;
}

.news-card {
  width:100%;
  background: #fff;
  border-radius: 12px;
  overflow: hidden; 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative; 
  cursor: pointer;
}


.news-card:hover {
  transform: translateY(-5px);
}


.news-image {
  position: relative;
  overflow: hidden; 
  height: 330px;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.news-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: -150%; 
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg); 
  transition: 0.6s; 
  z-index: 1;
}


.news-card:hover .news-image::before {
  left: 150%; 
}


.news-content {
  padding: 20px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.news-date {
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 8px;
}

.news-title {
  margin: 0 0 15px 0;
  font-size:18px;
  color: #333;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  display: block;
  text-align: center;
}

.news-link {
  display:block;
  text-align: center;
  padding: 8px 18px;
  background-color: #ffffff;
  border:1px solid #0F3AAC;
  color: #0F3AAC;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  width: 90%;
  transition: .5s;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

a.news-link:hover
{background: linear-gradient(to top, #0F3AAC, #1E56E2) !important;
transition: .5s;}

a.news-link:hover 
{color: #fff;}

.news-detail-header img
{max-width: 400px;}

.news-full-content {
    line-height: 1.6;
    color: #333;
}

.news-load-more {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.load-more-btn {
    display: block;
    width: 250px;
    margin: 0 auto;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: #1f6feb;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.load-more-btn:hover:not(:disabled) {
    background-color: #1558c0;
}

.load-more-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Обтекание слева (картинка слева, текст справа) */
.align-left {
    float: left;
    margin: 0 25px 20px 0; /* Отступы: справа и снизу */
    max-width: 45%;        /* Чтобы картинка не занимала весь экран */
    height: auto;
    border-radius: 8px;
}

/* Обтекание справа (картинка справа, текст слева) */
.align-right {
    float: right;
    margin: 0 0 20px 25px; /* Отступы: слева и снизу */
    max-width: 45%;
    height: auto;
    border-radius: 8px;
}

/* Очистка обтекания (чтобы следующие блоки не "залезали" под картинку) */
.news-full-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Адаптивность: на мобилках отключаем обтекание */
@media (max-width: 768px) {
    .align-left, .align-right {
        float: none;
        display: block;
        margin: 0 auto 20px auto; /* Центрируем */
        max-width: 100%;          /* Картинка на всю ширину */
    }
}