:root {
  --primary: #2563eb;
  --secondary: #06b6d4;
  --accent: #f59e0b;
  --accent-strong: #f97316;
  --bg-1: #1e3a8a;
  --bg-2: #0ea5e9;
  --bg-3: #22d3ee;
  --text: #0b1220;
  --muted: #475569;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-strong: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.2);
  --shadow-soft: 0 4px 12px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.2), transparent 36%),
    radial-gradient(circle at 88% 24%, rgba(6, 182, 212, 0.2), transparent 38%),
    radial-gradient(circle at 54% 88%, rgba(56, 189, 248, 0.18), transparent 36%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(6, 182, 212, 0.2) 50%, rgba(56, 189, 248, 0.2));
  min-height: 100%;
  line-height: 1.65;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 2px;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 6%, rgba(79, 70, 229, 0.26), transparent 34%),
    radial-gradient(circle at 85% 92%, rgba(6, 182, 212, 0.24), transparent 36%),
    radial-gradient(circle at 52% 46%, rgba(56, 189, 248, 0.14), transparent 44%);
}

.blur-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(88px);
  opacity: 0.35;
  animation: float 16s ease-in-out infinite;
}

.shape-1 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.95), rgba(79, 70, 229, 0.12) 70%);
  top: -90px;
  left: -70px;
}

.shape-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.9), rgba(6, 182, 212, 0.1) 72%);
  bottom: -90px;
  right: -60px;
  animation-delay: 2s;
}

.shape-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.8), rgba(56, 189, 248, 0.08) 72%);
  top: 45%;
  left: 60%;
  animation-delay: 4s;
}

.container {
  width: min(1200px, 94%); /* Increased to 1200px as requested */
  margin: 0 auto;
}

.glass {
  background: linear-gradient(135deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

header {
  position: sticky;
  top: 0;
  z-index: 1000; /* Increased to stay above hero section (z-index 100) */
  margin-top: 14px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.13);
  border-radius: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: #1e1b4b;
}

.logo-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.logo-text {
  background: linear-gradient(120deg, #1e3a8a, var(--primary) 45%, var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center; /* Vertically center all items */
  gap: 12px;
  flex-wrap: wrap;
}

nav a {
  display: flex;
  align-items: center;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 14px;
  transition: all 0.3s ease;
  text-decoration: none;
}

nav a:hover {
  color: var(--primary);
  text-decoration: none;
}

nav a[aria-current="page"] {
  color: var(--primary) !important;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
  min-height: 44px;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.34);
  min-height: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(249, 115, 22, 0.38), 0 0 22px rgba(245, 158, 11, 0.34);
  filter: saturate(1.08);
}

.btn-secondary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #e0f2fe;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.24);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(6, 182, 212, 0.3);
}

.btn-outline {
  background: #ffffff; /* Solid white for maximum contrast */
  color: var(--primary);
  border: 1px solid var(--primary); /* Stronger border contrast */
  font-weight: 700;
}

.btn-outline:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

/* Hamburger Menu Styling */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.hero {
  margin-top: clamp(16px, 4vw, 32px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Auto-stacking for smaller screens */
  gap: 22px;
  align-items: stretch;
  min-height: 520px;
  position: relative;
  z-index: 100;
}

.hero-copy {
  padding: 40px; /* Increased padding */
  position: relative;
  background: rgba(255, 255, 255, 0.82); /* Much higher opacity for solid text grounding */
  backdrop-filter: blur(4px); /* Significantly reduced blur to keep text sharp */
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
  min-height: 100%;
  z-index: 1;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #0b1220;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.2rem); /* Slightly larger */
  font-weight: 800;
  line-height: 1.1; /* Tighter line height for punchy look */
}

.hero-copy h1 {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 40%, var(--primary) 100%); /* Darker, stronger gradient */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05)); /* Subtle depth for sharpness */
}

.lead {
  color: #1e293b; /* Darker lead text for much better legibility */
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  position: relative;
}

/* Removed fuzzy underlay to prevent washed-out look around buttons */

.trust-badges {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: #1e293b;
  letter-spacing: 0.01em;
}

.tool-card {
  padding: 24px 24px 60px; /* Extra bottom padding to encourage downward dropdowns */
  box-shadow: 0 16px 36px rgba(30, 41, 59, 0.22), 0 0 20px rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.16));
  position: relative;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: -16px -10px auto auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32), rgba(6, 182, 212, 0.14) 65%, transparent 75%);
  filter: blur(24px);
  z-index: -1;
}

