/* ============================================================
   BlazingCDN Blog Theme – main.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  background: #ffffff;
  color: #333333;
  line-height: 1.7;
}

a { color: #5b3dbd; text-decoration: none; }
a:hover { color: #e91e8c; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.bcdn-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.bcdn-header .bcdn-container {
  max-width: 100%;
  padding: 0 16px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.bcdn-header {
  background: #0d0f2b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  overflow: visible;
}

.bcdn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 32px;
  overflow: visible;
  position: relative;
}

/* Logo */
.bcdn-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bcdn-logo img { height: 36px; width: auto; }

.bcdn-logo__text {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.bcdn-logo__divider {
  color: #e91e8c;
  margin: 0 6px;
  font-weight: 300;
}

/* Nav – one wide row */
.bcdn-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.bcdn-nav a {
  color: #c8c8e8;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 9px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.bcdn-nav a:hover,
.bcdn-nav a.active {
  background: rgba(91,61,189,0.25);
  color: #ffffff;
}

/* Dropdown */
.bcdn-nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.bcdn-nav__dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bcdn-nav__arrow {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.bcdn-nav__submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #1a1450;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 6px;
  z-index: 99999;
  flex-direction: column;
  gap: 2px;
}

.bcdn-nav__dropdown:hover > .bcdn-nav__submenu,
.bcdn-nav__dropdown:focus-within > .bcdn-nav__submenu {
  display: flex;
}

.bcdn-nav__dropdown:hover .bcdn-nav__arrow,
.bcdn-nav__dropdown:focus-within .bcdn-nav__arrow {
  transform: rotate(180deg);
}

.bcdn-nav__submenu a {
  display: block;
  color: #c8c8e8;
  font-size: 0.82rem;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  width: 100%;
}

.bcdn-nav__submenu a:hover,
.bcdn-nav__submenu a.active {
  background: rgba(91,61,189,0.35);
  color: #ffffff;
}

/* CTA Button */
.bcdn-header__cta {
  flex-shrink: 0;
}

.bcdn-btn {
  display: inline-block;
  background: #e91e8c;
  color: #ffffff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.bcdn-btn:hover {
  background: #c41878;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.bcdn-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.bcdn-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

/* ============================================================
   BLOG LISTING PAGE
   ============================================================ */
.bcdn-hero {
  background: linear-gradient(135deg, #0d0f2b 0%, #1a1450 100%);
  padding: 72px 24px;
  text-align: center;
  color: #ffffff;
}

.bcdn-hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.bcdn-hero p {
  font-size: 1.1rem;
  color: #c8c8e8;
  max-width: 560px;
  margin: 0 auto;
}

/* Tag filter bar */
.bcdn-tag-bar {
  padding: 24px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.bcdn-tag {
  display: inline-block;
  background: #f0edf9;
  color: #5b3dbd;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
}

.bcdn-tag:hover {
  background: #5b3dbd;
  color: #ffffff;
}

/* Blog grid */
.bcdn-listing {
  padding: 56px 0 80px;
}

.bcdn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card */
.bcdn-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(13,15,43,0.08);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.bcdn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(91,61,189,0.18);
}

.bcdn-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.bcdn-card__img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a1450 0%, #5b3dbd 100%);
}

.bcdn-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bcdn-card__category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #e91e8c;
  margin-bottom: 8px;
}

.bcdn-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d0f2b;
  line-height: 1.4;
  margin-bottom: 12px;
}

.bcdn-card__excerpt {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.bcdn-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bcdn-card__meta {
  font-size: 0.78rem;
  color: #999999;
}

.bcdn-btn--sm {
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 6px;
}

/* Pagination */
.bcdn-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 16px;
}

.bcdn-pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #f0edf9;
  color: #5b3dbd;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.bcdn-pagination a:hover,
.bcdn-pagination a.active {
  background: #5b3dbd;
  color: #ffffff;
}

/* ============================================================
   BLOG POST PAGE
   ============================================================ */
.bcdn-post {
  padding: 56px 24px 80px;
}

.bcdn-post__content {
  max-width: 760px;
  margin: 0 auto;
}

.bcdn-post__header { margin-bottom: 32px; }

.bcdn-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.bcdn-post__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0d0f2b;
  line-height: 1.25;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}

.bcdn-post__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: #888888;
  border-bottom: 1px solid #eeeeee;
  padding-bottom: 24px;
}

.bcdn-post__author {
  font-weight: 600;
  color: #5b3dbd;
}

.bcdn-post__featured-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 40px;
}

/* Post body typography */
.bcdn-post__body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2c2c2c;
}

.bcdn-post__body h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d0f2b;
  margin: 40px 0 16px;
}

.bcdn-post__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d0f2b;
  margin: 32px 0 12px;
}

.bcdn-post__body p { margin-bottom: 20px; }

.bcdn-post__body ul,
.bcdn-post__body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.bcdn-post__body li { margin-bottom: 8px; }

.bcdn-post__body a {
  color: #5b3dbd;
  border-bottom: 1px solid rgba(91,61,189,0.3);
}

.bcdn-post__body a:hover {
  color: #e91e8c;
  border-color: #e91e8c;
}

.bcdn-post__body blockquote {
  border-left: 4px solid #5b3dbd;
  background: #f7f5ff;
  padding: 16px 24px;
  border-radius: 0 8px 8px 0;
  margin: 28px 0;
  font-style: italic;
  color: #555555;
}

.bcdn-post__body code {
  background: #f0edf9;
  color: #5b3dbd;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.bcdn-post__body pre {
  background: #0d0f2b;
  color: #c8c8e8;
  padding: 24px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 28px 0;
}

.bcdn-post__body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.bcdn-post__body img {
  border-radius: 8px;
  margin: 24px 0;
}

.bcdn-post__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size