/* ============================================================
   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);
}

/* ─── SINGLE BLOG PAGE STYLING ────────────────────────────── */
.bl-card--single {
  padding: 40px;
  margin-bottom: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  background: #ffffff;
}

.bl-single-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.bl-single-hr {
  margin: 36px 0 24px;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.bl-single-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.bl-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: 50px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.25s ease;
}

.bl-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  color: #ffffff !important;
}

/* Dynamic Article Content Formatting (.blog-content-body) */
.blog-content-body {
  color: #334155;
  line-height: 1.75;
  font-size: 1.02rem;
  word-break: break-word;
  overflow-wrap: break-word;
}

.blog-content-body h1,
.blog-content-body h2,
.blog-content-body h3,
.blog-content-body h4,
.blog-content-body h5,
.blog-content-body h6 {
  color: #0a1628;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  word-break: break-word;
  overflow-wrap: break-word;
}

.blog-content-body h1 { font-size: 1.85rem; }
.blog-content-body h2 { font-size: 1.55rem; border-bottom: 2px solid #f1f5f9; padding-bottom: 8px; }
.blog-content-body h3 { font-size: 1.3rem; }
.blog-content-body h4 { font-size: 1.15rem; }
.blog-content-body h5 { font-size: 1.05rem; }
.blog-content-body h6 { font-size: 0.95rem; }

.blog-content-body p {
  margin-bottom: 1.4rem;
  color: #334155;
  line-height: 1.75;
}

.blog-content-body p:last-child {
  margin-bottom: 0;
}

.blog-content-body strong,
.blog-content-body b {
  color: #0f172a;
  font-weight: 700;
}

.blog-content-body a {
  color: #2563eb;
  text-decoration: underline;
  word-break: break-word;
  transition: color 0.2s;
}

.blog-content-body a:hover {
  color: #1d4ed8;
}

.blog-content-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
  margin: 20px 0;
  display: block;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.blog-content-body table {
  width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.blog-content-body table th,
.blog-content-body table td {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.blog-content-body table th {
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  text-align: left;
}

.blog-content-body table tr:nth-child(even) {
  background: #f8fafc;
}

.blog-content-body ul,
.blog-content-body ol {
  padding-left: 24px;
  margin-bottom: 1.4rem;
}

.blog-content-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.blog-content-body blockquote {
  background: #f8fafc;
  border-left: 4px solid #f97316;
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}

.blog-content-body blockquote p {
  margin-bottom: 0;
}

.blog-content-body iframe,
.blog-content-body video,
.blog-content-body embed {
  max-width: 100% !important;
  width: 100% !important;
  border-radius: 12px;
  margin: 20px 0;
}

.blog-content-body pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 16px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.88rem;
  margin: 20px 0;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Responsive Overrides for Single Blog Page */
@media (max-width: 991px) {
  .bl-body {
    padding: 40px 0 50px;
  }
  .bl-card--single {
    padding: 28px 22px;
    margin-bottom: 24px;
    border-radius: 16px;
  }
  .bl-single-img {
    max-height: 320px;
    margin-bottom: 24px;
    border-radius: 10px;
  }
}

@media (max-width: 767px) {
  .bl-hero {
    min-height: 220px;
  }
  .bl-hero__content {
    padding: 36px 12px 28px;
  }
  .bl-hero__tag {
    font-size: 0.65rem;
    padding: 4px 14px;
    margin-bottom: 12px;
  }
  .bl-hero__title {
    font-size: 1.5rem !important;
    line-height: 1.25;
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .bl-hero__subtitle {
    font-size: 0.82rem;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }
  .bl-hero__breadcrumb {
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
  }
  .bl-hero__breadcrumb a,
  .bl-hero__breadcrumb-current {
    font-size: 0.78rem;
  }
  .bl-card--single {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .bl-single-img {
    max-height: 220px;
    margin-bottom: 18px;
    border-radius: 8px;
  }
  .blog-content-body {
    font-size: 0.94rem;
    line-height: 1.68;
  }
  .blog-content-body h1 { font-size: 1.45rem; margin-top: 1.2em; }
  .blog-content-body h2 { font-size: 1.25rem; margin-top: 1.2em; }
  .blog-content-body h3 { font-size: 1.12rem; margin-top: 1.1em; }
  .blog-content-body h4 { font-size: 1.02rem; }
  .blog-content-body ul,
  .blog-content-body ol {
    padding-left: 18px;
    margin-bottom: 1.1rem;
  }
  .blog-content-body li {
    font-size: 0.94rem;
    margin-bottom: 6px;
  }
  .blog-content-body blockquote {
    padding: 12px 14px;
    margin: 18px 0;
    font-size: 0.9rem;
  }
  .bl-single-hr {
    margin: 28px 0 20px;
  }
  .bl-single-footer {
    justify-content: center;
  }
  .bl-back-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.85rem;
  }
  .bl-sidebar-cta {
    padding: 22px 16px;
    border-radius: 14px;
  }
  .bl-sidebar-box {
    border-radius: 14px;
  }
}

@media (max-width: 479px) {
  .bl-hero__title {
    font-size: 1.35rem !important;
  }
  .bl-card--single {
    padding: 16px 12px;
  }
}