.tool-preview .result-card {
  min-height: 50px;
}

.tool-preview select:disabled,
.tool-preview button:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.tool-controls {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
}

select {
  padding: 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  color: #0f172a;
}

.result-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.placeholder-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 30px 0;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  opacity: 0.8;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 12px;
  padding: 12px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-weight: 600;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  justify-content: space-between;
  gap: 8px;
}

.result-text {
  font-size: 0.95rem;
}

.copy-single {
  border: 1px solid rgba(37, 99, 235, 0.28);
  background: rgba(255, 255, 255, 0.85);
  color: #1e3a8a;
  border-radius: 9px;
  font-weight: 700;
  padding: 5px 8px;
  cursor: pointer;
}

.result-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16), 0 0 12px rgba(6, 182, 212, 0.2);
}

.result-card.animate {
  animation: slideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(20px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.spin {
  display: inline-block;
  animation: spin 0.8s linear infinite;
  margin-right: 6px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-active {
  transform: scale(0.95) !important;
  opacity: 0.9;
}

.tool-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-status {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #334155;
  min-height: 18px;
}

.mobile-action-bar {
  display: none;
}

section {
  margin-top: 32px;
}

.section-card {
  padding: 30px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.mini-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.16), 0 0 14px rgba(79, 70, 229, 0.16);
  border-color: rgba(37, 99, 235, 0.34);
}

.copy-single:hover {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.14));
}

.faq-item {
  margin-bottom: 16px;
  padding: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(51, 65, 85, 0.9);
  border-bottom: 2px solid rgba(51, 65, 85, 0.9);
  transform: rotate(45deg);
  transition: transform 0.24s ease;
  flex-shrink: 0;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0;
  max-height: 0px;
  overflow: hidden;
  padding: 0 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
}

.faq-item[open] p {
  max-height: 220px;
  padding: 0 18px 18px;
  opacity: 1;
  transform: translateY(0);
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 70, 229, 0.42);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.12), 0 0 14px rgba(79, 70, 229, 0.16);
}

.section-sep {
  height: 2px;
  margin: 28px 0 6px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0), rgba(37, 99, 235, 0.45), rgba(6, 182, 212, 0.5), rgba(37, 99, 235, 0));
  border-radius: 999px;
}

.blog-cards {
  margin-top: 6px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  height: 100%;
}

.blog-card .btn {
  width: fit-content;
}

.blog-card h3 {
  margin-bottom: 4px;
  min-height: 48px;
}

.blog-card p {
  margin: 0 0 8px;
  flex-grow: 1;
}

.blog-card .btn-outline {
  margin-top: auto;
}

.blog-image {
  height: 118px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease;
}

.blog-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.45));
}

.blog-img-1 { background-image: url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=900&q=80"); }
.blog-img-2 { background-image: url("https://images.unsplash.com/photo-1455390582262-044cdead277a?auto=format&fit=crop&w=900&q=80"); }
.blog-img-3 { background-image: url("https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=900&q=80"); }
.blog-img-4 { background-image: url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=900&q=80"); }
.blog-img-5 { background-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=900&q=80"); }
.blog-img-6 { background-image: url("https://images.unsplash.com/photo-1485217988980-11786ced9454?auto=format&fit=crop&w=900&q=80"); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card p {
  flex-grow: 1; /* Pushes button to bottom */
  margin-bottom: 20px;
}

.blog-card:hover .blog-image {
  transform: scale(1.03);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.16), 0 0 16px rgba(6, 182, 212, 0.16);
}

.blog-card .btn-outline {
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.16));
  border-color: rgba(37, 99, 235, 0.28);
}

.ad-container {
  margin: 24px auto 10px;
  min-height: 90px;
  width: min(100%, 970px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.82rem;
  border: 1px dashed rgba(37, 99, 235, 0.35);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.14));
  position: relative;
  padding: 22px 12px 12px;
}

.ad-container::before {
  content: "Sponsored";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  color: #475569;
  letter-spacing: 0.08em;
}

.home-page .ad-container::before {
  content: "";
  display: none;
}

.home-page .ad-container {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: transparent;
  min-height: 90px;
}

