/* ====================================================
   blog-style.css  —  NXV Blog  v1.0
   Matches: index1-2-0.css design system
   Palette: #0a0a0f #111118 #1B3653 #2A7DD8 #1F7A8C #FFFFFF #CECECE
   ==================================================== */

/* ── BLOG HERO ────────────────────────────────────────────────────────── */
.blog-hero {
  min-height: 340px;
  padding-top: 80px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 100% 80% at 50% 0%, #0d1825 0%, #0a0a0f 65%);
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 20%, rgba(42,125,216,.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 30% at 20% 70%, rgba(31,122,140,.06) 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,125,216,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,125,216,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.blog-hero-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, #0a0a0f);
  pointer-events: none;
  z-index: 2;
}
.blog-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 20px;
}
.blog-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--teal);
}
.blog-hero-label::before,
.blog-hero-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--teal), transparent);
  opacity: .6;
}
.blog-hero-title {
  font-family: var(--fd);
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: .06em;
  line-height: 1.1;
  text-shadow: 0 0 60px rgba(42,125,216,.35), 0 2px 0 rgba(0,0,0,.5);
}
.blog-hero-title em {
  color: var(--bm);
  font-style: normal;
  position: relative;
  display: inline-block;
}
.blog-hero-title em::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bm), var(--teal), transparent);
  box-shadow: 0 0 12px var(--bm);
}
.blog-hero-sub {
  font-size: 14px;
  color: rgba(206,206,206,.6);
  max-width: 540px;
  line-height: 1.8;
}
.blog-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}
.bhs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.bhs-val {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 0 14px rgba(42,125,216,.5);
}
.bhs-val span { color: var(--bm); }
.bhs-lbl {
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(206,206,206,.4);
}
.bhs-sep {
  width: 1px;
  height: 32px;
  background: rgba(42,125,216,.22);
  align-self: center;
}

/* ── BLOG MAIN LAYOUT ─────────────────────────────────────────────────── */
.blog-main {
  background: var(--bg);
  padding: 64px 44px 100px;
  position: relative;
}
.blog-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42,125,216,.15), transparent);
}
.blog-container {
  max-width: 1180px;
  margin: 0 auto;
}

/* ── FEATURED ARTICLE ─────────────────────────────────────────────────── */
.blog-featured {
  margin-bottom: 72px;
  position: relative;
}
.blog-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.blog-featured-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--teal);
  opacity: .6;
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(42,125,216,.2);
  background: var(--bg-card);
  transition: all .5s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
  color: inherit;
  position: relative;
}
.blog-featured-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bm), var(--teal), transparent);
  opacity: 0;
  transition: opacity .4s;
}
.blog-featured-card:hover {
  border-color: rgba(42,125,216,.4);
  box-shadow: 0 24px 70px rgba(0,0,0,.55), 0 0 40px rgba(42,125,216,.1);
  transform: translateY(-4px);
}
.blog-featured-card:hover::after { opacity: 1; }
.blog-featured-img {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.4,0,.2,1);
  display: block;
}
.blog-featured-card:hover .blog-featured-img img {
  transform: scale(1.06);
}
.blog-featured-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(10,10,15,.8) 100%);
}
.blog-featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 40px 36px;
  background: rgba(10,10,20,.6);
  backdrop-filter: blur(8px);
}
.blog-featured-badge {
  display: inline-block;
  background: rgba(42,125,216,.12);
  border: 1px solid rgba(42,125,216,.28);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--bm);
  width: fit-content;
}
.blog-featured-title {
  font-family: var(--fd);
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.blog-featured-summary {
  font-size: 13px;
  color: rgba(206,206,206,.6);
  line-height: 1.8;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: rgba(206,206,206,.38);
}
.blog-featured-meta i { color: var(--teal); font-size: 10px; }
.blog-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 700;
  color: var(--bm);
  letter-spacing: .5px;
  transition: gap .28s, color .28s;
  margin-top: 4px;
}
.blog-featured-card:hover .blog-featured-cta {
  gap: 13px;
  color: var(--white);
}

/* ── GRID SECTION ─────────────────────────────────────────────────────── */
.blog-grid-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.blog-grid-hd-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-grid-title {
  font-family: var(--fd);
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--white);
}
.blog-grid-title em {
  color: var(--bm);
  font-style: normal;
}
.blog-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(42,125,216,.08);
  border: 1px solid rgba(42,125,216,.18);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(206,206,206,.55);
  white-space: nowrap;
  flex-shrink: 0;
}
.blog-count-badge span {
  color: var(--bm);
  font-family: var(--fd);
  font-weight: 700;
}

