* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--body-font);
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
}

.news-section {
  max-width: 1200px;
  margin: 6rem auto 4rem;
  padding: 2rem;
}

.news-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.news-title {
  font-size: 3.5rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.news-title::after {
  content: "";
  position: absolute;
  width: 60%;
  height: 4px;
  background-color: var(--color-border);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  animation: expandWidth 1.5s ease forwards;
}

.news-description {
  max-width: 700px;
  margin: 0 auto;
  padding-top: 5px;
  font-size: 1.5rem;
  color: var(--color-text);
  opacity: 0.8;
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
  margin-top: 2rem;
}

.news-card {
  background: var(--white-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--box-shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(30px);
  opacity: 0;
  animation: cardAppear 0.6s forwards;
  border: 1px solid var(--color-hover);
}

.news-card:nth-child(1) {
  animation-delay: 0.1s;
}
.news-card:nth-child(2) {
  animation-delay: 0.3s;
}
.news-card:nth-child(3) {
  animation-delay: 0.5s;
}
.news-card:nth-child(4) {
  animation-delay: 0.7s;
}
.news-card:nth-child(5) {
  animation-delay: 0.9s;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-image-container {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.dual-image-container {
  display: flex;
  height: 100%;
}

.dual-image-container img {
  width: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.news-card:hover .card-image,
.news-card:hover .dual-image-container img {
  transform: scale(1.05);
}

.card-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--color-primary);
  color: var(--white-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: var(--font-semi-bold);
  font-size: 0.85rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

.card-title::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 3px;
  background-color: var(--color-border);
  bottom: 0;
  left: 0;
  border-radius: 3px;
}

.card-description {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.card-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: var(--font-semi-bold);
  transition: all 0.3s ease;
}

.card-link i {
  margin-left: 0.3rem;
  transition: all 0.3s ease;
}

.card-link:hover {
  color: var(--color-border);
}

.card-link:hover i {
  transform: translateX(5px);
}

.tag-container {
  margin-bottom: 1rem;
}

.tag {
  display: inline-block;
  background-color: var(--color-hover);
  color: var(--color-primary);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.featured {
  position: absolute;
  top: 15px;
  left: 15px;
  background-color: var(--color-border);
  color: var(--white-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: var(--font-semi-bold);
  font-size: 0.8rem;
  z-index: 10;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes cardAppear {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media screen and (max-width: 56.25em) {
  .news-title {
    font-size: 2.5rem;
  }

  .news-description {
    font-size: 1rem;
  }
}

@media screen and (max-width: 46.875em) {
  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-section {
    padding: 2rem 1.5rem;
  }
}

@media screen and (max-width: 37.5em) {
  .news-title {
    font-size: 2rem;
  }

  .card-image-container {
    height: 180px;
  }
}