.home-page .ad-container .adsbygoogle {
  opacity: 1;
  min-height: 90px;
}

.tool-page .ad-container::before {
  content: "";
  display: none;
}

.tool-page .ad-container {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: transparent;
  min-height: 90px;
}

.faq-wrap {
  scroll-margin-top: 82px;
}

.faq-cta {
  margin-top: 14px;
  text-align: center;
}

.faq-cta p {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.28);
  color: #1e3a8a;
  border: 1px solid rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.btn-glass:hover {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.28), 0 0 16px rgba(6, 182, 212, 0.28);
  text-decoration: none;
}

.contact-wrap {
  padding: 30px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 18px;
  align-items: start;
}

.contact-copy .mini-card p {
  margin: 0 0 8px;
}

.contact-form {
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.form-row {
  margin-bottom: 12px;
}

.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: #1e293b;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.84);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.field-error {
  color: #b91c1c;
  min-height: 14px;
  display: block;
  font-size: 0.82rem;
  margin-top: 4px;
}

.consent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.consent-row input {
  width: auto;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.form-status {
  margin-top: 10px;
  font-weight: 700;
  min-height: 20px;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

.blog-list li {
  margin-bottom: 8px;
}

.internal-links a {
  margin-right: 14px;
  white-space: nowrap;
}

main.page {
  margin-top: 22px;
}

.breadcrumb {
  margin: 14px 0 10px;
  font-size: 0.9rem;
  color: #475569;
}

.breadcrumb a {
  color: #334155;
}

.breadcrumb span {
  margin: 0 6px;
  color: #94a3b8;
}

.article {
  padding: 28px;
  line-height: 1.9;
  max-width: 850px;
  margin: 0 auto;
}

.article h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.article h2 {
  margin-top: 34px;
  margin-bottom: 12px;
  font-size: 1.55rem;
  font-weight: 800;
}

.article p {
  margin: 0 0 18px;
}

.article strong {
  font-weight: 800;
}

.article-featured {
  width: 100%;
  margin: 4px 0 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.article-featured img {
  width: 100%;
  height: auto;
  display: block;
}

.related-posts {
  margin-top: 34px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.toc-card {
  margin: 6px 0 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.22));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  position: relative;
  z-index: 1;
}

.toc-card h2 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.toc-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.toc-card li {
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-card li::before {
  content: "•";
  color: #2563eb;
  font-size: 0.92rem;
  line-height: 1;
  flex-shrink: 0;
}

.toc-card a {
  display: block;
  width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  color: #1e293b;
  position: relative;
  font-size: 0.92rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.toc-card a:hover {
  background: rgba(37, 99, 235, 0.14);
  color: #1e3a8a;
  text-decoration: none;
  transform: translateX(2px);
}

.toc-card a.active {
  background: rgba(37, 99, 235, 0.2);
  color: #1e3a8a;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
  padding-left: 12px;
}

.toc-card a.active::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 68%;
  border-radius: 99px;
  background: linear-gradient(180deg, #2563eb, #06b6d4);
}

.ad-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-align: center;
  font-weight: 700;
}

.ad-container {
  width: 100%;
  min-height: 250px;
  margin: 35px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.ad-container:hover {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.7);
}

.ad-container.glass {
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Optimization for blog pages */
.article .ad-container {
  max-width: 728px;
  margin: 40px auto;
}

.ad-hint {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 12px;
  text-align: center;
  font-style: italic;
}

.article-cta {
  margin-top: 22px;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.18));
  text-align: center;
}

.article-cta p {
  margin: 0 0 10px;
  font-weight: 700;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 40;
  border: 0;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: none;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-to-top.show {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.35);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-size: 0.88rem;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ux-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.ux-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .ux-reveal,
  .ux-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

.toc-card {
  position: relative;
  top: auto;
  z-index: 1;
}

/* --- PRO LEVEL FOOTER --- */
/* --- PROFESSIONAL SITE FOOTER --- */
.site-footer {
  background: #0f172a;
  color: #f8fafc;
  padding: 50px 0 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 1;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 10;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.92rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
}

.footer-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-logo {
  margin-bottom: 16px;
  display: flex;
}

.footer-logo .logo-text {
  background: linear-gradient(120deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.1rem;
}

.footer-logo .logo-icon {
  background: var(--primary);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* --- Newsletter Styles --- */
.footer-newsletter h4 {
  margin-bottom: 12px !important;
}

.footer-newsletter p {
  font-size: 0.88rem !important;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form .btn-subscribe {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form .btn-subscribe:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.3);
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -150%;
  width: 100%;
  height: 200%;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.social-icon:hover::after {
  left: 150%;
}

.footer-copyright {
  color: #64748b;
  font-size: 0.88rem;
}

.footer-social {
  display: flex;
  gap: 20px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 980px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 60px 0 30px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.03);
  }
}

@keyframes popIn {
  0% {
    opacity: 0.6;
    transform: translateY(6px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 920px) {
  .hero,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .tool-controls {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-card {
    padding: 22px;
  }
  .article {
    padding: 22px;
  }
  h1 {
    font-size: clamp(1.8rem, 6.5vw, 2.25rem);
  }
  .navbar {
    align-items: flex-start;
    gap: 8px;
  }
  nav ul {
    gap: 8px;
  }
  nav a {
    font-size: 0.9rem;
  }
  .contact-wrap {
    padding: 22px;
  }
  .blog-card h3 {
    min-height: unset;
  }
  .ad-container {
    min-height: 72px;
    width: 100%;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(1120px, 94%);
  }
  .navbar {
    padding: 10px 12px;
  }
  .logo-text {
    font-size: 0.95rem;
  }
  nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  nav li {
    width: 100%;
  }
  nav a {
    display: block;
    text-align: center;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.4);
  }
  .hero-copy,
  .tool-card {
    padding: 18px;
  }
  .section-card {
    padding: 18px;
    border-radius: 16px;
  }
  .mini-card {
    padding: 14px;
  }
  .lead {
    font-size: 0.96rem;
    line-height: 1.6;
  }
  h2 {
    font-size: 1.35rem;
  }
  h3 {
    font-size: 1rem;
  }
  .result-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    text-align: center;
  }
  .tool-actions .btn,
  .hero-cta .btn,
  .form-actions .btn {
    width: 100%;
  }
  .breadcrumb {
    font-size: 0.84rem;
  }
  .article {
    padding: 18px;
    line-height: 1.75;
  }
  .article h1 {
    font-size: 1.7rem;
  }
  .article h2 {
    font-size: 1.2rem;
    margin-top: 24px;
  }
  .toc-card {
    padding: 12px;
    margin-bottom: 12px;
  }
  .toc-card a {
    font-size: 0.88rem;
    padding: 4px 6px;
  }
  .blog-image {
    height: 104px;
  }
  .back-to-top {
    right: 12px;
    bottom: 76px;
    width: 38px;
    height: 38px;
  }
  .mobile-action-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 55;
    padding: 8px;
    border-radius: 14px;
  }
  .mobile-action-bar .btn {
    min-height: 42px;
  }
  body {
    padding-bottom: 84px;
  }
}

@media (max-width: 430px) {
  .container {
    width: 94%;
  }
  .navbar {
    padding: 9px 10px;
  }
  .logo-text {
    font-size: 0.9rem;
  }
  nav ul {
    gap: 6px;
  }
  nav a {
    padding: 7px 8px;
    font-size: 0.86rem;
  }
  h1 {
    font-size: clamp(1.6rem, 7vw, 2rem);
    line-height: 1.18;
  }
  .hero-copy,
  .tool-card,
  .section-card,
  .article,
  .contact-wrap {
    padding: 16px;
  }
  .tool-controls {
    gap: 10px;
  }
  select,
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    font-size: 0.95rem;
  }
  .btn {
    min-height: 42px;
    font-size: 0.92rem;
  }
  .mini-card {
    padding: 12px;
  }
  .mini-card h3 {
    margin-bottom: 6px;
  }
  .blog-image {
    height: 96px;
  }
  .ad-container {
    min-height: 250px;
  }
}

@media (max-width: 390px) {
  nav ul {
    grid-template-columns: 1fr;
  }
  .hero-cta,
  .tool-actions,
  .form-actions {
    gap: 8px;
  }
  .breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }
  .result-card {
    min-height: 52px;
    padding: 10px;
  }
  .copy-single {
    padding: 4px 7px;
    font-size: 0.82rem;
  }
  .toc-card h2 {
    font-size: 0.92rem;
  }
}

@media (max-width: 360px) {
  .logo-text {
    font-size: 0.85rem;
  }
  h2 {
    font-size: 1.18rem;
  }
  h3 {
    font-size: 0.96rem;
  }
  .lead {
    font-size: 0.92rem;
  }
  .article p,
  .faq-item p {
    font-size: 0.92rem;
  }
}
/* --- CLEAN ARTICLE MODE --- */
.article.clean-mode {
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.1);
  padding: 50px;
}

.hero-image-wrap {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-featured-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-image-wrap:hover .hero-featured-image {
  transform: scale(1.02);
}

.blog-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.blog-item-card {
  padding: 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.blog-item-card:hover {
  transform: translateY(-8px);
  background: white;
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1);
}

.blog-item-card h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--primary);
}

