/* All News – Frame 318 horizontal card (Figma) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&family=Inter:wght@400;600;800&display=swap');

.all-news-figma .all-news-page-title {
  margin-bottom: 24px;
}

/* Frame 318 – one row per news */
.all-news-card-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  max-width: 1200px;
  width: 100%;
  min-height: 220px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .all-news-card-row {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
  }
}

/* Blog / Component – image left */
.all-news-card-image-wrap {
  width: 365px;
  min-width: 365px;
  height: 220px;
  flex: none;
  background: #F1F1F1;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 900px) {
  .all-news-card-image-wrap {
    width: 100%;
    min-width: 0;
    height: 220px;
  }
}

.all-news-card-image-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.all-news-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.all-news-card-image-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* NEW badge */
.all-news-card-badge {
  position: absolute;
  left: 20px;
  top: 20px;
  z-index: 2;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 2px 10px;
  gap: 4px;
  background: #FFFFFF;
  border-radius: 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #000000;
}

/* Blog card content – right */
.all-news-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.all-news-card-title {
  margin: 0;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  color: #000000;
}

.all-news-card-title a {
  color: #000000;
  text-decoration: none;
}

.all-news-card-title a:hover {
  color: #1a6e83;
}

.all-news-card-desc {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 72px;
}

.all-news-card-date {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #000000;
}

/* Button / Single – View Times */
.all-news-card-btn {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px;
  gap: 4px;
  min-width: 84px;
  height: 32px;
  background: #ACAE36;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  color: #FFFFFF;
  text-decoration: none;
  margin-top: 4px;
}

.all-news-card-btn:hover {
  background: #9a9c2f;
  color: #FFFFFF;
}

/* List container */
.all-news-figma .all-news-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
