/*
Theme Name: Rankvera
Theme URI: https://rankvera.com
Author: Rankvera Team
Author URI: https://rankvera.com
Description: A modern, clean, light-themed WordPress theme for Small SEO Tools websites. Features hover effects, tool cards, search, dropdown navigation, blog support, and excellent UX. Distinct from typical dark or purple-heavy competitor themes.
Version: 1.8.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rankvera
Tags: seo, tools, blog, custom-menu, featured-images, translation-ready, custom-logo
*/

/* =====================================================
   RANKVERA – CORE STYLES
   Light, fresh, teal-accented theme (different from competitors)
   ===================================================== */

:root {
  --rv-primary: #0d9488;          /* Teal */
  --rv-primary-dark: #0f766e;
  --rv-primary-light: #14b8a6;
  --rv-accent: #f97316;           /* Soft coral/orange accent */
  --rv-bg: #f8fafc;
  --rv-bg-white: #ffffff;
  --rv-text: #1e293b;
  --rv-text-muted: #64748b;
  --rv-border: #e2e8f0;
  --rv-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --rv-shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --rv-radius: 14px;
  --rv-radius-sm: 10px;
  --rv-transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --rv-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rv-font);
  background: var(--rv-bg);
  color: var(--rv-text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--rv-primary); text-decoration: none; transition: var(--rv-transition); }
a:hover { color: var(--rv-primary-dark); }
ul, ol { list-style: none; }

/* ========== HEADER ========== */
.rv-header {
  background: var(--rv-bg-white);
  border-bottom: 1px solid var(--rv-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.04);
}

.rv-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}

.rv-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--rv-text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.rv-logo:hover { color: var(--rv-primary); text-decoration: none; }

/* Professional SEO logo mark */
.rv-logo-mark {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
  filter: drop-shadow(0 3px 8px rgba(13, 148, 136, 0.28));
  transition: var(--rv-transition);
}
.rv-logo:hover .rv-logo-mark {
  filter: drop-shadow(0 4px 12px rgba(13, 148, 136, 0.4));
  transform: translateY(-1px);
}
.rv-logo-text {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.04em;
  color: #0f172a;
}
.rv-logo-text span {
  color: #0d9488;
  font-weight: 800;
}
.rv-footer-brand .rv-logo-text {
  color: #fff;
}
.rv-footer-brand .rv-logo-text span {
  color: #5eead4;
}
.rv-footer-brand .rv-logo-mark {
  filter: none;
}



/* Navigation with hover dropdowns */
.rv-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.rv-nav > li {
  position: relative;
}
.rv-nav > li > a {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--rv-text);
  border-radius: 8px;
  transition: var(--rv-transition);
}
.rv-nav > li > a:hover,
.rv-nav > li:hover > a {
  background: rgba(13, 148, 136, 0.08);
  color: var(--rv-primary);
  text-decoration: none;
}
.rv-nav .arrow {
  font-size: 0.7rem;
  opacity: 0.6;
  transition: transform 0.25s;
}
.rv-nav > li:hover .arrow { transform: rotate(180deg); }

/* Dropdown sub-pages */
.rv-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--rv-bg-white);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius-sm);
  box-shadow: var(--rv-shadow-hover);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--rv-transition);
  z-index: 100;
}
.rv-nav > li:hover .rv-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.rv-dropdown a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  color: var(--rv-text);
  border-radius: 6px;
  font-weight: 500;
}
.rv-dropdown a:hover {
  background: rgba(13, 148, 136, 0.1);
  color: var(--rv-primary);
  text-decoration: none;
}

/* Search bar */
.rv-search {
  display: flex;
  align-items: center;
  background: var(--rv-bg);
  border: 1px solid var(--rv-border);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 1rem;
  min-width: 240px;
  transition: var(--rv-transition);
}
.rv-search:focus-within {
  border-color: var(--rv-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}
.rv-search input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  font-size: 0.9rem;
  color: var(--rv-text);
  font-family: inherit;
}
.rv-search input::placeholder { color: var(--rv-text-muted); }
.rv-search button {
  background: var(--rv-primary);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--rv-transition);
}
.rv-search button:hover { background: var(--rv-primary-dark); transform: scale(1.05); }