.blog-item-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.blog-item-card .btn {
  margin-top: auto; /* Pushes button to bottom */
  width: 100%;
  text-align: center;
}

/* Structured Result Cards */
.result-card.structured {
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  min-height: auto;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.result-header .result-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

.result-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-details p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #475569;
}

.result-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.copy-single {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-single:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.result-details strong {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}

.res-twist {
  padding: 6px 10px;
  background: rgba(245, 158, 11, 0.12);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
  font-style: italic;
}

/* Navigation Dropdown Premium Upgrade */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px; /* Improved spacing */
  padding: 10px 16px;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 600;
  color: var(--text);
  user-select: none;
}

.dropdown-trigger:hover {
  background: rgba(37, 99, 235, 0.08); /* SaaS hover */
  color: var(--primary);
}

.dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px;
}

.nav-dropdown:hover .dropdown-trigger::after {
  transform: rotate(-135deg) translateY(2px);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(255, 255, 255, 0.9); /* Premium glass effect */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); /* Softer, premium shadow */
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  width: 580px; /* More compact desktop width */
  padding: 20px;
  display: flex;
  gap: 24px; /* Reduced gap between columns */
  z-index: 9999;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.4s;
  pointer-events: none;
}

/* Invisible bridge to keep menu open while moving cursor */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 25px;
  background: transparent;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.dropdown-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.dropdown-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dropdown-subheader {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  padding-left: 10px;
  margin-bottom: 4px;
}

