.news-block {
  width: 100%;
  margin-bottom: 1%;
}

.news-header {
  background-color: #74b4ec;
  text-align: right;
  padding: 0.3%;
}

.gallery-column {
  width: 25%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-content {
  padding: 1%;
}

.news-content h1 {
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.news-content h2 {
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.news-content h3 {
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.news-content h4 {
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.news-content h5 {
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.news-content h6 {
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-family: Arial, sans-serif;
  font-weight: 700;
}

.news-content p {
  font-size: 1rem;
  color: #000000;
  padding-top: 0;
  line-height: normal;
  margin: 0;
  font-family: Arial, sans-serif;
  font-weight: 400;
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal; /* Дозволяє перенесення рядків в абзацах */
}

.text-column {
  width: 75%; 
  text-align: justify; 
  padding-left: 10px;
}

.news-footer {
  background-color: #74b4ec;
  text-align: right;
  padding: 1%;
}

.navigation-block {
  width: 100%;
}

.navigation-header {
  background-color: #E8E8E8;
  text-align: center;
  padding: 3px;
}

input[type="button"] {
  cursor: pointer;
}

/* Клас для скасування відступу (універсальний) */
.no-indent {
  text-indent: 0%;
}

/* Опціонально: уникнення перенесення */
.no-wrap {
  white-space: nowrap;
}








        .news-container {
            width: 95%;
            margin: 0 auto;
            font-family: 'Arial', sans-serif;
        }

        .news-list {
            display: flex;
            flex-direction: column;
        }

        .news-item {
            display: flex;
            margin-bottom: 20px;
            padding: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

        .news-item-head {
            flex: 0 0 200px;
            margin-right: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .news-item-image {
            display: block;
            width: 100%;
            height: auto;
        }

        .news-item-image img {
            width: 100%;
            height: auto;
            max-height: 165px;
            border-radius: 5px;
        }

        .news-item-body {
            flex: 1;
        }

        a.news-item-name {
            font-size: 1.13rem;
            font-weight: bold;
            text-decoration: none;
            color: #000; /* Чорний колір за замовчуванням */
        }

        a.news-item-name:hover {
            color: #3333FF; /* Синій колір при наведенні */
            text-decoration: underline;
        }

        .news-item-text {
            margin: 10px 0;
            color: #666;
            font-size: 1rem;
            font-weight: bold;
        }

        .news-item-date {
            font-size: 1rem;
            color: #666;
            font-weight: bold;
        }





@media (max-width: 768px) {
  /* Зменшення розміру шрифтів для мобільних */
  .news-content h1,
  .news-content h2,
  .news-content h3,
  .news-content h4,
  .news-content h5,
  .news-content h6,
  .news-content p,
  .news-item-text,
  .news-item-date,
  a.news-item-name {
    font-size: 0.95rem;
  }

  .gallery-column,
  .text-column {
    width: 100%;
    padding-left: 0;
  }

  .news-header,
  .news-footer {
    text-align: center;
    padding: 2%;
  }

  .news-item {
    flex-direction: column;
  }

  .news-item-head {
    flex: 0 0 auto;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .news-item-body {
    width: 100%;
  }

  a.news-item-name {
    font-size: 1rem;
    text-align: center;
    display: block;
  }

  .news-item-text,
  .news-item-date {
    font-size: 0.9rem;
    text-align: center;
  }

  .news-container {
    width: 100%;
    padding: 0 0px;
  }

        .news-item-image img {
            max-height: 400px;
        }

}