/* Mobile toggle */
.rv-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.rv-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rv-text);
  margin: 5px 0;
  transition: var(--rv-transition);
}

/* ========== HERO ========== */
.rv-hero {
  background: linear-gradient(160deg, #f0fdfa 0%, #f8fafc 50%, #fff7ed 100%);
  padding: 4.5rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rv-hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  pointer-events: none;
}
.rv-hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.rv-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 1.1rem;
  color: var(--rv-text);
}
.rv-hero h1 span {
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rv-hero p {
  font-size: 1.2rem;
  color: var(--rv-text-muted);
  max-width: 580px;
  margin: 0 auto 2rem;
}
.rv-hero-search {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  display: flex;
  background: white;
  border: 1px solid var(--rv-border);
  border-radius: 999px;
  padding: 0.4rem;
  box-shadow: var(--rv-shadow);
}
.rv-hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  border-radius: 999px;
  font-family: inherit;
}
.rv-hero-search button {
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-light));
  color: white;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--rv-transition);
}
.rv-hero-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.rv-hero-stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.rv-stat {
  text-align: center;
}
.rv-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--rv-primary);
}
.rv-stat span {
  font-size: 0.9rem;
  color: var(--rv-text-muted);
}

/* ========== TOOLS SECTION ========== */
.rv-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
}
.rv-section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.rv-section-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.rv-section-header p {
  color: var(--rv-text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.rv-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.rv-tool-card {
  background: var(--rv-bg-white);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  transition: var(--rv-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.rv-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(249, 115, 22, 0.04));
  opacity: 0;
  transition: var(--rv-transition);
}
.rv-tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rv-shadow-hover);
  border-color: rgba(13, 148, 136, 0.35);
}
.rv-tool-card:hover::before { opacity: 1; }
.rv-tool-card:hover .rv-tool-icon {
  transform: scale(1.12);
  background: linear-gradient(135deg, var(--rv-primary), var(--rv-primary-light));
  color: white;
}
.rv-tool-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--rv-primary);
  transition: var(--rv-transition);
  position: relative;
  z-index: 1;
}
.rv-tool-card h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--rv-text);
  position: relative;
  z-index: 1;
  line-height: 1.35;
}
.rv-tool-card a {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Category tabs */
.rv-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.rv-tab {
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: white;
  border: 1px solid var(--rv-border);
  color: var(--rv-text-muted);
  cursor: pointer;
  transition: var(--rv-transition);
}
.rv-tab:hover,
.rv-tab.active {
  background: var(--rv-primary);
  border-color: var(--rv-primary);
  color: white;
}

/* ========== FEATURES / WHY ========== */
.rv-features {
  background: white;
  border-top: 1px solid var(--rv-border);
  border-bottom: 1px solid var(--rv-border);
}
.rv-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.rv-feature {
  text-align: center;
  padding: 1.5rem;
}
.rv-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.12), rgba(249, 115, 22, 0.1));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: var(--rv-transition);
}
.rv-feature:hover .rv-feature-icon {
  transform: scale(1.08) rotate(3deg);
}
.rv-feature h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rv-feature p {
  color: var(--rv-text-muted);
  font-size: 0.95rem;
}

/* ========== BLOG SECTION ========== */
.rv-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}
.rv-blog-card {
  background: white;
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius);
  overflow: hidden;
  transition: var(--rv-transition);
}
.rv-blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rv-shadow-hover);
}
.rv-blog-thumb {
  height: 180px;
  background: linear-gradient(135deg, #ccfbf1, #ffedd5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.rv-blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rv-blog-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.rv-blog-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--rv-text-muted);
  margin-bottom: 0.6rem;
}
.rv-blog-tag {
  background: rgba(13, 148, 136, 0.1);
  color: var(--rv-primary);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 500;
}
.rv-blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.rv-blog-card h3 a { color: var(--rv-text); }
.rv-blog-card h3 a:hover { color: var(--rv-primary); }
.rv-blog-card p {
  color: var(--rv-text-muted);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.rv-read-more {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rv-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.rv-read-more:hover { gap: 0.5rem; }

/* ========== CTA BANNER ========== */
.rv-cta {
  background: linear-gradient(135deg, var(--rv-primary), #0f766e);
  color: white;
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: var(--rv-radius);
  margin: 2rem 0;
}
.rv-cta h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}
.rv-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
.rv-btn {
  display: inline-block;
  background: white;
  color: var(--rv-primary);
  font-weight: 700;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: var(--rv-transition);
  border: none;
  cursor: pointer;
}
.rv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  color: var(--rv-primary-dark);
  text-decoration: none;
}
.rv-btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}
.rv-btn-outline:hover {
  background: white;
  color: var(--rv-primary);
}

/* ========== FOOTER ========== */
.rv-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 1.5rem 2rem;
  margin-top: 3rem;
}
.rv-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.rv-footer-brand .rv-logo {
  color: white;
  margin-bottom: 1rem;
}