.dropdown-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.25s ease;
  text-decoration: none;
  width: 100%;
}

.dropdown-menu a span {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.08));
  color: var(--primary) !important;
  transform: translateX(3px);
}

/* Mobile Dropdown Optimization */
@media (max-width: 768px) {
  .dropdown-menu {
    width: calc(100vw - 32px); /* Full width minus side margins */
    left: 50%;
    transform: translateX(-50%) translateY(0);
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    max-height: 350px;
    overflow-y: auto;
    border-radius: 14px;
  }

  .dropdown-column {
    gap: 8px;
  }

  .dropdown-menu a {
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* Comparison Section */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 30px;
  margin-top: 32px;
}

.comparison-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
  border-color: var(--primary-light);
}

.ad-container {
  margin: 32px 0;
  text-align: center;
  position: relative;
  z-index: 1; /* Keep it below tool dropdowns */
}

.ad-helper-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 14px;
  display: block;
}

.ad-natural-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 14px;
  display: block;
  text-align: center;
}

/* Custom Tool Category Dropdown - Guaranteed Downward Opening */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
  z-index: 200;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.custom-select-trigger:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.custom-select-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -3px;
  margin-right: 4px;
}

.custom-select-wrapper.open .custom-select-trigger::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.custom-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white !important; /* Force solid white to ignore background blur */
  backdrop-filter: none !important; /* Disable any inherited blur */
  -webkit-backdrop-filter: none !important;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999; 
  max-height: 420px;
  overflow-y: auto;
  padding: 10px;
}

.custom-select-wrapper.open .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-optgroup-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  padding: 12px 12px 6px;
}

.custom-option {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-option:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  padding-left: 18px;
}

.custom-option.selected {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}

.custom-options::-webkit-scrollbar {
  width: 6px;
}
.custom-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-options::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.comparison-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.comp-info {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
}

