/*
Theme Name: SERPMint
Theme URI: https://serpmint.tech/
Description: Modern SEO tools platform theme — simple, fast, practical SEO utilities.
Author: SERPMint
Version: 1.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serpmint
*/

:root {
  --navy: #0F172A;
  --mint: #22C55E;
  --mint-light: #DCFCE7;
  --white: #FFFFFF;
  --soft: #F8FAFC;
  --text: #475569;
  --line: #E2E8F0;
  --mut: #94A3B8;
  --h-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --b-font: 'Inter', system-ui, sans-serif;
  --r: 12px;
  --r-lg: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --wrap: 1120px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--b-font);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--h-font);
  color: var(--navy);
  line-height: 1.2;
}

h1,
h2 {
  font-weight: 700;
}

h3,
h4 {
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--mint);
  text-decoration: none;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 99;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: .18s;
}

.btn-primary {
  background: var(--mint);
  color: var(--navy);
}

.btn-primary:hover {
  background: #1eb254;
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--navy);
}

section {
  padding: 84px 0;
}

.sec-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.sec-head p {
  font-size: 17px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #15803d;
  background: var(--mint-light);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
}

.logo em {
  font-style: normal;
  color: var(--mint);
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--navy);
  display: grid;
  place-items: center;
  flex: none;
}

.logo-mark svg {
  color: #fff;
}

/* Center the navigation menu */
.main-nav {
	display: flex;
	align-items: center;
	justify-content: center; /* Centers the menu items */
	gap: 6px;
	list-style: none;
	flex: 1; /* Allows the nav to take up available space and center properly */
}

.main-nav .menu-item-has-children {
	position: relative;
	display: flex;
	align-items: center;
}

/* Base styling for menu links with floating underline setup */
.main-nav a.nav-link {
	font-family: var(--h-font);
	font-weight: 600;
	font-size: 15px;
	color: var(--navy);
	padding: 10px 14px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	position: relative; /* Needed for the absolute positioned underline */
	transition: color .2s ease;
}

/* Remove the old background hover effect */
.main-nav a.nav-link:hover {
	background: transparent;
	color: #15803d; /* Darker mint green on hover */
}

/* The Floating Underline Element */
.main-nav a.nav-link::after {
	content: '';
	position: absolute;
	bottom: 2px;
	left: 14px;
	right: 14px;
	height: 2.5px;
	background: var(--mint);
	border-radius: 999px;
	transform: scaleX(0); /* Hidden by default */
	transform-origin: center;
	transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}

/* Show underline on Hover */
.main-nav a.nav-link:hover::after {
	transform: scaleX(1);
}

/* Show underline on Active Page (WordPress adds .current-menu-item or we can target by URL) */
/* Since your links are hardcoded in header.php, we use a small JS snippet below to add .active class, 
   but we also add a CSS fallback for standard WP menus just in case */
.main-nav a.nav-link.active::after,
.current-menu-item > a.nav-link::after {
	transform: scaleX(1);
}

.main-nav a.nav-link.active {
	color: #15803d;
}

.nav-cta {
  margin-left: 10px;
}

.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 44px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 26px;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.menu-item-has-children:hover .mega,
.menu-item-has-children:focus-within .mega {
  display: grid;
}

.mega h4 {
  font-family: var(--h-font);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 12px;
}

.mega a {
  display: block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--h-font);
  padding: 7px 10px;
  border-radius: 8px;
}

.mega a:hover {
  background: var(--mint-light);
  color: #15803d;
}

.mega-foot {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-weight: 600;
  font-family: var(--h-font);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: .2s;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: absolute;
  left: 0;
  transition: .2s;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 14px 22px 26px;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  color: var(--navy);
  font-family: var(--h-font);
  font-weight: 600;
  border-bottom: 1px solid var(--soft);
}

.mobile-nav .m-cat {
  font-size: 12px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding-top: 16px;
}

.mobile-nav .m-tool {
  padding-left: 14px;
  font-weight: 400;
  font-family: var(--b-font);
  color: var(--text);
}

body.nav-open .mobile-nav {
  display: block;
}

@media (max-width: 960px) {
  .main-nav,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--soft), #fff);
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.02em;
  margin: 18px 0 20px;
}

.hero h1 .hl {
  color: var(--mint);
  position: relative;
  z-index: 0;
}

