#news a {
  color: var(--red-one);
}

.content {
  background-color: var(--purple-one);
}

.news {
  position: relative;
  height: 100%;
  background-color: rgb(240, 240, 240);
  background-color: var(--purple-one);
}

.news-top {
  position: relative;
  height: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0px 14px 10px rgba(0, 0, 0, 0.65));
}

.news-top-shape {
  position: absolute;
  height: 700px;
  width: 100%;
  background-color: var(--white-one);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 85% 35%, 15% 35%, 0 55%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-title {
  position: absolute;
  top: 20%;
  font-family: "Perfect Dark";
  font-size: var(--super-size);
  text-align: center;
  padding-inline: var(--largest-size);
  filter: drop-shadow(3px 4px 5px var(--red-two));
}

.news-bottom {
  height: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0px -14px 10px rgba(0, 0, 0, 0.65));
}

.news-bottom-shape {
  bottom: 0;
  position: absolute;
  height: 700px;
  width: 100%;
  background-color: var(--white-one);
  clip-path: polygon(15% 65%, 85% 65%, 100% 45%, 100% 100%, 0 100%, 0 45%);
}

.news-container {
  max-width: 1300px;
  padding: 20px var(--super-size);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--largest-size);
  margin: 0 auto;
}

.news-card {
  background: var(--white-one);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  clip-path: polygon(
    20px 0,
    calc(100% - 20px) 0,
    100% 20px,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    20px 100%,
    0 calc(100% - 20px),
    0 20px
  );
}

.news-image-container {
  position: relative;
  height: 200px;
  width: 100%;
  overflow: hidden;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-logo-badge {
  position: absolute;
  top: 119px;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  padding-block: 0;
  padding-left: 44px;
  padding-right: 14px;
  clip-path: polygon(37px 0, 100% 0, 100% 100%, 0 100%, 0 100%);
  z-index: 2;
  transition: all 0.3s ease;
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.news-card:hover .news-logo-badge {
  background-color: var(--red-one);
}

.news-category {
  position: absolute;
  top: 30px;
  left: 0;
  background-color: var(--purple-one);
  color: var(--white-one);
  padding: 5px 15px;
  font-family: "Bruce Forever";
  font-size: var(--small-size);
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    0 100%
  );
}

.news-date {
  position: absolute;
  bottom: 15px;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--white-one);
  padding: 5px 15px;
  font-family: "Bruce Forever";
  font-size: var(--small-size);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 50%);
}

.news-content {
  padding: 20px;
}

.news-headline {
  font-family: "Bruce Forever";
  font-size: var(--normal-size);
  color: var(--purple-one);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.news-excerpt {
  font-family: "Inter SemiBold";
  color: #555;
  line-height: 1.5;
}

.news-card:hover {
  transform: translateY(-10px);
}

.news-card:hover .news-image {
  transform: scale(1.1);
}

.news-card:hover .news-headline {
  color: var(--red-one);
}

.news-card:hover .news-category {
  background-color: var(--red-one);
}

.footer-section {
  margin-top: -100px;
  position: relative;
  z-index: 100;
}

@media (max-width: 768px) {
  .news-top {
    height: 300px;
  }

  .news-top-shape {
    height: 600px;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 85% 35%, 15% 35%, 0 50%);
  }

  .news-bottom {
    height: 300px;
  }

  .news-bottom-shape {
    height: 600px;
    clip-path: polygon(15% 65%, 85% 65%, 100% 50%, 100% 100%, 0 100%, 0 50%);
  }

  .news-title {
    font-size: calc(var(--super-size) * 0.7);
  }

  .news-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .news-headline {
    font-size: calc(var(--normal-size) * 0.8);
  }

  .news-excerpt {
    font-size: calc(var(--normal-size) * 0.7);
  }
}

@media (max-width: 430px) {
  .news-container {
    padding-inline: 40px;
    row-gap: 50px;
  }

  .news-top {
    height: 250px;
  }
  .news-top-shape {
    height: 500px;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 85% 35%, 15% 35%, 0 45%);
  }

  .news-bottom {
    height: 250px;
  }

  .news-bottom-shape {
    height: 500px;
    clip-path: polygon(15% 65%, 85% 65%, 100% 55%, 100% 100%, 0 100%, 0 55%);
  }

  .news-title {
    font-size: calc(var(--super-size) * 0.6);
  }
}

@media (max-width: 320px) {
  .news-title {
    font-size: calc(var(--super-size) * 0.5);
  }

  .news-container {
    padding-inline: 20px;
  }
}
