/* ================================================================
   APOLLO GROUP TV — BLOG PAGE (archive.css) v5
================================================================ */

/* ── Page wrapper ── */
.bl-page {
  background: #07060f;
  min-height: 80vh;
}

/* ════════════════════════════════════════════════════
   BLOG HERO HEADER
════════════════════════════════════════════════════ */
.bl-hero {
  position: relative;
  padding: 110px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 90% at 10% 0%,  rgba(56,189,248,.08),  transparent 55%),
    radial-gradient(ellipse 50% 60% at 90% 30%,  rgba(167,139,250,.07), transparent 55%),
    #07060f;
}
/* Top gradient line */
.bl-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,
    transparent, #38bdf8 25%, #a78bfa 55%, #fbbf24 80%, transparent);
  opacity: .5;
}
/* Glow orb */
.bl-hero__glow {
  position: absolute;
  width: 500px; height: 500px;
  top: -200px; right: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.08), transparent 65%);
  pointer-events: none;
}
.bl-hero__inner {
  position: relative; z-index: 1;
}
.bl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .28rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.4rem;
}
.bl-hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0 0 1.1rem;
  color: #fff;
}
.bl-hero__title em {
  font-style: normal;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bl-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,.5);
  line-height: 1.75;
  max-width: 52ch;
  margin: 0 0 2rem;
}
/* ── CTA buttons row — always horizontal ── */
.bl-hero__cta {
  display: flex;
  flex-direction: row;    /* horizontal */
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;        /* allow wrap on tiny screens */
}
.bl-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .85rem 1.6rem;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .28s cubic-bezier(.22,.68,0,1.2), box-shadow .28s, filter .2s;
  flex: 0 0 auto;  /* don't stretch */
}
.bl-hero__btn--wa {
  background: linear-gradient(135deg, #166534, #22c55e);
  color: #fff;
  box-shadow: 0 4px 18px rgba(34,197,94,.25);
}
.bl-hero__btn--wa:hover {
  transform: translateY(-3px); filter: brightness(1.08);
  box-shadow: 0 10px 32px rgba(34,197,94,.4);
}
.bl-hero__btn--outline {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
}
.bl-hero__btn--outline:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.38);
  color: #fff;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════
   POSTS GRID
════════════════════════════════════════════════════ */
.bl-body {
  padding: 3.5rem 0 5rem;
}
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ── Post Card ── */
.bl-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform .32s cubic-bezier(.22,.68,0,1.2),
    border-color .25s,
    box-shadow .32s;
}
/* Top accent line */
.bl-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #38bdf8, #a78bfa);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .36s cubic-bezier(.22,.68,0,1.2);
}
.bl-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56,189,248,.22);
  box-shadow: 0 22px 55px rgba(0,0,0,.5);
}
.bl-card:hover::before { transform: scaleX(1); }

/* Thumbnail */
.bl-card__img {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(56,189,248,.05), rgba(167,139,250,.05));
}
.bl-card__img img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.bl-card:hover .bl-card__img img { transform: scale(1.06); }

/* Body */
.bl-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .55rem;
}
.bl-card__date {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(56,189,248,.7);
  margin: 0;
}
.bl-card__title {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.38;
  margin: 0;
}
.bl-card__title a {
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: color .2s;
}
.bl-card__title a:hover { color: #38bdf8; }
.bl-card__excerpt {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer */
.bl-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .6rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.bl-card__read {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
  transition: gap .2s, opacity .2s;
}
.bl-card__read:hover { gap: .5rem; }
.bl-card__wa {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
  text-decoration: none;
  transition: color .2s;
}
.bl-card__wa:hover { color: #4ade80; }

/* ════════════════════════════════════════════════════
   PAGINATION
════════════════════════════════════════════════════ */
.bl-pager {
  margin-top: 3rem;
  text-align: center;
}
.bl-pager .nav-links {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.bl-pager .page-numbers {
  min-width: 44px; height: 44px;
  padding: 0 .9rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.6);
  font-size: .88rem; font-weight: 700;
  text-decoration: none;
  transition: all .22s;
}
.bl-pager .page-numbers:hover {
  border-color: rgba(56,189,248,.4); color: #38bdf8;
  background: rgba(56,189,248,.06);
}
.bl-pager .page-numbers.current {
  background: rgba(56,189,248,.15);
  border-color: rgba(56,189,248,.4);
  color: #38bdf8;
}

/* ════════════════════════════════════════════════════
   EMPTY STATE
════════════════════════════════════════════════════ */
.bl-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: rgba(255,255,255,.45);
}
.bl-empty p { font-size: 1rem; margin-bottom: 1.5rem; }

/* ════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .bl-hero { padding: 90px 0 50px; }
  .bl-hero__title { font-size: clamp(2.5rem, 9vw, 4rem); }
  .bl-grid { grid-template-columns: 1fr; gap: 1rem; }
  .bl-hero__cta {
    flex-direction: row;    /* stay horizontal on mobile too */
    flex-wrap: wrap;
  }
  .bl-hero__btn { font-size: .85rem; padding: .78rem 1.3rem; }
}
@media (max-width: 400px) {
  .bl-hero__cta { flex-direction: column; align-items: stretch; }
  .bl-hero__btn { justify-content: center; }
}

/* ════════════════════════════════════════════════════
   ARCHIVE + SEARCH (generic fallback)
════════════════════════════════════════════════════ */
.archive-page, .search-results { padding: 64px 0; }
.archive-header, .search-header { text-align: center; margin-bottom: 36px; }
.archive-title, .search-title {
  font-size: clamp(2rem,4vw,3rem); font-weight:900; letter-spacing:-.03em;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.post-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden;
  transition: transform .28s, border-color .25s, box-shadow .28s;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56,189,248,.22);
  box-shadow: 0 16px 44px rgba(0,0,0,.45);
}
.post-card-thumbnail img { width:100%; height:190px; object-fit:cover; display:block; }
.post-card-content { padding: 16px; }
.post-card-title { font-size:1.05rem; margin-bottom:6px; font-weight:700; }
.post-card-title a { color:rgba(255,255,255,.85); text-decoration:none; }
.post-card-title a:hover { color:#38bdf8; }
.post-card-excerpt { color:rgba(255,255,255,.5); font-size:.9rem; margin-bottom:10px; }
.post-card-link { color:#38bdf8; font-weight:700; font-size:.85rem; }
.pagination { margin-top:36px; text-align:center; }
.pagination .nav-links { display:inline-flex; gap:10px; flex-wrap:wrap; }
.pagination a, .pagination span {
  min-width:44px; height:44px; padding:0 12px;
  display:inline-flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.1);
  border-radius:12px; color:rgba(255,255,255,.7); font-size:.88rem;
  transition:all .2s; text-decoration:none;
}
.pagination a:hover { border-color:rgba(56,189,248,.4); color:#38bdf8; }
.pagination .current { background:rgba(56,189,248,.15); border-color:rgba(56,189,248,.4); color:#38bdf8; }
@media(max-width:1024px){ .posts-grid{ grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px){  .posts-grid{ grid-template-columns: 1fr; } }
