/**
 * Azharica News Styles
 */

.az-news-container {
  width: 100%;
  margin: 24px auto;
  box-sizing: border-box;
}

.az-news-grid {
  display: grid;
  gap: 24px;
}

.az-cols-2 .az-news-grid {
  grid-template-columns: repeat(2, 1fr);
}

.az-cols-3 .az-news-grid {
  grid-template-columns: repeat(3, 1fr);
}

.az-cols-4 .az-news-grid {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 992px) {
  .az-cols-4 .az-news-grid,
  .az-cols-3 .az-news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .az-cols-4 .az-news-grid,
  .az-cols-3 .az-news-grid,
  .az-cols-2 .az-news-grid {
    grid-template-columns: 1fr;
  }
}

.az-news-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.az-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.az-news-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f1f5f9;
  overflow: hidden;
}

.az-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.az-news-card:hover .az-news-thumb img {
  transform: scale(1.05);
}

.az-news-cat-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 81, 50, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.az-news-video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.az-news-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.az-news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 10px;
}

.az-news-date,
.az-news-author {
  display: flex;
  align-items: center;
  gap: 4px;
}

.az-news-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.az-news-title a {
  color: #111827;
  text-decoration: none;
  transition: color 0.2s;
}

.az-news-title a:hover {
  color: #0F5132;
}

.az-news-excerpt {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4b5563;
  flex-grow: 1;
}

.az-news-readmore {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #0F5132;
  text-decoration: none;
  transition: transform 0.2s;
}

.az-news-readmore:hover {
  transform: translateX(4px);
}