.hero p.lead {
  font-size: 18px;
  max-width: 520px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .25);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  padding: 12px 16px;
}

.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.mock-bar i:first-child {
  background: var(--mint);
}

.mock-bar b {
  margin-left: 8px;
  color: #cbd5e1;
  font-family: var(--h-font);
  font-size: 12.5px;
  font-weight: 600;
}

.mock-body {
  padding: 22px;
}

.mock-label {
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--h-font);
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 6px;
}

.mock-input {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--navy);
  background: var(--soft);
}

.mock-count {
  font-size: 11.5px;
  color: #15803d;
  margin: 6px 0 16px;
  font-weight: 600;
}

.serp {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 6px;
  background: #fff;
}

.serp-url {
  font-size: 12px;
  color: #0d652d;
  margin-bottom: 4px;
}

.serp-title {
  font-size: 17px;
  color: #1a0dab;
  font-family: var(--h-font);
  font-weight: 600;
  margin-bottom: 5px;
}

.serp-desc {
  font-size: 13px;
  color: var(--text);
}

.float-chip {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 9px 16px;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 3;
}

.chip-1 {
  top: -18px;
  right: 26px;
}

.chip-2 {
  bottom: -16px;
  left: 22px;
}

.float-chip .dot {
  color: var(--mint);
}

/* Hero animations */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
}

.blob-1 {
  width: 420px;
  height: 420px;
  background: #DCFCE7;
  top: -140px;
  right: -90px;
  animation: blobDrift 12s ease-in-out infinite alternate;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: #bbf7d0;
  bottom: -150px;
  left: -110px;
  animation: blobDrift 14s ease-in-out infinite alternate-reverse;
}

@keyframes blobDrift {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(34px, 22px) scale(1.08);
  }
}

.hero .eyebrow,
.hero h1,
.hero .lead,
.hero .hero-ctas {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp .7s cubic-bezier(.2, .7, .3, 1) forwards;
}

.hero h1 {
  animation-delay: .08s;
}

.hero .lead {
  animation-delay: .16s;
}

.hero .hero-ctas {
  animation-delay: .24s;
}

.hero-visual {
  animation: fadeUp .8s .22s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: none;
  }
}

.mock {
  animation: floatY 7s ease-in-out infinite;
}

.float-chip {
  animation: chipFloat 5s ease-in-out infinite;
}

.chip-2 {
  animation-delay: 1.2s;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

@keyframes chipFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.deco-chip {
  position: absolute;
  display: flex;
  gap: 7px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 12px;
  color: var(--navy);
  box-shadow: var(--shadow);
  animation: chipFloat 6s ease-in-out infinite;
  z-index: 2;
}

.deco-chip svg {
  color: var(--mint);
  flex: none;
}

.dc-1 {
  top: 32%;
  left: -92px;
}

.dc-2 {
  top: 58%;
  right: -84px;
  animation-delay: 1.1s;
}

@media (max-width: 1200px) {
  .dc-1 {
    left: -20px;
  }

  .dc-2 {
    right: -16px;
  }
}

@media (max-width: 960px) {
  .deco-chip {
    display: none;
  }
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 5px;
  height: 12px;
  background: var(--mint-light);
  border-radius: 4px;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: sweep .8s .7s cubic-bezier(.2, .7, .3, 1) forwards;
}

@keyframes sweep {
  to {
    transform: scaleX(1);
  }
}

.mock-count.tick {
  animation: tick .35s;
}

@keyframes tick {
  50% {
    transform: scale(1.07);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero {
    padding: 64px 0 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .eyebrow,
  .hero h1,
  .hero .lead,
  .hero .hero-ctas,
  .hero-visual {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .mock,
  .float-chip,
  .deco-chip,
  .hero-blob,
  .hero h1 .hl::after {
    animation: none;
  }

  .hero h1 .hl::after {
    transform: scaleX(1);
  }
}

/* Trust strip */
.trust {
  background: var(--navy);
  padding: 26px 0;
}

.trust-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E2E8F0;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 14.5px;
}

.trust-item svg {
  color: var(--mint);
  flex: none;
}

/* Tools */
.tools {
  background: var(--soft);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: .2s;
  box-shadow: var(--shadow);
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: #bbf7d0;
}

.tool-cat {
  align-self: flex-start;
  background: var(--mint-light);
  color: #15803d;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 12px;
}

.tool-card h3 {
  font-size: 18.5px;
}

.tool-card p {
  font-size: 14.5px;
  flex: 1;
}

.tool-link {
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 14.5px;
  color: #15803d;
}

.tool-link:hover {
  text-decoration: underline;
}

.tools-cta {
  text-align: center;
  margin-top: 40px;
}

@media (max-width: 960px) {
  .tool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .tool-grid {
    grid-template-columns: 1fr;
  }
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.why-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}

.why-ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--mint-light);
  color: #15803d;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.why-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 14.5px;
}

@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* How it works */
.how {
  background: var(--soft);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  border-top: 2px dashed #cbd5e1;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--mint);
  font-family: var(--h-font);
  font-weight: 700;
  font-size: 17px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 4px solid var(--soft);
}

.step h3 {
  font-size: 17.5px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14.5px;
  max-width: 270px;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .steps::before {
    display: none;
  }
}

/* Workflow */
.workflow {
  background: var(--navy);
}

.workflow .sec-head h2 {
  color: #fff;
}

.workflow .sec-head p {
  color: #94A3B8;
}

.wf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.wf-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wf-step {
  font-family: var(--h-font);
  font-weight: 700;
  color: var(--mint);
  font-size: 13px;
  letter-spacing: .08em;
}

.wf-card h3 {
  color: #fff;
  font-size: 17px;
}

.wf-card p {
  color: #94A3B8;
  font-size: 14px;
  flex: 1;
}

.wf-card a {
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--mint);
}

