/*
Theme Name: Fasi Grid news
Version: 1.1
*/

.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.hero-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #E5E7EB;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
  color: inherit;
  text-decoration: none;
}

.hero-card:hover {
  box-shadow: 0 6px 24px rgba(39, 110, 245, 0.1);
}

.hero-img {
  position: relative;
  width: 100%;
  height: 250px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-img-badge {
  position: absolute;
  top: 50px;
  left: 30px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.hero-body {
  padding: 22px 26px 26px;
}

.hero-meta {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.hero-title {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-title a {
  color: inherit;
  text-decoration: none;
}

.hero-excerpt {
  font-size: 14px;
  color: #000;
  line-height: 1.75;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #276ef5;
  transition: gap 0.15s;
}

.hero-cta:hover {
  gap: 11px;
}

/* Preview Section */
.news-previews {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.news-preview {
  padding: 16px 0;
  border-bottom: 1px solid #eef0f3;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.news-preview:last-child {
  border-bottom: none;
}

.news-cat-pill {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  align-self: flex-start;
  background: #f3e8ff;
  color: #7030a0;
}

.news-preview-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a2d3d;
  line-height: 1.35;
}

.news-preview-title a {
  color: inherit;
  text-decoration: none;
}

.news-preview-title a:hover {
  color: #276ef5;
}

.news-preview-date {
  font-size: 12px;
  color: #9ca3af;
}

.btn_green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 8px;
  background-color: #6abb90;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  text-transform: uppercase;
}

.btn_green:hover {
 transform: scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .news-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-img {
    height: 200px;
  }

  .hero-title {
    font-size: 18px;
  }

  .news-previews {
    order: -1;
  }
}