.comp-info strong {
  color: var(--text);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.decision-block {
  background: rgba(37, 99, 235, 0.03);
  padding: 20px;
  border-radius: 16px;
  border-left: 4px solid var(--primary);
  margin: 8px 0;
}

.decision-item {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.decision-item:last-child {
  margin-bottom: 0;
}

.decision-item span {
  font-weight: 800;
  color: var(--primary);
}

.comp-ctas {
  margin-top: auto;
}

.comp-ctas .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 1rem;
  border-radius: 14px;
}

/* Category Grid & Chips */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.category-chip {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.category-chip:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
}

.category-chip::before {
  content: "✦";
  color: var(--secondary);
  font-size: 0.8rem;
}

.category-chip:hover::before {
  color: white;
}

.comparison-card h3 {
  font-size: 1.2rem;
  margin: 0;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.comp-info {
  font-size: 0.92rem;
  color: var(--muted);
}

.comp-info strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.comparison-card .btn {
  margin-top: auto;
  text-align: center;
}

/* ============================================================ */
/* NEW GLOBAL RESPONSIVE SYSTEM (Senior UX Specs) */
/* ============================================================ */

/* Desktop & Tablet Tuning (768px+) */
@media (min-width: 769px) {
  .result-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  }
  .blog-cards {
    grid-template-columns: repeat(3, 1fr);
    display: grid;
  }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-copy {
    padding: 30px 20px;
  }

  .hero-cta {
    justify-content: center;
  }

  .tool-controls {
    grid-template-columns: 1fr; /* Stack inputs */
    gap: 16px;
  }

  .result-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
  }

  .blog-cards {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  footer .footer-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* Slightly darker for better coverage */
  z-index: 50000; /* Extremely high to stay above everything */
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.menu-overlay.active {
  display: block;
}

.mobile-menu {
    display: none; /* Hidden by default globally */
}

.menu-overlay.active {
  display: block;
}

.close-menu, .close-btn {
  display: none !important;
}

@media (max-width: 768px) {
  .close-menu, .close-btn {
    display: flex !important;
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    border: none;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 60001; /* Above mobile menu */
  }
}

/* Ensure Dropdown stays above on all mobile resolutions */
.nav-dropdown.dropdown-open .dropdown-menu {
  z-index: 10001;
}

/* Tool Focus Mode (Full Page) */
.tool-focus-active, .menu-open {
  overflow: hidden;
}

.tool-focus-active header {
  display: none !important;
}

.tool-card.tool-focus {
  position: fixed;
  inset: 0;
  z-index: 15000;
  background: rgba(255, 255, 255, 0.99) !important;
  backdrop-filter: blur(30px) saturate(200%);
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  display: flex !important;
  flex-direction: column;
  padding: 24px max(20px, 6%) !important;
  border-radius: 0 !important;
  overflow: hidden; 
  height: 100vh;
  animation: modalIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.tool-card.tool-focus h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  text-align: center;
}

.tool-card.tool-focus .tool-controls {
  margin-bottom: 20px;
  gap: 12px;
  grid-template-columns: 1fr auto auto;
}

.tool-card.tool-focus .result-grid {
  flex-grow: 1;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  overflow-y: auto;
  padding: 4px;
}

.close-focus {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--primary);
  z-index: 1100;
}

.close-focus:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.home-focus-link {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 10px 18px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-focus-link:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (max-width: 920px) {
  .comparison-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .tool-card.tool-focus {
    padding: 20px !important;
  }
  .tool-card.tool-focus .tool-controls {
    grid-template-columns: 1fr;
  }
  .result-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-top: 15px !important;
  }
  .result-card.structured {
    padding: 12px !important;
  }
  .result-header .result-text {
    font-size: 1rem !important;
  }
  .result-details p {
    font-size: 0.8rem !important;
  }
  .result-actions {
    margin-top: 10px;
  }
  .copy-single {
    width: 100%;
    justify-content: center;
    padding: 8px !important;
  }
}

/* SEO Content Styles */
.content-rich .grid-2 {
  gap: 24px;
}

.mini-card.highlight {
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.55);
}

.mini-card.highlight h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.clean-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.clean-list li {
  padding: 20px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.clean-list li:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.clean-list li strong {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 800;
}

.clean-list li strong::before {
  content: "✦";
  color: var(--secondary);
  font-size: 1.2rem;
}

/* Contact Form Premium Styles */
.contact-grid {
  display: flex;
  gap: 70px;
  align-items: stretch;
}

.contact-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-copy h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

.contact-highlight-box {
  background: rgba(37, 99, 235, 0.04);
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
}

.contact-highlight-box h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.contact-email-tag {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 10px;
}

.trust-signals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.trust-text {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-premium-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
  padding: 16px 32px;
  border-radius: 99px;
  font-weight: 800;
  display: inline-block;
}

.btn-premium-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.35);
}