.wf-card a:hover {
  text-decoration: underline;
}

@media (max-width: 960px) {
  .wf-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .wf-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .2s;
  box-shadow: var(--shadow);
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card .thumb-img {
  height: 160px;
  width: 100%;
  object-fit: cover;
}

.thumb {
  height: 160px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0F172A, #22C55E);
}

.thumb svg {
  opacity: .35;
  color: #fff;
}

.post-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.post-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-family: var(--h-font);
  font-weight: 600;
}

.post-cat {
  background: var(--mint-light);
  color: #15803d;
  border-radius: 999px;
  padding: 3px 11px;
}

.post-time {
  color: var(--mut);
}

.post-card h3 {
  font-size: 17px;
  line-height: 1.35;
}

.post-card h3 a {
  color: var(--navy);
}

.post-card p {
  font-size: 14px;
  flex: 1;
}

@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* Pair */
.pair {
  background: var(--mint-light);
}

.pair-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}

.pair-card {
  background: #fff;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-lg);
  padding: 26px;
}

.pair-card h3 {
  font-size: 17.5px;
  margin-bottom: 12px;
}

.pair-card a {
  display: block;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 14.5px;
  color: #15803d;
  padding: 6px 0;
}

.pair-card a:hover {
  text-decoration: underline;
}

.pair-card a.guide {
  color: var(--navy);
}

@media (max-width: 760px) {
  .pair-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin-bottom: 12px;
  overflow: hidden;
}

summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  font-family: var(--h-font);
  font-weight: 600;
  font-size: 16px;
  color: var(--navy);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 22px;
  color: var(--mint);
  transition: .2s;
  flex: none;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding: 0 22px 20px;
  font-size: 15px;
}

/* Final CTA */
.final-cta {
  background: var(--navy);
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: 14px;
}

.final-cta p {
  color: #94A3B8;
  font-size: 17px;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* Inner pages / blog */
.content-sec {
  padding: 70px 0;
}

.content-sec .post-title {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 10px 0 18px;
}

.content-sec .entry {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16.5px;
}

.content-sec .entry p {
  margin: 0 0 16px;
}

.content-sec .entry h2,
.content-sec .entry h3 {
  margin: 26px 0 10px;
}

.content-sec .entry img {
  border-radius: 12px;
}

.post-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.post-list article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.post-list h2 {
  font-size: 20px;
  margin: 6px 0 8px;
}

.post-list h2 a {
  color: var(--navy);
}

.pagination {
  margin-top: 34px;
  text-align: center;
  font-family: var(--h-font);
  font-weight: 600;
  color: var(--navy);
}

.pagination .page-numbers {
  display: inline-block;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  margin: 0 4px;
}

.pagination .current {
  background: var(--mint-light);
  border-color: #BBF7D0;
  color: #15803d;
}

/* Footer */
footer {
  background: #0B1220;
  color: #94A3B8;
  padding: 64px 0 0;
  font-size: 14.5px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 48px;
}

.foot-grid h4 {
  font-family: var(--h-font);
  color: #fff;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.foot-grid a {
  display: block;
  color: #94A3B8;
  padding: 5px 0;
}

.foot-grid a:hover {
  color: var(--mint);
}

.foot-brand p {
  margin-top: 14px;
  max-width: 260px;
}

.foot-logo {
  color: #fff;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .foot-grid {
    grid-template-columns: 1fr;
  }
}
.logo img {
	height: 38px;
	width: auto;
	display: block;
}