.rv-footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.rv-footer h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.rv-footer-links a {
  display: block;
  color: #94a3b8;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  transition: var(--rv-transition);
}
.rv-footer-links a:hover {
  color: var(--rv-primary-light);
  padding-left: 4px;
  text-decoration: none;
}
.rv-footer-bottom {
  max-width: 1280px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
}
.rv-social {
  display: flex;
  gap: 0.75rem;
}
.rv-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: var(--rv-transition);
}
.rv-social a:hover {
  background: var(--rv-primary);
  color: white;
  transform: translateY(-2px);
}

/* ========== ANIMATIONS (Starter effects) ========== */
@keyframes rvFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rv-animate {
  animation: rvFadeUp 0.6s ease-out both;
}
.rv-animate-delay-1 { animation-delay: 0.1s; }
.rv-animate-delay-2 { animation-delay: 0.2s; }
.rv-animate-delay-3 { animation-delay: 0.3s; }
.rv-animate-delay-4 { animation-delay: 0.4s; }

/* ========== PAGE CONTENT ========== */
.rv-page-header {
  background: linear-gradient(160deg, #f0fdfa, #f8fafc);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid var(--rv-border);
}
.rv-page-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.rv-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.rv-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.rv-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.rv-content p { margin-bottom: 1.1rem; color: var(--rv-text-muted); }
.rv-content ul, .rv-content ol { margin: 1rem 0 1.2rem 1.5rem; color: var(--rv-text-muted); }
.rv-content li { margin-bottom: 0.4rem; list-style: disc; }

/* ========== RESPONSIVE ========== */

/* ========== RESPONSIVE: TABLET (≤1024px) ========== */
@media (max-width: 1024px) {
  .rv-header-inner {
    padding: 0 1.15rem;
    gap: 1rem;
  }
  .rv-nav > li > a {
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
  }
  .rv-search {
    min-width: 170px;
  }
  .rv-section {
    padding: 2.75rem 1.25rem;
  }
  .rv-footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 2rem;
  }
  .rv-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
  }
}

/* ========== RESPONSIVE: TABLET / SMALL LAPTOP (≤900px) ========== */
@media (max-width: 900px) {
  .rv-main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--rv-border);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
    padding: 0.75rem 1rem 1.25rem;
    z-index: 999;
  }
  .rv-main-nav.open {
    display: block;
  }
  .rv-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }
  .rv-nav > li > a {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .rv-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: #f8fafc;
    margin: 0.25rem 0 0.5rem 0.75rem;
    display: none;
    min-width: 0;
  }
  .rv-nav > li.open .rv-dropdown,
  .rv-nav > li:hover .rv-dropdown {
    display: block;
  }
  .rv-menu-toggle {
    display: block;
  }
  .rv-header-inner {
    height: 64px;
  }
  .rv-search {
    min-width: 0;
    flex: 1;
    max-width: 200px;
  }
  .rv-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .rv-hero-search {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.5rem;
  }
  .rv-hero-search input {
    width: 100%;
    text-align: center;
  }
  .rv-hero-search button {
    width: 100%;
  }
  .rv-blog-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rv-features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ========== RESPONSIVE: MOBILE (≤640px) ========== */
