/* ===============================================
   📰 PROJECTS NEWS SECTION - DESKTOP STYLES
   =============================================== */

.projects-news-section {
  margin: var(--spacing-4xl) 0 var(--spacing-xxl) 0 !important;
  margin-top: calc(var(--spacing-4xl) + var(--spacing-xxl) + var(--spacing-xl)) !important;
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, rgba(102, 255, 0, 0.02) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-top: 1px solid rgba(102, 255, 0, 0.1);
  border-bottom: 1px solid rgba(102, 255, 0, 0.1);
}

/* Додаємо внутрішній відступ зверху всередині контейнера */
.projects-news-section > .container {
  padding-top: var(--spacing-xxl) !important;
}

/* Додатковий селектор для забезпечення відступу після related-work-section */
.related-work-section + .projects-news-section {
  margin-top: calc(var(--spacing-4xl) + var(--spacing-xxl) + var(--spacing-xl)) !important;
}

.news-section-header {
  text-align: center;
  margin-top: var(--spacing-xxl);
  margin-bottom: var(--spacing-xxl);
}

.news-section-header h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.news-section-header h2 .lucide {
  color: var(--accent-green);
  flex-shrink: 0;
}

.news-section-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.news-grid {
  display: block;
  margin-bottom: var(--spacing-xxl);
}

.news-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(102, 255, 0, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  transition: all 0.2s ease;
  position: relative;
}

.news-card:hover {
  transform: none;
  box-shadow: 0 4px 15px rgba(102, 255, 0, 0.1);
  border-color: rgba(102, 255, 0, 0.2);
}

.news-link {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm);
  text-decoration: none;
  color: inherit;
}

.news-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  margin-right: var(--spacing-md);
}

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

.news-card:hover .news-image img {
  transform: none;
}

.image-overlay {
  display: none;
}

.news-content {
  flex: 1;
  padding: 0;
  min-width: 0;
}

.news-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: 0;
}

.news-category {
  background: rgba(102, 255, 0, 0.1);
  color: var(--accent-green);
  padding: 3px 10px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(102, 255, 0, 0.2);
}

.news-date {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.news-excerpt {
  display: none;
}

.news-section-footer {
  text-align: center;
  margin-top: var(--spacing-xl);
}

.news-section-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  background: rgba(102, 255, 0, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(102, 255, 0, 0.2);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: none;
}

.news-section-footer .btn-primary:hover {
  transform: none;
  background: rgba(102, 255, 0, 0.15);
  border-color: rgba(102, 255, 0, 0.3);
  color: var(--accent-green);
  box-shadow: 0 2px 8px rgba(102, 255, 0, 0.1);
}

.news-section-footer .btn-primary .lucide {
  transition: transform 0.2s ease;
  width: 14px;
  height: 14px;
}

.news-section-footer .btn-primary:hover .lucide {
  transform: translateX(2px);
}

/* Animation delays for cards */
.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive adjustments for large screens */
@media (min-width: 1400px) {
  .news-grid {
    display: block;
  }
  
  .news-image {
    width: 90px;
    height: 90px;
  }
  
  .news-section-subtitle {
    font-size: 1.3rem;
  }
}
