/* ========== FEATURED POST ========== */
.feat { padding: 62px 0 0; background: #fff; }
.feat__inner { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

.feat__card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(130deg, #eef5fb, #f2f9f5);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0, 59, 110, .1);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s ease;
}
.feat__card:hover { transform: translateY(-7px); box-shadow: 0 20px 42px rgba(0, 59, 110, .18); }

.feat__media { position: relative; overflow: hidden; }
.feat__media img {
  display: block; width: 100%; height: 100%; min-height: 320px;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22,1,.36,1);
}
.feat__card:hover .feat__media img { transform: scale(1.06); }

.feat__ribbon {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 16px; border-radius: 20px;
  background: var(--nav-green); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 4px 12px rgba(26,171,83,.4);
}

.feat__body { padding: 36px 34px; display: flex; flex-direction: column; justify-content: center; }

.feat__cat {
  align-self: flex-start;
  padding: 5px 14px; border-radius: 20px;
  background: rgba(0,75,135,.1); color: var(--nav-blue);
  font-size: 12px; font-weight: 700;
}
.feat__title {
  margin: 14px 0 12px;
  font-size: clamp(20px, 2.3vw, 27px);
  font-weight: 800; color: #1c2b36; line-height: 1.4;
}
.feat__excerpt { font-size: 14.5px; line-height: 1.85; color: #5a6e80; }

.feat__meta { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 12.5px; color: #8aa3b8; }
.feat__meta .dot { opacity: .6; }

.feat__link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-size: 14px; font-weight: 700; color: var(--nav-blue);
  transition: gap .3s ease, color .25s ease;
}
.feat__link svg { width: 15px; height: 15px; }
.feat__card:hover .feat__link { gap: 13px; color: #128a41; }

/* ========== BLOG LIST ========== */
.blog { padding: 56px 0 84px; background: #fff; }
.blog__inner { max-width: 1240px; margin: 0 auto; padding: 0 18px; }

/* ---- Search + categories ---- */
.blog__bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px;
  margin-bottom: 38px;
}

.blog__search {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  min-width: 260px;
  padding: 12px 18px;
  border: 1.5px solid rgba(0,75,135,.16);
  border-radius: 30px;
  background: #fff;
  transition: border-color .28s ease, box-shadow .28s ease;
}
.blog__search:focus-within { border-color: var(--nav-blue); box-shadow: 0 6px 18px rgba(0,75,135,.14); }
.blog__search svg { width: 17px; height: 17px; color: #8aa3b8; flex-shrink: 0; }
.blog__search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 14px; color: #1c2b36; background: transparent; }
.blog__search input::placeholder { color: #a0b4c4; }

.blog__cats { display: flex; flex-wrap: wrap; gap: 9px; }
.blog__cat {
  padding: 9px 20px;
  border: 1.5px solid rgba(0,75,135,.16);
  border-radius: 30px;
  background: #fff; color: #4a5f72;
  font: inherit; font-size: 13.5px; font-weight: 700;
  cursor: pointer;
  transition: color .26s ease, border-color .26s ease, background .26s ease, transform .26s ease, box-shadow .26s ease;
}
.blog__cat:hover { border-color: var(--nav-blue); color: var(--nav-blue); transform: translateY(-2px); }
.blog__cat.is-active {
  background: linear-gradient(135deg, var(--nav-blue), #0a6fb8);
  border-color: transparent; color: #fff;
  box-shadow: 0 5px 16px rgba(0,75,135,.33);
}

/* ---- Grid ---- */
.blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.bcard {
  display: flex; flex-direction: column;
  border-radius: 15px; overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,59,110,.09);
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s ease;
  animation: bcardIn .55s cubic-bezier(.22,1,.36,1) both;
}
.bcard:hover { transform: translateY(-8px); box-shadow: 0 20px 38px rgba(0,59,110,.17); }

@keyframes bcardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.bcard__media { position: relative; overflow: hidden; }
.bcard__media img {
  display: block; width: 100%; height: 195px; object-fit: cover;
  transition: transform .55s cubic-bezier(.22,1,.36,1);
}
.bcard:hover .bcard__media img { transform: scale(1.08); }

.bcard__cat {
  position: absolute; top: 13px; left: 13px;
  padding: 5px 13px; border-radius: 20px;
  background: rgba(255,255,255,.94); color: var(--nav-blue);
  font-size: 11.5px; font-weight: 800;
  backdrop-filter: blur(4px);
}

.bcard__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }

.bcard__title {
  font-size: 16.5px; font-weight: 800; color: #1c2b36; line-height: 1.5;
  transition: color .25s ease;
}
.bcard:hover .bcard__title { color: var(--nav-blue); }

.bcard__excerpt {
  margin-top: 10px; flex: 1;
  font-size: 13.5px; line-height: 1.8; color: #6b8296;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.bcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid #eef3f7;
  font-size: 12px; color: #8aa3b8;
}
.bcard__arrow {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,75,135,.08); color: var(--nav-blue);
  transition: background .3s ease, color .3s ease, transform .35s ease;
}
.bcard__arrow svg { width: 14px; height: 14px; }
.bcard:hover .bcard__arrow { background: var(--nav-blue); color: #fff; transform: translateX(3px); }

/* ---- Empty + load more ---- */
.blog__empty {
  display: none;
  padding: 50px 0; text-align: center;
  font-size: 15px; color: #8aa3b8;
}
.blog__empty.is-shown { display: block; }

.blog__more { margin-top: 40px; text-align: center; }
.blog__more.is-hidden { display: none; }

.blog__more-btn {
  padding: 13px 34px;
  border: 1.5px solid var(--nav-blue);
  border-radius: 30px;
  background: transparent; color: var(--nav-blue);
  font: inherit; font-size: 14.5px; font-weight: 700;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.blog__more-btn:hover {
  background: var(--nav-blue); color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,75,135,.35);
}

/* ========== BLOG RESPONSIVE ========== */
@media (max-width: 1000px) {
  .feat__card { grid-template-columns: 1fr; }
  .feat__media img { min-height: 240px; }
  .feat__body { padding: 28px 24px; }
  .blog__grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 660px) {
  .feat { padding-top: 44px; }
  .blog { padding: 44px 0 62px; }
  .blog__bar { flex-direction: column; align-items: stretch; }
  .blog__search { min-width: 0; }
  .blog__cats { justify-content: center; }
  .blog__grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}