.logo.has-logo .logo-mark {
	display: none;
}

/* Hide text if your logo image already includes SERPMint */
.logo.has-logo .logo-text {
	display: none;
}

footer .logo img {
	height: 34px;
	width: auto;
}
/* Blog Card Updates: Author & CTA */
.post-meta {
	flex-wrap: wrap;
}
.post-author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-family: var(--h-font);
	font-weight: 600;
	color: var(--navy);
	margin-top: 4px;
	margin-bottom: 16px;
}
.author-avatar {
	border-radius: 50%;
	width: 28px;
	height: 28px;
	object-fit: cover;
	border: 2px solid var(--mint-light);
}
.btn-read {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: var(--mint);
	color: var(--navy) !important;
	font-family: var(--h-font);
	font-weight: 700;
	font-size: 13.5px;
	padding: 10px 20px;
	border-radius: 999px;
	text-decoration: none;
	transition: all .2s ease;
	box-shadow: 0 4px 10px -4px rgba(34, 197, 94, .4);
	align-self: flex-start;
}
.btn-read:hover {
	background: #1eb254;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px -4px rgba(34, 197, 94, .5);
}
.btn-read svg {
	transition: transform .2s ease;
}
.btn-read:hover svg {
	transform: translateX(3px);
}
.qa-box{background:#DCFCE7;border:1px solid #BBF7D0;border-radius:12px;padding:16px 20px;margin:0 0 26px;font-size:15.5px;color:#14532d}
.qa-box b{display:block;color:#0F172A;font-family:var(--h-font);margin-bottom:4px}

/* ===== Featured Tools v2: icons + gradient CTAs ===== */
.tools {
	background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
	position: relative;
	overflow: hidden;
}
.tools::before {
	content: "";
	position: absolute;
	top: -140px;
	left: 50%;
	transform: translateX(-50%);
	width: 680px;
	height: 360px;
	background: radial-gradient(closest-side, rgba(34, 197, 94, .14), transparent);
	pointer-events: none;
}
.tools .sec-head, .tools .tool-grid, .tools .tools-cta { position: relative; }

.tool-card {
	--acc: #16a34a;
	--acc-soft: #DCFCE7;
	background: #fff;
	border: 1px solid var(--line);
	border-top: 4px solid var(--acc);
	border-radius: var(--r-lg);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
	box-shadow: var(--shadow);
}
.tool-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px -22px rgba(15, 23, 42, .28);
	border-color: var(--acc);
}
.tool-card.c-structured { --acc: #9333ea; --acc-soft: #F3E8FF; }
.tool-card.c-technical  { --acc: #2563eb; --acc-soft: #DBEAFE; }
.tool-card.c-local      { --acc: #ea580c; --acc-soft: #FFEDD5; }

.tool-card-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}
.tool-ico {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--acc-soft);
	color: var(--acc);
	transition: transform .25s ease;
}
.tool-card:hover .tool-ico { transform: scale(1.08) rotate(-4deg); }

.tool-card .tool-cat {
	background: var(--acc-soft);
	color: var(--acc);
}

/* Theme-colour gradient CTA button */
.tool-cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(135deg, var(--mint), #15803d);
	color: #fff !important;
	font-family: var(--h-font);
	font-weight: 700;
	font-size: 14px;
	padding: 12px 20px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 8px 16px -8px rgba(21, 128, 61, .6);
	transition: all .2s ease;
}
.tool-cta svg { transition: transform .2s ease; }
.tool-cta:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -8px rgba(21, 128, 61, .7);
}
.tool-cta:hover svg { transform: translateX(3px); }
/* ===== Blog Cards v2: taller images, compact cards, centered CTA ===== */

/* Card container — limit height */
.post-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform .25s ease, box-shadow .25s ease;
	box-shadow: var(--shadow);
}
.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 44px -22px rgba(15, 23, 42, .28);
}

