
.section {
  padding: 100px 0;
  position: relative;
  background: linear-gradient(180deg,rgba(15,23,42,0.6),rgba(15,23,42,0.9));
}
.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 600px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,rgba(99,102,241,0.3),transparent);
}
.section h2 {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg,#fff,#c4b5fd,#93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* =========================================================
1. BLOG HERO
========================================================= */

.blog-hero{
  position: relative;
  padding: 160px 20px 120px;
  min-height: 650px;
  overflow: hidden;
  background: linear-gradient(180deg, #050a19 0%, #070d22 100%);
}
/* Background canvas */
#blog-particles{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  z-index:2;
}
/* Glow */
.blog-glow{
  position:absolute;
  width:900px;
  height:900px;
  top:-250px;
  left:50%;
  transform:translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(99,102,241,0.35),
    rgba(59,130,246,0.2),
    transparent 70%
  );
  filter: blur(100px);
  opacity: 0.5;
  z-index:0;
}
/* Layout */
.blog-hero-container{
  position:relative;
  z-index:3;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:80px;
}
/* LEFT */
.blog-hero-content{
  max-width:650px;
}
/* Badge */
.blog-badge{
  display:inline-block;
  padding:8px 16px;
  border-radius:50px;
  font-size:12px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  margin-bottom:20px;
}
/* Heading */
.blog-hero h1{
  font-size:clamp(36px,4vw,60px);
  font-weight:900;
  line-height:1.1;
  letter-spacing:-0.02em;
  background:linear-gradient(90deg,#fff,#c4b5fd,#93c5fd);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.blog-hero h1 span{
  display:block;
}
/* Text */
.blog-hero p{
  margin-top:20px;
  font-size:18px;
  line-height:1.7;
  color:#cbd5f5;
}
/* Actions */
.blog-hero-actions{
  margin-top:30px;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}
/* Search */
.blog-search-box{
  display:flex;
  align-items:center;
  background:rgba(255,255,255,0.08);
  border-radius:50px;
  padding:4px;
  border:1px solid rgba(255,255,255,0.12);
}
.blog-search-box input{
  border:none;
  outline:none;
  padding:12px 18px;
  background:transparent;
  color:#fff;
  min-width:260px;
}
.blog-search input {
  width: 100%;
  padding: 18px 24px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 16px;
  transition: all .3s;
}
.blog-search input:focus {
  border-color: rgba(99,102,241,0.6);
  box-shadow: 0 0 20px rgba(99,102,241,0.25);
}
/* Trust */
.blog-trust{
  margin-top:25px;
  font-size:13px;
  color:#94a3b8;
}
/* RIGHT VISUAL */
.blog-hero-visual{
  flex:1;
  display:flex;
  justify-content:center;
}
/* Card */
.blog-hero-card{
  max-width:380px;
  padding:30px;
  border-radius:20px;
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(25px);
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 20px 60px rgba(0,0,0,0.4);
}
/* Card content */
.blog-card-label{
  font-size:12px;
  text-transform:uppercase;
  color:#93c5fd;
  margin-bottom:10px;
}
.blog-hero-card h3{
  font-size:20px;
  margin-bottom:10px;
}
.blog-hero-card p{
  font-size:14px;
  color:var(--text-secondary);
  margin-bottom:15px;
}
.blog-card-link{
  font-size:14px;
  font-weight:600;
  color:#c4b5fd;
}
.seo-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* =========================================================
2. FEATURED BLOG
========================================================= */
.blog-featured {
  padding: 60px 0 40px;
}
.blog-featured .container {
  max-width: 1300px;
  padding: 30px 20px;
  margin: 0 auto;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}
/* HEADER */
.featured-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}
.featured-header h2 {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(90deg,#fff,#c4b5fd,#93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.featured-header p {
  color: #94a3b8;
}
/* NAV BUTTONS */
.featured-nav button {
  background: rgba(255,255,255,0.9);
  color: #111;
  border: none;
  padding: 10px 14px;
  margin-left: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.featured-nav button:hover {
  background: #fff;
  transform: translateY(-2px);
}
/* VIEWPORT */
.featured-viewport {
  position: relative;
  height: 420px;
  overflow: hidden;
  padding: 0;
}
/* TRACK */
.featured-track {
  gap: 20px;
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}
/* CARD */
.featured-card-new {
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.4s ease;
  transform: scale(0.9);
  opacity: 1;
  display: flex;
}
.featured-card-new::after {
  content: "";
  position: absolute;
  inset: 0;
 background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 60%);
}
.featured-card-new.active {
  transform: scale(1);
  opacity: 1;
}
.featured-card-new:not(.active) {
  transform: scale(0.9) translateY(20px);
}
.featured-card-new:hover {
  filter: brightness(1.1);
  z-index: 10;
}
/* IMAGE */
.featured-card-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
/* OVERLAY */
.featured-overlay {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px;
  opacity: 0;                 /* 🔥 hidden by default */
  transition: opacity 0.3s ease;
}
.featured-card-new.active .featured-overlay {
  opacity: 1;   /* 🔥 only active card shows content */
}
/* TOP INFO */
.featured-top {
  display: flex;
  justify-content: space-between;
}
.read-time {
  background: rgba(0,0,0,0.5);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
.tags {
  font-size: 12px;
  background: rgba(99,102,241,0.5);
  padding: 4px 10px;
  border-radius: 999px;
}
/* TITLE */
.featured-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  font-size: 18px;
  font-weight: 600;
  width: 100%;
  max-width: 100%;
  white-space: normal;
}
/* BOTTOM DESCRIPTION */
.featured-description {
  margin-top: 30px;
  padding: 20px 25px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.featured-description p {
  margin: 0;
  color: #cbd5f5;
  max-width: 70%;
}
.read-more {
  display: inline-block;
  color: #c4b5fd;
  font-weight: 600;
  text-decoration: none;
}
.desc-inner {
  display: flex;
  align-items: center;
  width: 100%;
}
.desc-inner p {
  flex: 1;
}
.read-more {
  margin-left: auto;
}
/* =========================================================
3. SEARCH + FILTER
========================================================= */
.blog-controls {
  padding: 60px 0 20px;
}
.blog-controls-inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}
/* Search */
.blog-search {
  width: 100%;
  max-width: 600px;
}
/* Filters */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer;
  transition: all .25s ease;
  color: #cbd5f5;
}
.filter-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
}
.filter-btn.active {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 10px 25px rgba(99,102,241,0.4);
}

