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

/* ── Wrapper ─────────────────────────────────────────────────────────────── */
.nlc-wrapper {
  font-family: 'Cairo', sans-serif;
  color: #4a4a4a;
  box-sizing: border-box;
}

.nlc-wrapper *,
.nlc-wrapper *::before,
.nlc-wrapper *::after {
  box-sizing: inherit;
}

/* ── Section header ──────────────────────────────────────────────────────── */
.nlc-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.nlc-header-text {
  flex: 1;
}

.nlc-section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #85724d;
  margin-bottom: 8px;
}

.nlc-section-h2 {
  font-size: 30px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0 0 10px;
  line-height: 1.25;
}

.nlc-section-body {
  font-size: 15px;
  color: #4a4a4a;
  max-width: 440px;
  margin: 0;
  line-height: 1.65;
}

/* ── Ghost button ────────────────────────────────────────────────────────── */
.nlc-btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1.5px solid #85724d;
  border-radius: 8px;
  color: #85724d;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.nlc-btn-ghost:hover {
  background: #85724d;
  color: #fff;
}

/* ── Grid ────────────────────────────────────────────────────────────────── */
.nlc-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 44px;
  align-items: start;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.nlc-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.nlc-card:hover {
  box-shadow: 0 8px 32px rgba(133, 114, 77, 0.14);
  transform: translateY(-3px);
}

/* ── Image ───────────────────────────────────────────────────────────────── */
.nlc-img {
  flex-shrink: 0;
}

.nlc-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background: #85724d;
}

.nlc-card.nlc-featured .nlc-img-box {
  height: 260px;
}

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

.nlc-card:hover .nlc-img-box img {
  transform: scale(1.04);
}

.nlc-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #85724d 0%, #a08c60 100%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
}

/* ── Card body ───────────────────────────────────────────────────────────── */
.nlc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Tag */
.nlc-tag {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
  align-self: flex-start;
}

/* Title */
.nlc-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c2c;
  line-height: 1.45;
  margin-bottom: 10px;
}

.nlc-card.nlc-featured .nlc-title {
  font-size: 18px;
}

/* Excerpt */
.nlc-excerpt {
  font-size: 14px;
  color: #4a4a4a;
  line-height: 1.65;
  margin: 0 0 auto;
  padding-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nlc-card.nlc-featured .nlc-excerpt {
  -webkit-line-clamp: 5;
}

/* ── Card footer ─────────────────────────────────────────────────────────── */
.nlc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #e8e8e8;
  margin-top: auto;
  gap: 8px;
}

.nlc-date {
  font-size: 13px;
  color: #888;
}

.nlc-readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #85724d;
  text-decoration: none;
  white-space: nowrap;
  transition: gap 0.2s;
}

.nlc-readmore:hover {
  gap: 8px;
  color: #70603f;
}

.nlc-readmore svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */
.nlc-cta {
  text-align: center;
  margin-top: 8px;
}

.nlc-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: #85724d;
  color: #fff;
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s;
}

.nlc-btn-primary:hover {
  background: #70603f;
  color: #fff;
  gap: 12px;
}

.nlc-btn-primary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nlc-no-results {
  color: #888;
  font-size: 15px;
  grid-column: 1 / -1;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .nlc-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nlc-card.nlc-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .nlc-grid {
    grid-template-columns: 1fr;
  }
  .nlc-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .nlc-section-h2 {
    font-size: 24px;
  }
}
