/* ============================================================
   FINKI – PROJECTS + ANNOUNCEMENTS (почетна)
   (извадено од main.css без промени во правилата)
   ============================================================ */

/* ============================================================
   PROJECTS + ANNOUNCEMENTS
   ============================================================ */

.home-projects-news {
  width: 100%;
  padding: 1.5rem 0 3rem;
}

.home-projects-news__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.hp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hp-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hp-more {
  font-size: 1.25rem;
  text-decoration: none;
  color: inherit;
}

/* PROJECTS */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 колони desktop */
  column-gap: 1.5rem;
  row-gap: 2rem;
}

.project-card {
  width: 100%;
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.project-card__link:hover {
  transform: translateY(-0.125rem);
  text-decoration: none;
}

.project-card__img {
  width: 100%;
  aspect-ratio: 308 / 147;
  background: #ccc;
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-card__meta {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.375rem;
}

.project-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.375rem;
}

.project-card__excerpt {
  font-size: 0.875rem;
  line-height: 1.4;
  color: #333;
  margin-bottom: 0.375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__arrow {
  font-size: 1.125rem;
  margin-top: auto;
}

/* ANNOUNCEMENTS */

.hp-right {
  width: 100%;
  max-width: 40rem;
}

.ann-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.ann-item {
  width: 100%;
  min-height: 4.625rem;
  display: grid;
  grid-template-columns: 4.6875rem 1fr;
  column-gap: 0.75rem;
  align-items: center;
  border-radius: 0.5rem;
  background: #f6f6f6;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.ann-item:hover {
  transform: translateY(-0.125rem);
  text-decoration: none;
}

.ann-date {
  width: 4.6875rem;
  height: 4.625rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ann-date__day {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1f2b7b;
}

.ann-date__mon {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ann-text {
  height: 4.625rem;
  padding: 0 0.625rem;
  background: #fff;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.ann-text span:first-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ann-ico {
  font-size: 1rem;
  opacity: 0.75;
  margin-left: 1rem;
  flex-shrink: 0;
}

.download-icon {
  width: 1.5625rem;
  height: 1.5625rem;
}

/* PROJECTS + ANNOUNCEMENTS – RESPONSIVE */

@media (max-width: 1280px) {
  .home-projects-news__inner {
    grid-template-columns: 1fr;
  }

  .hp-right {
    width: 100%;
    max-width: 100%;
  }

  .ann-item {
    width: 100%;
  }
}

/* Tablet: 2 колони проекти */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phone: 1 проект по ред, hp layout поедноставен */
@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .hp-header {
    gap: 0.75rem;
  }

  .ann-text {
    font-size: 0.8125rem;
  }
}

