* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial;
}

body {
  overflow-x: hidden;
}

.largebox {
  width: 100%;
  height: 342px;
  background-image: url("/static/images/cover.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 30px;
}

.largebox__title {
  color: #fff;
  font-size: 46px;
  text-align: center;
  margin-bottom: 25px;
}

.newsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.newsCard {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.imageWrapper {
  height: 180px;
  overflow: hidden;
  perspective: 1200px;
}

.image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.6s ease;
}

.imageWrapper:hover .image {
  transform: rotateY(-15deg) scale(1.05);
}

.meta {
  font-size: 12px;
  text-transform: uppercase;
  color: #3a3a3a;
  margin: 15px 20px 5px;
  font-weight: 500;
}

.news {
  color: #0046be;
  font-weight: 700;
  margin-right: 10px;
}

.title {
  font-size: 18px;
  font-weight: 600;
  margin: 5px 20px 10px;
  color: #0046be;
  text-decoration: none;
  position: relative;
  display: block;
  width: fit-content;
}

.title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background-color: #0046be;
  transition: width 0.3s ease;
}

.title:hover::after {
  width: 100%;
}

.description {
  font-size: 14px;
  color: #444;
  margin: 0 20px 20px;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .newsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .newsGrid {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .largebox {
    height: 250px;
  }

  .largebox__title {
    font-size: 32px;
  }
}