/* ============================================================
   ANALYTICAL EDUPOINT — BLOG PAGE — PREMIUM DESIGN
   ============================================================ */

/* ─── HERO BANNER ─────────────────────────────────────────── */
.bl-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628 0%, #0f2042 60%, #1a3263 100%);
}

.bl-hero__bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-img);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(3px);
  transform: scale(1.05);
}

.bl-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(10, 22, 40, 0.92) 0%,
    rgba(37, 99, 235, 0.5) 100%);
}

.bl-hero__shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.bl-hero__circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}

.bl-hero__circle--1 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #f97316 0%, transparent 70%);
  top: -160px; right: -80px;
  animation: bl-pulse 8s ease-in-out infinite;
}

.bl-hero__circle--2 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
  bottom: -100px; left: -60px;
  animation: bl-pulse 10s ease-in-out infinite reverse;
}

@keyframes bl-pulse {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50%       { transform: scale(1.12); opacity: 0.14; }
}

.bl-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 50px 20px;
}

.bl-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.4);
  color: #f97316;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 18px;
  animation: bl-fadeUp 0.6s ease both;
}

.bl-hero__title {
  font-size: clamp(1.8rem, 4.5vw, 2.9rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 14px;
  animation: bl-fadeUp 0.65s ease 0.1s both;
}

.bl-hero__title span { color: #f97316; }

.bl-hero__subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 24px;
  animation: bl-fadeUp 0.7s ease 0.2s both;
}

.bl-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: bl-fadeUp 0.7s ease 0.3s both;
}

.bl-hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.bl-hero__breadcrumb a:hover { color: #f97316; }
.bl-hero__breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.bl-hero__breadcrumb-current { color: #f97316; font-size: 0.875rem; font-weight: 600; }

@keyframes bl-fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── BODY LAYOUT ─────────────────────────────────────────── */
.bl-body {
  padding: 64px 0 70px;
  background: #f8faff;
}

.bl-body__grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ─── SECTION HEADER ──────────────────────────────────────── */
.bl-section-head {
  margin-bottom: 36px;
}

.bl-section-head__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #2563eb, #4338ca);
  color: #fff;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.bl-section-head__title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0a1628;
  margin: 0 0 8px;
}

.bl-section-head__title span { color: #2563eb; }

.bl-section-head__sub {
  font-size: 0.9rem;
  color: #64748b;
}

/* ─── BLOG CARDS GRID ─────────────────────────────────────── */
.bl-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ─── BLOG CARD ───────────────────────────────────────────── */
.bl-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.bl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.13);
}

.bl-card__img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}

.bl-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.bl-card:hover .bl-card__img-wrap img {
  transform: scale(1.06);
}

.bl-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 50px;
  box-shadow: 0 3px 10px rgba(249,115,22,0.4);
}

.bl-card__body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bl-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.bl-card__date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.bl-card__date i { color: #2563eb; font-size: 0.75rem; }

.bl-card__read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

.bl-card__read-time i { font-size: 0.75rem; color: #f97316; }

.bl-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1628;
  line-height: 1.45;
  margin: 0 0 14px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bl-card:hover .bl-card__title { color: #2563eb; }

.bl-card__divider {
  height: 1px;
  background: #f1f5f9;
  margin: 0 0 14px;
}

.bl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.bl-card__read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none !important;
  transition: gap 0.2s ease;
}

.bl-card:hover .bl-card__read-link { gap: 10px; }

.bl-card__read-link i { font-size: 0.8rem; transition: transform 0.2s; }
.bl-card:hover .bl-card__read-link i { transform: translateX(3px); }

.bl-card__tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 50px;
}

/* ─── FEATURED CARD (full-width first card option) ────────── */
.bl-card--featured {
  grid-column: 1 / -1;
  flex-direction: row;
}

.bl-card--featured .bl-card__img-wrap {
  width: 45%;
  height: auto;
  min-height: 240px;
  flex-shrink: 0;
}

.bl-card--featured .bl-card__title {
  font-size: 1.2rem;
  -webkit-line-clamp: 3;
}

/* ─── SIDEBAR ─────────────────────────────────────────────── */
.bl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}

/* Sidebar box */
.bl-sidebar-box {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.07);
  overflow: hidden;
}

.bl-sidebar-box__head {
  background: linear-gradient(135deg, #0a1628, #0f2042);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bl-sidebar-box__head-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  font-size: 0.9rem;
}

.bl-sidebar-box__head-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
}

/* Popular post items */
.bl-popular-list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.bl-popular-item {
  border-bottom: 1px solid #f1f5f9;
}

.bl-popular-item:last-child { border-bottom: none; }

.bl-popular-item__link {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none !important;
  transition: background 0.2s;
}

.bl-popular-item__link:hover { background: #f8faff; }

.bl-popular-item__img {
  width: 68px;
  height: 52px;
  min-width: 68px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.bl-popular-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.bl-popular-item__link:hover .bl-popular-item__img img {
  transform: scale(1.08);
}

.bl-popular-item__info { flex: 1; }

.bl-popular-item__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.bl-popular-item__link:hover .bl-popular-item__title { color: #2563eb; }

.bl-popular-item__date {
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bl-popular-item__date i { font-size: 0.7rem; color: #f97316; }

/* ─── CTA SIDEBAR WIDGET ──────────────────────────────────── */
.bl-sidebar-cta {
  background: linear-gradient(135deg, #0a1628, #0f2042);
  border-radius: 18px;
  padding: 28px 22px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bl-sidebar-cta::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(249,115,22,0.1);
}

.bl-sidebar-cta__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(249,115,22,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #f97316;
  margin: 0 auto 16px;
  position: relative;
}

.bl-sidebar-cta__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  position: relative;
}

.bl-sidebar-cta__text {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin: 0 0 20px;
  position: relative;
}

.bl-sidebar-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(249,115,22,0.4);
  transition: all 0.25s;
  position: relative;
}

.bl-sidebar-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(249,115,22,0.5);
}

/* ─── EMPTY STATE / PAGINATION ────────────────────────────── */
.bl-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bl-body__grid {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }
}

@media (max-width: 992px) {
  .bl-body__grid {
    grid-template-columns: 1fr;
  }

  .bl-sidebar { position: static; }

  .bl-cards-grid { grid-template-columns: repeat(2, 1fr); }

  .bl-card--featured {
    flex-direction: column;
  }

  .bl-card--featured .bl-card__img-wrap {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 640px) {
  .bl-cards-grid { grid-template-columns: 1fr; }
  .bl-hero__title { font-size: 1.75rem; }
}

/* ─── SIDEBAR COURSE LIST (reuse from about.css pattern) ─── */
.bl-sidebar .au-sidebar-courses__list {
  list-style: none;
  margin: 0;
  padding: 12px 0;
}

.bl-sidebar .au-sidebar-courses__list li {
  border-bottom: 1px solid #f1f5f9;
}

.bl-sidebar .au-sidebar-courses__list li:last-child { border-bottom: none; }

.bl-sidebar .au-sidebar-courses__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 0.84rem;
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.bl-sidebar .au-sidebar-courses__list a::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.2s;
}

.bl-sidebar .au-sidebar-courses__list a:hover {
  color: #2563eb;
  background: #f0f7ff;
  padding-left: 22px;
}

.bl-sidebar .au-sidebar-courses__list a:hover::before {
  background: #f97316;
  transform: scale(1.4);
}

