/* ==========================================
   News Page Specific Styles
   ========================================== */

/* Hero News Section */
.hero-news {
  position: relative;
  padding: 8rem 0 4rem;
  background: linear-gradient(
    135deg,
    rgba(111, 165, 199, 0.8) 0%,
    rgba(168, 216, 185, 0.7) 100%
  );
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero-news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(37, 99, 235, 0.1);
  z-index: 1;
}

.hero-news .container {
  position: relative;
  z-index: 2;
}

.hero-news .hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-news .hero__description {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* News Content Section */
.news-content {
  padding: 4rem 0;
  background: #fafafa;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Page-specific News Styles */
/* Enhanced animations for news page */
.news-card {
  position: relative;
  overflow: hidden;
}

.news-card::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #2563eb, transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.news-card:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.news-card:hover::before {
  opacity: 1;
}

.news-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.news-card__category {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.news-card__category::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.8s;
}

.news-card:hover .news-card__category::before {
  left: 100%;
}

.news-card__date {
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-card:hover .news-card__title {
  color: #2563eb;
}

.news-card__excerpt {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Tags */
.news-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  background: #f3f4f6;
  color: #374151;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tag::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
  transition: left 0.5s;
}

.tag:hover::before {
  left: 100%;
}

.tag:hover {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* News Actions */
.news-actions {
  text-align: center;
  padding: 2rem 0;
}

.news-actions__text {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Related Services Section - Enhanced */
.related-services {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-link {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.service-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  transition: left 0.5s ease;
}

.service-link:hover::before {
  left: 0;
}

.service-link:hover {
  background: white;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.2);
}

.service-link h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.service-link p {
  color: #6b7280;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-news {
    padding: 6rem 0 3rem;
  }
  
  .hero-news .hero__title {
    font-size: 1.8rem;
  }
  
  .hero-news .hero__description {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .news-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .news-card {
    padding: 1.5rem;
  }
  
  .news-card__title {
    font-size: 1.2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-link {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-news {
    padding: 5rem 0 2rem;
  }
  
  .hero-news .hero__title {
    font-size: 1.5rem;
  }
  
  .news-content {
    padding: 3rem 0;
  }
  
  .related-services {
    padding: 3rem 0;
  }
  
  .news-card {
    padding: 1.2rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .news-card__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Animation for scroll-triggered elements */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.news-card {
  animation: fadeIn 0.5s ease-out;
}

.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; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }
.news-card:nth-child(6) { animation-delay: 0.6s; }

/* Print styles */
@media print {
  .hero-news {
    background: white;
    color: black;
    padding: 2rem 0;
  }
  
  .news-card {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .related-services {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .news-card {
    border: 2px solid #000;
  }
  
  .tag {
    border: 1px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .news-card {
    animation: none;
    transition: none;
  }
  
  .news-card:hover {
    transform: none;
  }
  
  .service-link:hover {
    transform: none;
  }
}