@media (max-width: 640px) {
  .rv-header-inner {
    padding: 0 0.85rem;
    gap: 0.6rem;
  }
  .rv-logo-text {
    font-size: 1.15rem;
  }
  .rv-logo-mark svg {
    width: 34px;
    height: 34px;
  }
  .rv-search {
    display: none; /* use hero search on mobile home; keep header clean */
  }
  .rv-hero {
    padding: 2.5rem 1rem 3rem;
  }
  .rv-hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  .rv-hero p {
    font-size: 1rem;
  }
  .rv-hero-stats {
    gap: 1.25rem;
  }
  .rv-stat strong {
    font-size: 1.35rem;
  }
  .rv-section {
    padding: 2rem 1rem;
  }
  .rv-section-header h2 {
    font-size: 1.45rem;
  }
  .rv-tools-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .rv-tool-card {
    padding: 1.1rem 0.65rem;
  }
  .rv-tool-icon {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }
  .rv-tool-card h3 {
    font-size: 0.88rem;
  }
  .rv-features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .rv-blog-grid {
    grid-template-columns: 1fr;
  }
  .rv-footer {
    padding: 2.5rem 1rem 1.5rem;
  }
  .rv-footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .rv-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .rv-page-header {
    padding: 2rem 1rem 1.75rem;
  }
  .rv-page-header h1 {
    font-size: 1.55rem;
  }
  .rv-content {
    padding: 1.5rem 1rem 3rem;
  }
  .rv-tool-box {
    padding: 1.15rem !important;
  }
  .tool-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .tool-buttons {
    flex-direction: column;
  }
  .tool-btn {
    width: 100%;
    text-align: center;
  }
  .rv-cta {
    padding: 2.25rem 1.15rem;
  }
  .rv-cta h2 {
    font-size: 1.35rem;
  }
  .rv-tabs {
    gap: 0.4rem;
  }
  .rv-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
}

/* ========== RESPONSIVE: SMALL PHONES (≤380px) ========== */
@media (max-width: 380px) {
  .rv-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }
  .rv-logo-text {
    font-size: 1.05rem;
  }
  .rv-hero h1 {
    font-size: 1.55rem;
  }
}

/* Touch-friendly dropdowns on coarse pointers */
@media (hover: none) {
  .rv-nav > li > a {
    min-height: 44px;
  }
  .rv-tool-card:hover {
    transform: none;
  }
  .rv-tool-card:active {
    transform: scale(0.98);
  }
}


.rv-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.rv-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.rv-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.rv-logo-mark svg {
  display: block;
  border-radius: 12px;
}

/* ========== BREADCRUMBS (RankMath / SEO) ========== */
.rv-breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0;
  font-size: 0.875rem;
  color: var(--rv-text-muted);
}
.rv-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}
.rv-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.rv-breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--rv-border);
  font-weight: 600;
  margin-left: 0.15rem;
}
.rv-breadcrumbs a {
  color: var(--rv-text-muted);
}
.rv-breadcrumbs a:hover {
  color: var(--rv-primary);
}
.rv-breadcrumbs li:last-child span {
  color: var(--rv-text);
  font-weight: 500;
}

/* ========== UI / UX POLISH ========== */
.rv-page-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 0.5rem;
}
.rv-page-header h1 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--rv-text);
}
.rv-tool-box {
  margin-top: 0.5rem;
}
.tool-panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.tool-btn:focus-visible,
.tool-input:focus-visible,
.tool-textarea:focus-visible,
.rv-tab:focus-visible {
  outline: 2px solid var(--rv-primary);
  outline-offset: 2px;
}
.rv-tool-card {
  position: relative;
  min-height: 140px;
  cursor: pointer;
}
.rv-tool-card a {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.rv-tool-card h3 {
  pointer-events: none;
}
.rv-tool-icon {
  pointer-events: none;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}
/* Clearer empty / loading states */
.tool-textarea[readonly],
.tool-input[readonly] {
  background: #f1f5f9;
}
/* Better mobile tool layout */
@media (max-width: 640px) {
  .tool-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .tool-buttons {
    flex-direction: column;
  }
  .tool-btn {
    width: 100%;
    text-align: center;
  }
  .rv-breadcrumbs {
    padding: 0.65rem 1rem 0;
    font-size: 0.8rem;
  }
  .rv-page-header {
    padding: 1.25rem 1rem 0.25rem;
  }
}
/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
