/**
 * Departments News Styles
 * Horizontal card layout with thumbnail left, content right
 */

/* News List Container */
.departments-featured-news-view .view-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual News Item */
.dept-news-item {
  width: 100%;
}

/* News Card - Horizontal Layout */
.dept-news-card {
  display: flex;
  gap: 1.25rem;
  background: #ffffff;
  border-radius: 0;
  overflow: hidden;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

.dept-news-card:hover {
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
  transform: translateX(4px);
  border-color: #18453b;
}

/* Thumbnail - Left Side */
.dept-news-thumbnail {
  flex-shrink: 0;
  width: 150px;
  height: 100px;
  overflow: hidden;
  border-radius: 0;
  background: #dee2e6;
}

.dept-news-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dept-news-card:hover .dept-news-thumbnail img {
  transform: scale(1.08);
}

/* Content - Right Side */
.dept-news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

/* Date */
.dept-news-date {
  color: #18453b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dept-news-date time {
  color: #18453b;
}

/* Title */
.dept-news-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: #212529;
}

.dept-news-title a {
  color: #212529;
  text-decoration: none;
  transition: color 0.2s ease;
}

.dept-news-title a:hover {
  color: #18453b;
}

/* Description */
.dept-news-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #495057;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dept-news-description p {
  margin: 0;
}

/* Read More Link */
.dept-news-link {
  margin-top: auto;
}

.dept-news-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #18453b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  position: relative;
}

.dept-news-link a::after {
  content: '\2192';
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.dept-news-link a:hover {
  color: #0d3625;
}

.dept-news-link a:hover::after {
  transform: translateX(4px);
}

/* Focus States */
.dept-news-title a:focus,
.dept-news-link a:focus {
  outline: 2px solid #18453b;
  outline-offset: 3px;
  border-radius: 0;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
  .dept-news-card {
    gap: 1rem;
    padding: 0.875rem;
  }

  .dept-news-thumbnail {
    width: 120px;
    height: 80px;
  }

  .dept-news-title {
    font-size: 0.9375rem;
  }
}

@media (max-width: 767px) {
  .dept-news-card {
    flex-direction: column;
    gap: 0.875rem;
    padding: 0.75rem;
  }

  .dept-news-thumbnail {
    width: 100%;
    height: 180px;
  }

  .dept-news-title {
    font-size: 0.9375rem;
  }

  .dept-news-description {
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 575px) {
  .dept-news-thumbnail {
    height: 150px;
  }

  .dept-news-title {
    font-size: 0.875rem;
  }

  .dept-news-date {
    font-size: 0.6875rem;
  }

  .dept-news-description {
    font-size: 0.8125rem;
  }

  .dept-news-link a {
    font-size: 0.8125rem;
  }
}

/* Empty State */
.departments-featured-news-view .view-empty {
  padding: 2rem;
  text-align: center;
  color: #6c757d;
  font-style: italic;
  background: #f8f9fa;
  border-radius: 0;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .dept-news-card,
  .dept-news-thumbnail img,
  .dept-news-title a,
  .dept-news-link a,
  .dept-news-link a::after {
    transition: none !important;
  }

  .dept-news-card:hover {
    transform: none;
  }

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

  .dept-news-link a:hover::after {
    transform: none;
  }
}
