/* =====================================================================
   ALYA BLOG — articles hub + archives (home.php / category / tag / search).
   Navy #021F4B · neon #7FFA7B · Manrope · shared 1384 content frame.
   ===================================================================== */

.ba-wrap { background: #fff; position: relative; overflow: hidden; }
.ba-wrap *,
.ba-wrap *::before,
.ba-wrap *::after { box-sizing: border-box; }

.ba-inner { max-width: 1384px; margin: 0 auto; padding: 0 32px; width: 100%; }

/* shared eyebrow */
.ba-eyebrow {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: #7FFA7B;
}
.ba-sec .ba-eyebrow,
.ba-cta .ba-eyebrow { color: #4f6b9c; }
.ba-sec--latest .ba-eyebrow { color: #4f6b9c; }

/* ── HERO ─────────────────────────────────────────────────────────────── */
.ba-hero {
  position: relative; background: #021F4B; color: #fff;
  padding: 104px 0 64px; overflow: hidden;
}
.ba-hero::before {
  content: ""; position: absolute; right: -180px; top: -160px;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,250,123,.16), transparent 62%);
  pointer-events: none;
}
.ba-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127,250,123,.5), transparent);
}
.ba-hero-inner { position: relative; z-index: 1; max-width: 1384px; margin: 0 auto; padding: 0 32px; width: 100%; }