.contact-form {
  flex: 1;
  padding: 30px; 
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px; 
}

@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
    gap: 40px;
  }
  
  .contact-copy {
    text-align: center;
    padding: 0 15px;
  }

  .trust-signals {
    align-items: center;
  }

  .contact-form {
    padding: 20px;
  }

  .form-actions-compact {
    flex-direction: column;
  }

  .form-actions-compact .btn {
    width: 100%;
  }
}

/* ============================================================
   MOBILE UI/UX OVERHAUL (Fixes Overlapping & Layout)
   ============================================================ */
@media (max-width: 768px) {
    /* ============================================================
       REFINED MOBILE NAVIGATION (Right Drawer)
       ============================================================ */
    .hamburger {
        display: flex !important;
        z-index: 1001;
    }

    /* ============================================================
       FINAL FULL-SCREEN MOBILE MENU
       ============================================================ */
    .mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        z-index: 60000 !important; /* Extremely high */
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 90px 24px 40px !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    .mobile-menu.active {
        transform: translateX(0) !important;
    }

    /* Hide Original Nav on Mobile */
    .navbar nav {
        display: none !important;
    }

    .mobile-menu ul {
        list-style: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-menu a {
        display: block;
        padding: 16px 20px;
        background: rgba(15, 23, 42, 0.04);
        border-radius: 12px;
        color: var(--primary);
        font-weight: 600;
        font-size: 1.2rem;
        text-decoration: none;
    }

    .menu-open {
        overflow: hidden !important;
        height: 100vh !important;
    }

    /* Lower Sticky Bar Z-Index to stay BEHIND menu */
    .mobile-action-bar {
        z-index: 5 !important;
    }

    header .close-menu, header .close-btn {
        display: none !important; /* Extra safety for desktop/header area */
    }

    /* ============================================================
       BLOG UI REFINEMENT (Cards & Spacing)
       ============================================================ */
    .blog-grid, .blog-cards {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 0 4px !important;
    }

    .blog-card {
        padding: 20px !important;
        border-radius: 20px !important;
        background: rgba(255, 255, 255, 0.6) !important;
    }

    .blog-image {
        height: 180px !important;
        margin-bottom: 15px !important;
    }

    .blog-card h3 {
        font-size: 1.3rem !important;
        min-height: auto !important;
        margin-bottom: 12px !important;
    }

    .blog-card p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }

    /* General Typography Fixes */
    h1 {
        font-size: clamp(1.8rem, 9vw, 2.4rem) !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }

    .lead {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    .section-card {
        padding: 30px 16px !important;
        margin-top: 24px !important;
    }

    .grid-3, .grid-2, .contact-grid, .footer-columns {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* Global Responsive Base */
html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- STANDARD AD CONTAINERS --- */
.ad-container {
    width: 100%;
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ad-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    opacity: 0.5;
    font-weight: 700;
}

.ad-slot-standard {
    width: 100%;
    max-width: 970px; /* Standard Leaderboard Max */
    min-height: 90px; /* Standard Desktop Height */
    background: var(--glass);
    border: 1px dashed var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .ad-container {
        margin: 20px 0;
    }
    .ad-slot-standard {
        min-height: 250px; /* Standard Mobile Square/Rectangle */
        max-width: 336px;  /* Standard Large Mobile Banner */
    }
}

/* Modern Gradient Button Classes */
.btn-gradient-orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3) !important;
}

.btn-gradient-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3) !important;
}

.btn-gradient-orange:hover, .btn-gradient-blue:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
  .clean-list li { padding: 16px; }
  .clean-list li strong { font-size: 1rem; }
}

/* Extra Utility for Results */
.btn-sm { padding: 4px 10px; font-size: 0.8rem; }
.result-card.structured:active { transform: scale(0.98); }


/* Force 2x2 for Tips even on smaller screens */
@media (max-width: 620px) {
  .clean-list { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .clean-list li { padding: 14px !important; }
  .clean-list li strong { font-size: 0.9rem !important; }
  .clean-list li span { font-size: 0.8rem !important; line-height: 1.4 !important; }
}
