/* ============================================================
   DESIGN-EXACT.CSS
   Pixel-perfect WordPress implementation of the HTML designs.
   Covers: Home (projects + tools + blog preview), AI Tools page, Blog page.
   ============================================================ */

/* ── SHARED SECTION HEADER (sec-hdr) ─────────────────────── */
.sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 44px;
  gap: 20px;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════
   HOME PAGE — PROJECTS SECTION
   ══════════════════════════════════════════════════════════ */
.port-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.port-card {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: #f1f0ff;
  display: block;
}
.port-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 16px 48px rgba(124,58,237,0.15);
}
.port-thumb {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.port-emoji { font-size: 2.2rem; z-index: 1; position: relative; }
/* Exact gradient backgrounds from HTML */
.pt1 { background: linear-gradient(135deg,#1a1040,#2d1b69); }
.pt2 { background: linear-gradient(135deg,#0d2040,#1b3a69); }
.pt3 { background: linear-gradient(135deg,#1a0d40,#3a1b69); }
.pt4 { background: linear-gradient(135deg,#0d1a40,#1b2d69); }
.pt5 { background: linear-gradient(135deg,#2d0d1a,#691b3a); }
.pt6 { background: linear-gradient(135deg,#0d2d1a,#1b693a); }
.port-lbl {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 600;
  color: #e040fb;
  border: 1px solid rgba(224,64,251,0.3);
  z-index: 2;
  white-space: nowrap;
}
.port-info { padding: 16px 18px; }
.port-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #f1f0ff;
}
.port-meta { color: #8b8aad; font-size: 0.77rem; }
.port-result {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.69rem;
  font-weight: 700;
  color: #22d3ee;
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 3px 8px;
  border-radius: 4px;
}
@media (max-width: 900px) { .port-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .port-grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   HOME PAGE — AI TOOLS MINI GRID (4×2)
   ══════════════════════════════════════════════════════════ */
.tool-grid-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.tool-mini {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.3s;
  text-decoration: none;
  color: #f1f0ff;
}
.tool-mini:hover {
  border-color: rgba(168,85,247,0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
}
.tm-logo {
  width: 40px; height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid rgba(124,58,237,0.2);
}
.tm-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
  color: #f1f0ff;
}
.tm-cat {
  font-size: 0.68rem;
  color: #e040fb;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tools-cta { margin-top: 36px; text-align: center; }
@media (max-width: 900px) { .tool-grid-mini { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px)  { .tool-grid-mini { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   HOME PAGE — BLOG PREVIEW (3-col)
   ══════════════════════════════════════════════════════════ */
.blog-grid-home {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.blog-card-home {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: #f1f0ff;
  display: block;
}
.blog-card-home:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 16px 48px rgba(124,58,237,0.12);
}
/* Blog card thumb gradients */
.bt1 { background: linear-gradient(135deg,#1a0d40,#3a1b8a); }
.bt2 { background: linear-gradient(135deg,#0d2040,#1b5a8a); }
.bt3 { background: linear-gradient(135deg,#2d0d1a,#8a1b5a); }
.blog-thumb-home {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}
.blog-thumb-home img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.b-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.67rem;
  font-weight: 600;
  color: #22d3ee;
  border: 1px solid rgba(34,211,238,0.3);
  z-index: 2;
}
.blog-body-home { padding: 20px; }
.blog-title-home {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #f1f0ff;
}
.blog-excerpt-home {
  color: #8b8aad;
  font-size: 0.81rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.blog-meta-home { display: flex; justify-content: space-between; }
.b-date { font-size: 0.72rem; color: #8b8aad; }
.b-read { font-size: 0.72rem; font-weight: 700; color: #a855f7; }
@media (max-width: 900px) { .blog-grid-home { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .blog-grid-home { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   BLOG ARCHIVE PAGE
   ══════════════════════════════════════════════════════════ */

/* Page hero */
.page-hero--blog {
  padding: 120px 48px 60px;
  text-align: center;
  position: relative; z-index: 1;
}
.page-hero--blog .sec-label { justify-content: center; }
.page-hero--blog h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 640px;
  margin: 0 auto 16px;
}
.page-hero--blog .sec-sub {
  color: #8b8aad;
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}
/* Blog search bar */
.blog-search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px;
  padding: 13px 20px;
  max-width: 480px;
  margin: 0 auto;
  transition: border-color 0.2s;
}
.blog-search-bar-wrap:focus-within { border-color: #a855f7; }
.blog-search-bar-wrap input {
  background: transparent; border: none; outline: none;
  color: #f1f0ff; font-size: 0.9rem; width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.blog-search-bar-wrap input::placeholder { color: #8b8aad; }

/* Featured post */
.featured-post-section { padding: 60px 48px 0; }
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: #f1f0ff;
  position: relative;
}
.featured-post::before {
  content: 'Featured Post';
  position: absolute;
  top: 20px; left: 20px;
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  color: #fff;
  font-size: 0.67rem; font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 2;
  letter-spacing: 0.06em;
}
.featured-post:hover {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 20px 60px rgba(124,58,237,0.15);
}
.fp-thumb {
  background: linear-gradient(135deg,#1a0d40,#3a1b8a);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
  min-height: 280px;
  position: relative; overflow: hidden;
}
.fp-thumb img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.fp-body {
  padding: 40px 36px;
  display: flex; flex-direction: column; justify-content: center;
}
.fp-cat {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #e040fb; margin-bottom: 12px;
}
.fp-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  line-height: 1.2; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.fp-excerpt { color: #8b8aad; font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.fp-meta { display: flex; align-items: center; gap: 16px; font-size: 0.78rem; color: #8b8aad; flex-wrap: wrap; }
.fp-read { color: #a855f7; font-weight: 700; }

/* Blog main layout */
.blog-main-wrap { padding: 60px 48px 100px; }
.blog-main-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  align-items: start;
}

/* Category filter */
.cat-filter {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.cat-btn {
  padding: 7px 16px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid rgba(124,58,237,0.2);
  color: #8b8aad; cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.cat-btn.active, .cat-btn:hover {
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border-color: transparent; color: #fff;
}

/* Posts grid — 2 columns */
.posts-grid-blog {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Blog card (archive) */
.blog-card-archive {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  color: #f1f0ff;
  display: block;
}
.blog-card-archive:hover {
  transform: translateY(-4px);
  border-color: rgba(168,85,247,0.4);
  box-shadow: 0 16px 48px rgba(124,58,237,0.12);
}
/* Archive thumb gradients */
.bct1 { background: linear-gradient(135deg,#1a0d40,#3a1b8a); }
.bct2 { background: linear-gradient(135deg,#0d2040,#1b5a8a); }
.bct3 { background: linear-gradient(135deg,#2d0d1a,#8a1b5a); }
.bct4 { background: linear-gradient(135deg,#0d2d1a,#1b5a40); }
.bct5 { background: linear-gradient(135deg,#2d2d0d,#5a5a1b); }
.bct6 { background: linear-gradient(135deg,#2d1a0d,#8a3a1b); }
.bct7 { background: linear-gradient(135deg,#0d0d2d,#1b1b8a); }
.bct8 { background: linear-gradient(135deg,#2d0d2d,#8a1b8a); }

.bc-thumb-wrap {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  position: relative; overflow: hidden;
}
.bc-thumb-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.bc-cat-label {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 3px 10px; border-radius: 6px;
  font-size: 0.67rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
.bc-cat-label.cat-seo   { color: #22d3ee; border-color: rgba(34,211,238,0.3); }
.bc-cat-label.cat-ads   { color: #e040fb; border-color: rgba(224,64,251,0.3); }
.bc-cat-label.cat-meta  { color: #6199ff; }
.bc-cat-label.cat-wp    { color: #a855f7; border-color: rgba(168,85,247,0.3); }
.bc-cat-label.cat-ai    { color: #4ade80; border-color: rgba(74,222,128,0.3); }
.bc-cat-label.cat-geo   { color: #fbbf24; border-color: rgba(251,191,36,0.3); }

.bc-body-wrap { padding: 18px; }
.bc-title-text {
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  line-height: 1.35; margin-bottom: 8px;
  color: #f1f0ff;
}
.bc-excerpt-text { color: #8b8aad; font-size: 0.79rem; line-height: 1.55; margin-bottom: 12px; }
.bc-tags-wrap { display: flex; gap: 5px; margin-bottom: 10px; flex-wrap: wrap; }
.bctag {
  font-size: 0.63rem; font-weight: 600;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a855f7;
}
.bc-meta-wrap { display: flex; align-items: center; justify-content: space-between; }
.bc-date-text { font-size: 0.7rem; color: #8b8aad; }
.bc-read-text { font-size: 0.7rem; font-weight: 700; color: #a855f7; }

/* Sidebar */
.blog-sidebar { }
.sidebar-widget {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.sw-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 0.95rem;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(124,58,237,0.2);
  color: #f1f0ff;
}
/* About widget */
.about-widget { text-align: center; }
.about-avatar {
  width: 70px; height: 70px;
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 14px;
}
.about-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1rem; margin-bottom: 4px; color: #f1f0ff; }
.about-role { font-size: 0.78rem; color: #e040fb; font-weight: 600; margin-bottom: 10px; }
.about-bio { font-size: 0.79rem; color: #8b8aad; line-height: 1.6; margin-bottom: 14px; }
.about-socials { display: flex; gap: 8px; justify-content: center; }
.ab-soc {
  width: 32px; height: 32px;
  background: #1e1e3a; border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; text-decoration: none;
  transition: all 0.2s; color: #8b8aad;
}
.ab-soc:hover { border-color: #a855f7; color: #f1f0ff; }
/* Categories */
.cat-list { list-style: none; }
.cat-list li a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid rgba(124,58,237,0.2);
  font-size: 0.84rem; color: #8b8aad; text-decoration: none; transition: color 0.2s;
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover { color: #a855f7; }
.cat-count {
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.25);
  color: #a855f7; font-size: 0.7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
}
/* Newsletter widget */
.nl-widget p { font-size: 0.78rem; color: #8b8aad; margin-bottom: 14px; line-height: 1.5; }
.nl-widget input {
  width: 100%; background: #1e1e3a;
  border: 1px solid rgba(124,58,237,0.2); border-radius: 8px;
  padding: 10px 13px; color: #f1f0ff; font-size: 0.82rem;
  font-family: 'Plus Jakarta Sans', sans-serif; margin-bottom: 10px;
  outline: none; transition: border-color 0.2s;
}
.nl-widget input:focus { border-color: #a855f7; }
.nl-widget input::placeholder { color: #8b8aad; }
.nl-widget button {
  width: 100%; background: linear-gradient(135deg,#7c3aed,#e040fb);
  border: none; color: #fff; padding: 11px; border-radius: 8px;
  font-weight: 700; font-size: 0.84rem; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
/* Popular posts */
.popular-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.popular-item a { display: flex; gap: 12px; text-decoration: none; color: inherit; transition: opacity 0.2s; }
.popular-item a:hover { opacity: 0.8; }
.pop-num { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: rgba(124,58,237,0.3); flex-shrink: 0; min-width: 24px; }
.pop-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem; line-height: 1.4; margin-bottom: 3px; color: #f1f0ff; }
.pop-meta { font-size: 0.7rem; color: #8b8aad; }
/* Tags cloud */
.tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill {
  font-size: 0.73rem; font-weight: 600; padding: 5px 12px; border-radius: 20px;
  background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2);
  color: #a855f7; text-decoration: none; transition: all 0.2s;
}
.tag-pill:hover { background: rgba(124,58,237,0.25); border-color: #a855f7; }

@media (max-width: 900px) {
  .featured-post-section { padding: 40px 20px 0; }
  .featured-post { grid-template-columns: 1fr; }
  .fp-thumb { min-height: 200px; }
  .fp-body { padding: 28px 24px; }
  .blog-main-wrap { padding: 40px 20px 60px; }
  .blog-main-inner { grid-template-columns: 1fr; gap: 32px; }
  .posts-grid-blog { grid-template-columns: 1fr; }
  .page-hero--blog { padding: 100px 20px 40px; }
}

/* ══════════════════════════════════════════════════════════
   AI TOOLS DIRECTORY PAGE
   ══════════════════════════════════════════════════════════ */

/* Page hero */
.page-hero--tools {
  padding: 120px 48px 70px;
  text-align: center;
  position: relative; z-index: 1;
}
.page-hero--tools .sec-label { justify-content: center; }
.page-hero--tools h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  max-width: 700px;
  margin: 0 auto 16px;
  color: #f1f0ff;
}
.page-hero--tools .sec-sub {
  color: #8b8aad; font-size: 0.93rem; line-height: 1.7;
  max-width: 600px; margin: 0 auto 40px;
}
/* Hero stats */
.tools-hero-stats {
  display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; margin-top: 32px;
}
.h-stat { text-align: center; }
.h-stat-num {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2rem;
  background: linear-gradient(135deg,#a855f7,#e040fb);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1;
}
.h-stat-lbl { font-size: 0.78rem; color: #8b8aad; margin-top: 4px; }

/* Tools main content */
.tools-main-wrap { padding: 60px 48px 100px; }

/* Controls: search + filter tabs */
.tools-controls {
  display: flex; gap: 16px; align-items: center; margin-bottom: 36px; flex-wrap: wrap;
}
.tools-search-bar {
  display: flex; align-items: center; gap: 12px;
  background: #1a1a35; border: 1px solid rgba(124,58,237,0.2);
  border-radius: 12px; padding: 12px 20px;
  flex: 1; max-width: 440px; transition: border-color 0.2s;
}
.tools-search-bar:focus-within { border-color: #a855f7; }
.tools-search-bar input {
  background: transparent; border: none; outline: none;
  color: #f1f0ff; font-size: 0.9rem; width: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.tools-search-bar input::placeholder { color: #8b8aad; }
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ftab {
  padding: 8px 16px; border-radius: 20px;
  font-size: 0.78rem; font-weight: 600;
  border: 1px solid rgba(124,58,237,0.2);
  color: #8b8aad; cursor: pointer;
  transition: all 0.2s; background: transparent;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.ftab.active, .ftab:hover {
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border-color: transparent; color: #fff;
}

/* Featured tool card */
.featured-tool-card {
  background: #1e1e3a;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 16px; padding: 28px;
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 20px; align-items: center;
  margin-bottom: 28px; position: relative; overflow: hidden;
  transition: all 0.3s;
}
.featured-tool-card::before {
  content: 'Featured';
  position: absolute; top: 0; right: 24px;
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  padding: 4px 12px; border-radius: 0 0 8px 8px;
  letter-spacing: 0.06em;
}
.featured-tool-card:hover {
  border-color: rgba(168,85,247,0.5);
  box-shadow: 0 16px 48px rgba(124,58,237,0.15);
}
.ft-logo {
  width: 60px; height: 60px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; border: 1px solid rgba(124,58,237,0.2);
  flex-shrink: 0;
}
.ft-cat {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #e040fb; margin-bottom: 6px;
}
.ft-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 4px; color: #f1f0ff; }
.ft-desc { color: #8b8aad; font-size: 0.84rem; line-height: 1.6; max-width: 500px; }
.ft-action { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.ft-action .btn-visit {
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  color: #fff; padding: 10px 20px; border-radius: 8px;
  font-weight: 700; font-size: 0.82rem; text-decoration: none;
  box-shadow: 0 0 24px rgba(124,58,237,0.4);
  transition: all 0.25s; white-space: nowrap;
}
.ft-action .btn-visit:hover { transform: translateY(-1px); }
.ft-action span { font-size: 0.75rem; color: #8b8aad; text-align: center; }

/* Tool category sections */
.tool-section { margin-bottom: 60px; }
.tool-section-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
.ts-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; border: 1px solid rgba(124,58,237,0.2);
  flex-shrink: 0;
}
.ts-title { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; color: #f1f0ff; }
.ts-count {
  font-size: 0.75rem; color: #8b8aad;
  background: #1e1e3a; border: 1px solid rgba(124,58,237,0.2);
  padding: 3px 10px; border-radius: 20px;
}

/* Tools grid — 3 columns */
.tools-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Tool card */
.tool-card-item {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px; padding: 22px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.tool-card-item::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg,rgba(124,58,237,0.03),transparent);
  opacity: 0; transition: opacity 0.3s;
}
.tool-card-item:hover {
  border-color: rgba(168,85,247,0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(124,58,237,0.12);
}
.tool-card-item:hover::before { opacity: 1; }
.tool-logo-icon {
  width: 48px; height: 48px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  border: 1px solid rgba(124,58,237,0.2);
}
.tool-info-wrap { flex: 1; min-width: 0; }
.tool-cat-label {
  font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: #e040fb; margin-bottom: 3px;
}
.tool-name-text {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem;
  margin-bottom: 6px; color: #f1f0ff;
}
.tool-desc-text { color: #8b8aad; font-size: 0.79rem; line-height: 1.55; margin-bottom: 10px; }
.tool-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tbadge {
  font-size: 0.65rem; font-weight: 600; padding: 3px 8px; border-radius: 4px;
}
.tbadge.free    { background: rgba(74,222,128,0.1);  border: 1px solid rgba(74,222,128,0.25);  color: #4ade80; }
.tbadge.paid    { background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.2);  color: #f87171; }
.tbadge.freemium{ background: rgba(251,191,36,0.1);  border: 1px solid rgba(251,191,36,0.2);   color: #fbbf24; }
.tbadge.used    { background: rgba(168,85,247,0.15); border: 1px solid rgba(168,85,247,0.3);   color: #a855f7; }
.tool-rating { display: flex; align-items: center; gap: 4px; font-size: 0.72rem; font-weight: 600; color: #fbbf24; }

/* Submit tool section */
.submit-tool-section {
  background: #111128;
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 60px 48px; text-align: center;
}
.submit-tool-card {
  background: #1a1a35; border: 1px solid rgba(124,58,237,0.2);
  border-radius: 16px; padding: 40px;
  max-width: 560px; margin: 0 auto;
}
.submit-tool-card .sec-label { justify-content: center; }
.submit-tool-card h2 {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.6rem;
  margin-bottom: 8px; color: #f1f0ff;
}
.submit-tool-card p { color: #8b8aad; font-size: 0.9rem; line-height: 1.6; text-align: center; margin: 0 auto; }
.submit-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.s-input {
  background: #1e1e3a; border: 1px solid rgba(124,58,237,0.2);
  border-radius: 8px; padding: 12px 16px;
  color: #f1f0ff; font-size: 0.88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.s-input:focus { border-color: #a855f7; }
.s-input::placeholder { color: #8b8aad; }
.s-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s-btn {
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border: none; color: #fff; padding: 13px; border-radius: 8px;
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 0 20px rgba(124,58,237,0.4);
  transition: all 0.25s;
}
.s-btn:hover { transform: translateY(-1px); }

/* Newsletter section (tools page) */
.tools-nl-section {
  padding: 80px 48px; text-align: center;
}
.tools-nl-section .sec-label { justify-content: center; }
.tools-nl-section h2 { font-family: 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.7rem,2.8vw,2.6rem); max-width: 500px; margin: 0 auto 12px; color: #f1f0ff; }
.tools-nl-section .sec-sub { margin: 0 auto 32px; text-align: center; color: #8b8aad; }
.nl-form-row {
  display: flex; gap: 12px; justify-content: center;
  max-width: 440px; margin: 0 auto;
}
.nl-inp-field {
  flex: 1; background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2); border-radius: 8px;
  padding: 12px 16px; color: #f1f0ff; font-size: 0.88rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.nl-inp-field:focus { border-color: #a855f7; }
.nl-inp-field::placeholder { color: #8b8aad; }
.nl-btn-sm {
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border: none; color: #fff; padding: 12px 24px;
  border-radius: 8px; font-weight: 700; font-size: 0.88rem;
  cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .page-hero--tools { padding: 100px 20px 50px; }
  .tools-main-wrap { padding: 40px 20px 60px; }
  .tools-grid-3 { grid-template-columns: 1fr; }
  .featured-tool-card { grid-template-columns: auto 1fr; }
  .ft-action { display: none; }
  .s-row { grid-template-columns: 1fr; }
  .nl-form-row { flex-direction: column; }
  .submit-tool-section, .tools-nl-section { padding: 40px 20px; }
}

/* ══════════════════════════════════════════════════════════
   MISSING KEYFRAMES (required by hero sections)
   ══════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hero section fix: ensure content is visible even if
   animation doesn't fire (e.g. reduced-motion, slow CSS) ── */
.page-hero--tools h1,
.page-hero--tools .sec-label,
.page-hero--tools .sec-sub,
.page-hero--tools .tools-hero-stats,
.page-hero--blog h1,
.page-hero--blog .sec-label,
.page-hero--blog .sec-sub,
.page-hero--blog .blog-search-bar-wrap {
  /* Fallback: visible after 1.2s even if animation stalls */
  animation-fill-mode: both;
  animation-timing-function: ease;
}

/* Ensure container has proper padding so content isn't
   hidden behind the fixed nav */
.page-hero--tools,
.page-hero--blog {
  padding-top: max(120px, calc(68px + 52px));
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   SINGLE POST — layout, related posts, sidebar fixes
   ══════════════════════════════════════════════════════════ */

/* Related posts — 3 columns, uses existing blog-card-home styles */
.related-posts { margin-top: 60px; }
.related-posts__title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  margin-bottom: 24px; color: #f1f0ff;
  letter-spacing: -0.02em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* Sidebar widget overrides for single post context */
.blog-sidebar .sidebar-widget {
  background: #1a1a35;
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.blog-sidebar .sw-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 0.95rem;
  margin-bottom: 18px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(124,58,237,0.15);
  color: #f1f0ff;
}
/* Categories — count on right, category name on left */
.blog-sidebar .cat-list { list-style: none; }
.blog-sidebar .cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(124,58,237,0.12);
  font-size: 0.84rem; color: #8b8aad;
  text-decoration: none; transition: color 0.2s;
}
.blog-sidebar .cat-list li:last-child a { border-bottom: none; }
.blog-sidebar .cat-list li a:hover { color: #a855f7; }
.blog-sidebar .cat-count {
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  color: #a855f7; font-size: 0.68rem; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  flex-shrink: 0; margin-left: 8px;
}
/* Newsletter in sidebar */
.blog-sidebar .nl-widget p {
  font-size: 0.78rem; color: #8b8aad;
  margin-bottom: 12px; line-height: 1.55;
}
.blog-sidebar .nl-widget input {
  width: 100%;
  background: #1e1e3a;
  border: 1px solid rgba(124,58,237,0.2); border-radius: 8px;
  padding: 10px 13px; color: #f1f0ff; font-size: 0.82rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-bottom: 10px; outline: none;
  transition: border-color 0.2s; display: block;
}
.blog-sidebar .nl-widget input:focus { border-color: #a855f7; }
.blog-sidebar .nl-widget input::placeholder { color: #8b8aad; }
.blog-sidebar .nl-widget button {
  width: 100%;
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border: none; color: #fff; padding: 11px; border-radius: 8px;
  font-weight: 700; font-size: 0.84rem; cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all 0.2s;
}
/* Popular posts in sidebar */
.blog-sidebar .popular-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.blog-sidebar .popular-item a {
  display: flex; gap: 12px; text-decoration: none; color: inherit;
  transition: opacity 0.2s;
}
.blog-sidebar .popular-item a:hover { opacity: 0.8; }
.blog-sidebar .pop-num {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: rgba(124,58,237,0.3);
  flex-shrink: 0; min-width: 24px;
}
.blog-sidebar .pop-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; line-height: 1.4;
  margin-bottom: 3px; color: #f1f0ff;
}
.blog-sidebar .pop-meta { font-size: 0.7rem; color: #8b8aad; }
/* Tags cloud in sidebar */
.blog-sidebar .tags-cloud { display: flex; flex-wrap: wrap; gap: 7px; }
.blog-sidebar .tag-pill {
  font-size: 0.73rem; font-weight: 600; padding: 5px 12px;
  border-radius: 20px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  color: #a855f7; text-decoration: none; transition: all 0.2s;
}
.blog-sidebar .tag-pill:hover {
  background: rgba(124,58,237,0.25); border-color: #a855f7;
}
/* About widget in sidebar */
.blog-sidebar .about-avatar {
  width: 70px; height: 70px;
  background: linear-gradient(135deg,#7c3aed,#e040fb);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 14px;
  overflow: hidden;
}
.blog-sidebar .about-name {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1rem; margin-bottom: 4px; color: #f1f0ff;
}
.blog-sidebar .about-role {
  font-size: 0.78rem; color: #e040fb;
  font-weight: 600; margin-bottom: 10px;
}
.blog-sidebar .about-bio {
  font-size: 0.78rem; color: #8b8aad;
  line-height: 1.6; margin-bottom: 14px;
}
.blog-sidebar .about-socials {
  display: flex; gap: 8px; justify-content: center;
}
.blog-sidebar .ab-soc {
  width: 32px; height: 32px;
  background: #1e1e3a;
  border: 1px solid rgba(124,58,237,0.2); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; text-decoration: none;
  transition: all 0.2s; color: #8b8aad;
}
.blog-sidebar .ab-soc:hover { border-color: #a855f7; color: #f1f0ff; }

/* Post article column — ensure content wraps properly */
.post-article-col {
  min-width: 0;
  max-width: 100%;
}
/* Disable WordPress default comment form (belt + suspenders) */
#comments, .comments-area { display: none !important; }

/* Sidebar sticky */
.blog-sidebar {
  position: sticky;
  top: calc(68px + 20px);
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  scrollbar-width: none;
}
.blog-sidebar::-webkit-scrollbar { display: none; }

@media (max-width: 900px) {
  .blog-sidebar { position: static; max-height: none; overflow-y: visible; }
}