.ba-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 22px; font-family: 'Manrope', sans-serif; }
.ba-crumbs a { color: rgba(255,255,255,.62); text-decoration: none; transition: color .15s; }
.ba-crumbs a:hover { color: #7FFA7B; }
.ba-crumbs span[aria-hidden] { color: rgba(255,255,255,.3); }
.ba-crumbs .current { color: rgba(255,255,255,.5); }

.ba-hero .ba-eyebrow { margin-bottom: 18px; }
.ba-h1 {
  font-family: 'Manrope', sans-serif; font-weight: 800;
  font-size: clamp(34px, 5vw, 62px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0; max-width: 16ch; color: #fff;
}
.ba-sub {
  font-family: 'Manrope', sans-serif; font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6; color: rgba(255,255,255,.74); margin: 20px 0 0; max-width: 60ch;
}

/* search */
.ba-search {
  margin-top: 34px; display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px; padding: 7px 7px 7px 16px; max-width: 560px;
  backdrop-filter: blur(6px); transition: border-color .2s, background .2s;
}
.ba-search:focus-within { border-color: rgba(127,250,123,.6); background: rgba(255,255,255,.1); }
.ba-search-ic { display: flex; color: rgba(255,255,255,.5); }
.ba-search-ic svg { width: 19px; height: 19px; }
.ba-search input {
  flex: 1; border: 0; background: transparent; outline: 0; color: #fff;
  font-family: 'Manrope', sans-serif; font-size: 15px; padding: 9px 0;
}
.ba-search input::placeholder { color: rgba(255,255,255,.45); }
.ba-search button {
  border: 0; cursor: pointer; background: #7FFA7B; color: #021F4B;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 14px;
  padding: 11px 22px; border-radius: 10px; transition: transform .15s, box-shadow .2s;
}
.ba-search button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(127,250,123,.32); }

.ba-hero-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.ba-tchip {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  padding: 8px 13px; border-radius: 100px; transition: all .16s;
}
.ba-tchip i { font-style: normal; font-size: 11px; font-weight: 800; color: rgba(127,250,123,.85); }
.ba-tchip:hover { background: rgba(127,250,123,.14); border-color: rgba(127,250,123,.5); color: #fff; }
.ba-tchip.is-active { background: #7FFA7B; border-color: #7FFA7B; color: #021F4B; }
.ba-tchip.is-active i { color: #021F4B; }

.ba-hero-stats { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 36px; }
.ba-hstat { font-family: 'Manrope', sans-serif; font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: .01em; }
.ba-hstat b { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1; margin-bottom: 5px; }

/* author hero */
.ba-author-card { display: flex; align-items: flex-start; gap: 30px; }
.ba-av { flex-shrink: 0; }
.ba-av .ba-av-img, .ba-av img {
  width: 104px; height: 104px; border-radius: 50%; display: block; object-fit: cover;
  border: 2px solid rgba(127,250,123,.5); box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.ba-author-meta { min-width: 0; }
.ba-author-meta .ba-eyebrow { margin-bottom: 14px; }
.ba-author-meta .ba-h1 { font-size: clamp(30px, 4vw, 50px); }
.ba-author-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }
.ba-author-stat { font-family: 'Manrope', sans-serif; font-size: 14px; color: rgba(255,255,255,.66); }
.ba-author-stat b { color: #7FFA7B; font-weight: 800; font-size: 16px; }
.ba-author-link {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-weight: 700; font-size: 14px; color: #fff;
  border: 1px solid rgba(255,255,255,.24); padding: 8px 15px; border-radius: 100px; transition: all .16s;
}
.ba-author-link svg { width: 14px; height: 14px; }
.ba-author-link:hover { border-color: #7FFA7B; color: #7FFA7B; }
@media (max-width: 560px) {
  .ba-author-card { gap: 20px; }
  .ba-av .ba-av-img, .ba-av img { width: 76px; height: 76px; }
}

/* ── SECTIONS ─────────────────────────────────────────────────────────── */
.ba-sec { padding: 76px 0; border-top: 1px solid #e7eef8; }
.ba-sec--segments { background: #f5f9ff; }
.ba-sec--topics { background: #f5f9ff; }
.ba-sec-head { margin-bottom: 40px; }
.ba-sec-head .ba-eyebrow { margin-bottom: 12px; }
.ba-sec-title {
  font-family: 'Manrope', sans-serif; font-weight: 800; color: #021F4B;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.025em; margin: 0;
}

/* ── SEGMENT CARDS ────────────────────────────────────────────────────── */
.ba-segments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ba-seg {
  display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid #e1eaf6; border-radius: 18px; padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s; position: relative; overflow: hidden;
}
.ba-seg::after {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, #7FFA7B, #5AF956); transition: width .3s ease;
}
.ba-seg:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(2,31,75,.1); border-color: #cfe0f6; }
.ba-seg:hover::after { width: 100%; }
.ba-seg-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
  background: #eaf3ff; color: #021F4B; transition: background .2s, color .2s;
}
.ba-seg-ic svg { width: 25px; height: 25px; }
.ba-seg:hover .ba-seg-ic { background: #021F4B; color: #7FFA7B; }
.ba-seg-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ba-seg-name { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 19px; color: #021F4B; letter-spacing: -.01em; }
.ba-seg-count { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; color: #7a93b8; white-space: nowrap; }
.ba-seg-blurb { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.55; color: #5a6f8c; margin: 11px 0 16px; flex: 1; }
.ba-seg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.ba-seg-chip { font-family: 'Manrope', sans-serif; font-size: 11.5px; font-weight: 600; color: #4f6b9c; background: #f0f6ff; border: 1px solid #e1eaf6; padding: 4px 9px; border-radius: 7px; }
.ba-seg-go { display: inline-flex; align-items: center; gap: 7px; font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; color: #021F4B; }
.ba-seg-go svg { width: 15px; height: 15px; transition: transform .2s; }
.ba-seg:hover .ba-seg-go svg { transform: translate(3px, -3px); }

/* ── ARTICLE GRID ─────────────────────────────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ba-card {
  display: flex; flex-direction: column; text-decoration: none; background: #fff;
  border: 1px solid #e7eef8; border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ba-card:hover { transform: translateY(-4px); box-shadow: 0 20px 46px rgba(2,31,75,.12); border-color: #d6e3f6; }
.ba-card-img {
  display: block; width: 100%; aspect-ratio: 16 / 10; background-size: cover;
  background-position: center; background-color: #dde8f7; position: relative;
}
.ba-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,31,75,.16), transparent 42%); }
.ba-card-img--ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #021F4B, #0a356f); }
.ba-ph-mark { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: .25em; color: rgba(127,250,123,.55); font-size: 22px; }
.ba-card-body { display: flex; flex-direction: column; padding: 20px 22px 22px; flex: 1; }
.ba-card-meta { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.ba-chip {
  font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #021F4B; background: #7FFA7B; padding: 4px 9px; border-radius: 6px;
}
.ba-card-date { font-family: 'Manrope', sans-serif; font-size: 12.5px; color: #8295ad; font-weight: 600; }
.ba-card-title {
  font-family: 'Manrope', sans-serif; font-weight: 800; color: #021F4B;
  font-size: 18px; line-height: 1.28; letter-spacing: -.015em; transition: color .15s;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ba-card:hover .ba-card-title { color: #0a4ea0; }
.ba-card-exc {
  font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.58; color: #5a6f8c; margin-top: 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ba-card-more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 16px;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 13px; color: #0a4ea0;
}
.ba-card-more svg { width: 14px; height: 14px; transition: transform .2s; }
.ba-card:hover .ba-card-more svg { transform: translate(3px, -3px); }

/* lead card spans 2 columns, image left */
.ba-card--lg { grid-column: span 2; flex-direction: row; }
.ba-card--lg .ba-card-img { width: 52%; aspect-ratio: auto; min-height: 320px; flex-shrink: 0; }
.ba-card--lg .ba-card-body { padding: 34px 36px; justify-content: center; }
.ba-card--lg .ba-card-title { font-size: 26px; -webkit-line-clamp: 3; }
.ba-card--lg .ba-card-exc { font-size: 15px; -webkit-line-clamp: 4; margin-top: 14px; }

/* ── TOPIC INDEX ──────────────────────────────────────────────────────── */
.ba-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.ba-topic {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: #28456f;
  background: #fff; border: 1px solid #e1eaf6; padding: 9px 15px; border-radius: 100px; transition: all .16s;
}
.ba-topic i { font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #9fb4d2; border-radius: 100px; padding: 2px 7px; transition: background .16s; }
.ba-topic:hover { border-color: #021F4B; color: #021F4B; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,31,75,.08); }
.ba-topic:hover i { background: #021F4B; }

/* ── PAGINATION ───────────────────────────────────────────────────────── */
.ba-pagination { margin-top: 48px; display: flex; justify-content: center; }
.ba-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ba-pagination a, .ba-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  padding: 0 12px; border-radius: 11px; text-decoration: none; font-family: 'Manrope', sans-serif;
  font-weight: 700; font-size: 15px; color: #28456f; background: #fff; border: 1px solid #e1eaf6; transition: all .15s;
}
.ba-pagination a:hover { border-color: #021F4B; color: #021F4B; }
.ba-pagination .current { background: #021F4B; border-color: #021F4B; color: #7FFA7B; }
.ba-pagination .dots { border: 0; background: transparent; }

.ba-empty { font-family: 'Manrope', sans-serif; font-size: 16px; color: #5a6f8c; text-align: center; padding: 40px 0; }
.ba-empty a { color: #0a4ea0; font-weight: 700; text-decoration: none; }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.ba-cta { background: #021F4B; color: #fff; padding: 84px 0; position: relative; overflow: hidden; }
.ba-cta::before {
  content: ""; position: absolute; left: 50%; bottom: -200px; transform: translateX(-50%);
  width: 680px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(127,250,123,.14), transparent 65%); pointer-events: none;
}
.ba-cta-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; margin: 0 auto; }
.ba-cta .ba-eyebrow { color: #7FFA7B; margin-bottom: 16px; }
.ba-cta-title { font-family: 'Manrope', sans-serif; font-weight: 800; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.03em; margin: 0; color: #fff; }
.ba-cta-sub { font-family: 'Manrope', sans-serif; font-size: 16px; line-height: 1.6; color: rgba(255,255,255,.74); margin: 18px auto 32px; max-width: 52ch; }
.ba-cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ba-btn {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-weight: 800; font-size: 15px; padding: 15px 28px; border-radius: 12px; transition: all .18s;
}
.ba-btn svg { width: 16px; height: 16px; }
.ba-btn--neon { background: #7FFA7B; color: #021F4B; }
.ba-btn--neon:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(127,250,123,.32); }
.ba-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.ba-btn--ghost:hover { border-color: #7FFA7B; color: #7FFA7B; }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ba-segments { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-card--lg { grid-column: span 2; }
}
@media (max-width: 720px) {
  .ba-hero { padding: 84px 0 48px; }
  .ba-inner, .ba-hero-inner { padding: 0 20px; }
  .ba-sec { padding: 56px 0; }
  .ba-segments { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; gap: 18px; }
  .ba-card--lg { grid-column: span 1; flex-direction: column; }
  .ba-card--lg .ba-card-img { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .ba-card--lg .ba-card-body { padding: 22px; }
  .ba-card--lg .ba-card-title { font-size: 21px; }
  .ba-search { flex-wrap: wrap; }
  .ba-hero-stats { gap: 22px; }
}
