/* ═══════════════════════════════════════
   SAITT Blog — Extracted from tpl-blog.php
═══════════════════════════════════════ */

/* ── Blog filters ── */
.filt {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .42);
  background: transparent;
  transition: all .15s;
}
.filt:hover { border-color: rgba(255, 255, 255, .3); color: #fff; }
.filt.on { background: var(--c); border-color: var(--c); color: #060b18; }

/* ── Featured card ── */
.feat-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 24px;
  transition: all .25s;
}
.feat-card:hover { border-color: rgba(0, 212, 232, .25); background: rgba(0, 212, 232, .025); }
.feat-thumb {
  background: rgba(0, 212, 232, .04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  position: relative;
  min-height: 160px;
}
.feat-thumb-label {
  position: absolute; top: 14px; left: 14px;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255, 255, 255, .2);
}
.feat-body { padding: 28px; display: flex; flex-direction: column; }
.feat-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 6px; margin-bottom: 10px; font-size: 11px;
  color: rgba(255, 255, 255, .3);
}
.feat-title { font-size: 1.15rem; font-weight: 700; line-height: 1.32; color: #f1f5f9; margin-bottom: 10px; }
.feat-exc { font-size: 13px; line-height: 1.72; color: rgba(255, 255, 255, .38); flex-grow: 1; margin-bottom: 16px; }
.feat-read { font-size: 12px; font-weight: 700; color: #4f8ef7; }

/* ── Highlighted article cards ── */
.blog-hl:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.05);
}
.blog-hl:hover span:last-child {
  filter: brightness(1.2);
}

/* ── Blog grid ── */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Newsletter form ── */
.nl-form-row { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; }
.nl-form-row input {
  flex: 1; padding: 13px 16px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; font-size: 14px; color: #f1f5f9;
  font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.nl-form-row input:focus { border-color: rgba(0, 212, 232, .5); box-shadow: 0 0 0 3px rgba(0, 212, 232, .1); }
.nl-form-row input::placeholder { color: rgba(255, 255, 255, .22); }
.nl-form-row button {
  background: var(--c); color: #060b18; border: none;
  padding: 13px 22px; border-radius: 10px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: all .25s; box-shadow: 0 4px 20px rgba(0, 212, 232, .2);
}
.nl-form-row button:hover:not(:disabled) { box-shadow: 0 8px 32px rgba(0, 212, 232, .4); transform: translateY(-1px); }
.nl-form-row button:disabled { opacity: .5; cursor: not-allowed; }

/* ── Responsive ── */
@media (max-width: 900px) { .b-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .feat-card { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; }
  .feat-thumb { min-height: 100px; padding: 24px; }
  .feat-body { padding: 20px; }
  .feat-title { font-size: 1.05rem; }
  .b-grid { grid-template-columns: 1fr !important; }
  .blog-hl { padding: 22px !important; }
  .nl-form-row { flex-direction: column; max-width: 100%; }
  .nl-form-row button { width: 100%; justify-content: center; }
}
@media (max-width: 768px) {
  .blog-hl + .blog-hl { margin-top: 0; }
}
/* Highlighted grid responsive */
@media (max-width: 700px) {
  .sec-inner > div[style*="grid-template-columns:1fr 1fr"]:first-of-type {
    grid-template-columns: 1fr !important;
  }
}