/* ── BLOG CARDS GRID ──────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: rgba(10,10,20,.6);
  border: 1px solid rgba(42,125,216,.1);
  border-radius: 18px;
  overflow: hidden;
  transition: all .5s cubic-bezier(.4,0,.2,1);
  position: relative;
  backdrop-filter: blur(8px);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--bm), transparent);
  opacity: 0;
  transition: opacity .45s;
}
.blog-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(42,125,216,.32);
  box-shadow: 0 20px 55px rgba(0,0,0,.5), 0 0 30px rgba(42,125,216,.08);
}
.blog-card:hover::before { opacity: 1; }

.blog-card-img {
  width: 100%;
  height: 195px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(140deg, #0d1825, #0e2030);
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover .blog-card-img img {
  transform: scale(1.08);
}
.blog-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: rgba(42,125,216,.25);
  background: linear-gradient(140deg, #0d1825, #0e2030);
  position: absolute;
  inset: 0;
}
.blog-card-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(10,10,20,.7));
  pointer-events: none;
}

.blog-card-body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-title {
  font-family: var(--fd);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: .2px;
  transition: color .28s;
}
.blog-card:hover .blog-card-title { color: var(--bm); }
.blog-card-summary {
  font-size: 12px;
  color: rgba(206,206,206,.52);
  line-height: 1.75;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid rgba(42,125,216,.08);
  margin-top: auto;
}
.blog-card-date {
  font-size: 10px;
  color: rgba(206,206,206,.32);
  display: flex;
  align-items: center;
  gap: 5px;
}
.blog-card-date i { color: var(--teal); font-size: 9px; }
.blog-card-read {
  font-size: 10px;
  font-weight: 700;
  color: rgba(42,125,216,.55);
  letter-spacing: .5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .25s, gap .25s;
}
.blog-card:hover .blog-card-read {
  color: var(--bm);
  gap: 8px;
}

/* ── EMPTY STATE ──────────────────────────────────────────────────────── */
.blog-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 20px;
  color: rgba(206,206,206,.3);
}
.blog-empty-icon {
  font-size: 52px;
  color: rgba(42,125,216,.2);
}
.blog-empty-title {
  font-family: var(--fd);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255,255,255,.2);
}
.blog-empty-sub {
  font-size: 13px;
  color: rgba(206,206,206,.25);
}

/* ── PAGINATION ───────────────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}
.blog-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 9px;
  background: rgba(10,10,20,.6);
  border: 1px solid rgba(42,125,216,.15);
  color: rgba(206,206,206,.5);
  font-family: var(--fb);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .28s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.blog-page-btn:hover {
  background: rgba(42,125,216,.1);
  border-color: rgba(42,125,216,.35);
  color: var(--white);
  transform: translateY(-2px);
}
.blog-page-btn.active {
  background: rgba(42,125,216,.18);
  border-color: rgba(42,125,216,.5);
  color: var(--white);
  box-shadow: 0 0 18px rgba(42,125,216,.25);
  font-family: var(--fd);
}
.blog-page-btn.disabled {
  opacity: .3;
  pointer-events: none;
}
.blog-page-sep {
  color: rgba(206,206,206,.2);
  font-size: 13px;
  padding: 0 4px;
}

/* ── BLOG FOOTER (reuse index footer styles) ──────────────────────────── */
/* Same .footer classes from index1-2-0.css apply */

/* ── DECORATIVE SQUARES (same as hero) ───────────────────────────────── */
.blog-deco-sq {
  position: absolute;
  border: 1px solid var(--bm);
  border-radius: 3px;
  opacity: .15;
  animation: sqFloat 8s ease-in-out infinite;
}
.blog-deco-sq:nth-child(1) { width: 8px;  height: 8px;  top: 15%; left: 5%;  animation-delay: 0s; }
.blog-deco-sq:nth-child(2) { width: 6px;  height: 6px;  top: 30%; right: 7%; animation-delay: 2s; }
.blog-deco-sq:nth-child(3) { width: 10px; height: 10px; bottom: 20%; left: 8%; animation-delay: 4s; border-color: var(--teal); }

/* ── RESPONSIVE ───────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .blog-main { padding: 52px 24px 80px; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }
  .blog-featured-img-overlay { background: linear-gradient(to bottom, transparent 60%, rgba(10,10,15,.85) 100%); }
}
@media (max-width: 640px) {
  .blog-main { padding: 40px 16px 70px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-hero { min-height: 260px; padding-top: 76px; padding-bottom: 40px; }
  .blog-hero-stats { gap: 14px; }
  .blog-grid-hd { flex-direction: column; align-items: flex-start; }
  .blog-featured-body { padding: 24px 20px; }
}