/* Featured image — taller */
.post-card .thumb-img {
	height: 200px;
	width: 100%;
	object-fit: cover;
	display: block;
}

/* Fallback placeholder if no featured image */
.thumb {
	height: 200px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #0F172A, #22C55E);
}
.thumb svg {
	opacity: .35;
	color: #fff;
}

/* Post body — tighter spacing */
.post-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

/* Meta row */
.post-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 2px;
}

/* Title — slightly smaller */
.post-card h3 {
	font-size: 16px;
	line-height: 1.35;
	margin: 0;
}
.post-card h3 a {
	color: var(--navy);
}

/* Excerpt — compact */
.post-card p {
	font-size: 13.5px;
	line-height: 1.55;
	flex: 1;
	margin: 0;
	color: #475569;
}

/* Author row — tighter */
.post-author {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-family: var(--h-font);
	font-weight: 600;
	color: var(--navy);
	margin-top: 2px;
	margin-bottom: 10px;
}
.author-avatar {
	border-radius: 50%;
	width: 24px;
	height: 24px;
	object-fit: cover;
	border: 2px solid var(--mint-light);
}

/* CTA Button — CENTERED */
.btn-read {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, var(--mint), #15803d);
	color: #fff !important;
	font-family: var(--h-font);
	font-weight: 700;
	font-size: 13.5px;
	padding: 10px 22px;
	border-radius: 999px;
	text-decoration: none;
	transition: all .2s ease;
	box-shadow: 0 8px 16px -8px rgba(21, 128, 61, .6);
	align-self: center;       /* ← Centers the button */
	margin-top: auto;         /* ← Pushes it to the bottom */
}
.btn-read:hover {
	filter: brightness(1.08);
	transform: translateY(-2px);
	box-shadow: 0 10px 20px -8px rgba(21, 128, 61, .7);
}
.btn-read svg {
	transition: transform .2s ease;
}
.btn-read:hover svg {
	transform: translateX(3px);
}

