/* ==========================================================================
   AirGo Tel — /blog page specifics
   ========================================================================== */

.ag-bloghead {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 24px var(--ag-gutter) 8px;
}
.ag-bloghead h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.ag-bloghead__lead { font-size: 16.5px; color: var(--ag-muted); max-width: 560px; line-height: 1.55; }

/* ---------- Search + categories (revealed once posts exist) ---------- */

.ag-blogtools {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 18px var(--ag-gutter) 0;
}
.ag-blogtools[hidden] { display: none; }

.ag-blogsearch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ag-card);
  border: var(--ag-border-emphasis);
  border-radius: var(--ag-radius-lg);
  padding: 4px 4px 4px 14px;
  max-width: 420px;
  margin-bottom: 16px;
}
.ag-blogsearch:focus-within { border-color: var(--ag-azure); }
.ag-blogsearch__icon { color: var(--ag-faint); flex-shrink: 0; }
.ag-blogsearch__icon svg { width: 17px; height: 17px; }
.ag-blogsearch__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ag-ink);
  padding: 12px 0;
  outline: none;
  min-height: 44px;
}

.ag-blogcats { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-blogcat {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--ag-radius-pill);
  cursor: pointer;
  border: var(--ag-border);
  background: var(--ag-card);
  color: var(--ag-slate);
  min-height: 40px;
}
.ag-blogcat:hover { border-color: var(--ag-azure); }
.ag-blogcat[aria-pressed="true"] {
  background: var(--ag-navy);
  border-color: var(--ag-navy);
  color: #fff;
}

/* ---------- Posts ---------- */

.ag-posts {
  max-width: var(--ag-content-max);
  margin: 0 auto;
  padding: 24px var(--ag-gutter) 20px;
}
.ag-posts__state > [hidden] { display: none; }

.ag-post {
  background: var(--ag-card);
  border: var(--ag-border);
  border-radius: var(--ag-radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ag-motion-base), box-shadow var(--ag-motion-base);
}
.ag-post:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(11, 32, 56, .1); }
.ag-post__thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #EDF4FF, #DCE7FB);
}
.ag-post__thumb svg { width: 34px; height: 34px; color: var(--ag-azure-600); }
.ag-post__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.ag-post__cat {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ag-azure-600);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.ag-post h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; line-height: 1.25; }
.ag-post__excerpt { font-size: 14px; color: var(--ag-muted); line-height: 1.55; margin-bottom: 14px; }
.ag-post__meta {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--ag-faint);
  font-weight: 600;
}

/* ---------- Newsletter ---------- */

.ag-newsletter {
  max-width: var(--ag-content-max);
  margin: 20px auto 40px;
  padding: 0 var(--ag-gutter);
}
.ag-newsletter__panel {
  background: var(--ag-gradient-panel);
  border-radius: var(--ag-radius-2xl);
  padding: 40px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.ag-newsletter__panel h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: #fff; }
.ag-newsletter__lead { font-size: 15px; color: var(--ag-on-dark-body); line-height: 1.55; }

.ag-newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.ag-newsletter__input {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--ag-radius-md);
  padding: 13px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  outline: none;
  min-height: 44px;
}
.ag-newsletter__input::placeholder { color: var(--ag-on-dark-muted); }
.ag-newsletter__input:focus { border-color: var(--ag-azure-400); }
.ag-newsletter__submit {
  background: var(--ag-coral);
  border: 0;
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: var(--ag-radius-md);
  cursor: pointer;
  min-height: 44px;
}
.ag-newsletter__submit:hover { background: var(--ag-coral-600); }

.ag-newsletter__note {
  font-size: 12.5px;
  color: var(--ag-on-dark-muted);
  margin-top: 12px;
  line-height: 1.5;
}
.ag-newsletter__result {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ag-azure-300);
  font-weight: 700;
}
.ag-newsletter__result[hidden] { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 820px) {
  .ag-bloghead h1 { font-size: 32px; }
}

/* Hit targets: minimum 44x44 on mobile. */
@media (max-width: 768px) {
  .ag-blogcat { min-height: 44px; }
}

@media (max-width: 620px) {
  .ag-bloghead h1 { font-size: 27px; }
  .ag-bloghead__lead { font-size: 15px; }
  .ag-newsletter__panel { padding: 28px 22px; }
  .ag-newsletter__panel h2 { font-size: 22px; }
  .ag-newsletter__submit { width: 100%; }
}
