/* ============================================================
   latest.css — LadangGo "Fresh From the Garden" Section
   Palette: #1a3a0d (hijau gelap) | #5cb324 (hijau terang)
            #d4852a (oranye)      | #f5f0e8 (krem/alami)
   ============================================================ */

/* ---------- Section Wrapper ---------- */
.latest-section {
  background-color: #fff;
  padding: 72px 0 88px;
  position: relative;
}

.latest-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #5cb324, #d4852a, #1a3a0d);
}

/* ---------- Container ---------- */
.latest-section .container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section Header ---------- */
.latest-section .section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}

.latest-section .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5cb324;
  margin-bottom: 8px;
}

.latest-section .section-tag::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5cb324;
}

.latest-section .section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #1a3a0d;
  line-height: 1.15;
  margin: 0 0 6px;
}

.latest-section .section-title em {
  font-style: italic;
  color: #5cb324;
}

.section-sub {
  font-size: 0.92rem;
  color: #6b7154;
  margin: 0;
}

.latest-section .see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d6b14;
  text-decoration: none;
  border-bottom: 1.5px solid #5cb324;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.latest-section .see-all:hover {
  color: #d4852a;
  border-color: #d4852a;
}

/* ---------- Row 1 Grid (large + 2 small) ---------- */
.latest-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .latest-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .latest-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Row 2 Grid (3 equal) ---------- */
.latest-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .latest-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .latest-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Base Card ---------- */
.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid #ddd8c8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 10px rgba(26, 58, 13, 0.06);
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(26, 58, 13, 0.14);
  transform: translateY(-4px);
  border-color: #5cb324;
}

/* ---------- Card Color Banner (no emoji) ---------- */
.card-img-wrap {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.card-banner {
  width: 100%;
  height: 140px;
  display: block;
  position: relative;
  transition: transform 0.35s ease;

  .card-banner {
    border-radius: 12px;
    background: var(--bg);
}
}

/* Subtle sheen */
.card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.card:hover .card-banner {
  transform: scale(1.04);
}

/* Large card taller banner */
.card-large .card-banner {
  height: 200px;
}

/* ---------- Card Body ---------- */
.card-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #5cb324;
}

.card-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: #1a3a0d;
  line-height: 1.4;
  margin: 0;
}

.card-large .card-title {
  font-size: 1.15rem;
}

.card-excerpt {
  font-size: 0.82rem;
  color: #6b7154;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #6b7154;
  margin-top: auto;
  padding-top: 6px;
  flex-wrap: wrap;
}

.card-meta .sep {
  color: #c8c3b0;
}

.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3a0d, #5cb324);
  color: #fff;
  font-size: 0.60rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.55s ease both;
}

.delay-2 {
  animation-delay: 0.18s;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .latest-section {
    padding: 48px 0 60px;
  }

  .card-banner {
    height: 110px;
  }

  .card-large .card-banner {
    height: 150px;
  }
}

.card-banner {
    background: var(--bg);
}