 :root {
    --bg: #0a1612;
    --green: #4ade80;
    --text: #e8f5e9;
    --muted: #7fb89a;
    --border: rgba(255,255,255,0.07);
    --card: rgba(255,255,255,0.03);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0; opacity: .5;
  }

  /* ── NAV ── */
  nav {
    position: fixed; top: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(10,22,18,0.8);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 28px;
    display: flex; gap: 32px;
    animation: fadeDown .6s ease both;
  }
  nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s; }
  nav a:hover, nav a.active { color: var(--text); }

  /* ── WRAPPER ── */
  .wrapper {
    position: relative; z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 120px 24px 80px;
  }

  /* ── BREADCRUMB ── */
  .breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted);
    margin-bottom: 40px;
    animation: fadeUp .5s ease both;
  }
  .breadcrumb a { color: var(--muted); text-decoration: none; transition: color .2s; }
  .breadcrumb a:hover { color: var(--green); }
  .breadcrumb-sep { opacity: .4; }
  .breadcrumb-current { color: var(--text); font-weight: 500; }

  /* ── PAGE HEADING ── */
  .page-heading {
    margin-bottom: 60px;
    opacity: 0; animation: fadeUp .6s .1s ease forwards;
  }
  .page-tag {
    font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--green); margin-bottom: 12px;
  }
  .page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(38px, 6vw, 76px);
    font-weight: 900; line-height: 1.05;
    letter-spacing: -.02em; margin-bottom: 16px;
  }
  .page-title em { font-style: italic; color: var(--green); }
  .page-subtitle { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 480px; }

  /* ── FEATURED POST ── */
  .featured-post {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 340px;
    margin-bottom: 56px;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    text-decoration: none; color: var(--text);
    opacity: 0; animation: fadeUp .6s .2s ease forwards;
  }
  .featured-post:hover {
    border-color: rgba(74,222,128,0.22);
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(0,0,0,0.5);
  }
  @media (max-width: 680px) { .featured-post { grid-template-columns: 1fr; } }

  .featured-visual {
    background: linear-gradient(135deg, #0d2a1a, #1a4a2a);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden; min-height: 280px;
  }
  .featured-visual::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 40% 40%, rgba(74,222,128,0.1) 0%, transparent 65%);
  }
  .featured-visual-emoji { font-size: 80px; position: relative; z-index: 1; }

  .featured-badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--green); color: #0a1612;
    font-size: 10px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px;
    z-index: 2;
  }

  .featured-info {
    padding: 40px;
    display: flex; flex-direction: column; justify-content: center; gap: 14px;
  }
  .featured-cat {
    font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--green); font-weight: 500;
  }
  .featured-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700; line-height: 1.3;
  }
  .featured-excerpt { font-size: 14px; color: var(--muted); line-height: 1.75; }
  .featured-meta {
    display: flex; align-items: center; gap: 16px;
    font-size: 12px; color: var(--muted);
  }
  .featured-meta span { display: flex; align-items: center; gap: 5px; }
  .featured-read-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px; font-size: 13px; color: var(--text);
    text-decoration: none; width: fit-content;
    transition: background .2s, border-color .2s, transform .2s;
    margin-top: 4px;
  }
  .featured-read-btn:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.3);
    transform: translateX(3px);
  }

  /* ── CONTROLS ── */
  .controls {
    display: flex; gap: 12px; flex-wrap: wrap;
    align-items: center; margin-bottom: 32px;
    opacity: 0; animation: fadeUp .6s .3s ease forwards;
  }

  .search-wrap { position: relative; flex: 1; min-width: 220px; }
  .search-icon {
    position: absolute; left: 16px; top: 50%;
    transform: translateY(-50%); color: var(--muted);
    font-size: 14px; pointer-events: none;
  }
  .search-input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 20px 12px 44px;
    font-size: 14px; font-family: 'DM Sans', sans-serif;
    color: var(--text); outline: none;
    transition: border-color .2s, box-shadow .2s;
  }
  .search-input::placeholder { color: var(--muted); }
  .search-input:focus {
    border-color: rgba(74,222,128,0.35);
    box-shadow: 0 0 0 3px rgba(74,222,128,0.07);
  }

  .filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
  .chip {
    padding: 10px 18px; border-radius: 999px;
    font-size: 13px; font-weight: 500; cursor: pointer;
    border: 1px solid var(--border);
    background: var(--card); color: var(--muted);
    transition: all .2s; white-space: nowrap; user-select: none;
  }
  .chip:hover { border-color: rgba(74,222,128,0.3); color: var(--text); }
  .chip.active {
    background: rgba(74,222,128,0.12);
    border-color: rgba(74,222,128,0.4); color: var(--green);
  }

  /* results count */
  .results-count {
    font-size: 13px; color: var(--muted); margin-bottom: 24px;
    opacity: 0; animation: fadeUp .5s .35s ease forwards;
  }
  .results-count strong { color: var(--text); }

  /* ── BLOG GRID ── */
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  @media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 560px) { .blog-grid { grid-template-columns: 1fr; } }

  /* blog card — same style as portfolio */
  .blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px 28px;
    display: flex; flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    text-decoration: none; color: var(--text);
    position: relative; overflow: hidden;
    transition: border-color .3s, transform .3s, box-shadow .3s, background .3s;
    cursor: pointer;
    animation: fadeUp .5s ease both; opacity: 0;
    animation-fill-mode: forwards;
  }
  .blog-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 20% 20%, rgba(74,222,128,0.05) 0%, transparent 60%);
    opacity: 0; transition: opacity .3s;
  }
  .blog-card:hover {
    border-color: rgba(74,222,128,0.22);
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
    background: rgba(255,255,255,0.05);
  }
  .blog-card:hover::before { opacity: 1; }
  .blog-card.hidden { display: none; }

  .blog-card-top { display: flex; flex-direction: column; gap: 10px; }

  .blog-card-cat {
    font-size: 10px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--green); font-weight: 600;
  }
  .blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(17px, 1.8vw, 21px);
    font-weight: 700; line-height: 1.35; color: var(--text);
    position: relative; z-index: 1;
  }
  .blog-card-excerpt {
    font-size: 13px; color: var(--muted); line-height: 1.65;
    position: relative; z-index: 1;
    /* display: -webkit-box; -webkit-line-clamp: 3; */
    -webkit-box-orient: vertical; overflow: hidden;
  }

  .blog-card-bottom {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-top: 24px; position: relative; z-index: 1;
  }
  .blog-card-meta { font-size: 11px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
  .blog-card-meta .read-time { color: var(--green); font-weight: 500; }
  .blog-card-arrow {
    font-size: 20px; color: var(--green);
    transition: transform .25s; display: inline-block;
    flex-shrink: 0;
  }
  .blog-card:hover .blog-card-arrow { transform: translate(4px, -4px); }

  /* featured border variant */
  .blog-card-featured {
    border-color: rgba(74,222,128,0.2);
    background: rgba(74,222,128,0.03);
  }

  /* no results */
  .no-results {
    display: none; text-align: center; padding: 80px 20px; color: var(--muted);
  }
  .no-results.show { display: block; }
  .no-results-icon { font-size: 48px; margin-bottom: 16px; }
  .no-results h3 { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--text); margin-bottom: 8px; }

  /* back home */
  .back-home {
    display: flex; justify-content: center; margin-top: 60px;
  }
  .back-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border: 1px solid var(--border);
    border-radius: 999px; color: var(--muted); text-decoration: none;
    font-size: 14px; transition: color .2s, border-color .2s;
  }
  .back-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

  /* ── KEYFRAMES ── */
  @keyframes fadeDown { from { opacity:0; transform:translateX(-50%) translateY(-20px); } to { opacity:1; transform:translateX(-50%) translateY(0); } }
  @keyframes fadeUp { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:translateY(0); } }

  /* Fun ZOne */
.game-btn{
  position:fixed;
  left:30px;
  bottom:30px;

  display:flex;
  align-items:center;
  justify-content:center;
  width:60px;
  height:60px;

  background:linear-gradient(135deg,#1a3a2a,#2a5a3a);
  color:white;
  border-radius:16px;
  box-shadow:0 2px 5px rgba(24,190,2,0.4);
  transition:all .3s ease;
  z-index:9999;
}

/* ICON */
.btn-icon{
  font-size:26px;
}

/* 🔥 Tooltip */
.game-btn::after{
  content:"Fun Zone";
  position:absolute;
  bottom:70px;          /* button এর ডান পাশে */
  background:#1a3a2a;
  color:#fff;
  padding:8px 14px;
  border-radius:999px;
  font-size:14px;
  white-space:nowrap;

  opacity:0;
  transform:translateX(-5px);
  transition:all .25s ease;
  pointer-events:none;
}

/* Hover */
.game-btn:hover::after{
  opacity:1;
  transform:translateX(0);
}