/* Responsive */
@media (max-width: 960px) {
	.blog-grid {
		grid-template-columns: 1fr;
		max-width: 520px;
		margin: 0 auto;
	}
	.post-card .thumb-img,
	.thumb {
		height: 180px;
	}
}
/* ===== Blog archive hero ===== */
.blog-hero {
	background: linear-gradient(180deg, var(--soft) 0%, #fff 100%);
	padding: 76px 0 52px;
	text-align: center;
	position: relative;
	overflow: hidden;
}
.blog-hero::before {
	content: "";
	position: absolute;
	top: -160px;
	left: 50%;
	transform: translateX(-50%);
	width: 720px;
	height: 380px;
	background: radial-gradient(closest-side, rgba(34, 197, 94, .15), transparent);
	pointer-events: none;
}
.blog-hero .wrap { position: relative; }
.blog-h1 {
	font-family: var(--h-font);
	font-size: clamp(30px, 4.4vw, 46px);
	color: var(--navy);
	font-weight: 700;
	letter-spacing: -.02em;
	margin: 14px auto 16px;
	max-width: 800px;
	line-height: 1.15;
}
.blog-lead {
	font-size: 17px;
	color: var(--text);
	max-width: 700px;
	margin: 0 auto 28px;
	line-height: 1.7;
}
.blog-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.blog-chip {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 9px 18px;
	font-family: var(--h-font);
	font-weight: 600;
	font-size: 13.5px;
	color: var(--navy);
	text-decoration: none;
	transition: all .2s ease;
}
.blog-chip:hover {
	border-color: var(--mint);
	color: #15803d;
	transform: translateY(-2px);
	box-shadow: 0 6px 14px -6px rgba(34, 197, 94, .35);
}

/* ===== Blog archive grid ===== */
.blog-archive { padding: 52px 0 84px; }
.blog-grid--archive .post-thumb-link { display: block; }
.blog-grid--archive .thumb-img { height: 180px; }
.blog-grid--archive .thumb { height: 180px; }
.blog-grid--archive .post-card-title { font-size: 17px; line-height: 1.4; margin: 0; }
.blog-grid--archive .post-card-title a { color: var(--navy); transition: color .2s; }
.blog-grid--archive .post-card-title a:hover { color: #15803d; }
.blog-grid--archive .btn-read { align-self: center; }
.blog-empty { text-align: center; color: var(--mut); padding: 40px 0; }
/* ===== Contact Page ===== */
.contact-hero {
	background: linear-gradient(180deg, var(--soft), #fff);
	text-align: center;
	padding: 76px 0 54px;
	position: relative;
	overflow: hidden;
}

.contact-hero::before {
	content: "";
	position: absolute;
	top: -160px;
	left: 50%;
	transform: translateX(-50%);
	width: 720px;
	height: 360px;
	background: radial-gradient(closest-side, rgba(34, 197, 94, .16), transparent);
	pointer-events: none;
}

.contact-hero .wrap {
	position: relative;
}

.contact-hero h1 {
	font-size: clamp(32px, 4.5vw, 48px);
	max-width: 820px;
	margin: 14px auto 16px;
	letter-spacing: -.02em;
}

.contact-hero p {
	font-size: 17px;
	line-height: 1.75;
	max-width: 680px;
	margin: 0 auto;
	color: var(--text);
}

.contact-section {
	padding: 58px 0 90px;
}

.contact-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
	gap: 28px;
	align-items: start;
}

.contact-form-card,
.contact-info-card,
.contact-mini-cta {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow);
}

.contact-form-card {
	padding: 34px;
}

.contact-form-card h2 {
	font-size: 28px;
	margin-bottom: 8px;
}

.contact-intro {
	margin-bottom: 26px;
	color: var(--text);
}

.contact-alert {
	border-radius: 12px;
	padding: 14px 18px;
	font-size: 14.5px;
	margin-bottom: 22px;
}

.contact-alert strong {
	display: block;
	font-family: var(--h-font);
	margin-bottom: 3px;
}

.contact-success {
	background: #DCFCE7;
	border: 1px solid #BBF7D0;
	color: #14532d;
}

.contact-error {
	background: #FEE2E2;
	border: 1px solid #FECACA;
	color: #7f1d1d;
}

.contact-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.form-field label {
	display: block;
	font-family: var(--h-font);
	font-size: 13.5px;
	font-weight: 700;
	color: var(--navy);
	margin-bottom: 7px;
}

.form-field label span {
	color: #dc2626;
}

.form-field input,
.form-field select,
.form-field textarea {
	width: 100%;
	border: 1px solid var(--line);
	border-radius: 10px;
	padding: 12px 14px;
	font-family: var(--b-font);
	font-size: 15px;
	color: var(--navy);
	background: #fff;
	transition: border-color .18s ease, box-shadow .18s ease;
}

.form-field textarea {
	resize: vertical;
	min-height: 160px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
	outline: none;
	border-color: var(--mint);
	box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
}

.hp-field {
	position: absolute;
	left: -9999px;
	visibility: hidden;
}

.contact-submit {
	align-self: flex-start;
	margin-top: 4px;
}

.contact-submit svg {
	transition: transform .2s ease;
}

.contact-submit:hover svg {
	transform: translateX(3px);
}

.contact-side {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.contact-info-card {
	padding: 24px;
}

.contact-icon {
	width: 48px;
	height: 48px;
	border-radius: 13px;
	display: grid;
	place-items: center;
	background: var(--mint-light);
	color: #15803d;
	margin-bottom: 16px;
}

.contact-info-card h3,
.contact-mini-cta h3 {
	font-size: 18px;
	margin-bottom: 8px;
}

.contact-info-card p,
.contact-mini-cta p {
	font-size: 14.5px;
	margin-bottom: 12px;
}

.contact-info-card a {
	font-family: var(--h-font);
	font-weight: 700;
	color: #15803d;
	font-size: 14.5px;
	word-break: break-word;
}

.contact-info-card a:hover {
	text-decoration: underline;
}

.contact-mini-cta {
	background: var(--navy);
	padding: 26px;
}

.contact-mini-cta h3 {
	color: #fff;
}

.contact-mini-cta p {
	color: #94A3B8;
	margin-bottom: 18px;
}

.contact-mini-cta .btn {
	width: 100%;
	justify-content: center;
}

@media (max-width: 900px) {
	.contact-grid {
		grid-template-columns: 1fr;
	}

	.contact-side {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 620px) {
	.contact-section {
		padding: 42px 0 70px;
	}

	.contact-form-card {
		padding: 24px;
	}

	.form-row,
	.contact-side {
		grid-template-columns: 1fr;
	}

	.contact-submit {
		width: 100%;
		justify-content: center;
	}
}