.news-custom-block {
  display: flex;
  background-color: var(--color-white);
  border: 2px solid var(--color-grey-050);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(var(--color-black--rgb), 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  margin-bottom: 30px;
  max-width: 100%;
  font-family: "Roboto", sans-serif;
}

.news-custom-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(var(--color-black--rgb), 0.1);
  border-color: var(--color-blue-200);
}

.events-custom-block:hover {
  border-color: var(--color-highlight);
}

.news-image {
  flex: 0 0 280px;
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: var(--color-grey-010);
  padding: 5px;
}

.news-image a {
  display: block;
  width: 100%;
  height: 100%;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.news-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-content h3 a {
  color: var(--color-blue-200);
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-content h3 a:hover {
  color: var(--color-blue-100);
}

.news-content p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-grey-400);
  margin-bottom: 24px;
  white-space: pre-line;
}

.news-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background-color: var(--color-blue-100);
  color: var(--color-white) !important;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0;
  align-self: flex-start;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

.news-link:hover {
  transition: 0.3s background-color ease-in;
  background-color: var(--color-blue-200);
  font-weight: 600;
}

.events-link:hover {
  transition: 0.3s background-color ease-in;
  background-color: var(--color-highlight) !important;
  color: var(--color-blue-200) !important;
  font-weight: 600;
}

@media (max-width: 768px) {
  .news-custom-block {
    flex-direction: column;
  }

  .news-image {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .news-content {
    padding: 20px;
  }

  .news-content h3 {
    font-size: 1.125rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .news-content p {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .news-link {
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    font-size: 0.8125rem;
  }
}