/* =========================================================
4. BLOG GRID
========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}
.blog-card {
 min-height: 320px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,rgba(255,255,255,0.06),rgba(255,255,255,0.02));
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all .3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.blog-card::after {
  content: "→";
  position: absolute;
  bottom: 16px;
  right: 18px;
  font-size: 18px;
  opacity: 0;
  transition: 0.3s;
}
.blog-card:hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.blog-card:hover::after {
  opacity: 1;
  transform: translateX(4px);
}
.blog-card:hover h3 {
  color: #c4b5fd;
}
.blog-card img {
  position: relative;
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
  object-fit: cover;
}
.blog-card .blog-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  justify-content: flex-start;
  gap: 8px;
}
.blog-card-img {
  height: 50%;
  position: relative;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card-img::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,rgba(5,10,25,0.1),rgba(5,10,25,0.6));
}
.blog-card:hover img {
  transform: scale(1.08);
}
/* Category badge */
.blog-meta span:first-child {
  background: rgba(99,102,241,0.2);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}
/* Better typography */
.blog-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  font-size: 17px;
  margin: 8px 0;
  min-height: auto;
  white-space: normal;
  word-break: break-word;
  flex-grow: 1;
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.blog-time {
  font-size: 13px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}
.blog-read {
  margin-top: auto;
  align-self: flex-end;
  padding: 10px 16px;
  border-radius: 10px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 25px rgba(99,102,241,0.4);
  transition: all 0.3s ease;
}
.blog-read:hover {
  background: linear-gradient(135deg,rgba(99,102,241,0.5),rgba(139,92,246,0.5));
  box-shadow: 0 20px 40px rgba(99,102,241,0.6);
  transform: translateY(-2px);
}
.blog-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: center;  /* 🔥 THIS FIXES IT */
  align-items: center;
  gap: 20px;
}
.blog-pagination button {
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  cursor: pointer;
}
.blog-pagination span {
  color: #94a3b8;
}
